From 1d6c44d9d2b427a31daeabfcf2b4e705c292ddea Mon Sep 17 00:00:00 2001 From: Joe Julian Date: Wed, 9 Sep 2020 15:12:58 -0700 Subject: [PATCH] make comment clearer Signed-off-by: Joe Julian --- pkg/lint/rules/deprecations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/lint/rules/deprecations.go b/pkg/lint/rules/deprecations.go index c6ece659e..4095ae915 100644 --- a/pkg/lint/rules/deprecations.go +++ b/pkg/lint/rules/deprecations.go @@ -44,7 +44,7 @@ func (e deprecatedAPIError) Error() string { } func validateNoDeprecations(resource *K8sYamlStruct) error { - // resource is not a resource + // if `resource` does not have an APIVersion or Kind, we cannot test it for deprecation if resource.APIVersion == "" { return nil }