We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00dcf7f commit e147c5bCopy full SHA for e147c5b
internal/services/k8s/cluster.go
@@ -69,9 +69,9 @@ func ResourceCluster() *schema.Resource {
69
ForceNew: true,
70
Description: "The CNI plugin of the cluster",
71
ValidateDiagFunc: func(i any, p cty.Path) diag.Diagnostics {
72
- var cniValues []k8s.CNI
+ cniValues := k8s.CNI("").Values()
73
74
- cniStringValues := []string(nil)
+ cniStringValues := make([]string, 0, len(cniValues))
75
for _, cniValue := range cniValues {
76
cniStringValues = append(cniStringValues, cniValue.String())
77
}
0 commit comments