From 027115dc065fa29b869830e737a8bef19da8b0a1 Mon Sep 17 00:00:00 2001 From: Johnathan Kupferer Date: Thu, 7 Dec 2023 15:51:51 -0500 Subject: [PATCH] Fix missing spec in BitwardenSyncSecrets (#53) --- .../templates/bitwarden-sync-secrets.yaml | 54 ++++++++++--------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/deploy/helm-api/templates/bitwarden-sync-secrets.yaml b/deploy/helm-api/templates/bitwarden-sync-secrets.yaml index 6544170f..d195b5a7 100644 --- a/deploy/helm-api/templates/bitwarden-sync-secrets.yaml +++ b/deploy/helm-api/templates/bitwarden-sync-secrets.yaml @@ -8,16 +8,17 @@ metadata: labels: app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/name: {{ .Values.appName }} -data: - database_url: - secret: {{ .Values.bitwarden_secret_name }} - key: database.url - dynamodb_aws_access_key_id: - secret: {{ .Values.bitwarden_secret_name }} - key: database.dynamodb_aws_access_key_id - dynamodb_aws_secret_access_key: - secret: {{ .Values.bitwarden_secret_name }} - key: database.dynamodb_aws_secret_access_key +spec: + data: + database_url: + secret: {{ .Values.bitwarden_secret_name }} + key: database.url + dynamodb_aws_access_key_id: + secret: {{ .Values.bitwarden_secret_name }} + key: database.dynamodb_aws_access_key_id + dynamodb_aws_secret_access_key: + secret: {{ .Values.bitwarden_secret_name }} + key: database.dynamodb_aws_secret_access_key --- apiVersion: bitwarden-k8s-secrets-manager.demo.redhat.com/v1 kind: BitwardenSyncSecret @@ -27,10 +28,11 @@ metadata: labels: app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/name: {{ .Values.appName }} -data: - jwt_auth_secret: - secret: {{ .Values.bitwarden_secret_name }} - key: auth.jwt_auth_secret +spec: + data: + jwt_auth_secret: + secret: {{ .Values.bitwarden_secret_name }} + key: auth.jwt_auth_secret --- apiVersion: bitwarden-k8s-secrets-manager.demo.redhat.com/v1 kind: BitwardenSyncSecret @@ -40,10 +42,11 @@ metadata: labels: app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/name: {{ .Values.appName }} -data: - vault_secret: - secret: {{ .Values.bitwarden_secret_name }} - key: vault.vault_secret +spec: + data: + vault_secret: + secret: {{ .Values.bitwarden_secret_name }} + key: vault.vault_secret --- apiVersion: bitwarden-k8s-secrets-manager.demo.redhat.com/v1 kind: BitwardenSyncSecret @@ -53,11 +56,12 @@ metadata: labels: app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/name: {{ .Values.appName }} -data: - assumerole_aws_access_key_id: - secret: {{ .Values.bitwarden_secret_name }} - key: aws.assumerole_aws_access_key_id - assumerole_aws_secret_access_key: - secret: {{ .Values.bitwarden_secret_name }} - key: aws.assumerole_aws_secret_access_key +spec: + data: + assumerole_aws_access_key_id: + secret: {{ .Values.bitwarden_secret_name }} + key: aws.assumerole_aws_access_key_id + assumerole_aws_secret_access_key: + secret: {{ .Values.bitwarden_secret_name }} + key: aws.assumerole_aws_secret_access_key {{- end }}