Skip to content
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

GCP GKE Cluster Cloud state and Pulumi state always out of sync #3023

Open
benglewis opened this issue Mar 3, 2025 · 4 comments
Open

GCP GKE Cluster Cloud state and Pulumi state always out of sync #3023

benglewis opened this issue Mar 3, 2025 · 4 comments
Assignees
Labels
awaiting-feedback Blocked on input from the author awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). blocked The issue cannot be resolved without 3rd party action. kind/bug Some behavior is incorrect or out of spec

Comments

@benglewis
Copy link

Describe what happened

I created a GCP GKE cluster with dns_config and it re-creates the dnsConfig on every pulumi up despite no changes to the code or externally to the cluster. pulumi refresh does not help, but can break things when using ignore_changes, which then results in pulumi up failing.

Sample program

gke_cluster = gcp.container.Cluster(
        "gke-cluster",
         ...
        dns_config=gcp.container.ClusterDnsConfigArgs(
            cluster_dns="CLOUD_DNS",
            cluster_dns_domain=k8s_sub_domain,
        ),
        ...
    )

Where k8s_sub_domain is the sub-domain that I use in Google Cloud DNS.

Log output

Here's the diff:

~ gcp:container/cluster:Cluster: (update)
    [id=projects/redacted/locations/redacted/clusters/redacted]
    [urn=urn:pulumi:dev::redacted::gcp:container/cluster:Cluster::redacted]
    [provider=urn:pulumi:dev::redacted::pulumi:providers:gcp::default_8_10_2::50e1eb43-1734-4a29-be83-09b36917f37c]
  ~ dnsConfig: {
      + clusterDnsScope: "DNS_SCOPE_UNSPECIFIED"
    }

Affected Resource(s)

GKE Cluster (i.e. gcp:container/cluster:Cluster)

Output of pulumi about

CLI
Version 3.153.1
Go Version go1.23.6
Go Compiler gc

Plugins
KIND NAME VERSION
resource gcp 8.10.2
resource kubernetes 4.18.4
language python 3.153.1

Host
OS darwin
Version 15.3.1
Arch arm64

This project is written in python: executable='.pixi/envs/dev/bin/python3' version='3.13.1'

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).

@benglewis benglewis added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Mar 3, 2025
@benglewis
Copy link
Author

Looks like this was fixed in the Terraform upstream but not yet released:
hashicorp/terraform-provider-google#21637

@VenelinMartinov
Copy link
Contributor

Hi @benglewis, sorry you hit this and thanks for digging up the upstream fix!

We'll inherit this from the upstream provider soon after they release it, thank you for flagging that up!

@VenelinMartinov VenelinMartinov added awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). blocked The issue cannot be resolved without 3rd party action. and removed needs-triage Needs attention from the triage team labels Mar 4, 2025
@VenelinMartinov VenelinMartinov self-assigned this Mar 4, 2025
@VenelinMartinov
Copy link
Contributor

@benglewis is this fixed in the latest release now? Looks like the TF provider has had a release since the fix and we have pulled that in https://github.com/pulumi/pulumi-gcp/releases/tag/v8.21.0

@VenelinMartinov VenelinMartinov added the awaiting-feedback Blocked on input from the author label Mar 7, 2025
@benglewis
Copy link
Author

benglewis commented Mar 17, 2025

This didn't yet fix the issue. I believe that the upstream release did not yet include the fix
Update: It looks like the upstream v6.25.0 includes the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-feedback Blocked on input from the author awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). blocked The issue cannot be resolved without 3rd party action. kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants