Skip to content

Commit

Permalink
Merge pull request #73 from appuio/fix-crd-sync-big-last-applied
Browse files Browse the repository at this point in the history
Fix CRD sync error caused by big `last-applied-configuration` annotation
  • Loading branch information
bastjan authored Jul 22, 2024
2 parents 0b4f450 + 792409d commit 3f9e578
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3f9e578

Please sign in to comment.