Fixed chart

This commit is contained in:
2023-11-05 11:45:25 +01:00
parent 7d55e6bff4
commit 9af611d609
3 changed files with 6 additions and 9 deletions
+4 -2
View File
@@ -2,7 +2,7 @@ apiVersion: v2
name: template name: template
description: A Helm library chart containing common templates, keeping application templates short description: A Helm library chart containing common templates, keeping application templates short
type: library type: library
version: 0.2.2 version: 0.2.3
maintainers: maintainers:
- name: Jim Martens - name: Jim Martens
url: https://2martens.de url: https://2martens.de
@@ -11,7 +11,9 @@ sources:
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: fixed - kind: fixed
description: Fixed path to secret when using vault description: Reverted path to secret for vault
- kind: fixed
description: Changed namespace for vault secrets app to release namespace
artifacthub.io/signKey: | artifacthub.io/signKey: |
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8 fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
+1 -6
View File
@@ -41,16 +41,11 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if and .Values.secrets (not .Values.vault.enabled) }} {{- if or .Values.secrets .Values.vault.enabled }}
envFrom: envFrom:
- secretRef: - secretRef:
name: {{ include "template.fullname" . }} name: {{ include "template.fullname" . }}
{{- end }} {{- end }}
{{- if .Values.vault.enabled }}
envFrom:
- secretRef:
name: {{ .Values.vault.operatorNamespace | default "vault-secrets-operator-system" }}/{{ include "template.fullname" . }}
{{- end }}
env: env:
{{- if .Values.application.isSpring }} {{- if .Values.application.isSpring }}
- name: SPRING_PROFILES_ACTIVE - name: SPRING_PROFILES_ACTIVE
@@ -4,7 +4,7 @@ apiVersion: secrets.hashicorp.com/v1beta1
kind: HCPVaultSecretsApp kind: HCPVaultSecretsApp
metadata: metadata:
name: {{ include "template.fullname" . }} name: {{ include "template.fullname" . }}
namespace: {{ .Values.vault.operatorNamespace | default "vault-secrets-operator-system" }} namespace: {{ .Release.Namespace }}
labels: labels:
{{- include "template.labels" . | nindent 4 }} {{- include "template.labels" . | nindent 4 }}
spec: spec: