From d3f3f93a24c24c0e65a05b44400b1ea8c3fb5fe8 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Fri, 15 Jan 2021 09:44:04 +0100 Subject: [PATCH] CRD schema do not must preserving unknown fields (#188) --- Makefile | 2 +- charts/capsule/Chart.yaml | 2 +- charts/capsule/crds/tenant-crd.yaml | 1 + config/crd/bases/capsule.clastix.io_tenants.yaml | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 917e7ecb..bfffc66a 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL) # Image URL to use all building/pushing image targets IMG ?= quay.io/clastix/capsule:$(VERSION) # Produce CRDs that work back to Kubernetes 1.11 (no version conversion) -CRD_OPTIONS ?= "crd:trivialVersions=true" +CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false" # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) ifeq (,$(shell go env GOBIN)) diff --git a/charts/capsule/Chart.yaml b/charts/capsule/Chart.yaml index dd07e39b..649b7f98 100644 --- a/charts/capsule/Chart.yaml +++ b/charts/capsule/Chart.yaml @@ -21,7 +21,7 @@ sources: # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.0.8 +version: 0.0.9 # This is the version number of the application being deployed. # This version number should be incremented each time you make changes to the application. diff --git a/charts/capsule/crds/tenant-crd.yaml b/charts/capsule/crds/tenant-crd.yaml index 26a3c1cd..0a7c8c19 100644 --- a/charts/capsule/crds/tenant-crd.yaml +++ b/charts/capsule/crds/tenant-crd.yaml @@ -39,6 +39,7 @@ spec: shortNames: - tnt singular: tenant + preserveUnknownFields: false scope: Cluster subresources: status: {} diff --git a/config/crd/bases/capsule.clastix.io_tenants.yaml b/config/crd/bases/capsule.clastix.io_tenants.yaml index 88567291..1bc0dda0 100644 --- a/config/crd/bases/capsule.clastix.io_tenants.yaml +++ b/config/crd/bases/capsule.clastix.io_tenants.yaml @@ -41,6 +41,7 @@ spec: shortNames: - tnt singular: tenant + preserveUnknownFields: false scope: Cluster subresources: status: {}