@@ -41,16 +41,17 @@ import (
41
41
42
42
type (
43
43
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
54
55
}
55
56
56
57
ClusterRemoveOptions struct {
@@ -142,6 +143,7 @@ func newClusterAddCommand() *cobra.Command {
142
143
cmd .Flags ().StringToStringVar (& opts .annotations , "annotations" , nil , "Set metadata annotations (e.g. --annotation key=value)" )
143
144
cmd .Flags ().StringToStringVar (& opts .labels , "labels" , nil , "Set metadata labels (e.g. --label key=value)" )
144
145
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" )
145
147
cmd .Flags ().StringVar (& opts .tag , "tag" , "" , "[dev only] - use a specific tag of the csdp-add-cluster image" )
146
148
147
149
util .Die (cmd .Flags ().MarkHidden ("tag" ))
@@ -325,6 +327,7 @@ func createAddClusterManifests(opts *ClusterAddOptions, ingressUrl, server, csdp
325
327
fmt .Sprintf ("ingressUrl=" + ingressUrl ),
326
328
fmt .Sprintf ("contextName=" + opts .clusterName ),
327
329
fmt .Sprintf ("server=" + server ),
330
+ fmt .Sprintf ("skipTLSValidation=%v" , opts .skipTLSValidation ),
328
331
},
329
332
},
330
333
},
0 commit comments