add labels and annotations

ssh private key authentication seems to require labels, and annotations are very helpful
This commit is contained in:
Steve Molin 2020-07-08 08:08:12 -07:00 committed by GitHub
parent 588cc36bc6
commit e1c61fe37a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -190,6 +190,10 @@ apiVersion: v1
kind: Secret
metadata:
name: k8s-ssh
labels:
"jenkins.io/credentials-type": "basicSSHUserPrivateKey"
annotations:
"jenkins.io/credentials-description" : "ssh github.com:jenkinsci/kubernetes-operator"
stringData:
privateKey: |
-----BEGIN RSA PRIVATE KEY-----