From 9110d8a200cefc4ec4414c100e4b702193d5dd36 Mon Sep 17 00:00:00 2001 From: James Andariese Date: Thu, 28 Mar 2024 21:36:27 -0500 Subject: [PATCH] change flux to use git instead of imagepolicy --- k/flux.yaml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/k/flux.yaml b/k/flux.yaml index c142594..b9c974d 100644 --- a/k/flux.yaml +++ b/k/flux.yaml @@ -1,23 +1,26 @@ --- -apiVersion: image.toolkit.fluxcd.io/v1beta2 -kind: ImageRepository +apiVersion: source.toolkit.fluxcd.io/v1 +kind: GitRepository metadata: name: docker-act-runner namespace: gitea spec: - image: git.strudelline.net/cascade/docker-act_runner - interval: 1m + interval: 5m0s + url: https://git.strudelline.net/cascade/docker-act_runner + ref: + branch: main --- -apiVersion: image.toolkit.fluxcd.io/v1beta2 -kind: ImagePolicy +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization metadata: - name: docker-act-runner-prod + name: docker-act-runner namespace: gitea spec: - imageRepositoryRef: + interval: 10m + targetNamespace: gitea + sourceRef: + kind: GitRepository name: docker-act-runner - filterTags: - pattern: '^main-.*' - policy: - alphabetical: - order: asc + path: "./k" + prune: true + timeout: 1m