From 0c6d4c98f25e106c0c91516381818bb7ee3ebae2 Mon Sep 17 00:00:00 2001 From: Liam Mackie Date: Tue, 10 Sep 2024 16:31:26 +1000 Subject: [PATCH] Fix: octopus server notes rendering (#308) --- .changeset/warm-emus-fold.md | 5 +++++ charts/octopus-deploy/templates/NOTES.txt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/warm-emus-fold.md diff --git a/.changeset/warm-emus-fold.md b/.changeset/warm-emus-fold.md new file mode 100644 index 00000000..bc976c67 --- /dev/null +++ b/.changeset/warm-emus-fold.md @@ -0,0 +1,5 @@ +--- +"octopus-deploy": patch +--- + +Fix notes not rendering when specifying master key diff --git a/charts/octopus-deploy/templates/NOTES.txt b/charts/octopus-deploy/templates/NOTES.txt index 35c2183a..21465396 100644 --- a/charts/octopus-deploy/templates/NOTES.txt +++ b/charts/octopus-deploy/templates/NOTES.txt @@ -7,7 +7,7 @@ To connect, you can use the following command, then go to http://localhost:8080 $ kubectl --namespace {{.Release.Namespace}} port-forward svc/{{ template "octopus.fullname" . }} 8080:{{.Values.octopus.webPort}} {{- end }} -{{- if or (not .Values.octopus.masterKey) or (not .Values.octopus.password) or (and .Values.mssql.enabled (not .Values.mssql.SA_PASSWORD)) }} +{{- if or (not .Values.octopus.masterKey) (not .Values.octopus.password) (and .Values.mssql.enabled (not .Values.mssql.SA_PASSWORD)) }} At least one required secret was not set, and has been autogenerated for you: {{- if not .Values.octopus.masterKey }} Master Key: {{ index (index .Release "generatedSecrets") (printf "%s-%s" .Release.Name "masterkey") }}