From bc78ce3dea28647a93518cd110b643cdd0f32c76 Mon Sep 17 00:00:00 2001 From: Eric Satterwhite Date: Thu, 26 May 2022 14:47:18 -0500 Subject: [PATCH] chore(wave0): mustache template controller @ 2.1.4 update version and update CRD for v1alpha2 to be inline with the specified version BREAKING CHANGE: removes support for v1alpha1 Ref: REL-836 --- deployment/kubernetes/wave0.yaml.envsubst | 44 ++++++++++++----------- versions/wave0.mk | 2 +- 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/deployment/kubernetes/wave0.yaml.envsubst b/deployment/kubernetes/wave0.yaml.envsubst index 3dac43b..4f076a2 100644 --- a/deployment/kubernetes/wave0.yaml.envsubst +++ b/deployment/kubernetes/wave0.yaml.envsubst @@ -93,28 +93,14 @@ items: group: deploy.razee.io # list of versions supported by this CustomResourceDefinition versions: - - name: v1alpha1 - # Each version can be enabled/disabled by Served flag. - served: true - # One and only one version must be marked as the storage version. - storage: false - schema: - # openAPIV3Schema is the schema for validating custom objects. - openAPIV3Schema: - type: object - required: [spec] - properties: - spec: - type: object - x-kubernetes-preserve-unknown-fields: true - status: - type: object - x-kubernetes-preserve-unknown-fields: true - name: v1alpha2 # Each version can be enabled/disabled by Served flag. served: true # One and only one version must be marked as the storage version. storage: true + subresources: + # status enables the status subresource. + status: {} schema: # openAPIV3Schema is the schema for validating custom objects. openAPIV3Schema: @@ -238,7 +224,9 @@ items: properties: configMapKeyRef: type: object - required: [name, key] + oneOf: + - required: [key, name] + - required: [key, matchLabels] properties: name: type: string @@ -249,9 +237,15 @@ items: type: type: string enum: [number, boolean, json, jsonString, base64] + matchLabels: + type: object + x-kubernetes-preserve-unknown-fields: true + additionalProperties: true secretKeyRef: type: object - required: [name, key] + oneOf: + - required: [key, name] + - required: [key, matchLabels] properties: name: type: string @@ -262,9 +256,15 @@ items: type: type: string enum: [number, boolean, json, jsonString, base64] + matchLabels: + type: object + x-kubernetes-preserve-unknown-fields: true + additionalProperties: true genericKeyRef: type: object - required: [apiVersion, kind, name, key] + oneOf: + - required: [apiVersion, kind, name, key] + - required: [apiVersion, kind, matchLabels, key] properties: apiVersion: type: string @@ -279,6 +279,10 @@ items: type: type: string enum: [number, boolean, json, jsonString, base64] + matchLabels: + type: object + x-kubernetes-preserve-unknown-fields: true + additionalProperties: true templates: type: array items: diff --git a/versions/wave0.mk b/versions/wave0.mk index 30790b7..206caa5 100644 --- a/versions/wave0.mk +++ b/versions/wave0.mk @@ -1 +1 @@ -WAVE0_VERSION := 1.1.0 +WAVE0_VERSION := 2.1.4