Skip to content

Commit b15adb2

Browse files
authored
Merge pull request kubernetes-sigs#280 from perryao/fix-mutating-webhook-example
🐛 fix interface assertions in example/mutatingwebhook.go such that podA…
2 parents b3d5de2 + a169108 commit b15adb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

example/mutatingwebhook.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,19 @@ func (a *podAnnotator) mutatePodsFn(ctx context.Context, pod *corev1.Pod) error
6262
return nil
6363
}
6464

65-
// podValidator implements inject.Client.
65+
// podAnnotator implements inject.Client.
6666
// A client will be automatically injected.
67-
var _ inject.Client = &podValidator{}
67+
var _ inject.Client = &podAnnotator{}
6868

6969
// InjectClient injects the client.
7070
func (v *podAnnotator) InjectClient(c client.Client) error {
7171
v.client = c
7272
return nil
7373
}
7474

75-
// podValidator implements inject.Decoder.
75+
// podAnnotator implements inject.Decoder.
7676
// A decoder will be automatically injected.
77-
var _ inject.Decoder = &podValidator{}
77+
var _ inject.Decoder = &podAnnotator{}
7878

7979
// InjectDecoder injects the decoder.
8080
func (v *podAnnotator) InjectDecoder(d types.Decoder) error {

0 commit comments

Comments
 (0)