fix: Make CRD file compatible with OpenShift 3.11 (#957)

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
pull/959/head
Anatolii Bazko 2021-07-21 18:40:20 +03:00 committed by GitHub
parent ca6f98c53d
commit f65e5b0cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -234,6 +234,9 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
yq -rYi ".spec.subresources.status = {}" "$(ECLIPSE_CHE_BACKUP_CRD_V1BETA1)"
yq -rYi ".spec.subresources.status = {}" "$(ECLIPSE_CHE_RESTORE_CRD_V1BETA1)"
# remove .spec.validation.openAPIV3Schema.type field
yq -rYi "del(.spec.validation.openAPIV3Schema.type)" "$(ECLIPSE_CHE_RESTORE_CRD_V1BETA1)"
# remove "required" attributes from v1beta1 crd files
$(MAKE) removeRequiredAttribute "filePath=$(ECLIPSE_CHE_CRD_V1BETA1)"
$(MAKE) removeRequiredAttribute "filePath=$(ECLIPSE_CHE_BACKUP_SERVER_CONFIGURATION_CRD_V1BETA1)"

View File

@ -65,7 +65,6 @@ spec:
description: 'Restore progress state: InProgress, Failed, Succeeded'
type: string
type: object
type: object
version: v1
versions:
- name: v1