Files
cursor-devbox/flux/image-automation.yaml
T
Ubuntu c8a493cf25 feat(deploy): split node1 and node4 manifests and cap box2 home at 150Gi
Node4 drops the egress proxy. Its home volume is a 150Gi LVM logical volume so the filesystem size is a real quota.
2026-10-16 11:10:06 +00:00

62 lines
1.5 KiB
YAML

# Flux image automation for cursor-devbox (applied into flux-system on node1).
# GitRepository cursor-devbox is defined in infra glue (130-cursor-devbox.yaml).
# CI tags: latest, <sha>, <run_number>-<sha> — policy elects the last form.
# Setters scan the repo so deploy/node1-k3s and deploy/node4-k3s stay on the elected tag.
---
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImageRepository
metadata:
name: cursor-devbox
namespace: flux-system
spec:
image: dcr.trinitysan.by/infra/cursor-devbox
interval: 1m0s
secretRef:
name: dcr-registry-auth-ro
---
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImagePolicy
metadata:
name: cursor-devbox
namespace: flux-system
spec:
imageRepositoryRef:
name: cursor-devbox
filterTags:
pattern: '^(?P<n>[0-9]+)-[0-9a-f]{40}$'
extract: '$n'
policy:
# asc = highest extracted number is latest (required for run_number-sha tags)
numerical:
order: asc
---
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImageUpdateAutomation
metadata:
name: cursor-devbox
namespace: flux-system
spec:
interval: 5m0s
sourceRef:
kind: GitRepository
name: cursor-devbox
git:
checkout:
ref:
branch: master
commit:
author:
email: fluxcdbot@users.noreply.gitea.trinitysan.by
name: fluxcdbot
messageTemplate: |
chore(deploy): update cursor-devbox image
{{range .Changed.Changes}}{{print .OldValue}} -> {{println .NewValue}}{{end}}
push:
branch: master
update:
path: .
strategy: Setters