From 02825fe26b2649732e563eda8cb2b8b573fb5af3 Mon Sep 17 00:00:00 2001 From: Aiman Ismail Date: Thu, 14 Sep 2023 01:46:43 +0800 Subject: [PATCH] add github status provider to update commit status --- .../lab/flux-system/github-status-alert.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 clusters/lab/flux-system/github-status-alert.yaml diff --git a/clusters/lab/flux-system/github-status-alert.yaml b/clusters/lab/flux-system/github-status-alert.yaml new file mode 100644 index 0000000..3a782bc --- /dev/null +++ b/clusters/lab/flux-system/github-status-alert.yaml @@ -0,0 +1,22 @@ +apiVersion: notification.toolkit.fluxcd.io/v1beta2 +kind: Provider +metadata: + name: github-status + namespace: flux-system +spec: + type: github + address: https://github.com/pokgak/gitops + secretRef: + name: github-token +--- +apiVersion: notification.toolkit.fluxcd.io/v1beta2 +kind: Alert +metadata: + name: github-status + namespace: flux-system +spec: + providerRef: + name: github-status + eventSources: + - kind: Kustomization + name: flux-system