1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-18 02:06:52 +00:00

Fix Typo in builder method names ()

Signed-off-by: Frank Jogeleit <fj@move-elevator.de>
This commit is contained in:
Frank Jogeleit 2021-04-14 01:41:07 +02:00 committed by GitHub
parent 8050c4e77b
commit 0e3e42ea33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,7 +132,7 @@ func (builder *requestBuilder) build(info Info) (req *unstructured.Unstructured,
}
func (builder *requestBuilder) buildRCRResult(policy string, resource response.ResourceSpec, rule kyverno.ViolatedRule) *report.PolicyReportResult {
av := builder.fetchAnnoationValues(policy, resource.Namespace)
av := builder.fetchAnnotationValues(policy, resource.Namespace)
result := &report.PolicyReportResult{
Policy: policy,
@ -275,9 +275,9 @@ func (av *annotationValues) setSeverityFromString(severity string) {
}
}
func (builder *requestBuilder) fetchAnnoationValues(policy, ns string) annotationValues {
func (builder *requestBuilder) fetchAnnotationValues(policy, ns string) annotationValues {
av := annotationValues{}
ann := builder.fetchAnnoations(policy, ns)
ann := builder.fetchAnnotations(policy, ns)
if category, ok := ann[categoryLabel]; ok {
av.category = category
@ -289,7 +289,7 @@ func (builder *requestBuilder) fetchAnnoationValues(policy, ns string) annotatio
return av
}
func (builder *requestBuilder) fetchAnnoations(policy, ns string) map[string]string {
func (builder *requestBuilder) fetchAnnotations(policy, ns string) map[string]string {
cpol, err := builder.cpolLister.Get(policy)
if err == nil {
if ann := cpol.GetAnnotations(); ann != nil {