vmware / terraform-provider-tanzu-mission-control

Terraform provider to manage resources of Tanzu Mission Control
Mozilla Public License 2.0
37 stars 31 forks source link

Adding taint option for cluster NodePool #407

Open orenr2301 opened 3 months ago

orenr2301 commented 3 months ago

Is your feature request related to a problem? Please describe.

Yes, it's related to an issue when I would like to apply taint to nodePool in my terraform code but it doesn't exist at the provider itself

Describe the solution you'd like

I would like to have the option to taint the node pool. | whenever a VM is somehow recreated due to an infra/vSphere/Supervisor issue, the state of "taint" will reflect the node pool node when it gets up.

Would like to have the taint option like the label option

Describe alternatives you've considered

Running a scheduled batch job that taints the node, Or Create a local provisioner for keeping node state taint using the Tanzu CLI or any other API call Tanzu

Additional context

Please refer to cluster_node_pool resource you will see that there is no taint option as well on TMC UI you can see that there is a taint option

olegterasky commented 3 months ago

The feature is not supported under this resource, need to create the cluster with tanzu-mission-control_tanzu_kubernetes_cluster https://registry.terraform.io/providers/vmware/tanzu-mission-control/latest/docs/resources/tanzu_kubernetes_cluster#example-usage-1