@@ -42,9 +42,13 @@ type tinkWorkerConfig struct {
42
42
43
43
// tinkServerTLS is whether or not to use TLS for tink-server communication.
44
44
tinkServerTLS string
45
- httpProxy string
46
- httpsProxy string
47
- noProxy string
45
+
46
+ // tinkServerInsecureTLS is whether or not to use insecure TLS for tink-server communication; only applies is TLS itself is on
47
+ tinkServerInsecureTLS string
48
+
49
+ httpProxy string
50
+ httpsProxy string
51
+ noProxy string
48
52
}
49
53
50
54
func main () {
@@ -167,6 +171,7 @@ func run(ctx context.Context, log logr.Logger) error {
167
171
fmt .Sprintf ("REGISTRY_PASSWORD=%s" , cfg .password ),
168
172
fmt .Sprintf ("TINKERBELL_GRPC_AUTHORITY=%s" , cfg .grpcAuthority ),
169
173
fmt .Sprintf ("TINKERBELL_TLS=%s" , cfg .tinkServerTLS ),
174
+ fmt .Sprintf ("TINKERBELL_INSECURE_TLS=%s" , cfg .tinkServerInsecureTLS ),
170
175
fmt .Sprintf ("WORKER_ID=%s" , cfg .workerID ),
171
176
fmt .Sprintf ("ID=%s" , cfg .workerID ),
172
177
fmt .Sprintf ("HTTP_PROXY=%s" , cfg .httpProxy ),
@@ -267,6 +272,8 @@ func parseCmdLine(cmdLines []string) (cfg tinkWorkerConfig) {
267
272
cfg .tinkWorkerImage = cmdLine [1 ]
268
273
case "tinkerbell_tls" :
269
274
cfg .tinkServerTLS = cmdLine [1 ]
275
+ case "tinkerbell_insecure_tls" :
276
+ cfg .tinkServerInsecureTLS = cmdLine [1 ]
270
277
case "HTTP_PROXY" :
271
278
cfg .httpProxy = cmdLine [1 ]
272
279
case "HTTPS_PROXY" :
0 commit comments