From cf9f03f1caf4d401aa7932528579dc88de0f43c7 Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Mon, 18 Apr 2022 23:04:43 +0800 Subject: [PATCH] feat: add CRDs path to flux watch --- kube/1-bootstrap/flux/2-kube-crds.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 kube/1-bootstrap/flux/2-kube-crds.yaml diff --git a/kube/1-bootstrap/flux/2-kube-crds.yaml b/kube/1-bootstrap/flux/2-kube-crds.yaml new file mode 100644 index 00000000..109c6bf1 --- /dev/null +++ b/kube/1-bootstrap/flux/2-kube-crds.yaml @@ -0,0 +1,25 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 + +# not GitRepository since we're using single repo with both bootstrap path and multiple CD paths +kind: Kustomization + +# what this manifest will be named and where will it be deployed to +metadata: + name: 2-kube-crds + # only manifest is deployed in flux-system namespace so Flux can reference it, resources in the Git repo path won't be deployed here + namespace: flux-system + +spec: + sourceRef: + kind: GitRepository + # for single repo with both bootstrap path and multiple paths to CD, use repo already known to Flux by referring to it using "flux-system", so the Source of Truth = repo Flux already watches for its bootstrap and state + name: flux-system + # path of repo to watch + path: ./kube/2-kube-crds + + # check source every minute + interval: 1m0s + + prune: false + # wait: true