Skip to content

Follow the same standards with provider kubernetes for environment variable  #225

@anhdle14

Description

@anhdle14

Currently only one configuration can be set which is quite limited on running this provider in CI and in development.

Would suggest 2 things:

  • In-cluster config should just automatically set based on the below

In-cluster Config
The provider uses the KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT environment variables to detect when it is running inside a cluster, so in this case you do not need to specify any attributes in the provider block if you want to connect to the local kubernetes cluster.

If you want to connect to a different cluster than the one terraform is running inside, configure the provider as above.
ref: https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs#in-cluster-config

  • Support multiple args instead of: only one of kubeconfig_incluster,kubeconfig_path,kubeconfig_rawcan be specified, butkubeconfig_incluster,kubeconfig_path were specified..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions