From e9d3043b1825d450ca07d325772b69459d9e0fd6 Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" <ardumont@softwareheritage.org> Date: Wed, 19 Mar 2025 15:03:50 +0100 Subject: [PATCH] deployment/provenance: Add startService configuration entry Refs. swh/infra/sysadm-environment#5608 --- swh/templates/provenance/deployment.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/swh/templates/provenance/deployment.yaml b/swh/templates/provenance/deployment.yaml index 74fda8369..322d554f0 100644 --- a/swh/templates/provenance/deployment.yaml +++ b/swh/templates/provenance/deployment.yaml @@ -1,7 +1,9 @@ {{ if .Values.provenance.enabled -}} {{- $configUtilsChecksum := include (print $.Template.BasePath "/utils/config-utils.yaml") . | sha256sum -}} {{ range $provenanceType, $provenanceConfig := .Values.provenance.deployments }} -{{- if or (not (hasKey $provenanceConfig "enabled")) (get $provenanceConfig "enabled") -}} +{{- if and (or (not (hasKey $provenanceConfig "enabled")) (get $provenanceConfig "enabled")) + (or (not (hasKey $provenanceConfig "startService")) (get $provenanceConfig "startService")) -}} + {{- $serviceType := ( print "provenance-" $provenanceType ) -}} {{- $configArgsDict := dict "serviceType" $serviceType "configuration" $provenanceConfig -- GitLab