diff --git a/update/automation.yaml b/update/automation.yaml deleted file mode 100644 index 93667e5..0000000 --- a/update/automation.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/update/kustomization.yaml b/update/kustomization.yaml deleted file mode 100644 index 685f99b..0000000 --- a/update/kustomization.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/update/monitoring/kustomization.yaml b/update/monitoring/kustomization.yaml new file mode 100644 index 0000000..691d2a2 --- /dev/null +++ b/update/monitoring/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: flux-system +resources: + - kyverno.yaml diff --git a/update/monitoring/kyverno.yaml b/update/monitoring/kyverno.yaml new file mode 100644 index 0000000..2c1ac2b --- /dev/null +++ b/update/monitoring/kyverno.yaml @@ -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" \ No newline at end of file diff --git a/update/sync.yaml b/update/sync.yaml deleted file mode 100644 index b37e1a4..0000000 --- a/update/sync.yaml +++ /dev/null @@ -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 \ No newline at end of file