From 0f6252f8900ba4a5e7b5f6fa2e531274df615a31 Mon Sep 17 00:00:00 2001 From: Dominik Pinsel Date: Thu, 25 Jan 2024 13:51:29 +0100 Subject: [PATCH] feat(chart): add extra volume/-mounts Signed-off-by: Dominik Pinsel --- charts/managed-identity-wallet/README.md | 2 ++ charts/managed-identity-wallet/templates/deployment.yaml | 4 ++++ charts/managed-identity-wallet/values.yaml | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/charts/managed-identity-wallet/README.md b/charts/managed-identity-wallet/README.md index 50af01387..768929fcf 100644 --- a/charts/managed-identity-wallet/README.md +++ b/charts/managed-identity-wallet/README.md @@ -90,6 +90,8 @@ See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command document |-----|------|---------|-------------| | affinity | object | `{}` | Affinity configuration | | envs | object | `{}` | envs Parameters for the application (will be provided as environment variables) | +| extraVolumeMounts | list | `[]` | add volume mounts to the miw deployment | +| extraVolumes | list | `[]` | add volumes to the miw deployment | | fullnameOverride | string | `""` | String to fully override common.names.fullname template | | image.pullPolicy | string | `"Always"` | PullPolicy | | image.repository | string | `"tractusx/managed-identity-wallet"` | Image repository | diff --git a/charts/managed-identity-wallet/templates/deployment.yaml b/charts/managed-identity-wallet/templates/deployment.yaml index c30e7543d..801dbf9a7 100644 --- a/charts/managed-identity-wallet/templates/deployment.yaml +++ b/charts/managed-identity-wallet/templates/deployment.yaml @@ -146,6 +146,8 @@ spec: {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + {{- toYaml .Values.extraVolumeMounts | nindent 12 }} {{- with .Values.nodeSelector }} nodeSelector: @@ -159,3 +161,5 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + volumes: + {{- toYaml .Values.extraVolumes | nindent 8 }} diff --git a/charts/managed-identity-wallet/values.yaml b/charts/managed-identity-wallet/values.yaml index 7defbdedf..0b87fe376 100644 --- a/charts/managed-identity-wallet/values.yaml +++ b/charts/managed-identity-wallet/values.yaml @@ -149,6 +149,12 @@ networkPolicy: from: - namespaceSelector: {} +# -- add volumes to the miw deployment +extraVolumes: [] + +# -- add volume mounts to the miw deployment +extraVolumeMounts: [] + ## @section Managed Identity Wallet Primary Parameters ## miw: