Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
helm: add additiona volumes and volumeMounts options
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
  • Loading branch information
galexrt committed Jan 10, 2024
1 parent dd155cf commit 18478fe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/data-control-center/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ The following table lists the configurable parameters of the rook-operator chart
| Parameter | Description | Default |
|-----------|-------------|---------|
| `additionalEnv` | Will be put in a Secret and used as env vars | `{}` |
| `additionalVolumeMounts` | Extra volume mounts to add to the data-control-center deployment | `[]` |
| `additionalVolumes` | Extra volumes to add to the data-control-center deployment | `[]` |
| `affinity` | Pod Affinity options https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#affinity-v1-core | `{}` |
| `config` | data-control-center config, documentation here: https://github.com/koor-tech/data-control-center/blob/main/docs/configuration.md#reference | `{"ancienttCmd":"ancientt","ceph":{"api":{"insecureSSL":true,"password":null,"url":"https://rook-ceph-mgr-dashboard:8443/api","username":"data-control-center"}},"http":{"listen":":8282","sessions":{"cookieSecret":"your_generated_cookie_secret","domain":"localhost"}},"jwt":{"secret":"your_generated_jwt_secret"},"logLevel":"INFO","mode":"release","namespace":"","oauth2":{"providers":[]},"readOnly":false,"updateCheck":{"enabled":true,"interval":"24h"},"users":[]}` |
| `config.ceph.api.password` | Password is auto generated if not set and retrieved using helm's lookup function | `nil` |
Expand Down
6 changes: 6 additions & 0 deletions charts/data-control-center/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,18 @@ spec:
- name: config
mountPath: /config
readOnly: true
{{- with .Values.additionalVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
- name: config
secret:
secretName: {{ include "data-control-center.fullname" . }}-config
{{- with .Values.additionalVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/data-control-center/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,9 @@ config:
enabled: true
interval: 24h
ancienttCmd: "ancientt"

# -- Extra volumes to add to the data-control-center deployment
additionalVolumes: []

# -- Extra volume mounts to add to the data-control-center deployment
additionalVolumeMounts: []

0 comments on commit 18478fe

Please sign in to comment.