github-push-secret.yaml 678 B

123456789101112131415161718
  1. apiVersion: external-secrets.io/v1alpha1
  2. kind: PushSecret
  3. metadata:
  4. name: github-push-secret-example
  5. spec:
  6. deletionPolicy: Delete
  7. refreshInterval: 10m # Refresh interval for which push secret will reconcile
  8. secretStoreRefs: # A list of secret stores to push secrets to
  9. - name: github # Must match SecretStore on the cluster
  10. kind: SecretStore
  11. selector:
  12. secret:
  13. name: EXTSERCRET # Remote Github actions secret that we want to sync with the kubernetes secret
  14. data:
  15. - match:
  16. secretKey: extsecret # Source Kubernetes secret key containing the secret
  17. remoteRef:
  18. remoteKey: EXTSECRET # Key of the kubernetes secret to push