flux: shuffle image update automation to proper namespaces

This commit is contained in:
Vivian 2021-10-31 12:54:47 +01:00
parent ee3d660b35
commit 16f1be50ed
6 changed files with 31 additions and 7 deletions

View file

@ -0,0 +1,24 @@
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageUpdateAutomation
metadata:
name: flux-system
namespace: flux-system
spec:
interval: 1m0s
sourceRef:
kind: GitRepository
name: flux-system
git:
checkout:
ref:
branch: main
commit:
author:
email: fluxcdbot@users.noreply.github.com
name: fluxcdbot
messageTemplate: '{{range .Updated.Images}}{{println .}}{{end}}'
push:
branch: main
update:
path: ./cluster/
strategy: Setters

View file

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- image-update-automation.yaml
- zookeeper.yaml

View file

@ -0,0 +1,22 @@
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageRepository
metadata:
name: zookeeper
namespace: flux-system
spec:
image: registry.xirion.net/library/zookeeper
interval: 1m0s
secretRef:
name: xirion-registry-creds
---
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImagePolicy
metadata:
name: zookeeper
namespace: flux-system
spec:
imageRepositoryRef:
name: zookeeper
policy:
semver:
range: "*"