Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit c2a8fc2

Browse files
committed
Debug
1 parent d795880 commit c2a8fc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/webhook/v1/pod_webhook.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ type PodCustomValidator struct {
7272
var _ webhook.CustomValidator = &PodCustomValidator{}
7373

7474
func (v *PodCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error) {
75+
podlog.Info("Validate Create: %v", obj)
76+
7577
pod, ok := obj.(*corev1.Pod)
7678
if !ok {
7779
return nil, fmt.Errorf("expected a Pod object but got %T", obj)

0 commit comments

Comments
 (0)