feat: add image update automation

This commit is contained in:
Yadunand Prem 2024-11-21 00:52:27 -05:00
parent 6705a7af9b
commit b156213ca2
No known key found for this signature in database
2 changed files with 27 additions and 1 deletions

View File

@ -23,7 +23,7 @@ spec:
spec:
containers:
- name: yadunut-dev
image: harbor.yadunut.dev/yadunut/yadunut.dev:main
image: harbor.yadunut.dev/yadunut/yadunut.dev:main # {"$imagepolicy": "yadunut-dev:yadunut-dev"}
ports:
- containerPort: 8080
name: http

View File

@ -15,3 +15,29 @@ spec:
name: flux-system
timeout: 5m0s
wait: true
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageUpdateAutomation
metadata:
name: flux-system
namespace: flux-system
spec:
git:
checkout:
ref:
branch: main
commit:
author:
email: fluxcdbot@users.noreply.github.com
name: fluxcdbot
messageTemplate: '{{range .Changed.Changes}}{{print .OldValue}} -> {{println
.NewValue}}{{end}}'
push:
branch: main
interval: 5m0s
sourceRef:
kind: GitRepository
name: flux-system
update:
path: cluster/base
strategy: Setters