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

gcfs_config variable forces replacement #2048

Closed
dominykasn opened this issue Aug 21, 2024 · 8 comments · Fixed by #2093
Closed

gcfs_config variable forces replacement #2048

dominykasn opened this issue Aug 21, 2024 · 8 comments · Fixed by #2093
Labels
bug Something isn't working

Comments

@dominykasn
Copy link

dominykasn commented Aug 21, 2024

TL;DR

gcfs_config variable forces replacement to node pools when importing

Expected behavior

Importing without issues when gcfs is disabled in GUI and in gcloud CLI

Observed behavior

When importing plan shows forced replacement to node pool, image streaming is disabled in GCP GUI and in gcloud CLI

- gcfs_config { # forces replacement
              - enabled = false -> null
            }

Terraform Configuration

module "gke" {
  source  = "terraform-google-modules/kubernetes-engine/google//modules/private-cluster"
  version = "~> 32.0.0"

  ....
  node_pools = [
    {
      name = "n2d-c8-m32"
      image_type = "COS_CONTAINERD"
      enable_secure_boot = true
      enable_gcfs = false
    },

Terraform Version

Terraform v1.8.4

Additional information

No response

@dominykasn dominykasn added the bug Something isn't working label Aug 21, 2024
@AlvaroGG0
Copy link

Working on it already: #1976

@dominykasn
Copy link
Author

Nice, I also have a pull request open for similar issue GoogleCloudPlatform/magic-modules#11553

@dominykasn
Copy link
Author

@apeabody can I open a new pull request in this repository to change this ? From what I can see the PR is being only rebased 🤔

@apeabody
Copy link
Contributor

@wyardley
Copy link
Contributor

I saw the fix with 6.2.0 supporting updating in place (will test with 6.2.0 shortly), but the thing that's odd to me is that I already explicitly had enable_gcfs = false in my config with version 32 of the module, and I seem to get a planned diff force replacement by all of removing that (allowing default), setting it to true, or setting it to false.

@apeabody
Copy link
Contributor

I saw the fix with 6.2.0 supporting updating in place (will test with 6.2.0 shortly), but the thing that's odd to me is that I already explicitly had enable_gcfs = false in my config with version 32 of the module, and I seem to get a planned diff force replacement by all of removing that (allowing default), setting it to true, or setting it to false.

Hi @wyardley - I believe that particular issue with enable_gcfs = false should be resolved by #1976 in v33.

@wyardley
Copy link
Contributor

wyardley commented Sep 12, 2024

@apeabody thanks!

fwiw, I was seeing this with 33.0.1. I'm having some issues with OpenTofu registry not having 6.2.0, but I'll try again once that's available.

% tf version
OpenTofu v1.8.2
on darwin_arm64
+ provider registry.opentofu.org/hashicorp/external v2.3.4
+ provider registry.opentofu.org/hashicorp/google v6.1.0
+ provider registry.opentofu.org/hashicorp/kubernetes v2.32.0
+ provider registry.opentofu.org/hashicorp/null v3.2.2
+ provider registry.opentofu.org/hashicorp/random v3.6.2

and then

  source                = "terraform-google-modules/kubernetes-engine/google//modules/private-cluster"
  version               = "33.0.1"

@wyardley
Copy link
Contributor

@apeabody thanks for the additional quick fix 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants