fix: Make CRDs compatible with OpenShift 3.11 (#961)

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
pull/968/head
Anatolii Bazko 2021-07-22 12:09:25 +03:00 committed by GitHub
parent 4104c42b57
commit 82aaa30659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 3 deletions

View File

@ -239,6 +239,9 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
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_CRD_V1BETA1)"
yq -rYi "del(.spec.validation.openAPIV3Schema.type)" "$(ECLIPSE_CHE_BACKUP_SERVER_CONFIGURATION_CRD_V1BETA1)"
yq -rYi "del(.spec.validation.openAPIV3Schema.type)" "$(ECLIPSE_CHE_BACKUP_CRD_V1BETA1)"
yq -rYi "del(.spec.validation.openAPIV3Schema.type)" "$(ECLIPSE_CHE_RESTORE_CRD_V1BETA1)"
# remove "required" attributes from v1beta1 crd files

View File

@ -131,7 +131,6 @@ spec:
description: CheBackupServerConfigurationStatus defines the observed state
of CheBackupServerConfiguration
type: object
type: object
version: v1
versions:
- name: v1

View File

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

View File

@ -1051,7 +1051,6 @@ spec:
the Pod is in this state.
type: string
type: object
type: object
version: v1
versions:
- name: v1