WIP
CLI tool designed to simplify the process of placeholder replacement in text files. It's similar to envsubst in that it is primarily used for injecting environment variables into configuration files.
TODO
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- image: nginx:${NGINX_VERSION}
name: nginx
ports:
- containerPort: ${PORT | default(80)}
restartPolicy: Never
NGINX_VERSION=1.23.4 envsub < manifest.yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- image: nginx:1.23.4
name: nginx
ports:
- containerPort: 80
restartPolicy: Never
Filter | Description |
---|---|
default(value) |
Replaces the input with the default value if the input is empty. |
lowercase |
Transforms the characters in the input to lower case. |
trim |
Removes whitespace from the start and end of the input. |
uppercase |
Transforms the characters in the input to upper case. |
© 2019 Daniel Morris
Made available under the terms of the Apache License 2.0.