Skip to content

Commit

Permalink
feat(api): show integration readiness
Browse files Browse the repository at this point in the history
Useful to get the readiness information from cluster tooling
  • Loading branch information
squakez committed May 3, 2024
1 parent 0a22bed commit 1a93a35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/camel-k/crds/crd-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/camel/v1/integration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a93a35

Please sign in to comment.