Skip to content

terraform apply to remove gke module fails #208

@moredure

Description

@moredure

TL;DR

Plan: 0 to add, 0 to change, 9 to destroy.

│ Error: Get "http://localhost/api/v1/namespaces/arc-runners/secrets/gh-app-pre-defined-secret": dial tcp [::1]:80: connect: connection refused




│ Error: Get "http://localhost/api/v1/namespaces/arc-systems": dial tcp [::1]:80: connect: connection refused




│ Error: Kubernetes cluster unreachable: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable




│ Error: Get "http://localhost/api/v1/namespaces/arc-runners": dial tcp [::1]:80: connect: connection refused




│ Error: Kubernetes cluster unreachable: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable



Releasing state lock. This may take a few moments...

Expected behavior

Succussfuly destroyes resources corresponding to cluster

Observed behavior

Fails with missing env variable

Terraform Configuration

gke simple example

Terraform Version

Terraform v1.9.8
on darwin_arm64
+ provider registry.terraform.io/hashicorp/google v5.45.0
+ provider registry.terraform.io/hashicorp/google-beta v5.45.0
+ provider registry.terraform.io/hashicorp/helm v2.17.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.35.1
+ provider registry.terraform.io/hashicorp/random v3.6.3

Your version of Terraform is out of date! The latest version
is 1.10.2. You can update by downloading from https://www.terraform.io/downloads.html

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions