From c35104a3e3d4afe3c3b7a09e9d79692b1f56a045 Mon Sep 17 00:00:00 2001 From: Aliaksandr Koushyk Date: Fri, 14 May 2021 11:17:30 +0300 Subject: [PATCH 1/2] Added type and name to secret template --- charts/sonatype-nexus/templates/secret.yaml | 3 ++- charts/sonatype-nexus/values.yaml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/sonatype-nexus/templates/secret.yaml b/charts/sonatype-nexus/templates/secret.yaml index 3f272cc4..b6b8b049 100644 --- a/charts/sonatype-nexus/templates/secret.yaml +++ b/charts/sonatype-nexus/templates/secret.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: Secret metadata: - name: {{ template "nexus.name" . }}-secret + name: {{ toYaml .Values.secret.metadata.name }} namespace: {{ template "nexus.namespace" . }} labels: {{ include "nexus.labels" . | indent 4 }} @@ -12,3 +12,4 @@ metadata: data: {{ toYaml .Values.secret.data | indent 2 }} {{- end}} +type: {{ toYaml .Values.secret.type }} \ No newline at end of file diff --git a/charts/sonatype-nexus/values.yaml b/charts/sonatype-nexus/values.yaml index 1b785f64..1192fa09 100644 --- a/charts/sonatype-nexus/values.yaml +++ b/charts/sonatype-nexus/values.yaml @@ -310,9 +310,12 @@ deployment: # # To use an additional secret, set enable to true and add data secret: + metadata: + name: nexus-secret enabled: false mountPath: /etc/secret-volume readOnly: true + type: Opaque data: # # To use an additional service, set enable to true From 61d43e807a8fafde3757b65c7e233eeb98353114 Mon Sep 17 00:00:00 2001 From: koushyk <47424600+koushyk@users.noreply.github.com> Date: Fri, 14 May 2021 12:46:01 +0300 Subject: [PATCH 2/2] Update secret.yaml --- charts/sonatype-nexus/templates/secret.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/sonatype-nexus/templates/secret.yaml b/charts/sonatype-nexus/templates/secret.yaml index b6b8b049..4676420b 100644 --- a/charts/sonatype-nexus/templates/secret.yaml +++ b/charts/sonatype-nexus/templates/secret.yaml @@ -12,4 +12,4 @@ metadata: data: {{ toYaml .Values.secret.data | indent 2 }} {{- end}} -type: {{ toYaml .Values.secret.type }} \ No newline at end of file +type: {{ toYaml .Values.secret.type }}