From dd14003e164f48f27d501a5cca5be61bb987efdb Mon Sep 17 00:00:00 2001 From: Aiden Keating Date: Wed, 4 Apr 2018 15:51:54 +0100 Subject: [PATCH] Update self signed certs flag inline with oc --- pkg/cmd/clientConfig.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/clientConfig.go b/pkg/cmd/clientConfig.go index d7d4407..22621dc 100644 --- a/pkg/cmd/clientConfig.go +++ b/pkg/cmd/clientConfig.go @@ -54,7 +54,7 @@ func NewClientConfigCmd(k8Client kubernetes.Interface, mobileClient mobile.Inter // GetClientConfigCmd returns a cobra command object for getting client configs func (ccc *ClientConfigCmd) GetClientConfigCmd() *cobra.Command { var includeCertificatePins bool - var allowSelfSignedCerts bool + var skipTLSVerification bool cmd := &cobra.Command{ Use: "clientconfig ", @@ -137,7 +137,7 @@ kubectl plugin mobile get clientconfig`, // If the flag is set then include another key named 'https' which contains certificate hashes. if includeCertificatePins { - servicePinningHashes, err := retrieveHTTPSConfigForServices(outputJSON.Services, allowSelfSignedCerts) + servicePinningHashes, err := retrieveHTTPSConfigForServices(outputJSON.Services, skipTLSVerification) if err != nil { return errors.Wrap(err, "Could not append HTTPS configuration for services") } @@ -170,7 +170,7 @@ kubectl plugin mobile get clientconfig`, return nil }) - cmd.Flags().BoolVar(&allowSelfSignedCerts, "allow-self-signed-certs", false, "include certificate hashes for services with invalid/self-signed certificates") + cmd.Flags().BoolVar(&skipTLSVerification, "insecure-skip-tls-verify", false, "include certificate hashes for services with invalid/self-signed certificates") cmd.Flags().BoolVar(&includeCertificatePins, "include-cert-pins", false, "include certificate hashes for services in the client config") return cmd }