Skip to content

Commit

Permalink
show the certs
Browse files Browse the repository at this point in the history
  • Loading branch information
skonto committed Jan 15, 2025
1 parent 7263661 commit 53565af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/queue/certificate/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func (cw *CertWatcher) Stop() {
func (cw *CertWatcher) GetCertificate(_ *tls.ClientHelloInfo) (*tls.Certificate, error) {
cw.mux.RLock()
defer cw.mux.RUnlock()
cw.logger.Debugf("Presenting cert: %v", cw.certificate)
return cw.certificate, nil
}

Expand Down Expand Up @@ -132,6 +133,7 @@ func (cw *CertWatcher) loadCert() error {
cw.certChecksum = certChecksum
cw.keyChecksum = keyChecksum

cw.logger.Debugf("Loading cert: %v", cw.certificate)
cw.logger.Info(CertReloadMessage)
}

Expand Down
6 changes: 6 additions & 0 deletions test/conformance/runtime/readiness_probe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ func TestProbeRuntime(t *testing.T) {
}
}
}
s, err := clients.KubeClient.CoreV1().Secrets(resources.Service.Namespace).Get(context.Background(), "serving-certs", metav1.GetOptions{})

if err == nil {
t.Logf("Secret serving-certs: %v", s.Data)
}

if _, err = pkgtest.CheckEndpointState(
context.Background(),
clients.KubeClient,
Expand Down

0 comments on commit 53565af

Please sign in to comment.