-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Terraform doesn't detect when a taint needs to removed from a node pool #13309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@renescheepers I am not clear how to repro the issue. Can you show me the configs for step #1 and step#3? |
@edwardmedia sorry for the late reply, was on holiday. Here is the configuration I used: Step 1 provider "google" {
project = ""
}
provider "google-beta" {
project = ""
}
resource "google_container_cluster" "primary" {
name = "testing-rene"
location = "us-central1"
remove_default_node_pool = true
initial_node_count = 1
}
resource "google_container_node_pool" "default-node-pool" {
name = "default"
cluster = google_container_cluster.primary.id
node_count = 1
node_config {
taint { # Remove after applying
effect = "NO_EXECUTE"
key = "some-key"
value = "some-value"
}
}
} Step 3 commented out taint provider "google" {
project = ""
}
provider "google-beta" {
project = ""
}
resource "google_container_cluster" "primary" {
name = "testing-rene"
location = "us-central1"
remove_default_node_pool = true
initial_node_count = 1
}
resource "google_container_node_pool" "default-node-pool" {
name = "default"
cluster = google_container_cluster.primary.id
node_count = 1
node_config {
#taint { # Remove after applying
# effect = "NO_EXECUTE"
# key = "some-key"
# value = "some-value"
#}
}
} |
@renescheepers I probably not exactly follow the issue. Can you explain why
resource "google_container_node_pool" "default-node-pool" {
name = "default"
cluster = google_container_cluster.primary.id
node_count = 1
node_config {
taint { # Remove after applying
effect = "NO_EXECUTE"
key = "some-key"
value = "some-value"
}
}
} |
@edwardmedia taints are configured in the
|
I think this is ultimately caused for the same reasons as #7928. We're likely to fix this in a future major release but I'm not sure if much is possible to change outside of that. |
Closed in GoogleCloudPlatform/magic-modules#9011. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Node pool is recreated without the taint.
Actual Behavior
Steps to Reproduce
terraform apply
google_container_node_pool.default-node-pool
terraform plan
References
The text was updated successfully, but these errors were encountered: