Add hash of files and env vars

This commit is contained in:
Nikolai Rodionov 2024-05-21 14:37:58 +02:00
parent a9aceae68b
commit 8958c9e2e0
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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) */ -}}