Skip to content

Commit 600e016

Browse files
committed
add debug
1 parent 601e57d commit 600e016

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

internal/actions/csr/csr.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,12 @@ func processCSRKubeletSignerEvent(ctx context.Context, c chan<- *Certificate, cs
364364
if cert == nil {
365365
return nil
366366
}
367+
fmt.Printf("csr: cert name %v approved: %v isCast: %v, bootstrap: %v, system:%v, outdated:%v",
368+
cert.Name, cert.Approved(), cert.ForCASTAINode(), cert.NodeBootstrap(), cert.SystemNode(), cert.Outdated())
367369

368370
if cert.Approved() || !cert.ForCASTAINode() || (!cert.NodeBootstrap() && !cert.SystemNode()) || cert.Outdated() {
371+
fmt.Printf("cert skipped name %v approved: %v isCast: %v, bootstrap: %v, system:%v, outdated:%v",
372+
cert.Name, cert.Approved(), cert.ForCASTAINode(), cert.NodeBootstrap(), cert.SystemNode(), cert.Outdated())
369373
return nil
370374
}
371375

internal/actions/csr/svc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (h *ApprovalManager) Start(ctx context.Context) error {
5757
return fmt.Errorf("while creating informer for %v: %w", certv1beta1.KubeletServingSignerName, err)
5858
}
5959

60-
c := make(chan *Certificate, 1)
60+
c := make(chan *Certificate, 100)
6161

6262
handlerFuncs := cache.ResourceEventHandlerFuncs{
6363
AddFunc: func(obj interface{}) {

0 commit comments

Comments
 (0)