Add flux webhook config

main
trivernis 1 year ago
parent 177f4f7f39
commit b113f2965e
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

1
.gitignore vendored

@ -0,0 +1 @@
**/*-secret.yaml

@ -6,6 +6,8 @@ metadata:
name: flux-webhook name: flux-webhook
resources: resources:
- flux/webhook-route.yaml - flux/webhook-route.yaml
- flux/webhook-sealedsecret.yaml
- flux/webhook-receiver.yaml
--- ---
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization

@ -0,0 +1,15 @@
apiVersion: notification.toolkit.fluxcd.io/v1
kind: Receiver
metadata:
name: config-receiver
namespace: flux-system
spec:
type: github
events:
- "ping"
- "push"
secretRef:
name: config-webhook-token
resources:
- kind: GitRepository
name: flux-system

@ -0,0 +1,16 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: config-webhook-token
namespace: flux-system
spec:
encryptedData:
token: AgBvj/5uCzGSqLwtHcvrdoEgn0edXsZp6HF757nUMB4N6lGhmNQr9AzwCeEFO0jrHgx5JjPQLfomIbYmkKA14yRjUQo+6sYXmzWQ9z6QVBJ2g++CsHZf1sZ6wIfsdeDTybzfTfGJ9wtcye4F4MzOtV9V9CM+L/8NEdpV5tqa8lfmsKMYSxXqROx0oMovIiX20te+XJ4JIEVuiF4OoD2gkxR0yhbCvIte8WuWIMHDtkijKM9sR3E9J0RWWlYo60WiL6bD917PNMBdzIymtBycaZwNn5O1ovO+TBDb3yLjDUmb1mZabI/qdAztVtpGdlQUJwUT6/39ZIRX/oN+yyOTzJUwVuBlSgH7GUIOc3Bo10o5WA7LQEQ8TDXElwTy3JJw7fYyYhxF8zji7Z56pfY2dF6hWEjkA9Ti7GbpxJRW8s1tJrXIls7l5aDVtwp9yjBp4mRGiLSQ22BPLHkhPV/UGMoI69KTQ5XImTgcyxRPlv2p7mgkb5a22ilIrH7MD/lIoPmMBKcSW5+OIMviuEBI4kRpJxvNQOsNO7DEOWdlnq7cyn/8N3uTdOnKBpxIUqk41+czkz17tQScAZnU/vg1L7ayP0oj7VKbzKc6X8xgCwrc+ledPQup9QTJKNCOC49BuEgzXB9LQgzN/nVyhfNxMRsWxFsL7tmEUJMtPV9eGj2bA3qctUkmp+Grdpdy119pR8chfEkRrd7sTJs1jQAXIc7nl51I8Z2qqu9mnjCbe+H23hUb1do90hl0
template:
metadata:
creationTimestamp: null
name: config-webhook-token
namespace: flux-system
type: Opaque
Loading…
Cancel
Save