hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.33k stars 1.73k forks source link

support Cloud Storage FUSE CSI Driver for GKE #14515

Closed sho-abe closed 1 year ago

sho-abe commented 1 year ago

Community Note

Description

Since May 2, Cloud Storage FUSE CSI Driver for GKE clusters is now available. I would like you to enhance the addon so that it can be enabled in Terraform.

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_service_account" "default" {
  account_id   = "service-account-id"
  display_name = "Service Account"
}

resource "google_container_cluster" "primary" {
  name               = "marcellus-wallace"
  location           = "us-central1-a"
  initial_node_count = 3

  # The new settings are shown below.
  addons_config {
    gcs_fuse_csi_driver_config {
      enabled = true
    }
  }

  node_config {
    # Google recommends custom service accounts that have cloud-platform scope and permissions granted via IAM Roles.
    service_account = google_service_account.default.email
    oauth_scopes = [
      "https://www.googleapis.com/auth/cloud-platform"
    ]
    labels = {
      foo = "bar"
    }
    tags = ["foo", "bar"]
  }
  timeouts {
    create = "30m"
    update = "40m"
  }
}

References

megan07 commented 1 year ago

this should be closed by https://github.com/GoogleCloudPlatform/magic-modules/pull/7884

megan07 commented 1 year ago

Fixed in https://github.com/GoogleCloudPlatform/magic-modules/pull/7884

github-actions[bot] commented 1 year ago

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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.