Skip to content

Commit d243670

Browse files
feat(k8s): add default cni (cilium) for cluster create (#1778)
Co-authored-by: Rémy Léone <[email protected]>
1 parent b0ce6d9 commit d243670

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cmd/scw/testdata/test-all-usage-k8s-cluster-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ARGS:
1818
[description] The description of the cluster
1919
[tags.{index}] The tags associated with the cluster
2020
version The Kubernetes version of the cluster
21-
cni The Container Network Interface (CNI) plugin that will run in the cluster (unknown_cni | cilium | calico | weave | flannel)
21+
cni=cilium The Container Network Interface (CNI) plugin that will run in the cluster (unknown_cni | cilium | calico | weave | flannel)
2222
[enable-dashboard] The enablement of the Kubernetes Dashboard in the cluster
2323
[ingress] The Ingress Controller that will run in the cluster (unknown_ingress | none | nginx | traefik | traefik2)
2424
pools.{index}.name The name of the pool

internal/namespaces/k8s/v1/custom_cluster.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ func clusterAvailableVersionsListBuilder(c *core.Command) *core.Command {
8585

8686
func clusterCreateBuilder(c *core.Command) *core.Command {
8787
c.WaitFunc = waitForClusterFunc(clusterActionCreate)
88+
89+
c.ArgSpecs.GetByName("cni").Default = core.DefaultValueSetter("cilium")
90+
8891
return c
8992
}
9093

0 commit comments

Comments
 (0)