Files
homelab/cluster/openshift-image-registry-appset.yaml
2025-07-31 20:36:10 -05:00

42 lines
1.1 KiB
YAML

---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: openshift-image-registry
namespace: openshift-gitops
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- clusters: {} # Variable is .name
template:
metadata:
name: '{{.name}}-openshift-image-registry'
annotations:
argocd.argoproj.io/sync-wave: "3"
spec:
project: default
destination:
name: '{{.name}}'
source:
path: cluster/openshift-image-registry
repoURL: https://github.com/rblundon/homelab.git
targetRevision: HEAD
namespace: openshift-image-registry
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- RespectIgnoreDifferences=true
- CreateNamespace=true
managedNamespaceMetadata:
labels:
argocd.argoproj.io/managed-by: openshift-gitops
ignoreDifferences:
- group: apps
kind: Deployment
jsonPointers:
- /spec/replicas