fix: Make CRD file compatible with OpenShift 3.11 (#957)
Signed-off-by: Anatolii Bazko <abazko@redhat.com>pull/959/head
parent
ca6f98c53d
commit
f65e5b0cff
3
Makefile
3
Makefile
|
|
@ -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)"
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ spec:
|
|||
description: 'Restore progress state: InProgress, Failed, Succeeded'
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
version: v1
|
||||
versions:
|
||||
- name: v1
|
||||
|
|
|
|||
Loading…
Reference in New Issue