You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 10, 2026. It is now read-only.
The base case im trying to solve with this is to allow a mustache template pull the resorceVersion from a cm/secret's metadata so that we can restart a deployment when it changes.
instead of key which we use to know where in the cm/secret .data section to pull from, if a user specifies path we should know to look outside the data section and pull whatever they tell us to.
Some users might want to grab whole json objects or boolean values. In this case we probably need a way to convert them into a string, so a new string type should be added to do the .toString() to the value if needed.
ex:
env:
- name: rv # name of the key the fetched data will be assigned to
valueFrom:
configMapKeyRef:
path: metadata.resourceVersion # path to key within configmap
name: cluster-info # configmap name
namespace: kube-system # configmap namespace
type: string # tells fetchEnvs to stringify the fetched key if its not already
The base case im trying to solve with this is to allow a mustache template pull the resorceVersion from a cm/secret's metadata so that we can restart a deployment when it changes.
instead of
keywhich we use to know where in the cm/secret.datasection to pull from, if a user specifiespathwe should know to look outside the data section and pull whatever they tell us to.Some users might want to grab whole json objects or boolean values. In this case we probably need a way to convert them into a string, so a new string
typeshould be added to do the.toString()to the value if needed.ex: