diff --git a/k8s/crds.yaml b/k8s/crds.yaml index 44e1bebd65..c738f6e002 100644 --- a/k8s/crds.yaml +++ b/k8s/crds.yaml @@ -1217,7 +1217,6 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null labels: longhorn-manager: "" name: engines.longhorn.io @@ -1230,6 +1229,7 @@ spec: shortNames: - lhe singular: engine + preserveUnknownFields: false scope: Namespaced versions: - additionalPrinterColumns: @@ -1568,7 +1568,6 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null labels: longhorn-manager: "" name: instancemanagers.longhorn.io @@ -1581,6 +1580,7 @@ spec: shortNames: - lhim singular: instancemanager + preserveUnknownFields: false scope: Namespaced versions: - additionalPrinterColumns: @@ -2327,7 +2327,6 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null labels: longhorn-manager: "" name: replicas.longhorn.io @@ -2340,6 +2339,7 @@ spec: shortNames: - lhr singular: replica + preserveUnknownFields: false scope: Namespaced versions: - additionalPrinterColumns: @@ -2551,7 +2551,6 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.7.0 - creationTimestamp: null labels: longhorn-manager: "" name: settings.longhorn.io @@ -2564,6 +2563,7 @@ spec: shortNames: - lhs singular: setting + preserveUnknownFields: false scope: Namespaced versions: - additionalPrinterColumns: diff --git a/k8s/patches/crd/preserveUnknownFields/engine.yaml b/k8s/patches/crd/preserveUnknownFields/engine.yaml new file mode 100644 index 0000000000..34665be642 --- /dev/null +++ b/k8s/patches/crd/preserveUnknownFields/engine.yaml @@ -0,0 +1,11 @@ +# This is one of seven CRDs that were originally apiextensions.k8s.io/v1beta1. If Longhorn and Kubernetes are upgraded +# in a particular order from Longhorn v1.0.2- to the latest, preserveUnknownFields may remain true, even though the +# default (and intended value) is false. +# https://github.com/longhorn/longhorn/discussions/4198 +# https://github.com/longhorn/longhorn/issues/7887 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: engines.longhorn.io +spec: + preserveUnknownFields: false diff --git a/k8s/patches/crd/preserveUnknownFields/engineimage.yaml b/k8s/patches/crd/preserveUnknownFields/engineimage.yaml index 47f1607192..aded3f53ad 100644 --- a/k8s/patches/crd/preserveUnknownFields/engineimage.yaml +++ b/k8s/patches/crd/preserveUnknownFields/engineimage.yaml @@ -1,3 +1,8 @@ +# This is one of seven CRDs that were originally apiextensions.k8s.io/v1beta1. If Longhorn and Kubernetes are upgraded +# in a particular order from Longhorn v1.0.2- to the latest, preserveUnknownFields may remain true, even though the +# default (and intended value) is false. +# https://github.com/longhorn/longhorn/discussions/4198 +# https://github.com/longhorn/longhorn/issues/7887 apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: diff --git a/k8s/patches/crd/preserveUnknownFields/instancemanager.yaml b/k8s/patches/crd/preserveUnknownFields/instancemanager.yaml new file mode 100644 index 0000000000..f7a157980f --- /dev/null +++ b/k8s/patches/crd/preserveUnknownFields/instancemanager.yaml @@ -0,0 +1,11 @@ +# This is one of seven CRDs that were originally apiextensions.k8s.io/v1beta1. If Longhorn and Kubernetes are upgraded +# in a particular order from Longhorn v1.0.2- to the latest, preserveUnknownFields may remain true, even though the +# default (and intended value) is false. +# https://github.com/longhorn/longhorn/discussions/4198 +# https://github.com/longhorn/longhorn/issues/7887 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: instancemanagers.longhorn.io +spec: + preserveUnknownFields: false diff --git a/k8s/patches/crd/preserveUnknownFields/node.yaml b/k8s/patches/crd/preserveUnknownFields/node.yaml index 60c0566788..bc0420f01c 100644 --- a/k8s/patches/crd/preserveUnknownFields/node.yaml +++ b/k8s/patches/crd/preserveUnknownFields/node.yaml @@ -1,3 +1,8 @@ +# This is one of seven CRDs that were originally apiextensions.k8s.io/v1beta1. If Longhorn and Kubernetes are upgraded +# in a particular order from Longhorn v1.0.2- to the latest, preserveUnknownFields may remain true, even though the +# default (and intended value) is false. +# https://github.com/longhorn/longhorn/discussions/4198 +# https://github.com/longhorn/longhorn/issues/7887 apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: diff --git a/k8s/patches/crd/preserveUnknownFields/replica.yaml b/k8s/patches/crd/preserveUnknownFields/replica.yaml new file mode 100644 index 0000000000..8527418064 --- /dev/null +++ b/k8s/patches/crd/preserveUnknownFields/replica.yaml @@ -0,0 +1,11 @@ +# This is one of seven CRDs that were originally apiextensions.k8s.io/v1beta1. If Longhorn and Kubernetes are upgraded +# in a particular order from Longhorn v1.0.2- to the latest, preserveUnknownFields may remain true, even though the +# default (and intended value) is false. +# https://github.com/longhorn/longhorn/discussions/4198 +# https://github.com/longhorn/longhorn/issues/7887 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: replicas.longhorn.io +spec: + preserveUnknownFields: false diff --git a/k8s/patches/crd/preserveUnknownFields/setting.yaml b/k8s/patches/crd/preserveUnknownFields/setting.yaml new file mode 100644 index 0000000000..a48ea76a12 --- /dev/null +++ b/k8s/patches/crd/preserveUnknownFields/setting.yaml @@ -0,0 +1,11 @@ +# This is one of seven CRDs that were originally apiextensions.k8s.io/v1beta1. If Longhorn and Kubernetes are upgraded +# in a particular order from Longhorn v1.0.2- to the latest, preserveUnknownFields may remain true, even though the +# default (and intended value) is false. +# https://github.com/longhorn/longhorn/discussions/4198 +# https://github.com/longhorn/longhorn/issues/7887 +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + name: settings.longhorn.io +spec: + preserveUnknownFields: false diff --git a/k8s/patches/crd/preserveUnknownFields/volume.yaml b/k8s/patches/crd/preserveUnknownFields/volume.yaml index 32dbbdd704..abb67172b1 100644 --- a/k8s/patches/crd/preserveUnknownFields/volume.yaml +++ b/k8s/patches/crd/preserveUnknownFields/volume.yaml @@ -1,3 +1,8 @@ +# This is one of seven CRDs that were originally apiextensions.k8s.io/v1beta1. If Longhorn and Kubernetes are upgraded +# in a particular order from Longhorn v1.0.2- to the latest, preserveUnknownFields may remain true, even though the +# default (and intended value) is false. +# https://github.com/longhorn/longhorn/discussions/4198 +# https://github.com/longhorn/longhorn/issues/7887 apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: