Skip to content
This repository was archived by the owner on Aug 28, 2021. It is now read-only.
This repository was archived by the owner on Aug 28, 2021. It is now read-only.

Support --insecure-skip-tls-verify #143

@pbatey

Description

@pbatey

My K8S instance has a self-signed certificate and my cluster config requires --insecure-skip-tls-verify.

I think it's a matter of adding insecure_skip_tls_verify to the source configuration in assets/common.sh:

insecure_skip_tls_verify=$(jq -r '.source.insecure_skip_tls_verify // "false"' < $payload)
if [ "$insecure_skip_tls_verify" = true ]; then
  insecure_skip_tls_verify="--insecure-skip-tls-verify"
else
  insecure_skip_tls_verify=""
fi

...

kubectl config set-cluster default --server=$cluster_url --certificate-authority=$ca_path $insecure-skip-tls-verify

Will fork and make a pull request if it works.

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