Make the cert signer use the v1 CSR instead of v1beta1 (deprecated since k8s v1.19)

This commit is contained in:
Martin Šalata
2021-07-26 10:30:36 +02:00
parent 56595e3e72
commit 233491dec9

View File

@@ -84,10 +84,10 @@ kubectl delete csr ${csrName} 2>/dev/null || true
echo "Creating new CertificateSigningRequests"
# create server cert/key CSR and send to k8s API
jq -n --arg request "$(< "${tmpdir}"/server.csr base64 -w0)" \
jq -n --arg request "$(< "${tmpdir}"/server.csr base64)" \
--arg namespace "$namespace" \
--arg csrName "$csrName" '{
apiVersion: "certificates.k8s.io/v1beta1",
apiVersion: "certificates.k8s.io/v1",
kind: "CertificateSigningRequest",
metadata: {
name: $csrName,