Introduces a `before-starting` hook that creates a `CAN_INSTALL` file, signaling Nextcloud to proceed with its installation process. Configures ArgoCD to ignore differences in `batch/Job` resources' `spec.selector` and `spec.template.metadata.labels`. This prevents spurious out-of-sync states caused by Kubernetes mutating these fields on job creation, improving application synchronization stability.
33 lines
818 B
YAML
33 lines
818 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
annotations:
|
|
myks.dev/environment: production
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
name: app-production-nextcloud
|
|
namespace: argocd
|
|
spec:
|
|
destination:
|
|
namespace: nextcloud
|
|
server: https://kubernetes.default.svc
|
|
ignoreDifferences:
|
|
- group: batch
|
|
jsonPointers:
|
|
- /spec/selector
|
|
- /spec/template/metadata/labels
|
|
kind: Job
|
|
project: env-production
|
|
source:
|
|
path: rendered/envs/production/nextcloud
|
|
repoURL: ssh://git@git.tr1ceracop.de:222/gitea_admin/k8s-and-chill.git
|
|
targetRevision: main
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
- ServerSideApply=true
|
|
- RespectIgnoreDifferences=true
|