This commit is contained in:
V 2025-11-15 18:21:36 +00:00
parent 7f8014b20b
commit e8c5beed49
5 changed files with 25 additions and 61 deletions

View File

@ -1,38 +0,0 @@
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImageUpdateAutomation
metadata:
name: flux-infra
spec:
interval: 30m
sourceRef:
kind: GitRepository
name: flux-infra
git:
checkout:
ref:
branch: ${GIT_BRANCH}
commit:
author:
email: home-lab-fluxcd-bot@users.noreply.home.lab
name: home-lab-fluxcd-bot
messageTemplate: |
Automated image update
Files:
{{ range $filename, $_ := .Changed.FileChanges -}}
- {{ $filename }}
{{ end -}}
Objects:
{{ range $resource, $changes := .Changed.Objects -}}
- {{ $resource.Kind }} {{ $resource.Name }}
Changes:
{{- range $_, $change := $changes }}
- {{ $change.OldValue }} -> {{ $change.NewValue }}
{{ end -}}
{{ end -}}
push:
branch: ${GIT_BRANCH}
update:
path: "./components"
strategy: Setters

View File

@ -1,10 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: flux-system
resources:
- sync.yaml
- automation.yaml
labels:
- pairs:
toolkit.fluxcd.io/tenant: infra
toolkit.fluxcd.io/role: automation

View File

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: flux-system
resources:
- kyverno.yaml

View File

@ -0,0 +1,20 @@
---
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImageRepository
metadata:
name: kyverno
spec:
image: "ghcr.io/kyverno/charts/kyverno"
interval: 1h
provider: generic
---
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImagePolicy
metadata:
name: kyverno
spec:
imageRepositoryRef:
name: kyverno
policy:
semver:
range: ">=3.0.0"

View File

@ -1,13 +0,0 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: flux-infra-update-policies
spec:
serviceAccountName: flux-infra
interval: 12h
retryInterval: 3m
path: ./update
prune: true
sourceRef:
kind: GitRepository
name: flux-infra