-
Notifications
You must be signed in to change notification settings - Fork 23
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
Document the nameOverride Helm chart value and add it to the JSON schema #390
Document the nameOverride Helm chart value and add it to the JSON schema #390
Conversation
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
Signed-off-by: Richard Wall <richard.wall@venafi.com>
# nameOverride replaces the name of the chart in the Chart.yaml file, when this | ||
# is used to construct Kubernetes object names. | ||
# +docs:property | ||
# nameOverride: approver-policy |
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.
See
{{/* | |
Expand the name of the chart. | |
*/}} | |
{{- define "cert-manager-approver-policy.name" -}} | |
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | |
{{- end -}} |
Thanks for the fix @wallrj |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: inteon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
We use the
nameOverride
field in the values.yaml of the Venafi enterprise plugin for approver-policy, to change the name of the Kubernetes resources deployed by the sub-chart.But the new Helm JSON schema validation doesn't include that field, resulting in the following error:
nameOverride
is a standard field that is created byhelm create
, but it is not documented in the scaffolded chart.Our version is here:
approver-policy/deploy/charts/approver-policy/templates/_helpers.tpl
Lines 1 to 6 in c1b51af
There's another standard field called
fullNameOverride
which is added byhelm create
but which is missing from the approver-policy chart, and I don't know why.The purpose of these fields are explained here:
Relatedly while learning more about this field I found that @smuda has reported a problem with the
nameOverride
field, but I haven't investigated that here.