From 6c5bd77b69cd9b144b96f652288dfc4e234e143f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=A0alata?= Date: Wed, 26 May 2021 10:24:11 +0200 Subject: [PATCH] Rewrite CSR creation into `jq` to be more robust --- charts/imagepullsecret-injector/Chart.yaml | 2 +- .../scripts/create-signed-cert.sh | 38 ++++++++++--------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/charts/imagepullsecret-injector/Chart.yaml b/charts/imagepullsecret-injector/Chart.yaml index 25d6166..9e0ff73 100644 --- a/charts/imagepullsecret-injector/Chart.yaml +++ b/charts/imagepullsecret-injector/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.20 +version: 0.0.21 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/imagepullsecret-injector/scripts/create-signed-cert.sh b/charts/imagepullsecret-injector/scripts/create-signed-cert.sh index 522dc3a..dc76e4e 100644 --- a/charts/imagepullsecret-injector/scripts/create-signed-cert.sh +++ b/charts/imagepullsecret-injector/scripts/create-signed-cert.sh @@ -83,23 +83,27 @@ echo "Deleting old CertificateSigningRequests" kubectl delete csr ${csrName} 2>/dev/null || true echo "Creating new CertificateSigningRequests" -# create server cert/key CSR and send to k8s API -cat <