From 8dcef36cef6a8ada7ad900edadb2e8ed20568a58 Mon Sep 17 00:00:00 2001 From: jessicagreben Date: Sun, 27 Jan 2019 09:59:21 -0800 Subject: [PATCH] fix comments --- pkg/validator/deploy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/validator/deploy.go b/pkg/validator/deploy.go index 5338c676..23126b68 100644 --- a/pkg/validator/deploy.go +++ b/pkg/validator/deploy.go @@ -13,7 +13,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/webhook/admission/types" ) -// Validator validates Pods +// Validator validates k8s resources. type Validator struct { client client.Client decoder types.Decoder @@ -38,7 +38,7 @@ func (v *Validator) InjectDecoder(d types.Decoder) error { var _ admission.Handler = &Validator{} -// Handle for DeployValidator admits a deploy if validation passes. +// Handle for Validator to run validation checks. func (v *Validator) Handle(ctx context.Context, req types.Request) types.Response { deploy := appsv1.Deployment{} err := v.decoder.Decode(req, &deploy)