[AIRFLOW-4008] add envFrom for Kubernetes Executor#4952
Conversation
678fbd1 to
cdbf418
Compare
cdbf418 to
3e7caf1
Compare
…AIRFLOW-4008/k8s-exec-envfrom-configmap
dimberman
left a comment
There was a problem hiding this comment.
+1 on this feature. Could you please add an integration test?
|
Please prefix your commits with There is some overlap between this PR and #4772 - can you and @galuszkak work out how do get both these in without duplicating code/what makes sense where etc. |
| self.kube_env_from_configmap_ref = configuration.get(self.kubernetes_section, | ||
| 'env_from_configmap_ref') | ||
| self.kube_env_from_secret_ref = configuration.get(self.kubernetes_section, | ||
| 'env_from_secret_ref') |
There was a problem hiding this comment.
To be consistent with #4772 I would suggest using self.kube_secrets and add self.kube_configmaps .
|
I think the simplest move here would be to get @galuszkak's PR merged first, and I can just work off the changes that make it into master. It's true that the |
XD-DENG
left a comment
There was a problem hiding this comment.
Docstring style change is needed.
|
@davlum my changes were merged, so I believe You can start working back on this PR. |
ashb
left a comment
There was a problem hiding this comment.
Partial review (on mobile)
Nice improvement to the tests.
I wonder if we can reduce code in tests some how - want to look at that on a bigger screen
|
Let me know if you think some of the tests are redundant. I just refactored the Secrets object to be a bit more intuitive. I find optionally setting attributes of an object to be very difficult to reason about. |
ac451a5 to
665bbc0
Compare
665bbc0 to
93384db
Compare
…AIRFLOW-4008/k8s-exec-envfrom-configmap
1026bac to
4c590ba
Compare
b6b10e4 to
9191d80
Compare
Codecov Report
@@ Coverage Diff @@
## master #4952 +/- ##
==========================================
+ Coverage 75.99% 76.11% +0.11%
==========================================
Files 461 461
Lines 29968 29979 +11
==========================================
+ Hits 22774 22818 +44
+ Misses 7194 7161 -33
Continue to review full report at Codecov.
|
9191d80 to
5a7b0aa
Compare
* deepcopy objects
5a7b0aa to
6e0068f
Compare
|
Thanks @dimberman . No other comment/issue to me. |
Make sure you have checked all steps below.
Jira
Description
This PR enables workers brought up by the KubernetesExecutor to use the envFrom feature to set environment variables.
Tests
Commits
Documentation
Code Quality
flake8