containers
containers copied to clipboard
[bitnami/kubectl] Add `envsubst` to kubectl Docker image
Description of the change
This changes adds envsubst
to the kubectl
image.
Benefits
This helps when using using kubernetes manifests that have values that change depending upon the environment situation. It is fairly common to do something like the following:
export SERVER_URL="my-prod-server"
envsubst < my-manifest.yaml | kubectl apply -f -
Possible drawbacks
It increases the image size a bit (I believe about 100K).
Applicable issues
Additional information
This was already done/raised for #34957
Hi @djschny,
Apart from the comment I added here, I will create a new internal task to verify the availability of this package in the rest of the distributions we offer as part of the Tanzu Application Catalog.
In the meantime, we recommend you to extend our base image with your required RUN
action to install the gettext-base
package.
Requested changes made.
@gongomgra is there anything else I need to change to get this moving?
Hi @djschny,
Sorry for the delay. I have been checking this and I have found we are adding the gettext
package instead of gettext-base
in other images like appsmith. Can you please update your PR? I don't have any other suggestion/requirement to this.
Sorry @djschny, I have just noticed your changes are for an old version of the Dockerfiles based on debian-11, but we have recently updated the base image to debian-12. I have added the gettext
package for the next image revision, so I'm closing this PR. Sorry for the inconveniences.
New images have been released including the gettext
system package
https://github.com/bitnami/containers/tree/main/bitnami/kubectl/1.27/debian-12