Skip to content

Commit

Permalink
feat: add init and sidecar containers
Browse files Browse the repository at this point in the history
  • Loading branch information
klauserber authored Oct 4, 2022
1 parent ffa4509 commit ef5ae28
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ maintainers:
- name: Lester Guerzon
email: [email protected]
url: https://github.com/guerzon
version: 0.3.0
version: 0.4.0
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,14 @@ Detailed configuration options can be found in the [Storage Configuration](#stor
| `storage.dataDir` | Specify the data directory | `/data` |


### Extra containers Configuration

| Name | Description | Value |
| ---------------- | --------------------------------------------------------------- | ----- |
| `initContainers` | extra init containers for initializing the vaultwarden instance | `[]` |
| `sidecars` | extra containers running alongside the vaultwarden instance | `[]` |


## Uninstall

To uninstall/delete the `vaultwarden-demo` release:
Expand Down
7 changes: 7 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ spec:
app: vaultwarden
app.kubernetes.io/component: vaultwarden
spec:
initContainers:
{{- if .Values.initContainers }}
{{- toYaml .Values.initContainers | nindent 8 }}
{{- end }}
containers:
- image: {{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand Down Expand Up @@ -60,6 +64,9 @@ spec:
requests:
cpu: 50m
memory: 256Mi
{{- if .Values.sidecars }}
{{- toYaml .Values.sidecars | nindent 8 }}
{{- end }}
{{- if .Values.serviceAccount.create }}
serviceAccountName: {{ .Values.serviceAccount.name }}
{{- end }}
Expand Down
13 changes: 12 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ ingress:
##
nginxIngressAnnotations: true
## @param ingress.additionalAnnotations Additional annotations for the ingress resource.
##
##
additionalAnnotations: {}
## @param ingress.tls Enable TLS on the ingress resource.
##
Expand Down Expand Up @@ -217,3 +217,14 @@ storage:
## @param storage.dataDir Specify the data directory
##
dataDir: "/data"

## @section Extra containers Configuration
##

## @param initContainers extra init containers for initializing the vaultwarden instance
##
initContainers: []

## @param sidecars extra containers running alongside the vaultwarden instance
##
sidecars: []

0 comments on commit ef5ae28

Please sign in to comment.