-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
0.12.12
Affected Resource(s)
kubernetes_service
and all other kubernetes resources
Expected Behavior
This is a specific issue when combining google provider changes and kubernetes provider.
I have a state in this I use:
-> Google provider in order to build a GKE cluster
-> kubernetes provider to create workloads, services etc.
When I make a change to the cluster which forces a new cluster to be rebuild, kubernetes provider should notice that and re-instance resources.
Actual Behavior
In above situation, when I make a change to cluster itself, cluster gets rebuilt but kubernetes (on the same run) does not re-create configured resources.
Steps to Reproduce
- Create a simple state that builds GKE cluster and creates some resources on kubernetes (eg. a service)
- Make a change to the cluster that forces a new cluster resource
- Cluster will get replaced but will be missing kubernetes resources.
Important Factoids
I use GKE on Google cloud and google and kubernetes providers in the same state.
WORKAROUND
Workaround is to do another apply of the same state once cluster is replaced... this however is annoying and breaks pipelines.