add global values support #322
3 Participants
Notifications
Due Date No due date set.
Blocks
#323 generate readme Parameters from values.yaml
gitea/helm-gitea
Reference: gitea/helm-gitea#322
Reference in New Issue
Block a user
No description provided.
Delete Branch "cnfatal/helm-chart:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
add global values support for
.global.storageClass.global.imageRegistryand.global.imagePullSecretsa87ec8a163tof3d10f14c4+1 for switching to readme-generator. Thanks for the effort. Would you mind splitting the two parts into different PRs? That would make a review much easier.EDIT: Splitted into different PRs.
f3d10f14c4to3e4e94b075Many thanks for your contribution. I've marked some minor things.
@@ -35,10 +35,50 @@ Create chart name and version as used by the chart label.Create image name and tag used by the deployment.*/}}{{- define "gitea.image" -}}{{- $registry := .Values.image.registry -}}.Values.image.registrydoes not exist yet. Do you mind adding it to the values.yaml?In addition, we could simplify the override of
$registryhere.Nevermind that part. Saw that it's added in the readme generator PR. ?
@@ -42,0 +68,4 @@Return the proper Storage Class*/}}{{- define "gitea.persistence.storageClass" -}}{{- $storageClass := .Values.persistence.storageClass -}}We could simplify the override of
$storageClass.@@ -42,0 +73,4 @@{{- $storageClass = .Values.global.storageClass -}}{{- end -}}{{- if $storageClass -}}{{- if (eq "-" $storageClass) -}}Where does the
-come from? Isn't the default value""?Ref from other charts (bitnami's) ,it says:
The empty
""andnullval not pass theifcheck, lead to ano storageClassName specBut the usage of "-" is really few,I'll remove it.
3e4e94b075to96b27e6a8f96b27e6a8ftoadcc7b974a@@ -42,0 +68,4 @@{{- $storageClass := .Values.global.storageClass | default .Values.persistence.storageClass -}}{{- if $storageClass -}}storageClassName: {{ $storageClass }}{{- end -}}@cnfatal Right now generating the template fails. It seems this function uses incorrect line wrap trimming. A working function declaration would be:
And we should quote the storage class value (as done in the proposed fix). Just to be sure. :)
you're right
adcc7b974ato048b5c480eLGTM
LGTM