Helm toolbox providing common chart templates
In your Chart.yaml, just add the following dependencies:
dependencies:
...
- name: common
repository: https://gildas.github.io/charts
version: ~1.0.0
Then enjoy the template definitions in your own templates!
For example, adding the usual names, labels, and selectors to a Deployment:
apiVersion: apps/v1
kind: Deployment
metadata:
name:
labels:
spec:
selector:
matchLabels:
template:
metadata:
...
labels:
spec:
...
serviceAccountName:
containers:
- ...
image:
...
env:
- name: MYVAR
value: "myvalue"
Many template macro will be configuration via the values.yaml file of your chart. When using umbrella charts, some macros will allow global overriding of their configuration. The global provided values will override the local values of each sub-chart.
Here is a list of these macros:
common.names.imageimageRegistry, will contain the registry to pull all images fromcommon.logging.levellogging.level, will set the log of all programs using gildas/go-loggercommon.logging.environmentcommon.logging.flush-frequencylogging.flushFrenquency, will set the flush frequency of all programs using gildas/go-loggercommon.logging.environmentcommon.logging.source-infologging.sourceInfo, will set the file source logging of all programs usung gildas/go-loggercommon.logging.environmentcommon.logging.converterlogging.converter, will set the log converter of all programs usung gildas/go-logger
This macro is used by the general macro common.logging.environment`