rancher / terraform-provider-rancher2

Terraform Rancher2 provider
https://www.terraform.io/docs/providers/rancher2/
Mozilla Public License 2.0
253 stars 218 forks source link

[BUG] Data sources create new kubeconfig token when running terraform plan and terraform apply #1229

Open erSitzt opened 9 months ago

erSitzt commented 9 months ago

Rancher Server Setup

Information about the Cluster

User Information

Provider Information

Describe the bug

Same Bug as described in #841 There was no reaction in the closed issue, so to be safe i opened a new one...

I think there maybe something wrong with the changes in #1165 but im not sure.

As of my last comment in the closed issue #841 origconfig is always empty in case the datasource is used... with a cluster resource it may be ok and working...

This is the part https://github.com/rancher/terraform-provider-rancher2/blob/master/rancher2/resource_rancher2_cluster.go#L668

To Reproduce

Actual Result

Expected Result

Screenshots

Additional context