@@ -500,12 +500,15 @@ rabbitmq-connectionString:
500500{ { $endpointApplication := include " hull.vidispine.addon.library.get.endpoint.application" (dict " PARENT_CONTEXT" $parent " ENDPOINT" $databaseKey ) } }
501501serviceAccountName: { { $serviceAccountName } }
502502restartPolicy: { { default " Never" (index . " RESTART_POLICY" ) } }
503+ securityContext:
504+ runAsNonRoot: true
505+ runAsUser: 1001
503506initContainers:
504507{ { if $createScriptConfigMap } }
505508 copy-custom-scripts:
506509 image:
507510 repository: { { dig " images" " dbTools" " repository" " vpms/dbtools" $parent .Values.hull.config.specific } }
508- tag: { { (dig " images" " dbTools" " tag" (dig " tags" " dbTools" " 1.9-1 " $parent .Values.hull.config.specific) $parent .Values.hull.config.specific) | toString | quote } }
511+ tag: { { (dig " images" " dbTools" " tag" (dig " tags" " dbTools" " 2.0-noroot " $parent .Values.hull.config.specific) $parent .Values.hull.config.specific) | toString | quote } }
509512 args:
510513 - "/bin/sh"
511514 - "-c"
@@ -520,7 +523,7 @@ initContainers:
520523 set-custom-script-permissions:
521524 image:
522525 repository: { { dig " images" " dbTools" " repository" " vpms/dbtools" $parent .Values.hull.config.specific } }
523- tag: { { (dig " images" " dbTools" " tag" (dig " tags" " dbTools" " 1.9-1 " $parent .Values.hull.config.specific) $parent .Values.hull.config.specific) | toString | quote } }
526+ tag: { { (dig " images" " dbTools" " tag" (dig " tags" " dbTools" " 2.0-noroot " $parent .Values.hull.config.specific) $parent .Values.hull.config.specific) | toString | quote } }
524527 args:
525528 - "/bin/sh"
526529 - "-c"
@@ -533,7 +536,7 @@ initContainers:
533536 check-database-ready:
534537 image:
535538 repository: { { dig " images" " dbTools" " repository" " vpms/dbtools" $parent .Values.hull.config.specific } }
536- tag: { { (dig " images" " dbTools" " tag" (dig " tags" " dbTools" " 1.9-1 " $parent .Values.hull.config.specific) $parent .Values.hull.config.specific) | toString | quote } }
539+ tag: { { (dig " images" " dbTools" " tag" (dig " tags" " dbTools" " 2.0-noroot " $parent .Values.hull.config.specific) $parent .Values.hull.config.specific) | toString | quote } }
537540 env:
538541 DBHOST:
539542 value: { { $databaseHost } }
@@ -603,7 +606,7 @@ containers:
603606{ { end } }
604607 image:
605608 repository: { { dig " images" " dbTools" " repository" " vpms/dbtools" $parent .Values.hull.config.specific } }
606- tag: { { (dig " images" " dbTools" " tag" (dig " tags" " dbTools" " 1.9-1 " $parent .Values.hull.config.specific) $parent .Values.hull.config.specific) | toString | quote } }
609+ tag: { { (dig " images" " dbTools" " tag" (dig " tags" " dbTools" " 2.0-noroot " $parent .Values.hull.config.specific) $parent .Values.hull.config.specific) | toString | quote } }
607610 env:
608611 DBHOST:
609612 value: { { $databaseHost } }
0 commit comments