feat: imagePullSecrets support (#119)

* feat: imagePullSecrets support

Signed-off-by: Lester Guerzon <guerzon@proton.me>

* chore: venv gitignore

Signed-off-by: Lester Guerzon <guerzon@proton.me>

---------

Signed-off-by: Lester Guerzon <guerzon@proton.me>
This commit is contained in:
Lester Guerzon
2024-09-09 10:50:29 +08:00
committed by GitHub
parent 46c7e41604
commit 8ea4d554be
7 changed files with 15 additions and 8 deletions

3
.gitignore vendored
View File

@@ -3,4 +3,5 @@
.vscode
.DS_Store
testing-values.yaml
readme-generator-for-helm
readme-generator-for-helm
venv

View File

@@ -13,5 +13,5 @@ maintainers:
- name: guerzon
email: guerzon@proton.me
url: https://github.com/guerzon
version: 0.28.0
version: 0.29.0
kubeVersion: ">=1.12.0-0"

View File

@@ -35,9 +35,11 @@ Example that uses the Alpine-based image `1.24.0-alpine` and an existing secret
```yaml
image:
registry: ghcr.io
repository: guerzon/vaultwarden
tag: "1.24.0-alpine"
pullSecrets:
- myRegKey
- name: myRegKey
```
**Important**: specify the URL used by users with the `domain` variable, otherwise, some functionalities might not work:
@@ -318,7 +320,7 @@ helm -n $NAMESPACE uninstall $RELEASE_NAME
| `image.repository` | Vaultwarden image repository | `vaultwarden/server` |
| `image.tag` | Vaultwarden image tag | `1.32.0-alpine` |
| `image.pullPolicy` | Vaultwarden image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Specify docker-registry secret names | `[]` |
| `image.pullSecrets` | Specify docker-registry secrets | `[]` |
| `image.extraSecrets` | Vaultwarden image extra secrets | `[]` |
| `image.extraVars` | Vaultwarden image extra vars | `[]` |
| `fullnameOverride` | String to override the application name. | `""` |

View File

@@ -12,7 +12,7 @@ adminToken:
image:
pullSecrets:
- myRegKey
- name: myRegKey
yubico:
clientId: "ABCDE"

View File

@@ -174,4 +174,8 @@ containers:
{{- if .Values.serviceAccount.create }}
serviceAccountName: {{ .Values.serviceAccount.name }}
{{- end }}
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}

View File

@@ -18,11 +18,11 @@ image:
## ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
pullPolicy: IfNotPresent
## @param image.pullSecrets Specify docker-registry secret names
## @param image.pullSecrets Specify docker-registry secrets
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
## Example:
## pullSecrets:
## - myRegistryKeySecretName
## - name: myRegistryKeySecretName
##
pullSecrets: []
## @param image.extraSecrets Vaultwarden image extra secrets

View File

@@ -15,4 +15,4 @@ adminToken:
image:
pullSecrets:
- myRegKey
- name: myRegKey