From 4226e5ed5cf112cf060a137b04e99ee395d20762 Mon Sep 17 00:00:00 2001 From: eddygk <832737+eddygk@users.noreply.github.com> Date: Mon, 13 Oct 2025 12:29:43 -0400 Subject: [PATCH] chore: remove deprecated preserveUnknownFields from CRDs Removes spec.preserveUnknownFields field which was deprecated in Kubernetes 1.22 and causes sync issues with ArgoCD 3.0+. The replacement x-kubernetes-preserve-unknown-fields is already in use within the schema and will continue to work correctly. Fixes #3358 --- charts/aws-vpc-cni/crds/customresourcedefinition.yaml | 1 - config/master/aws-k8s-cni-cn.yaml | 1 - config/master/aws-k8s-cni-us-gov-east-1.yaml | 1 - config/master/aws-k8s-cni-us-gov-west-1.yaml | 1 - config/master/aws-k8s-cni.yaml | 1 - 5 files changed, 5 deletions(-) diff --git a/charts/aws-vpc-cni/crds/customresourcedefinition.yaml b/charts/aws-vpc-cni/crds/customresourcedefinition.yaml index 5eae68ceb6..6425dab157 100644 --- a/charts/aws-vpc-cni/crds/customresourcedefinition.yaml +++ b/charts/aws-vpc-cni/crds/customresourcedefinition.yaml @@ -5,7 +5,6 @@ metadata: spec: scope: Cluster group: crd.k8s.amazonaws.com - preserveUnknownFields: false versions: - name: v1alpha1 served: true diff --git a/config/master/aws-k8s-cni-cn.yaml b/config/master/aws-k8s-cni-cn.yaml index 569479e0c0..c7040266e4 100644 --- a/config/master/aws-k8s-cni-cn.yaml +++ b/config/master/aws-k8s-cni-cn.yaml @@ -7,7 +7,6 @@ metadata: spec: scope: Cluster group: crd.k8s.amazonaws.com - preserveUnknownFields: false versions: - name: v1alpha1 served: true diff --git a/config/master/aws-k8s-cni-us-gov-east-1.yaml b/config/master/aws-k8s-cni-us-gov-east-1.yaml index 1c0b073d20..ecfcba4ca1 100644 --- a/config/master/aws-k8s-cni-us-gov-east-1.yaml +++ b/config/master/aws-k8s-cni-us-gov-east-1.yaml @@ -7,7 +7,6 @@ metadata: spec: scope: Cluster group: crd.k8s.amazonaws.com - preserveUnknownFields: false versions: - name: v1alpha1 served: true diff --git a/config/master/aws-k8s-cni-us-gov-west-1.yaml b/config/master/aws-k8s-cni-us-gov-west-1.yaml index f65bc41e3c..1d1983b5cb 100644 --- a/config/master/aws-k8s-cni-us-gov-west-1.yaml +++ b/config/master/aws-k8s-cni-us-gov-west-1.yaml @@ -7,7 +7,6 @@ metadata: spec: scope: Cluster group: crd.k8s.amazonaws.com - preserveUnknownFields: false versions: - name: v1alpha1 served: true diff --git a/config/master/aws-k8s-cni.yaml b/config/master/aws-k8s-cni.yaml index e123d9cd87..388d7f0d86 100644 --- a/config/master/aws-k8s-cni.yaml +++ b/config/master/aws-k8s-cni.yaml @@ -7,7 +7,6 @@ metadata: spec: scope: Cluster group: crd.k8s.amazonaws.com - preserveUnknownFields: false versions: - name: v1alpha1 served: true