Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaGreben committed Jan 27, 2019
1 parent 198277a commit e8ba064
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/validator/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ type DeployValidator struct {
Config conf.Configuration
}

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

// InjectClient injects the client.
Expand All @@ -29,8 +27,6 @@ func (v *DeployValidator) InjectClient(c client.Client) error {
return nil
}

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

// InjectDecoder injects the decoder.
Expand All @@ -39,10 +35,9 @@ func (v *DeployValidator) InjectDecoder(d types.Decoder) error {
return nil
}

// Implement admission.Handler so the controller can handle admission request.
var _ admission.Handler = &DeployValidator{}

// Handle for DeployValidator admits a pod if validation passes.
// Handle for DeployValidator admits a deploy if validation passes.
func (v *DeployValidator) Handle(ctx context.Context, req types.Request) types.Response {
deploy := appsv1.Deployment{}

Expand Down

0 comments on commit e8ba064

Please sign in to comment.