This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 1a93a35f9 feat(api): show integration readiness
1a93a35f9 is described below
commit 1a93a35f927dca65e30bb38d52faa8fcb3bf3c3a
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Fri May 3 11:30:06 2024 +0200
feat(api): show integration readiness
Useful to get the readiness information from cluster tooling
---
helm/camel-k/crds/crd-integration.yaml | 4 ++++
pkg/apis/camel/v1/integration_types.go | 1 +
pkg/resources/config/crd/bases/camel.apache.org_integrations.yaml | 4 ++++
3 files changed, 9 insertions(+)
diff --git a/helm/camel-k/crds/crd-integration.yaml
b/helm/camel-k/crds/crd-integration.yaml
index e83632792..34a107e52 100644
--- a/helm/camel-k/crds/crd-integration.yaml
+++ b/helm/camel-k/crds/crd-integration.yaml
@@ -43,6 +43,10 @@ spec:
jsonPath: .status.phase
name: Phase
type: string
+ - description: The integration readiness
+ jsonPath: .status.conditions[?(@.type=="Ready")].status
+ name: Ready
+ type: string
- description: The runtime version
jsonPath: .status.runtimeProvider
name: Runtime Provider
diff --git a/pkg/apis/camel/v1/integration_types.go
b/pkg/apis/camel/v1/integration_types.go
index 9f293f6a6..7d7626c8f 100644
--- a/pkg/apis/camel/v1/integration_types.go
+++ b/pkg/apis/camel/v1/integration_types.go
@@ -34,6 +34,7 @@ import (
// +kubebuilder:storageversion
//
+kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.replicas,selectorpath=.status.selector
//
+kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`,description="The
integration phase"
+//
+kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type=="Ready")].status`,description="The
integration readiness"
// +kubebuilder:printcolumn:name="Runtime
Provider",type=string,JSONPath=`.status.runtimeProvider`,description="The
runtime version"
// +kubebuilder:printcolumn:name="Runtime
Version",type=string,JSONPath=`.status.runtimeVersion`,description="The runtime
provider"
//
+kubebuilder:printcolumn:name="Kit",type=string,JSONPath=`.status.integrationKit.name`,description="The
integration kit"
diff --git a/pkg/resources/config/crd/bases/camel.apache.org_integrations.yaml
b/pkg/resources/config/crd/bases/camel.apache.org_integrations.yaml
index e83632792..34a107e52 100644
--- a/pkg/resources/config/crd/bases/camel.apache.org_integrations.yaml
+++ b/pkg/resources/config/crd/bases/camel.apache.org_integrations.yaml
@@ -43,6 +43,10 @@ spec:
jsonPath: .status.phase
name: Phase
type: string
+ - description: The integration readiness
+ jsonPath: .status.conditions[?(@.type=="Ready")].status
+ name: Ready
+ type: string
- description: The runtime version
jsonPath: .status.runtimeProvider
name: Runtime Provider