diff --git a/class/defaults.yml b/class/defaults.yml index 8d94a77..a48554b 100644 --- a/class/defaults.yml +++ b/class/defaults.yml @@ -194,3 +194,13 @@ parameters: spec: affinity: nodeAffinity: ${openshift4_slos:controller_node_affinity} + # Use replace for CRDs to avoid errors because the + # last-applied-configuration annotation gets too big. + - patch: |- + $patch: merge + apiVersion: apiextensions.k8s.io/v1 + kind: CustomResourceDefinition + metadata: + name: schedulercanaries.monitoring.appuio.io + annotations: + argocd.argoproj.io/sync-options: Replace=true diff --git a/tests/golden/defaults/openshift4-slos/openshift4-slos/scheduler-canary-deployment/apiextensions.k8s.io_v1_customresourcedefinition_schedulercanaries.monitoring.appuio.io.yaml b/tests/golden/defaults/openshift4-slos/openshift4-slos/scheduler-canary-deployment/apiextensions.k8s.io_v1_customresourcedefinition_schedulercanaries.monitoring.appuio.io.yaml index 9537aae..fa1cffd 100644 --- a/tests/golden/defaults/openshift4-slos/openshift4-slos/scheduler-canary-deployment/apiextensions.k8s.io_v1_customresourcedefinition_schedulercanaries.monitoring.appuio.io.yaml +++ b/tests/golden/defaults/openshift4-slos/openshift4-slos/scheduler-canary-deployment/apiextensions.k8s.io_v1_customresourcedefinition_schedulercanaries.monitoring.appuio.io.yaml @@ -2,6 +2,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: + argocd.argoproj.io/sync-options: Replace=true controller-gen.kubebuilder.io/version: v0.15.0 name: schedulercanaries.monitoring.appuio.io spec: