flux refactor

This commit is contained in:
Graham McIntire 2026-04-27 12:57:50 -05:00
parent bbf8cfacf2
commit 3dce118427
6 changed files with 27 additions and 73 deletions

View file

@ -1,12 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: towerops-web
namespace: flux-system
spec:
interval: 1m
url: https://git.mcintire.me/graham/towerops-web.git
ref:
branch: main
secretRef:
name: forgejo-git-credentials

View file

@ -1,14 +0,0 @@
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImagePolicy
metadata:
name: towerops-web
namespace: flux-system
spec:
imageRepositoryRef:
name: towerops-web
filterTags:
pattern: '^main-(?P<ts>[0-9]+)-[a-f0-9]+$'
extract: '$ts'
policy:
numerical:
order: asc

View file

@ -1,10 +0,0 @@
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImageRepository
metadata:
name: towerops-web
namespace: flux-system
spec:
image: git.mcintire.me/graham/towerops-web
interval: 1m
secretRef:
name: forgejo-registry

View file

@ -1,24 +0,0 @@
apiVersion: image.toolkit.fluxcd.io/v1
kind: ImageUpdateAutomation
metadata:
name: towerops-web
namespace: flux-system
spec:
interval: 1m
sourceRef:
kind: GitRepository
name: towerops-web
git:
checkout:
ref:
branch: main
commit:
author:
name: FluxCD
email: fluxcd@towerops.net
messageTemplate: 'chore: update towerops image to {{range .Changed.Changes}}{{.NewValue}}{{end}} [skip ci]'
push:
branch: main
update:
path: ./k8s
strategy: Setters

View file

@ -1,13 +0,0 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: towerops-app
namespace: flux-system
spec:
interval: 5m
sourceRef:
kind: GitRepository
name: towerops-web
path: ./k8s
prune: true
targetNamespace: towerops

27
k8s/flux.yaml Normal file
View file

@ -0,0 +1,27 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: towerops-web
namespace: flux-system
spec:
interval: 1m
url: https://git.mcintire.me/graham/towerops-web.git
ref:
branch: main
secretRef:
name: forgejo-git-credentials
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: towerops-app
namespace: flux-system
spec:
interval: 5m
sourceRef:
kind: GitRepository
name: towerops-web
path: ./k8s
prune: true
targetNamespace: towerops