mirror of
https://github.com/ysoftdevs/imagepullsecret-injector.git
synced 2026-03-21 00:29:29 +01:00
Make the cert signer use the v1 CSR instead of v1beta1 (deprecated since k8s v1.19)
This commit is contained in:
@@ -84,10 +84,10 @@ kubectl delete csr ${csrName} 2>/dev/null || true
|
|||||||
|
|
||||||
echo "Creating new CertificateSigningRequests"
|
echo "Creating new CertificateSigningRequests"
|
||||||
# create server cert/key CSR and send to k8s API
|
# 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 namespace "$namespace" \
|
||||||
--arg csrName "$csrName" '{
|
--arg csrName "$csrName" '{
|
||||||
apiVersion: "certificates.k8s.io/v1beta1",
|
apiVersion: "certificates.k8s.io/v1",
|
||||||
kind: "CertificateSigningRequest",
|
kind: "CertificateSigningRequest",
|
||||||
metadata: {
|
metadata: {
|
||||||
name: $csrName,
|
name: $csrName,
|
||||||
|
|||||||
Reference in New Issue
Block a user