-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the ability to set custom environment variables on the injecto…
…r, connect, and operator containers
- Loading branch information
1 parent
8b065f4
commit 88621ce
Showing
7 changed files
with
151 additions
and
87 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,54 @@ | ||
# 1Password Kubernetes Secrets Injector Helm chart | ||
|
||
## Installation | ||
|
||
Installing the Helm Chart with default configurations will deploy 1Password Kubernetes Secrets Injector in your default Namespace. | ||
|
||
``` | ||
helm install --generate-name 1password/secrets-injector | ||
``` | ||
|
||
## Configuration Values | ||
|
||
The 1Password Kubernetes Secrets Injector Helm chart offers many configuration options for deployment. Please refer to the list below for information on what configuration options are available as well as what the default configuration options are. | ||
|
||
[From the Official Helm Install Guide](https://helm.sh/docs/helm/helm_install/#helm-install): | ||
|
||
>To override values in a chart, use either the '--values' flag and pass in a file or use the '--set' flag and pass configuration from the command line, to force a string value use '--set-string'. In case a value is large and therefore you want not to use neither '--values' nor '--set', use '--set-file' to read the single large value from file. | ||
> To override values in a chart, use either the '--values' flag and pass in a file or use the '--set' flag and pass configuration from the command line, to force a string value use '--set-string'. In case a value is large and therefore you want not to use neither '--values' nor '--set', use '--set-file' to read the single large value from file. | ||
For example: | ||
|
||
For example: | ||
```bash | ||
$ helm install -f myvalues.yaml injector ./secrets-injector | ||
``` | ||
|
||
or | ||
or | ||
|
||
```bash | ||
$ helm install --set injector.applicationName=injector injector ./secrets-injector | ||
``` | ||
|
||
### Values | ||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| injector.applicationName | string | `"secrets-injector"` | The name of 1Password Kubernetes Secrets Injector Application | | ||
| injector.imagePullPolicy | string | `"IfNotPresent"` | The 1Password Secrets Injector docker image policy. `"IfNotPresent"` means the image is pulled only if it is not already present locally. | | ||
| injector.imageRepository | string | `"1password/kubernetes-secrets-injector"` | The 1Password Secrets Injector docker image repository | | ||
| injector.port | string | `443` | The port the Secrets Injector exposes | | ||
| injector.targetPort | integer | `8443` | The port the Secrets Injector API sends requests to the pod | | ||
| injector.version | string | `{{.Chart.AppVersion}}` | The 1Password Secrets Injector version to pull. | | ||
|
||
| Key | Type | Default | Description | | ||
| ------------------------ | ------- | ----------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | ||
| injector.applicationName | string | `"secrets-injector"` | The name of 1Password Kubernetes Secrets Injector Application | | ||
| injector.imagePullPolicy | string | `"IfNotPresent"` | The 1Password Secrets Injector docker image policy. `"IfNotPresent"` means the image is pulled only if it is not already present locally. | | ||
| injector.imageRepository | string | `"1password/kubernetes-secrets-injector"` | The 1Password Secrets Injector docker image repository | | ||
| injector.port | string | `443` | The port the Secrets Injector exposes | | ||
| injector.targetPort | integer | `8443` | The port the Secrets Injector API sends requests to the pod | | ||
| injector.version | string | `{{.Chart.AppVersion}}` | The 1Password Secrets Injector version to pull. | | ||
| injector.customEnvVars | map | `{}` | Custom Environment Variables for the 1Password Secrets Injector container that are not specified in this helm chart. | | ||
|
||
#### Custom Environment Variables | ||
|
||
The injector container supports additional environment variables beyond those explicitly defined in the Helm chart. These can be defined using a key map for each custom variable. An example is shown below: | ||
|
||
```yaml | ||
injector: | ||
customEnvVars: | ||
- name: "CUSTOM_ENV_VAR1" | ||
value: "customvar2" | ||
- name: "CUSTOM_ENV_VAR2" | ||
value: "customvar2" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters