fixin
This commit is contained in:
parent
7f8014b20b
commit
e8c5beed49
@ -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
|
||||
@ -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
|
||||
5
update/monitoring/kustomization.yaml
Normal file
5
update/monitoring/kustomization.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: flux-system
|
||||
resources:
|
||||
- kyverno.yaml
|
||||
20
update/monitoring/kyverno.yaml
Normal file
20
update/monitoring/kyverno.yaml
Normal 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"
|
||||
@ -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
|
||||
Loading…
Reference in New Issue
Block a user