Skip to content

Commit 77d0b59

Browse files
committed
Log unsupported TLS ciphers for machineset webhooks.
Mirror machine-api-operator logging so ignored ciphers are visible during startup.
1 parent fe1ce87 commit 77d0b59

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmd/machineset/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ func main() {
174174
tlsProfile.Ciphers = strings.Split(*tlsCipherSuites, ",")
175175
}
176176

177-
tlsOpts, _ := utiltls.NewTLSConfigFromProfile(tlsProfile)
177+
tlsOpts, unsupportedCiphers := utiltls.NewTLSConfigFromProfile(tlsProfile)
178+
if len(unsupportedCiphers) > 0 {
179+
klog.Infof("TLS configuration contains unsupported ciphers that will be ignored: %v", unsupportedCiphers)
180+
}
178181

179182
opts.WebhookServer = webhook.NewServer(webhook.Options{
180183
Port: *webhookPort,

0 commit comments

Comments
 (0)