aws-sm-push-secret-with-metadata.yaml 736 B

123456789101112131415161718192021
  1. apiVersion: external-secrets.io/v1alpha1
  2. kind: PushSecret
  3. metadata:
  4. name: pushsecret-example # Customisable
  5. namespace: teamb # Same of the SecretStores
  6. spec:
  7. deletionPolicy: Delete
  8. refreshInterval: 10s # Refresh interval for which push secret will reconcile
  9. secretStoreRefs: # A list of secret stores to push secrets to
  10. - name: teamb-secret-store
  11. kind: SecretStore
  12. selector:
  13. secret:
  14. name: my-secret # Source Kubernetes secret to be pushed
  15. data:
  16. - match:
  17. secretKey: key1 # Source Kubernetes secret key to be pushed
  18. remoteRef:
  19. remoteKey: teamb-my-first-parameter-3 # Remote reference (where the secret is going to be pushed)
  20. metadata:
  21. secretPushFormat: string