docs: set full path of values.yaml key in output to user (#832)
Currently, the reported path of the values to be changed is not always correct (especially `gitea.persistence` vs. `persistence`). Co-authored-by: techknowlogick <techknowlogick@noreply.gitea.com> Reviewed-on: #832 Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com> Co-authored-by: bachorp <bachorp@noreply.gitea.com> Co-committed-by: bachorp <bachorp@noreply.gitea.com>
This commit was merged in pull request #832.
 This commit is contained in:
 @@ -31,13 +31,13 @@ stringData:  |  ||||
 {{- if .Values.gitea.config.cron -}}  |  ||||
 {{- if .Values.gitea.config.cron.GIT_GC_REPOS -}}  |  ||||
 {{- if eq .Values.gitea.config.cron.GIT_GC_REPOS.ENABLED true -}}  |  ||||
 {{ fail "Invoking the garbage collector via CRON is not yet supported when running with multiple replicas. Please set 'cron.GIT_GC_REPOS.enabled = false'." }}  |  ||||
 {{ fail "Invoking the garbage collector via CRON is not yet supported when running with multiple replicas. Please set 'gitea.config.cron.GIT_GC_REPOS.enabled = false'." }}  |  ||||
 {{- end }}  |  ||||
 {{- end }}  |  ||||
 {{- end }}  |  ||||
   |  ||||
 {{- if eq (first .Values.persistence.accessModes) "ReadWriteOnce" -}}  |  ||||
 {{- fail "When using multiple replicas, a RWX file system is required and gitea.persistence.accessModes[0] must be set to ReadWriteMany." -}}  |  ||||
 {{- fail "When using multiple replicas, a RWX file system is required and persistence.accessModes[0] must be set to ReadWriteMany." -}}  |  ||||
 {{- end }}  |  ||||
 {{- if .Values.gitea.config.indexer -}}  |  ||||
 {{- if eq .Values.gitea.config.indexer.ISSUE_INDEXER_TYPE "bleve" -}}  |  ||||
   |  ||||
@@ -20,14 +20,14 @@ tests:  |  ||||
 ENABLED: true  |  ||||
 asserts:  |  ||||
 - failedTemplate:  |  ||||
 errorMessage: "Invoking the garbage collector via CRON is not yet supported when running with multiple replicas. Please set 'cron.GIT_GC_REPOS.enabled = false'."  |  ||||
 errorMessage: "Invoking the garbage collector via CRON is not yet supported when running with multiple replicas. Please set 'gitea.config.cron.GIT_GC_REPOS.enabled = false'."  |  ||||
 - it: fails with multiple replicas and RWX file system not set  |  ||||
 template: templates/gitea/deployment.yaml  |  ||||
 set:  |  ||||
 replicaCount: 2  |  ||||
 asserts:  |  ||||
 - failedTemplate:  |  ||||
 errorMessage: "When using multiple replicas, a RWX file system is required and gitea.persistence.accessModes[0] must be set to ReadWriteMany."  |  ||||
 errorMessage: "When using multiple replicas, a RWX file system is required and persistence.accessModes[0] must be set to ReadWriteMany."  |  ||||
 - it: fails with multiple replicas and bleve issue indexer  |  ||||
 template: templates/gitea/deployment.yaml  |  ||||
 set:  |  ||||
   |  ||||
	Reference in New Issue 
 Block a user