Skip to content

Commit

Permalink
Merge pull request #280 from perryao/fix-mutating-webhook-example
Browse files Browse the repository at this point in the history
🐛 fix interface assertions in example/mutatingwebhook.go such that podA…
  • Loading branch information
k8s-ci-robot committed Jan 9, 2019
2 parents b3d5de2 + a169108 commit b15adb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/mutatingwebhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,19 @@ func (a *podAnnotator) mutatePodsFn(ctx context.Context, pod *corev1.Pod) error
return nil
}

// podValidator implements inject.Client.
// podAnnotator implements inject.Client.
// A client will be automatically injected.
var _ inject.Client = &podValidator{}
var _ inject.Client = &podAnnotator{}

// InjectClient injects the client.
func (v *podAnnotator) InjectClient(c client.Client) error {
v.client = c
return nil
}

// podValidator implements inject.Decoder.
// podAnnotator implements inject.Decoder.
// A decoder will be automatically injected.
var _ inject.Decoder = &podValidator{}
var _ inject.Decoder = &podAnnotator{}

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

0 comments on commit b15adb2

Please sign in to comment.