ci-demo: move image policy to flux-system

This commit is contained in:
Brad Stein 2025-12-18 01:09:10 -03:00
parent be23851878
commit 5a52c8606b
3 changed files with 5 additions and 7 deletions

View File

@ -12,8 +12,6 @@ spec:
kind: GitRepository
name: flux-system
namespace: flux-system
targetNamespace: ci-demo
dependsOn:
- name: core
wait: false

View File

@ -1,18 +1,18 @@
# services/ci-demo/image.yaml
apiVersion: image.toolkit.fluxcd.io/v1beta2
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImageRepository
metadata:
name: ci-demo
namespace: ci-demo
namespace: flux-system
spec:
image: registry.bstein.dev/infra/ci-demo
interval: 1m0s
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImagePolicy
metadata:
name: ci-demo
namespace: ci-demo
namespace: flux-system
spec:
imageRepositoryRef:
name: ci-demo

View File

@ -8,4 +8,4 @@ resources:
- service.yaml
images:
- name: registry.bstein.dev/infra/ci-demo
newTag: v0.0.0-2 # {"$imagepolicy": "ci-demo:ci-demo:tag"}
newTag: v0.0.0-2 # {"$imagepolicy": "flux-system:ci-demo"}