Skip to content

Commit

Permalink
Add constants for ConnectionStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
mgianluc committed Aug 5, 2024
1 parent c2e7e25 commit 6bdd904
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/v1alpha1/sveltoscluster_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ type ActiveWindow struct {
// +kubebuilder:validation:Enum:=Healthy;Down
type ConnectionStatus string

const (
// ConnectionHealthy indicates connection from management cluster to managed cluster is healthy
ConnectionHealthy = ConnectionStatus("Healthy")

// ConnectionDown indicates connection from management cluster to managed cluster is down
ConnectionDown = ConnectionStatus("Down")
)

type TokenRequestRenewalOption struct {
// RenewTokenRequestInterval is the interval at which to renew the TokenRequest
RenewTokenRequestInterval metav1.Duration `json:"renewTokenRequestInterval"`
Expand Down
8 changes: 8 additions & 0 deletions api/v1beta1/sveltoscluster_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ type ActiveWindow struct {
// +kubebuilder:validation:Enum:=Healthy;Down
type ConnectionStatus string

const (
// ConnectionHealthy indicates connection from management cluster to managed cluster is healthy
ConnectionHealthy = ConnectionStatus("Healthy")

// ConnectionDown indicates connection from management cluster to managed cluster is down
ConnectionDown = ConnectionStatus("Down")
)

type TokenRequestRenewalOption struct {
// RenewTokenRequestInterval is the interval at which to renew the TokenRequest
RenewTokenRequestInterval metav1.Duration `json:"renewTokenRequestInterval"`
Expand Down

0 comments on commit 6bdd904

Please sign in to comment.