-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add configs section to App CRD #38
Conversation
Hold on, I just realised this repo works differently than I expected and it hosts the structs for the CRDs as well. |
All right, did it properly this time and also aligned the recently updated docs for |
type AppConfiguration struct { | ||
// Kind of configuration to look up that should be applied to the app when deployed. | ||
// +kubebuilder:validation:Enum=configMap;secret | ||
Kind string `json:"kind"` |
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.
Should there also be a default to configmap here?
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.
In my opinion explicit is better than implicit. Or do you mean we should allow configmap
and configMap
as a value as well? I chose configMap
for 2 reasons: this is how the RFC calls it and this is how we use it in other places as we. within the same CRD.
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.
Sorry I meant a kubebuilder default to set this Kind
field to configMap
by default.
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.
@MarcelMue @kubasobon I set the kind
field to optional and the default for it as configMap
. I can see the benefits of it as probably it will be config map most of the time and this saves some repetition I guess.
9db9409
to
6c89c12
Compare
These will be used in merging logics and makes sense to keep with the actual configuration.
6c89c12
to
843337a
Compare
Towards: https://github.com/giantswarm/giantswarm/issues/22593
Checklist