-
Notifications
You must be signed in to change notification settings - Fork 163
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
Resource name mismatch in the code vs charts #521
Comments
hi team, any update on this or path for moving forward would be greatly appreciated. |
Hey @gkarthiks, thanks for opening the issue! I think we got two options here:
To be honest, I like the approach of nr.3 since would be more Kubernetes-native, would be great having feedback from you! |
I like approach no 3 as well. The CapsuleConfiguration is supposed to have these configs. |
Oh, that's great! @davideimola is already working on it, could you confirm? |
Yes, I am working on it |
Just as a side note, in this situation where the CA secret search fails, also the
|
I think that also |
Bug description
The CA secret name in the code has been hard-coded as
capsule-ca
(ref here), which is what is used to search for the secret that provides the CA for the controller manager.But in the chart, the name of the secret is templated as
name: {{ include "capsule.secretCaName" . }}
(ref here). This is included from the _helpers.tpl as{{- printf "%s-ca" (include "capsule.fullname" .) -}}
(ref here) which is an ovveride with the release name.So if I release my chart with
releaseName=multi-tenancy-manager
then the secret name will be rendered as multi-tenancy-manager-capsule-ca`. This is not the secret name the controller is looking for in here.How to reproduce
helm template multi-tenancy-manager clastix/capsule --include-crds
Logs
Additional context
v0.1.1 1bbaebb
0.1.6
v1.21.5
I can submit a PR on the charts repo by hard-coding the ca secret name to capsule-ca. Please let me know your suggestion.
The text was updated successfully, but these errors were encountered: