Skip to content

Commit

Permalink
Add Observability to garden priter coloumn (gardener#8381)
Browse files Browse the repository at this point in the history
  • Loading branch information
acumino authored Aug 23, 2023
1 parent 6962fee commit 573c4af
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ spec:
jsonPath: .status.conditions[?(@.type=="VirtualGardenAPIServerAvailable")].status
name: API Server
type: string
- description: Indicates whether the observability components related to the runtime
cluster are healthy.
jsonPath: .status.conditions[?(@.type=="ObservabilityComponentsHealthy")].status
name: Observability
type: string
- description: creation timestamp
jsonPath: .metadata.creationTimestamp
name: Age
Expand Down
5 changes: 5 additions & 0 deletions example/operator/10-crd-operator.gardener.cloud_gardens.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ spec:
jsonPath: .status.conditions[?(@.type=="VirtualGardenAPIServerAvailable")].status
name: API Server
type: string
- description: Indicates whether the observability components related to the runtime
cluster are healthy.
jsonPath: .status.conditions[?(@.type=="ObservabilityComponentsHealthy")].status
name: Observability
type: string
- description: creation timestamp
jsonPath: .metadata.creationTimestamp
name: Age
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/operator/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import (
// +kubebuilder:printcolumn:name="Runtime",type=string,JSONPath=`.status.conditions[?(@.type=="RuntimeComponentsHealthy")].status`,description="Indicates whether the components related to the runtime cluster are healthy."
// +kubebuilder:printcolumn:name="Virtual",type=string,JSONPath=`.status.conditions[?(@.type=="VirtualComponentsHealthy")].status`,description="Indicates whether the components related to the virtual cluster are healthy."
// +kubebuilder:printcolumn:name="API Server",type=string,JSONPath=`.status.conditions[?(@.type=="VirtualGardenAPIServerAvailable")].status`,description="Indicates whether the API server of the virtual cluster is available."
// +kubebuilder:printcolumn:name="Observability",type=string,JSONPath=`.status.conditions[?(@.type=="ObservabilityComponentsHealthy")].status`,description="Indicates whether the observability components related to the runtime cluster are healthy."
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`,description="creation timestamp"

// Garden describes a list of gardens.
Expand Down

0 comments on commit 573c4af

Please sign in to comment.