Filters

You can extend Jinja with custom filters. The filters should be in the narrenschiff.filters module.

narrenschiff.filters.b64enc(value)[source]

Encode a string using base64.

Parameters

value (str) – Text to be encoded

Returns

Encoded text

Return type

str

Use this filter for k8s secrets. Values for secrets need to be encoded before the Secret resource is deployed to k8s.

narrenschiff.filters.rtrim(value)[source]

Strip trailing whitespace.

Parameters

value (str) – Text to be processed

Returns

Text without trailing whitespace

Return type

str

narrenschiff.filters.secretmap(value)[source]

Label path with {{secretmap}}.

Parameters

value (str) – Path

Returns

Labeled path

Return type

str