Move to flux-system namespace

This commit is contained in:
xeruf 2022-06-29 23:11:29 +01:00
parent 32c5ab85d3
commit 5a0a500265
9 changed files with 3 additions and 5 deletions

View File

@ -2,7 +2,7 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization kind: Kustomization
metadata: metadata:
name: sources name: sources
namespace: stackspout namespace: flux-system
spec: spec:
interval: 5m interval: 5m
sourceRef: sourceRef:

View File

@ -1,8 +1,8 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1 apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization kind: Kustomization
metadata: metadata:
name: overrides name: stackspout-overrides
namespace: stackspout namespace: flux-system
spec: spec:
interval: 2m interval: 2m
sourceRef: sourceRef:

View File

@ -4,14 +4,12 @@ kubectl get namespace stackspout 2>/dev/null || kubectl create namespace stacksp
echo "Creating / updating gitRepository stackspout in namespace stackspout" echo "Creating / updating gitRepository stackspout in namespace stackspout"
flux create source git stackspout \ flux create source git stackspout \
--namespace=stackspout \
--url=https://open.greenhost.net/xeruf/stackspout.git \ --url=https://open.greenhost.net/xeruf/stackspout.git \
--branch=main \ --branch=main \
--interval=3m --interval=3m
echo "Creating / updating kustomization stackspout in namespace stackspout" echo "Creating / updating kustomization stackspout in namespace stackspout"
flux create kustomization stackspout \ flux create kustomization stackspout \
--namespace=stackspout \
--source=GitRepository/stackspout \ --source=GitRepository/stackspout \
--path="./basic/clusters/production/" \ --path="./basic/clusters/production/" \
--prune=true \ --prune=true \