From bd18f32670b2bd79d23500118f1d695413bb0bec Mon Sep 17 00:00:00 2001 From: root Date: Sun, 25 Jan 2026 21:26:44 +0800 Subject: [PATCH] chore: update kustomizations --- clusters/app/flux-deploy.sh | 2 +- clusters/app/go-example-kustomization.yaml | 17 +++++++++++++++++ clusters/app/go-example-source.yaml | 11 +++++++++++ deployment.yaml => kustomize/deployment.yaml | 0 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 clusters/app/go-example-kustomization.yaml create mode 100644 clusters/app/go-example-source.yaml rename deployment.yaml => kustomize/deployment.yaml (100%) diff --git a/clusters/app/flux-deploy.sh b/clusters/app/flux-deploy.sh index 60962aa..e66600d 100755 --- a/clusters/app/flux-deploy.sh +++ b/clusters/app/flux-deploy.sh @@ -9,4 +9,4 @@ flux bootstrap git \ --branch=$BRANCH \ --username=$USER_NAME \ --token-auth=true \ - --path=./ + --path=./clusters/app diff --git a/clusters/app/go-example-kustomization.yaml b/clusters/app/go-example-kustomization.yaml new file mode 100644 index 0000000..9dc7341 --- /dev/null +++ b/clusters/app/go-example-kustomization.yaml @@ -0,0 +1,17 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: go-example + namespace: flux-system +spec: + interval: 30m0s + path: ./kustomize + prune: true + retryInterval: 2m0s + sourceRef: + kind: GitRepository + name: go-example + targetNamespace: helloapp + timeout: 3m0s + wait: true diff --git a/clusters/app/go-example-source.yaml b/clusters/app/go-example-source.yaml new file mode 100644 index 0000000..e49a0e2 --- /dev/null +++ b/clusters/app/go-example-source.yaml @@ -0,0 +1,11 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: GitRepository +metadata: + name: go-example + namespace: flux-system +spec: + interval: 1m0s + ref: + branch: main + url: https://git.0orz.top/Zpekii/go-example diff --git a/deployment.yaml b/kustomize/deployment.yaml similarity index 100% rename from deployment.yaml rename to kustomize/deployment.yaml