Skip to content

Commit

Permalink
Explicitly set preserveUnknownFields to false
Browse files Browse the repository at this point in the history
Longhorn 7887

Signed-off-by: Eric Weber <eric.weber@suse.com>
(cherry picked from commit 1f79356)
  • Loading branch information
ejweber authored and PhanLe1010 committed Feb 16, 2024
1 parent b2410e9 commit ed48cfd
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 4 deletions.
8 changes: 4 additions & 4 deletions k8s/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -1230,6 +1229,7 @@ spec:
shortNames:
- lhe
singular: engine
preserveUnknownFields: false
scope: Namespaced
versions:
- additionalPrinterColumns:
Expand Down Expand Up @@ -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
Expand All @@ -1581,6 +1580,7 @@ spec:
shortNames:
- lhim
singular: instancemanager
preserveUnknownFields: false
scope: Namespaced
versions:
- additionalPrinterColumns:
Expand Down Expand Up @@ -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
Expand All @@ -2340,6 +2339,7 @@ spec:
shortNames:
- lhr
singular: replica
preserveUnknownFields: false
scope: Namespaced
versions:
- additionalPrinterColumns:
Expand Down Expand Up @@ -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
Expand All @@ -2564,6 +2563,7 @@ spec:
shortNames:
- lhs
singular: setting
preserveUnknownFields: false
scope: Namespaced
versions:
- additionalPrinterColumns:
Expand Down
11 changes: 11 additions & 0 deletions k8s/patches/crd/preserveUnknownFields/engine.yaml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions k8s/patches/crd/preserveUnknownFields/engineimage.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
11 changes: 11 additions & 0 deletions k8s/patches/crd/preserveUnknownFields/instancemanager.yaml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions k8s/patches/crd/preserveUnknownFields/node.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
11 changes: 11 additions & 0 deletions k8s/patches/crd/preserveUnknownFields/replica.yaml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions k8s/patches/crd/preserveUnknownFields/setting.yaml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions k8s/patches/crd/preserveUnknownFields/volume.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit ed48cfd

Please sign in to comment.