Open ocervell opened 3 months ago
Hi @ocervell - thank you for reporting this issue, and we're sorry you're having trouble.
I've been able to reproduce this behavior. Here's what happens when I look at the details
after pulumi preview
:
Do you want to perform this update? details
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:dev::gcp-2247::pulumi:pulumi:Stack::gcp-2247-dev]
++gcp:container/cluster:Cluster: (create-replacement)
[id=projects/pulumi-development/locations/europe-west1/clusters/gke-cluster-417a320]
[urn=urn:pulumi:dev::gcp-2247::gcp:container/cluster:Cluster::gke-cluster]
[provider=urn:pulumi:dev::gcp-2247::pulumi:providers:gcp::default_7_32_0::0c4bfd73-9d2d-4a0b-a09e-90d52d9b3e77]
~ nodeConfig: {
~ oauthScopes : [
~ [0]: "https://www.googleapis.com/auth/monitoring" => "https://www.googleapis.com/auth/cloud-platform"
- [1]: "https://www.googleapis.com/auth/devstorage.read_only"
- [2]: "https://www.googleapis.com/auth/logging.write"
- [3]: "https://www.googleapis.com/auth/service.management.readonly"
- [4]: "https://www.googleapis.com/auth/servicecontrol"
- [5]: "https://www.googleapis.com/auth/trace.append"
]
- reservationAffinity: {
- consumeReservationType: "NO_RESERVATION"
- key : ""
- values : []
}
- reservationAffinity: {
- consumeReservationType: "NO_RESERVATION"
- key : ""
- values : []
}
}
+-gcp:container/cluster:Cluster: (replace)
[id=projects/pulumi-development/locations/europe-west1/clusters/gke-cluster-417a320]
[urn=urn:pulumi:dev::gcp-2247::gcp:container/cluster:Cluster::gke-cluster]
[provider=urn:pulumi:dev::gcp-2247::pulumi:providers:gcp::default_7_32_0::0c4bfd73-9d2d-4a0b-a09e-90d52d9b3e77]
~ nodeConfig: {
~ oauthScopes : [
~ [0]: "https://www.googleapis.com/auth/monitoring" => "https://www.googleapis.com/auth/cloud-platform"
- [1]: "https://www.googleapis.com/auth/devstorage.read_only"
- [2]: "https://www.googleapis.com/auth/logging.write"
- [3]: "https://www.googleapis.com/auth/service.management.readonly"
- [4]: "https://www.googleapis.com/auth/servicecontrol"
- [5]: "https://www.googleapis.com/auth/trace.append"
]
- reservationAffinity: {
- consumeReservationType: "NO_RESERVATION"
- key : ""
- values : []
}
- reservationAffinity: {
- consumeReservationType: "NO_RESERVATION"
- key : ""
- values : []
}
}
--gcp:container/cluster:Cluster: (delete-replaced)
[id=projects/pulumi-development/locations/europe-west1/clusters/gke-cluster-417a320]
[urn=urn:pulumi:dev::gcp-2247::gcp:container/cluster:Cluster::gke-cluster]
[provider=urn:pulumi:dev::gcp-2247::pulumi:providers:gcp::default_7_32_0::0c4bfd73-9d2d-4a0b-a09e-90d52d9b3e77]
This unfortunately appears to be a limitation of GKE autopilot in conjunction with node_config.oauth_scopes
that's been the case for quite a while. The recommendation seems to be to not use node_config.oauth_scopes
.
It looks like you're running into the same issue as this Terraform user: https://github.com/hashicorp/terraform-provider-google/issues/13542.
Describe what happened
GKE Autopilot is recreated without any changes to
node_config
.Running
pulumi up
twice shows on the secondup
that the cluster needs to be replaced becausenodeConfig
is different:Sample program
Log output
No response
Affected Resource(s)
No response
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).