open image registry

This commit is contained in:
2025-07-31 15:39:11 -05:00
parent 0987226b0d
commit 574fdfe25c
4 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
---
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:
destination:
name: in-cluster
namespace: openshift-image-registry
project: default
source:
path: cluster-applications/openshift-image-registry
repoURL: git@github.com:rblundon/MK-Labs.git
targetRevision: HEAD
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

View File

@@ -0,0 +1,10 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonAnnotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
resources:
- pvc.yaml
- patch-config.yaml

View File

@@ -0,0 +1,12 @@
---
apiVersion: imageregistry.operator.openshift.io/v1
kind: Config
metadata:
annotations:
argocd.argoproj.io/sync-wave: "2"
name: cluster
spec:
managementState: Managed
storage:
pvc:
claim: image-registry-pvc

View File

@@ -0,0 +1,15 @@
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
name: image-registry-pvc
namespace: openshift-image-registry
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
storageClassName: synology-nfs-storage