All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
0.9.0 - 2019-01-16
--freeze
ing ofPodPreset
s.
- List of
--freeze
paths (#12).
0.8.0 - 2018-09-28
# kubetpl:set:KEY=VALUE
directive as a way to provide defaults on "per-template" basis, e.g.echo $' # kubetpl:syntax:$ # kubetpl:set:NAME=nginx # kubetpl:set:REPLICAS=1 apiVersion: apps/v1beta1 kind: Deployment metadata: name: $NAME spec: replicas: $REPLICAS template: metadata: labels: name: $NAME spec: containers: - name: nginx image: nginx:$VERSION ' | kubetpl render - -s VERSION=1.7.9
- (go-template)
{{ if isset "VAR" }}...{{ end }}
to check ifVAR
is set. - (go-template)
{{ get "VAR" "default value" }}
as shorthand for{{ if isset "VAR" }}{{ .VAR }}{{ else }}default value{{ end }}
(e.g.{{ get "REPLICAS" 1 }}
). --ignore-unset
CLI flag (e.g.echo 'kind: $A$B' | kubetpl r - -s A=X --syntax=$ --ignore-unset
printskind: X$B
).
--freeze
ing ofinitContainers[*].env[*].valueFrom.secretKeyRef.name
.
0.7.1 - 2018-07-16
- Difference in
kind: Template
rendering when--syntax=template-kind
/# kubetpl:syntax:template-kind
is specified (from when it's not).
0.7.0 - 2018-07-15
- BREAKING:
kind: Template
renderer to exclude entries that evaluate tonull
(#8).
0.6.0 - 2018-06-02
- CRLF -> LF line separator normalization.
0.5.0 - 2018-04-29
kubetpl/data-from-env-file
extension (#3).
0.4.1 - 2018-04-20
- Tab completion of
args
and-x
.
0.4.0 - 2018-04-20
--freeze
ing of kubesec-managed Secrets.
- Empty doc rendering (empty documents are now excluded from the output regardless of
--syntax
).
0.3.0 - 2018-04-16
-
# kubetpl:syntax:<template flavor, e.g. $, go-template or template-kind>
directive (alleviates the need to specify--syntax=<template flavor>
on the command line). e.g.echo $' # kubetpl:syntax:$ apiVersion: v1 kind: ConfigMap metadata: name: $NAME ' | kubetpl render - -s NAME=example
-
Tab completion (for bash and zsh).
--syntax
hint through file extension (*.kubetpl
for$
,*.kubetpl-go
forgo-template
).-P
,-G
,-T
,-t/--type
CLI flags (use--syntax
or# kubetpl:syntax:<template flavor>
instead).
0.2.0 - 2018-01-15
$$
to represent literal dollar sign ($$v
is interpreted as$v
string and not'$' + <value_of_v>
) ($
template flavor).- Location info (line/column) to error messages
(
$
template flavor).