feat: add stub sonatype-nexus helmfile

This commit is contained in:
2025-12-16 20:11:12 +01:00
parent dab6716033
commit 6e9b1c8f29
4 changed files with 90 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
sonatype-nexus:
enabled: true
autosync: true
@@ -0,0 +1,45 @@
{{- if .Values.clusterConfig.argo.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: sonatype-nexus
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: cert-manager
server: 'https://kubernetes.default.svc'
sources:
- repoURL: {{ .Values.clusterConfig.manifests }}
targetRevision: HEAD
path: helmfile.d
plugin:
name: helmfile-cmp
env:
- name: CLUSTER_NAME
value: {{ .Values.clusterConfig.cluster }}
- name: HELMFILE_ENVIRONMENT
value: default
- name: HELMFILE_FILE_PATH
value: sonatype-nexus.yaml.gotmpl
project: sys
ignoreDifferences:
- group: cert-manager.io
kind: Certificate
jqPathExpressions:
- '.spec.duration'
syncPolicy:
managedNamespaceMetadata:
labels:
component: sys
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
- ServerSideApply=true
{{- if .Values.sonatype-nexus.autosync }}
automated:
prune: true
# selfHeal: false
{{- end }}
{{- end }}