Skip to content

Commit

Permalink
Merge pull request #641 from palSagnik/master
Browse files Browse the repository at this point in the history
Support "insecure-skip-tls-verify: true" configuration in kubeconfigs
  • Loading branch information
leecalcote authored Jan 14, 2025
2 parents 37fca04 + 8637680 commit 239d6e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ func New(kubeconfig []byte) (*Client, error) {
restConfig.QPS = float32(50)
restConfig.Burst = int(100)

// if insecure variable is kept true, allow that
if restConfig.TLSClientConfig.Insecure {
restConfig.TLSClientConfig.Insecure = true
}

// Configure kubeclient
kclient, err := kubernetes.NewForConfig(restConfig)
if err != nil {
Expand Down

0 comments on commit 239d6e1

Please sign in to comment.