data "google_client_config" "default" {} provider "google" { credentials = file("~/.config/gcloud/application_default_credentials.json") project = "devops-lab-cluster" region = "us-central1" # Or your desired region/location } provider "helm" { kubernetes { host = "https://${google_container_cluster.primary.endpoint}" cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth[0].cluster_ca_certificate) exec = { api_version = "client.authentication.k8s.io/v1beta1" command = "gke-gcloud-auth-plugin" } } } ##provider "flux" { ##kubernetes = { ## host = "https://${google_container_cluster.primary.endpoint}" ## cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth[0].cluster_ca_certificate) ## exec = { ## api_version = "client.authentication.k8s.io/v1beta1" ## command = "gke-gcloud-auth-plugin" ## } ##} ## git = { ## url = "ssh://git@github.com/${var.github_org}/${var.github_repository}.git" ## branch = "master" ## ssh = { ## username = "git" ## private_key = (file("~/.ssh/gcloud-lab")) ## } ##}