aws-jenkins-credential-github-ssh-external-secret.yaml 669 B

123456789101112131415161718192021222324252627
  1. ---
  2. apiVersion: external-secrets.io/v1alpha1
  3. kind: ExternalSecret
  4. metadata:
  5. name: github-ssh-access
  6. namespace: ci
  7. spec:
  8. refreshInterval: 1m
  9. secretStoreRef:
  10. name: cluster-parameter-store
  11. kind: ClusterSecretStore
  12. target:
  13. name: github-ssh-access
  14. template:
  15. metadata:
  16. labels:
  17. "jenkins.io/credentials-type": "basicSSHUserPrivateKey"
  18. annotations:
  19. "jenkins.io/credentials-description": "github-ssh-access key"
  20. data:
  21. - secretKey: username
  22. remoteRef:
  23. key: /service/github/sshUserPrivateKeyUserName
  24. - secretKey: privateKey
  25. remoteRef:
  26. key: /service/github/sshUserPrivateKey