Skip to content

Commit

Permalink
Allow client to skip TLS Verification
Browse files Browse the repository at this point in the history
Signed-off-by: SAGNIK PAL <[email protected]>
  • Loading branch information
palSagnik committed Jan 14, 2025
1 parent 48aed15 commit 8637680
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 8637680

Please sign in to comment.