fix certificate generation in webhook example
After bb957259da
the script was broken. This commit fixes this by
respecting the format of TLS-type secrets in the script, too.
This commit is contained in:
@@ -120,8 +120,8 @@ echo ${serverCert} | openssl base64 -d -A -out ${tmpdir}/server-cert.pem
|
|||||||
|
|
||||||
|
|
||||||
# create the secret with CA cert and server cert/key
|
# create the secret with CA cert and server cert/key
|
||||||
kubectl create secret generic ${secret} \
|
kubectl create secret tls ${secret} \
|
||||||
--from-file=key.pem=${tmpdir}/server-key.pem \
|
--key=${tmpdir}/server-key.pem \
|
||||||
--from-file=cert.pem=${tmpdir}/server-cert.pem \
|
--cert=${tmpdir}/server-cert.pem \
|
||||||
--dry-run=client -o yaml |
|
--dry-run=client -o yaml |
|
||||||
kubectl -n ${namespace} apply -f -
|
kubectl -n ${namespace} apply -f -
|
||||||
|
Reference in New Issue
Block a user