-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/pod value mount #11145
Feature/pod value mount #11145
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to adjust the abstraction used.
EnvFrom []core.EnvFromSource `json:"envFrom,omitempty" yaml:"envFrom,omitempty"` | ||
Env []core.EnvVar `json:"env,omitempty" yaml:"env,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a slightly different abstraction here.
We already support the "config" keyword for straight pod env key values.
ie
config:
attr: foo=bar; name["fred"]="blogs";
foo: bar
We need to look to extend that to add in the extra capability, eg
config:
foo: bar
my_node-name:
field:
name: spec.nodeName
thing:
secret:
name: foo
key: bar
thing2:
secret:
name: foo
thing3:
configMap:
name: foo
thing4:
configMap:
name: foo
key: bar
So "config" attributes are extended to accept either a string as we have now for simple scalar values, or a map which is used to define the 3 new cases.
There are 3 new keywords: field, configMap, secret.
If only the name is specified for configMap or secret, that maps to EnvFrom where all fields are used. Otherwise we just use the single named field.
9f55a2f
to
1d735f0
Compare
1d735f0
to
b4e5d22
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to add back the special bool handling and remove resource limits
|
Please provide the following details to expedite Pull Request review:
Checklist
Description of change
Introduce
config
options in k8sspec for environment value mount usingEnv
andEnvFrom
.QA steps
deploy a CaaS application with below k8s spec format;
Documentation changes
Yes
Bug reference
https://bugs.launchpad.net/juju/+bug/1858515