Provides an example of how to go from `registry`, `username`, and `password` and store a secret that can be used by a deployment to pull a protected container image.
The above will render the template when .Values.foo is defined, but will fail
The above will render the template when .Values.foo is defined, but will fail
to render and exit when .Values.foo is undefined.
to render and exit when .Values.foo is undefined.
## Creating Image Pull Secrets
Image pull secrets are essentially a combination of _registry_, _username_, and _password_. You may need them in an application you are deploying, but to create them requires running base64 a couple of times. A helper can help you do this. Here is an example:
Presuming that the values are provided in the values.yaml like so