init flux

This commit is contained in:
Bengt 2025-03-06 12:31:00 +01:00
parent ff0a1ecfcd
commit 3f18e665b2
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- gotk-components.yaml
- gotk-sync.yaml
patches:
- patch: |
apiVersion: v1
kind: ServiceAccount
metadata:
name: controller
annotations:
azure.workload.identity/client-id: 716cd018-121d-4d24-94ed-5e84c22ca0d6
azure.workload.identity/tenant-id: 700f0ec8-4d6b-4b39-9ff1-41f88c72e529
target:
kind: ServiceAccount
name: "(source-controller|image-reflector-controller)"
- patch: |
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller
labels:
azure.workload.identity/use: "true"
spec:
template:
metadata:
labels:
azure.workload.identity/use: "true"
target:
kind: Deployment
name: "(source-controller|image-reflector-controller)"