Add hash of files and env vars
This commit is contained in:
parent
a9aceae68b
commit
8958c9e2e0
@ -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
|
||||
|
@ -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) */ -}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user