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

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

Open
pbatey opened this issue May 25, 2020 · 0 comments
Open

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

pbatey opened this issue May 25, 2020 · 0 comments

Comments

@pbatey
Copy link
Contributor

pbatey commented May 25, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant