Skip to content

Commit

Permalink
Merge pull request #51 from learner0810/fix-use-external-pg
Browse files Browse the repository at this point in the history
Fix rendering template error when using external pg
  • Loading branch information
Iceber authored Jul 5, 2023
2 parents 7ae3e47 + 48247fa commit 53c40cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/clusterpedia/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.7.0
version: 1.7.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
9 changes: 5 additions & 4 deletions charts/clusterpedia/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,15 @@ Return the proper Docker Image Registry Secret Names

{{- define "clusterpedia.storage.dsn" -}}
{{- if eq .Values.storageInstallMode "external" }}
{{- if not (eq .Values.externalStorage.type "mysql") }}
{{ required "storage dsn not support mysql" "" }}
{{- if not (empty .Values.externalStorage.dsn) -}}
{{- if eq .Values.externalStorage.type "mysql" }}
{{- .Values.externalStorage.dsn }}
{{- else -}}
{{- .Values.externalStorage.dsn }}
{{ required "storage dsn only supports mysql" "" }}
{{- end -}}
{{- end -}}
{{- end -}}

{{- end -}}


{{- define "clusterpedia.storage.user" -}}
Expand Down

0 comments on commit 53c40cb

Please sign in to comment.