Skip to content

Commit

Permalink
Update ci.yaml to generate and apply self-signed certificate for ingr…
Browse files Browse the repository at this point in the history
…ess-nginx
  • Loading branch information
lennartdohmann committed Oct 28, 2024
1 parent 7c7b543 commit f87a018
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ jobs:
--selector=app.kubernetes.io/component=controller \
--timeout=120s
- name: Generate and apply self-signed certificate for ingress-nginx
run: |
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout tls.key -out tls.crt -subj "/CN=ingress-nginx-controller-admission.ingress-nginx.svc"
kubectl create secret tls ingress-nginx-admission -n ingress-nginx \
--key tls.key --cert tls.crt
kubectl patch validatingwebhookconfiguration ingress-nginx-admission \
--type='json' -p='[{"op": "replace", "path": "/webhooks/0/clientConfig/caBundle", "value": "'$(base64 -w 0 tls.crt)'"}]'
- name: Deploy Helm Chart
run: |
cat <<EOF > values-local.yaml
Expand Down

0 comments on commit f87a018

Please sign in to comment.