Skip to content

Commit

Permalink
Add CreateCAPICluster option in SelfManagement
Browse files Browse the repository at this point in the history
Signed-off-by: Rokibul Hasan <mdrokibulhasan@appscode.com>
  • Loading branch information
RokibulHasan7 committed Oct 9, 2024
1 parent 6aacba7 commit 3ad985b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions apis/config/v1alpha1/setupconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ type SelfManagement struct {
// +optional
Import bool `json:"import"`
// +optional
CreateCAPICluster bool `json:"createCAPICluster"`
// +optional
KubeAPIServer string `json:"kubeAPIServer,omitempty"`
// +optional
TargetIPs []string `json:"targetIPs"`
Expand All @@ -113,6 +115,8 @@ type SelfManagementOptions struct {
// +optional
Import bool `json:"import"`
// +optional
CreateCAPICluster bool `json:"createCAPICluster"`
// +optional
EnableFeatures map[string][]string `json:"enableFeatures"`
// +optional
DisableFeatures []string `json:"disableFeatures"`
Expand All @@ -124,9 +128,10 @@ func (opt SelfManagementOptions) ToConfig() SelfManagement {
enableFeatures.Insert(features...)
}
return SelfManagement{
Import: opt.Import,
EnableFeatures: sets.List(enableFeatures),
DisableFeatures: sets.List(sets.New[string](opt.DisableFeatures...)),
Import: opt.Import,
CreateCAPICluster: opt.CreateCAPICluster,
EnableFeatures: sets.List(enableFeatures),
DisableFeatures: sets.List(sets.New[string](opt.DisableFeatures...)),
}
}

Expand Down

0 comments on commit 3ad985b

Please sign in to comment.