46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
# Deploy this to pieced-gitops alongside the other ArgoCD Applications.
|
|
# The operator manages itself from the Helm chart in its own repo.
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: pieced-operator
|
|
namespace: argocd
|
|
labels:
|
|
pieced.ch/managed-by: argocd
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: https://git.c5ai.ch/pieced/pieced-operator.git
|
|
targetRevision: main
|
|
path: deploy/helm/pieced-operator
|
|
helm:
|
|
valueFiles:
|
|
- values.yaml
|
|
# Override values per environment if needed:
|
|
# parameters:
|
|
# - name: image.tag
|
|
# value: "v0.1.0"
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: pieced-system
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
- ServerSideApply=true # Needed for CRD
|
|
- RespectIgnoreDifferences=true
|
|
retry:
|
|
limit: 3
|
|
backoff:
|
|
duration: 5s
|
|
factor: 2
|
|
maxDuration: 1m
|
|
ignoreDifferences:
|
|
# controller-runtime updates status subresource
|
|
- group: pieced.ch
|
|
kind: PiecedTenant
|
|
jsonPointers:
|
|
- /status
|