Skip to content

Commit

Permalink
Add clusterconnectivity to gitopscluster schema (#35)
Browse files Browse the repository at this point in the history
* Add clusterconnectivity to gitopscluster schema

* Remove clusterConnectivity from gitopsCluster schema
  • Loading branch information
ranatrk authored May 10, 2023
1 parent c449e0c commit 4729305
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/v1alpha1/gitopscluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/gitops.weave.works_gitopsclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4729305

Please sign in to comment.