Skip to content

Commit

Permalink
Merge pull request #445 from gianlucam76/connection-failures-default
Browse files Browse the repository at this point in the history
Set default values to zero for SveltosCluster Status ConnectionFailures
  • Loading branch information
gianlucam76 authored Feb 15, 2025
2 parents 6c85206 + 7a472b0 commit b707007
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1beta1/sveltoscluster_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ type SveltosClusterStatus struct {

// connectionFailures is the number of consecutive failed attempts to connect
// to the remote cluster.
// +kubebuilder:default:=0
// +optional
ConnectionFailures int `json:"connectionFailures,omitempty"`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ spec:
description: SveltosClusterStatus defines the status of SveltosCluster
properties:
connectionFailures:
default: 0
description: |-
connectionFailures is the number of consecutive failed attempts to connect
to the remote cluster.
Expand Down
1 change: 1 addition & 0 deletions lib/crd/sveltosclusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ spec:
description: SveltosClusterStatus defines the status of SveltosCluster
properties:
connectionFailures:
default: 0
description: |-
connectionFailures is the number of consecutive failed attempts to connect
to the remote cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@ spec:
description: SveltosClusterStatus defines the status of SveltosCluster
properties:
connectionFailures:
default: 0
description: |-
connectionFailures is the number of consecutive failed attempts to connect
to the remote cluster.
Expand Down

0 comments on commit b707007

Please sign in to comment.