From 8958c9e2e0bee054f7ff1eeae3bde94d2d910ce2 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Tue, 21 May 2024 14:37:58 +0200 Subject: [PATCH] Add hash of files and env vars --- charts/workload/Chart.yaml | 2 +- charts/workload/templates/deployment/_spec.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/workload/Chart.yaml b/charts/workload/Chart.yaml index d7cfd15..a7f1508 100644 --- a/charts/workload/Chart.yaml +++ b/charts/workload/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: softplayer-lib-workload description: A library to be reused accross softplayer charts type: library -version: 0.1.6 +version: 0.1.7 maintainers: - name: allanger email: allanger@badhouseplants.net diff --git a/charts/workload/templates/deployment/_spec.tpl b/charts/workload/templates/deployment/_spec.tpl index dfd0876..bb5e199 100644 --- a/charts/workload/templates/deployment/_spec.tpl +++ b/charts/workload/templates/deployment/_spec.tpl @@ -4,10 +4,10 @@ {{- define "lib.metadata.hash" -}} {{- /* (define) */ -}} {{- range $k, $v := .Env -}} {{- /* (1) */ -}} -{{ printf "softplayer.net/env/%s" $k }}: {{ $v.data | toString | sha256sum }} +{{ printf "softplayer.net/env-%s" $k }}: {{ $v.data | toString | sha256sum }} {{ end -}} {{/* /(1) */}} {{- range $k, $v := .Files -}} {{- /* (1) */ -}} -{{ printf "softplayer.net/files/%s" $k }}: {{ $v.data | toString | sha256sum }} +{{ printf "softplayer.net/files-%s" $k }}: {{ $v.data | toString | sha256sum }} {{ end }} {{/* /(1) */}} {{- end -}} {{- /* /(define) */ -}}