@@ -41,16 +41,17 @@ import (
4141
4242type (
4343 ClusterAddOptions struct {
44- runtimeName string
45- clusterName string
46- kubeContext string
47- kubeconfig string
48- systemNamespace string
49- annotations map [string ]string
50- labels map [string ]string
51- tag string
52- dryRun bool
53- kubeFactory kube.Factory
44+ runtimeName string
45+ clusterName string
46+ kubeContext string
47+ kubeconfig string
48+ systemNamespace string
49+ annotations map [string ]string
50+ labels map [string ]string
51+ tag string
52+ dryRun bool
53+ skipTLSValidation bool
54+ kubeFactory kube.Factory
5455 }
5556
5657 ClusterRemoveOptions struct {
@@ -142,6 +143,7 @@ func newClusterAddCommand() *cobra.Command {
142143 cmd .Flags ().StringToStringVar (& opts .annotations , "annotations" , nil , "Set metadata annotations (e.g. --annotation key=value)" )
143144 cmd .Flags ().StringToStringVar (& opts .labels , "labels" , nil , "Set metadata labels (e.g. --label key=value)" )
144145 cmd .Flags ().BoolVar (& opts .dryRun , "dry-run" , false , "" )
146+ cmd .Flags ().BoolVar (& opts .skipTLSValidation , "skip-tls-validation" , false , "Set true to skip TLS validation for cluster domain" )
145147 cmd .Flags ().StringVar (& opts .tag , "tag" , "" , "[dev only] - use a specific tag of the csdp-add-cluster image" )
146148
147149 util .Die (cmd .Flags ().MarkHidden ("tag" ))
@@ -325,6 +327,7 @@ func createAddClusterManifests(opts *ClusterAddOptions, ingressUrl, server, csdp
325327 fmt .Sprintf ("ingressUrl=" + ingressUrl ),
326328 fmt .Sprintf ("contextName=" + opts .clusterName ),
327329 fmt .Sprintf ("server=" + server ),
330+ fmt .Sprintf ("skipTLSValidation=%v" , opts .skipTLSValidation ),
328331 },
329332 },
330333 },
0 commit comments