Skip to content

Commit

Permalink
fix: bananas and apples
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Butler <[email protected]>
  • Loading branch information
butler54 committed May 29, 2024
1 parent 6c27a2b commit 223a717
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion charts/all/test-dsp-a/templates/push-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,33 @@ spec:
secretKey: AWS_SECRET_ACCESS_KEY # Source Kubernetes secret key to be pushed
remoteRef:
#remoteKey: "secret/data/global/{{ .Values.dsp.name }}-aws-secret-access-key"
remoteKey: "/global/bananas"
remoteKey: "/secret/data/global/bananas"
property: AWS_SECRET_ACCESS_KEY # Remote reference (where the secret is going to be pushed
---
apiVersion: external-secrets.io/v1alpha1
kind: PushSecret
metadata:
name: pushsecret # Customisable
namespace: {{ .Values.dsp.name }} # Same of the SecretStores
spec:
updatePolicy: Replace # Policy to overwrite existing secrets in the provider on sync
deletionPolicy: Delete # the provider' secret will be deleted if the PushSecret is deleted
refreshInterval: 10s # Refresh interval for which push secret will reconcile
secretStoreRefs: # A list of secret stores to push secrets to
- name: {{ .Values.secretStore.name }}
kind: {{ .Values.secretStore.kind }}
selector:
secret:
name: {{ .Values.dsp.name }}-obc # Source Kubernetes secret to be pushed
data:
# - match:
# secretKey: AWS_ACCESS_KEY_ID # Source Kubernetes secret key to be pushed
# remoteRef:
# remoteKey: "secret/data/global/{{ .Values.dsp.name }}-aws-access-key" # Remote reference (where the secret is going to be pushed)
- match:
secretKey: AWS_SECRET_ACCESS_KEY # Source Kubernetes secret key to be pushed
remoteRef:
#remoteKey: "secret/data/global/{{ .Values.dsp.name }}-aws-secret-access-key"
remoteKey: "secret/data/global/apples"
property: AWS_SECRET_ACCESS_KEY # Remote reference (where the secret is going to be pushed
{{ end }}

0 comments on commit 223a717

Please sign in to comment.