Skip to content

Commit

Permalink
Fixed the descrition in the resource and added cni to the datasource
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro J. Nuñez Madrazo <alejandrojnm@gmail.com>
  • Loading branch information
alejandrojnm committed Jan 14, 2022
1 parent 0a2c295 commit eaeff80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions civo/datasource_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ func dataSourceKubernetesCluster() *schema.Resource {
Computed: true,
Description: "The version of Kubernetes",
},
"cni": {
Type: schema.TypeString,
Computed: true,
Description: "The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel`",
},
"tags": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -254,6 +259,7 @@ func dataSourceKubernetesClusterRead(d *schema.ResourceData, m interface{}) erro
d.Set("num_target_nodes", foundCluster.NumTargetNode)
d.Set("target_nodes_size", foundCluster.TargetNodeSize)
d.Set("kubernetes_version", foundCluster.KubernetesVersion)
d.Set("cni", foundCluster.CNIPlugin)
d.Set("tags", foundCluster.Tags)
d.Set("status", foundCluster.Status)
d.Set("ready", foundCluster.Ready)
Expand Down
2 changes: 1 addition & 1 deletion civo/resource_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func resourceKubernetesCluster() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The cni for the k3s to install (the default is `flannel`) valid options are `calico` or `flannel`",
Description: "The cni for the k3s to install (the default is `flannel`) valid options are `cilium` or `flannel`",
ValidateFunc: utils.ValidateCNIName,
},
"tags": {
Expand Down

0 comments on commit eaeff80

Please sign in to comment.