Skip to content

Commit

Permalink
sks: flag for CSI addon
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterp committed Feb 12, 2024
1 parent 9223f78 commit dc84b70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/sks_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var (
defaultSKSClusterCNI = "calico"
defaultSKSClusterServiceLevel = "pro"
sksClusterAddonExoscaleCCM = "exoscale-cloud-controller"
sksClusterAddonExoscaleCSI = "exoscale-container-storage-interface"
sksClusterAddonMetricsServer = "metrics-server"
)

Expand All @@ -37,6 +38,7 @@ type sksCreateCmd struct {
NoCNI bool `cli-usage:"do not deploy a default Container Network Interface plugin in the cluster control plane"`
NoExoscaleCCM bool `cli-usage:"do not deploy the Exoscale Cloud Controller Manager in the cluster control plane"`
NoMetricsServer bool `cli-usage:"do not deploy the Kubernetes Metrics Server in the cluster control plane"`
ExoscaleCSI bool `cli-usage:"deploy the Exoscale Container Storage Interface on worker nodes"`
NodepoolAntiAffinityGroups []string `cli-flag:"nodepool-anti-affinity-group" cli-usage:"default Nodepool Anti-Affinity Group NAME|ID (can be specified multiple times)"`
NodepoolDeployTarget string `cli-usage:"default Nodepool Deploy Target NAME|ID"`
NodepoolDescription string `cli-usage:"default Nodepool description"`
Expand Down Expand Up @@ -121,6 +123,9 @@ func (c *sksCreateCmd) cmdRun(_ *cobra.Command, _ []string) error { //nolint:goc
if c.NoMetricsServer {
delete(addOns, sksClusterAddonMetricsServer)
}
if c.ExoscaleCSI {
addOns[sksClusterAddonExoscaleCSI] = struct{}{}
}

if len(addOns) > 0 {
list := make([]string, 0)
Expand Down

0 comments on commit dc84b70

Please sign in to comment.