-
Notifications
You must be signed in to change notification settings - Fork 440
🐛 keep name in ObjectMeta for volumeClaimTemplates #510
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
Conversation
Signed-off-by: Nandor Kracser <[email protected]>
Welcome @bonifaido! |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bonifaido The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I just checked and there is #254 which tried to solve this and got reverted later on. What would be the proper solution here?
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@bonifaido: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@fejta-bot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I have a CRD which will become a StatefuleSet (amongst many other things) at the end with the help of an operator, and it is possible to define
volumeClaimTemplates
as well for that StatefuleSet. The issue is when I'm using the CRD generator for this type, thePersistentVolumeClaim.metadata.name
field gets removed from the generated CRD YAML, which makes the parsed type miss this name values as well, which has a defined meaning in this case and should be present, otherwise, the statefulset won't produce any pods. With this PR I'm trying to heal this situation (and hopefully won't break other things), I know it adds the metadata.name for other types as well, but that seems to do no harm.Tested locally and the vault-operator seems to be working this way.
https://github.com/banzaicloud/bank-vaults/blob/master/operator/pkg/apis/vault/v1alpha1/vault_types.go#L314