Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/metrics/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func init() {
// it does so only if the CA bundle changed from the current CA bundle on record.
func DumpCA(caBundle string) {
if caBundle != server.caBundle {
klog.Infof("updating metrics server client CA bundle")
server.caBundleCh <- caBundle
}
}
Expand Down Expand Up @@ -171,6 +172,7 @@ func RunServer(port int, ctx context.Context) error {

// Wait for the root certificate bundle of the metrics server for client authentication.
// The bundle is sent from a ConfigMap via a channel by the operator.
klog.Infof("waiting for initial metrics server client CA bundle")
server.caBundle = <-server.caBundleCh
}

Expand Down