From ebf92ccd06057eb0a57b76780fc406a3477a7abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lino?= Date: Fri, 17 Apr 2020 12:42:51 +0100 Subject: [PATCH] Add credentials. --- templates/jenkins-credentials.yaml | 6 ++++++ templates/jenkins-secrets.yaml | 7 +++++++ values.yaml | 4 ++-- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 templates/jenkins-credentials.yaml create mode 100644 templates/jenkins-secrets.yaml diff --git a/templates/jenkins-credentials.yaml b/templates/jenkins-credentials.yaml new file mode 100644 index 0000000..19d08f3 --- /dev/null +++ b/templates/jenkins-credentials.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Secret +metadata: + name: jenkins-credentials +data: + credentials.xml: PD94bWwgdmVyc2lvbj0nMS4xJyBlbmNvZGluZz0nVVRGLTgnPz4KPGNvbS5jbG91ZGJlZXMucGx1Z2lucy5jcmVkZW50aWFscy5TeXN0ZW1DcmVkZW50aWFsc1Byb3ZpZGVyIHBsdWdpbj0iY3JlZGVudGlhbHNAMi4zLjciPgogIDxkb21haW5DcmVkZW50aWFsc01hcCBjbGFzcz0iaHVkc29uLnV0aWwuQ29weU9uV3JpdGVNYXAkSGFzaCI+CiAgICA8ZW50cnk+CiAgICAgIDxjb20uY2xvdWRiZWVzLnBsdWdpbnMuY3JlZGVudGlhbHMuZG9tYWlucy5Eb21haW4+CiAgICAgICAgPHNwZWNpZmljYXRpb25zLz4KICAgICAgPC9jb20uY2xvdWRiZWVzLnBsdWdpbnMuY3JlZGVudGlhbHMuZG9tYWlucy5Eb21haW4+CiAgICAgIDxqYXZhLnV0aWwuY29uY3VycmVudC5Db3B5T25Xcml0ZUFycmF5TGlzdD4KICAgICAgICA8aW8uamVua2lucy5wbHVnaW5zLmdpdGxhYnNlcnZlcmNvbmZpZy5jcmVkZW50aWFscy5QZXJzb25hbEFjY2Vzc1Rva2VuSW1wbCBwbHVnaW49ImdpdGxhYi1icmFuY2gtc291cmNlQDEuNC42Ij4KICAgICAgICAgIDxzY29wZT5HTE9CQUw8L3Njb3BlPgogICAgICAgICAgPGlkPnNlcnZpY2UtY29uZmlnLXRva2VuPC9pZD4KICAgICAgICAgIDxkZXNjcmlwdGlvbj5UaGUgdXNlciB0aGF0IG1hbmFnZXIgdGhlIGdpdGxhYiBpbnRlZ3JhdGlvbiBmb3IgQ0kvQ0QgcHJvamVjdHMuPC9kZXNjcmlwdGlvbj4KICAgICAgICAgIDx0b2tlbj57QVFBQUFCQUFBQUFnbC9ldnBFY2pzcnRpclZ4YkVNZXp1NlQrV0tJcnFPcUlqV2IwZXRXWDJOdmo5VTExWXZrd2hyN0NiM2lMK0UxbH08L3Rva2VuPgogICAgICAgIDwvaW8uamVua2lucy5wbHVnaW5zLmdpdGxhYnNlcnZlcmNvbmZpZy5jcmVkZW50aWFscy5QZXJzb25hbEFjY2Vzc1Rva2VuSW1wbD4KICAgICAgPC9qYXZhLnV0aWwuY29uY3VycmVudC5Db3B5T25Xcml0ZUFycmF5TGlzdD4KICAgIDwvZW50cnk+CiAgPC9kb21haW5DcmVkZW50aWFsc01hcD4KPC9jb20uY2xvdWRiZWVzLnBsdWdpbnMuY3JlZGVudGlhbHMuU3lzdGVtQ3JlZGVudGlhbHNQcm92aWRlcj4= \ No newline at end of file diff --git a/templates/jenkins-secrets.yaml b/templates/jenkins-secrets.yaml new file mode 100644 index 0000000..6db120f --- /dev/null +++ b/templates/jenkins-secrets.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: Secret +metadata: + name: jenkins-secrets +data: + master.key: YTdhMjQyMTZiMWUxZTdjMDNkNDhiMGEyYmI2OWFhYjMzNDcyNjlmZmUzYWU0MjYwZjhmMTY5ZTZkMjFjNjhiMWVmMmVlYjhhMjAxNGUyN2U0ZjExNDMxY2IwNDA1ZTQ3NjFhNmJmNjg3YTVhNDRlNjU2YTdkYTQ5ZTk5Y2E4NjlhMzZhZjIxMjE4NmMzNGY5NDEzOWZjODQ2NTU5NzkyNTdkY2IxODY2MmFiOTcyMGE4YmQyYmEzN2QyOThiMzU1NGZkNDU4MjFkZDM1ZmQyYTg1Y2U1MzI2OTQ1ZDM0OThmY2IxYjk1YWNlODNhMWRhYmY0ZjI0NTUyNWJhYTUzMg== + hudson.util.Secret: +z3+/YnKuRQBoGObj6Dg4MW6Csz/M5Hw2NMmHX1BnOSvSel+cyn7AEtxXBNOiJtkqjEuUm4MHo/BuuQ3aWSeuDAIoHvZWZqIctk8D7/azrkjt0hnAPdnrLAwDX4mhNT3yZAbssx/YzjzIPkHVdgHcGyL9TdBdkrbbyEZZEFBBWuD8C71cLyidfK/571/qtNBO2mLllh9JReL12EKVLZz3fvnlgC/D2IrCvlb4Y9xYvKYw2+FL98cweOBQV57SvN7XkHvSFdaAejsT5UOIkcU8dKBnVyfHM7qxcjXnX+ZyEiX6LuRoKcYKXfD2V4jddd9vsWyBAi+vx/oiiBXbr/W2bxESlEplV2bvdxCkttxl6c= \ No newline at end of file diff --git a/values.yaml b/values.yaml index 7238385..688a80b 100644 --- a/values.yaml +++ b/values.yaml @@ -232,11 +232,11 @@ master: # - | # print 'adding global pipeline libraries, register properties, bootstrap jobs...' # Kubernetes secret that contains a 'credentials.xml' for Jenkins - # credentialsXmlSecret: jenkins-credentials + credentialsXmlSecret: jenkins-credentials # Kubernetes secret that contains files to be put in the Jenkins 'secrets' directory, # useful to manage encryption keys used for credentials.xml for instance (such as # master.key and hudson.util.Secret) - # secretsFilesSecret: jenkins-secrets + secretsFilesSecret: jenkins-secrets # Jenkins XML job configs to provision jobs: # test: |- -- 2.24.1