Skip to content

Commit

Permalink
Merge pull request #796 from haslersn/fix-create-cert
Browse files Browse the repository at this point in the history
fix certificate generation in webhook example
  • Loading branch information
k8s-ci-robot committed Dec 14, 2022
2 parents 40e2a53 + 1defd00 commit 9695271
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/kubernetes/webhook-example/create-cert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
kubectl create secret generic ${secret} \
--from-file=key.pem=${tmpdir}/server-key.pem \
--from-file=cert.pem=${tmpdir}/server-cert.pem \
kubectl create secret tls ${secret} \
--key=${tmpdir}/server-key.pem \
--cert=${tmpdir}/server-cert.pem \
--dry-run=client -o yaml |
kubectl -n ${namespace} apply -f -

0 comments on commit 9695271

Please sign in to comment.