Skip to content

Commit 43e955b

Browse files
committed
Logging
1 parent 532440e commit 43e955b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/webhooks/fsGroupChangePolicySetter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (a *FsGroupChangePolicySetter) Handle(ctx context.Context, req admission.Re
4343
if pod.Spec.SecurityContext != nil && pod.Spec.SecurityContext.FSGroup != nil {
4444
p := v1.FSGroupChangeOnRootMismatch
4545
pod.Spec.SecurityContext.FSGroupChangePolicy = &p
46-
log.V(1).Info("Mutating Pod", "pod", pod)
46+
log.V(1).Info("Mutating Pod securityContext", "pod", pod)
4747
}
4848

4949
//
@@ -76,6 +76,7 @@ func (a *FsGroupChangePolicySetter) Handle(ctx context.Context, req admission.Re
7676

7777
// add our topology spread constraints
7878
pod.Spec.TopologySpreadConstraints = append(pod.Spec.TopologySpreadConstraints, tsc)
79+
log.V(1).Info("Mutating Pod topologySpreadConstraints", "topologySpreadConstraints", pod.Spec.TopologySpreadConstraints)
7980
}
8081

8182
marshaledSts, err := json.Marshal(pod)

0 commit comments

Comments
 (0)