Skip to content

Commit

Permalink
Fix Typo in builder method names (#1798)
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <fj@move-elevator.de>
  • Loading branch information
Frank Jogeleit committed Apr 13, 2021
1 parent 8050c4e commit 0e3e42e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/policyreport/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit 0e3e42e

Please sign in to comment.