From a3e24318a0244d861718606e8f613b9a9688b5eb Mon Sep 17 00:00:00 2001 From: Pasquale Congiusti Date: Mon, 6 Nov 2023 13:28:58 +0100 Subject: [PATCH] chore(api): introduce itp shortname We need to deprecate IP as it is too generic and collide with many other CRs. --- config/crd/bases/camel.apache.org_integrationplatforms.yaml | 1 + helm/camel-k/crds/crd-integration-platform.yaml | 1 + pkg/apis/camel/v1/integrationplatform_types.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/crd/bases/camel.apache.org_integrationplatforms.yaml b/config/crd/bases/camel.apache.org_integrationplatforms.yaml index 70c0e97022..1c3c9ecc1c 100644 --- a/config/crd/bases/camel.apache.org_integrationplatforms.yaml +++ b/config/crd/bases/camel.apache.org_integrationplatforms.yaml @@ -35,6 +35,7 @@ spec: plural: integrationplatforms shortNames: - ip + - itp singular: integrationplatform scope: Namespaced versions: diff --git a/helm/camel-k/crds/crd-integration-platform.yaml b/helm/camel-k/crds/crd-integration-platform.yaml index 70c0e97022..1c3c9ecc1c 100644 --- a/helm/camel-k/crds/crd-integration-platform.yaml +++ b/helm/camel-k/crds/crd-integration-platform.yaml @@ -35,6 +35,7 @@ spec: plural: integrationplatforms shortNames: - ip + - itp singular: integrationplatform scope: Namespaced versions: diff --git a/pkg/apis/camel/v1/integrationplatform_types.go b/pkg/apis/camel/v1/integrationplatform_types.go index 1049bfec46..2aa8081c03 100644 --- a/pkg/apis/camel/v1/integrationplatform_types.go +++ b/pkg/apis/camel/v1/integrationplatform_types.go @@ -66,7 +66,7 @@ type IntegrationPlatformStatus struct { // +genclient // +kubebuilder:object:root=true -// +kubebuilder:resource:path=integrationplatforms,scope=Namespaced,shortName=ip,categories=kamel;camel +// +kubebuilder:resource:path=integrationplatforms,scope=Namespaced,shortName=ip;itp,categories=kamel;camel // +kubebuilder:subresource:status // +kubebuilder:storageversion // +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`,description="The integration platform phase"