yq/pkg/yqlib/doc/operators/headers/envsubst.md

336 B

Envsubst

This operator is used to replace environment variables in strings using envsubst.

To replace environment variables across all values in a document, this can be used with the recursive descent operator as follows:

yq eval '(.. | select(tag == "!!str")) |= envsubst' file.yaml