diff --git a/api/v1alpha1/gitopscluster_types.go b/api/v1alpha1/gitopscluster_types.go index 026cefa..dcc7c21 100644 --- a/api/v1alpha1/gitopscluster_types.go +++ b/api/v1alpha1/gitopscluster_types.go @@ -57,14 +57,15 @@ func (in *GitopsCluster) SetConditions(conditions []metav1.Condition) { // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="" // +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="" // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description="" +// +kubebuilder:printcolumn:name="ClusterConnectivity",type="string",JSONPath=".status.conditions[?(@.type==\"ClusterConnectivity\")].status",description="" // GitopsCluster is the Schema for the gitopsclusters API type GitopsCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec GitopsClusterSpec `json:"spec,omitempty"` - Status GitopsClusterStatus `json:"status,omitempty"` + Spec GitopsClusterSpec `json:"spec,omitempty"` + Status GitopsClusterStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true diff --git a/config/crd/bases/gitops.weave.works_gitopsclusters.yaml b/config/crd/bases/gitops.weave.works_gitopsclusters.yaml index b1d3b77..8e20bbc 100644 --- a/config/crd/bases/gitops.weave.works_gitopsclusters.yaml +++ b/config/crd/bases/gitops.weave.works_gitopsclusters.yaml @@ -25,6 +25,9 @@ spec: - jsonPath: .status.conditions[?(@.type=="Ready")].message name: Status type: string + - jsonPath: .status.conditions[?(@.type=="ClusterConnectivity")].status + name: ClusterConnectivity + type: string name: v1alpha1 schema: openAPIV3Schema: