From b0413fffe0e83cf3a48d03401221e002415da361 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Sun, 1 Jan 2023 20:03:21 -0500 Subject: [PATCH] fix: use the name flux-webhook for ingress Signed-off-by: Devin Buhl --- README.md | 4 ++-- .../apps/flux-system/addons/webhooks/github/ingress.yaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 08b2bd46..88b89eff 100644 --- a/README.md +++ b/README.md @@ -413,7 +413,7 @@ To enable Renovate on your repository, click the 'Configure' button over at thei Flux is pull-based by design meaning it will periodically check your git repository for changes, using a webhook you can enable Flux to update your cluster on `git push`. In order to configure Github to send `push` events from your repository to the Flux webhook receiver you will need two things: -1. Webhook URL - Your webhook receiver will be deployed on `https://flux-receiver.${BOOTSTRAP_CLOUDFLARE_DOMAIN}/hook/:hookId`. In order to find out your hook id you can run the following command: +1. Webhook URL - Your webhook receiver will be deployed on `https://flux-webhook.${BOOTSTRAP_CLOUDFLARE_DOMAIN}/hook/:hookId`. In order to find out your hook id you can run the following command: ```sh kubectl -n flux-system get receiver/github-receiver --kubeconfig=./kubeconfig @@ -424,7 +424,7 @@ Flux is pull-based by design meaning it will periodically check your git reposit So if my domain was `onedr0p.com` the full url would look like this: ```text - https://flux-receiver.onedr0p.com/hook/12ebd1e363c641dc3c2e430ecf3cee2b3c7a5ac9e1234506f6f5f3ce1230e123 + https://flux-webhook.onedr0p.com/hook/12ebd1e363c641dc3c2e430ecf3cee2b3c7a5ac9e1234506f6f5f3ce1230e123 ``` 2. Webhook secret - Your webhook secret can be found by decrypting the `secret.sops.yaml` using the following command: diff --git a/kubernetes/apps/flux-system/addons/webhooks/github/ingress.yaml b/kubernetes/apps/flux-system/addons/webhooks/github/ingress.yaml index d999baab..3ea2aa2e 100644 --- a/kubernetes/apps/flux-system/addons/webhooks/github/ingress.yaml +++ b/kubernetes/apps/flux-system/addons/webhooks/github/ingress.yaml @@ -2,7 +2,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: webhook-receiver + name: flux-webhook namespace: flux-system annotations: cert-manager.io/cluster-issuer: letsencrypt-staging @@ -12,7 +12,7 @@ metadata: spec: ingressClassName: nginx rules: - - host: &host "flux-receiver.${SECRET_DOMAIN}" + - host: &host "flux-webhook.${SECRET_DOMAIN}" http: paths: - path: /hook/ @@ -25,4 +25,4 @@ spec: tls: - hosts: - *host - secretName: flux-receiver-tls + secretName: flux-webhook-tls