Skip to content

Commit

Permalink
Make capi properties required
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Sep 25, 2024
1 parent 068e8f1 commit b0d7938
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions api/v1/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ func (cm ClusterManager) String() string {
}

type CAPIClusterInfo struct {
Provider CAPIProvider `json:"provider,omitempty"`
Namespace string `json:"namespace,omitempty"`
ClusterName string `json:"clusterName,omitempty"`
Provider CAPIProvider `json:"provider"`
Namespace string `json:"namespace"`
ClusterName string `json:"clusterName"`
}

// ClusterInfo used in ace-installer
Expand All @@ -171,8 +171,9 @@ type ClusterInfo struct {
type CAPIProvider string

const (
CAPIProviderDisabled CAPIProvider = ""
CAPIProviderCAPA CAPIProvider = "capa"
CAPIProviderCAPG CAPIProvider = "capg"
CAPIProviderCAPZ CAPIProvider = "capz"
CAPIProviderUnknown CAPIProvider = ""
CAPIProviderCAPA CAPIProvider = "capa"
CAPIProviderCAPG CAPIProvider = "capg"
CAPIProviderCAPZ CAPIProvider = "capz"
CAPIProviderCAPH CAPIProvider = "caph"
)

0 comments on commit b0d7938

Please sign in to comment.