Fix kuberentes env var
parent
e7676d04ac
commit
6f543a5ec2
|
|
@ -2146,7 +2146,11 @@ class KubernetesJobSpecFactory {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
env: [
|
env: [
|
||||||
...environment,
|
...environment.map((x) => {
|
||||||
|
const environmentVariable = new client_node_1.V1EnvVar();
|
||||||
|
environmentVariable.name = x.name;
|
||||||
|
environmentVariable.value = x.value;
|
||||||
|
}),
|
||||||
...secrets.map((x) => {
|
...secrets.map((x) => {
|
||||||
const secret = new client_node_1.V1EnvVarSource();
|
const secret = new client_node_1.V1EnvVarSource();
|
||||||
secret.secretKeyRef = new client_node_1.V1SecretKeySelector();
|
secret.secretKeyRef = new client_node_1.V1SecretKeySelector();
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -113,7 +113,11 @@ class KubernetesJobSpecFactory {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
env: [
|
env: [
|
||||||
...environment,
|
...environment.map((x) => {
|
||||||
|
const environmentVariable = new V1EnvVar();
|
||||||
|
environmentVariable.name = x.name;
|
||||||
|
environmentVariable.value = x.value;
|
||||||
|
}),
|
||||||
...secrets.map((x) => {
|
...secrets.map((x) => {
|
||||||
const secret = new V1EnvVarSource();
|
const secret = new V1EnvVarSource();
|
||||||
secret.secretKeyRef = new V1SecretKeySelector();
|
secret.secretKeyRef = new V1SecretKeySelector();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue