From 13430f049386445136b2b098fc5a560fd2900637 Mon Sep 17 00:00:00 2001 From: Pasquale Congiusti Date: Mon, 8 May 2023 16:54:40 +0200 Subject: [PATCH] chore(api): not required build strategy --- config/crd/bases/camel.apache.org_integrationplatforms.yaml | 4 ---- helm/camel-k/crds/crd-integration-platform.yaml | 4 ---- pkg/apis/camel/v1/common_types.go | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/config/crd/bases/camel.apache.org_integrationplatforms.yaml b/config/crd/bases/camel.apache.org_integrationplatforms.yaml index d2bf63d437..44c7d72c28 100644 --- a/config/crd/bases/camel.apache.org_integrationplatforms.yaml +++ b/config/crd/bases/camel.apache.org_integrationplatforms.yaml @@ -122,8 +122,6 @@ spec: - routine - pod type: string - required: - - strategy type: object maven: description: Maven configuration used to build the Camel/Camel-Quarkus @@ -1727,8 +1725,6 @@ spec: - routine - pod type: string - required: - - strategy type: object maven: description: Maven configuration used to build the Camel/Camel-Quarkus diff --git a/helm/camel-k/crds/crd-integration-platform.yaml b/helm/camel-k/crds/crd-integration-platform.yaml index d2bf63d437..44c7d72c28 100644 --- a/helm/camel-k/crds/crd-integration-platform.yaml +++ b/helm/camel-k/crds/crd-integration-platform.yaml @@ -122,8 +122,6 @@ spec: - routine - pod type: string - required: - - strategy type: object maven: description: Maven configuration used to build the Camel/Camel-Quarkus @@ -1727,8 +1725,6 @@ spec: - routine - pod type: string - required: - - strategy type: object maven: description: Maven configuration used to build the Camel/Camel-Quarkus diff --git a/pkg/apis/camel/v1/common_types.go b/pkg/apis/camel/v1/common_types.go index 9c6dbe4438..f1ba0ac15a 100644 --- a/pkg/apis/camel/v1/common_types.go +++ b/pkg/apis/camel/v1/common_types.go @@ -38,7 +38,7 @@ const ( // BuildConfiguration represent the configuration required to build the runtime type BuildConfiguration struct { // the strategy to adopt - Strategy BuildStrategy `json:"strategy"` + Strategy BuildStrategy `property:"strategy" json:"strategy,omitempty"` // The minimum amount of CPU required. RequestCPU string `property:"request-cpu" json:"requestCPU,omitempty"` // The minimum amount of memory required.