Skip to content

Commit 5e7cc8a

Browse files
naming consistency checkDriverEnabled helper function
Signed-off-by: Hung Nguyen <hung.nguyen@anchore.com>
1 parent 5ebbe5c commit 5e7cc8a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

stable/enterprise/templates/_helpers.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ secretName: {{ template "enterprise.fullname" . }}-license
309309
{{/*
310310
Takes in a map of drivers and checks if the driver is enabled. If not, update the map to sets the notify flag to true
311311
*/}}
312-
{{- define "checkDriverEnabled" -}}
312+
{{- define "enterprise.checkDriverEnabled" -}}
313313
{{- $drivers := .drivers -}}
314314
{{- $driverName := .driverName -}}
315315
{{- $driver := index $drivers $driverName -}}
@@ -359,19 +359,19 @@ Checks if the feeds chart was previously disabled or if any of the drivers were
359359
{{/* calling function to check if driver is enabled, if driver is disabled, set notify to true if its not already true */}}
360360
{{- if $drivers }}
361361
{{- $context := dict "drivers" $drivers "notify" $notify "driverName" "gem" }}
362-
{{- include "checkDriverEnabled" $context }}
362+
{{- include "enterprise.checkDriverEnabled" $context }}
363363
{{- $notify = $context.notify }}
364364

365365
{{- $context := dict "drivers" $drivers "notify" $notify "driverName" "github" }}
366-
{{- include "checkDriverEnabled" $context }}
366+
{{- include "enterprise.checkDriverEnabled" $context }}
367367
{{- $notify = $context.notify }}
368368

369369
{{- $context := dict "drivers" $drivers "notify" $notify "driverName" "msrc" }}
370-
{{- include "checkDriverEnabled" $context }}
370+
{{- include "enterprise.checkDriverEnabled" $context }}
371371
{{- $notify = $context.notify }}
372372

373373
{{- $context := dict "drivers" $drivers "notify" $notify "driverName" "npm" }}
374-
{{- include "checkDriverEnabled" $context }}
374+
{{- include "enterprise.checkDriverEnabled" $context }}
375375
{{- $notify = $context.notify }}
376376
{{- end -}}
377377
{{- end -}}

0 commit comments

Comments
 (0)