mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[bitnami/mongodb-sharded] Evaluate *.persistence.subPath as a template (#13584)
* [bitnami/mongodb-sharded] Evaluate *.persistence.subPath as a template Signed-off-by: Carlos Fernandez <carlos.fernandez@xeridia.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * [bitnami/mongodb-sharded] Fix configsvr context .Values Signed-off-by: carlos.fernandez <carlos.fernandez@xeridia.com> * [bitnami/mongodb-sharded] Bump minor version Signed-off-by: carlos.fernandez <carlos.fernandez@xeridia.com> Signed-off-by: Carlos Fernandez <carlos.fernandez@xeridia.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Signed-off-by: carlos.fernandez <carlos.fernandez@xeridia.com> Signed-off-by: Carlos Fernández San Juan <cferns08@estudiantes.unileon.es> Co-authored-by: Carlos Fernandez <carlos.fernandez@xeridia.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
committed by
GitHub
parent
ff99dbadd4
commit
d6610ae391
@@ -26,4 +26,4 @@ name: mongodb-sharded
|
||||
sources:
|
||||
- https://github.com/bitnami/containers/tree/main/bitnami/mongodb-sharded
|
||||
- https://mongodb.org
|
||||
version: 6.1.14
|
||||
version: 6.2.0
|
||||
|
||||
@@ -88,7 +88,7 @@ The command removes all the Kubernetes components associated with the chart and
|
||||
| ---------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- |
|
||||
| `image.registry` | MongoDB(®) Sharded image registry | `docker.io` |
|
||||
| `image.repository` | MongoDB(®) Sharded Image name | `bitnami/mongodb-sharded` |
|
||||
| `image.tag` | MongoDB(®) Sharded image tag (immutable tags are recommended) | `6.0.2-debian-11-r10` |
|
||||
| `image.tag` | MongoDB(®) Sharded image tag (immutable tags are recommended) | `6.0.3-debian-11-r0` |
|
||||
| `image.digest` | MongoDB(®) Sharded image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
|
||||
| `image.pullPolicy` | MongoDB(®) Sharded image pull policy | `IfNotPresent` |
|
||||
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` |
|
||||
@@ -126,7 +126,7 @@ The command removes all the Kubernetes components associated with the chart and
|
||||
| `volumePermissions.enabled` | Enable init container that changes volume permissions in the data directory (for cases where the default k8s `runAsUser` and `fsUser` values do not work) | `false` |
|
||||
| `volumePermissions.image.registry` | Init container volume-permissions image registry | `docker.io` |
|
||||
| `volumePermissions.image.repository` | Init container volume-permissions image name | `bitnami/bitnami-shell` |
|
||||
| `volumePermissions.image.tag` | Init container volume-permissions image tag | `11-debian-11-r46` |
|
||||
| `volumePermissions.image.tag` | Init container volume-permissions image tag | `11-debian-11-r52` |
|
||||
| `volumePermissions.image.digest` | Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
|
||||
| `volumePermissions.image.pullPolicy` | Init container volume-permissions image pull policy | `IfNotPresent` |
|
||||
| `volumePermissions.image.pullSecrets` | Init container volume-permissions image pull secrets | `[]` |
|
||||
@@ -183,7 +183,7 @@ The command removes all the Kubernetes components associated with the chart and
|
||||
| `configsvr.pdb.maxUnavailable` | Maximum number of unavailable config pods allowed (`0` to disable) | `1` |
|
||||
| `configsvr.persistence.enabled` | Use a PVC to persist data | `true` |
|
||||
| `configsvr.persistence.mountPath` | Path to mount the volume at | `/bitnami/mongodb` |
|
||||
| `configsvr.persistence.subPath` | Subdirectory of the volume to mount at | `""` |
|
||||
| `configsvr.persistence.subPath` | Subdirectory of the volume to mount at (evaluated as a template) | `""` |
|
||||
| `configsvr.persistence.storageClass` | Storage class of backing PVC | `""` |
|
||||
| `configsvr.persistence.accessModes` | Use volume as ReadOnly or ReadWrite | `["ReadWriteOnce"]` |
|
||||
| `configsvr.persistence.size` | PersistentVolumeClaim size | `8Gi` |
|
||||
@@ -394,7 +394,7 @@ The command removes all the Kubernetes components associated with the chart and
|
||||
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------- |
|
||||
| `shardsvr.persistence.enabled` | Use a PVC to persist data | `true` |
|
||||
| `shardsvr.persistence.mountPath` | The path the volume will be mounted at, useful when using different MongoDB® images. | `/bitnami/mongodb` |
|
||||
| `shardsvr.persistence.subPath` | Subdirectory of the volume to mount at | `""` |
|
||||
| `shardsvr.persistence.subPath` | Subdirectory of the volume to mount at (evaluated as a template) | `""` |
|
||||
| `shardsvr.persistence.storageClass` | Storage class of backing PVC | `""` |
|
||||
| `shardsvr.persistence.accessModes` | Use volume as ReadOnly or ReadWrite | `["ReadWriteOnce"]` |
|
||||
| `shardsvr.persistence.size` | PersistentVolumeClaim size | `8Gi` |
|
||||
@@ -478,7 +478,7 @@ The command removes all the Kubernetes components associated with the chart and
|
||||
| `metrics.enabled` | Start a side-car prometheus exporter | `false` |
|
||||
| `metrics.image.registry` | MongoDB® exporter image registry | `docker.io` |
|
||||
| `metrics.image.repository` | MongoDB® exporter image name | `bitnami/mongodb-exporter` |
|
||||
| `metrics.image.tag` | MongoDB® exporter image tag | `0.34.0-debian-11-r30` |
|
||||
| `metrics.image.tag` | MongoDB® exporter image tag | `0.35.0-debian-11-r4` |
|
||||
| `metrics.image.digest` | MongoDB® exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | `""` |
|
||||
| `metrics.image.pullPolicy` | MongoDB® exporter image pull policy | `Always` |
|
||||
| `metrics.image.pullSecrets` | MongoDB® exporter image pull secrets | `[]` |
|
||||
|
||||
@@ -87,8 +87,8 @@ spec:
|
||||
args:
|
||||
- -ec
|
||||
- |
|
||||
mkdir -p {{ .Values.configsvr.persistence.mountPath }}{{- if .Values.configsvr.persistence.subPath }}/{{ .Values.configsvr.persistence.subPath }}{{- end }}
|
||||
chown {{ .Values.configsvr.containerSecurityContext.runAsUser }}:{{ .Values.configsvr.podSecurityContext.fsGroup }} {{ .Values.configsvr.persistence.mountPath }}{{- if .Values.configsvr.persistence.subPath }}/{{ .Values.configsvr.persistence.subPath }}{{- end }}
|
||||
mkdir -p {{ .Values.configsvr.persistence.mountPath }}{{- if .Values.configsvr.persistence.subPath }}/{{ include "common.tplvalues.render" (dict "value" .Values.configsvr.persistence.subPath "context" $) }}{{- end }}
|
||||
chown {{ .Values.configsvr.containerSecurityContext.runAsUser }}:{{ .Values.configsvr.podSecurityContext.fsGroup }} {{ .Values.configsvr.persistence.mountPath }}{{- if .Values.configsvr.persistence.subPath }}/{{ include "common.tplvalues.render" (dict "value" .Values.configsvr.persistence.subPath "context" $) }}{{- end }}
|
||||
find {{ .Values.configsvr.persistence.mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs -r chown -R {{ .Values.configsvr.containerSecurityContext.runAsUser }}:{{ .Values.configsvr.podSecurityContext.fsGroup }}
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
@@ -97,7 +97,7 @@ spec:
|
||||
- name: datadir
|
||||
mountPath: {{ .Values.configsvr.persistence.mountPath }}
|
||||
{{- if .Values.configsvr.persistence.subPath }}
|
||||
subPath: {{ .Values.configsvr.persistence.subPath }}
|
||||
subPath: {{ include "common.tplvalues.render" (dict "value" .Values.configsvr.persistence.subPath "context" $) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.configsvr.initContainers }}
|
||||
@@ -255,7 +255,7 @@ spec:
|
||||
- name: datadir
|
||||
mountPath: {{ .Values.configsvr.persistence.mountPath }}
|
||||
{{- if .Values.configsvr.persistence.subPath }}
|
||||
subPath: {{ .Values.configsvr.persistence.subPath }}
|
||||
subPath: {{ include "common.tplvalues.render" (dict "value" .Values.configsvr.persistence.subPath "context" $) }}
|
||||
{{- end }}
|
||||
{{- if or .Values.configsvr.config .Values.configsvr.configCM }}
|
||||
- name: config
|
||||
|
||||
@@ -90,8 +90,8 @@ spec:
|
||||
args:
|
||||
- -ec
|
||||
- |
|
||||
mkdir -p {{ $.Values.shardsvr.persistence.mountPath }}{{- if $.Values.shardsvr.persistence.subPath }}/{{ $.Values.shardsvr.persistence.subPath }}{{- end }}
|
||||
chown {{ $.Values.shardsvr.dataNode.containerSecurityContext.runAsUser }}:{{ $.Values.shardsvr.dataNode.podSecurityContext.fsGroup }} {{ $.Values.shardsvr.persistence.mountPath }}{{- if $.Values.shardsvr.persistence.subPath }}/{{ $.Values.shardsvr.persistence.subPath }}{{- end }}
|
||||
mkdir -p {{ $.Values.shardsvr.persistence.mountPath }}{{- if $.Values.shardsvr.persistence.subPath }}/{{ include "common.tplvalues.render" (dict "value" $.Values.shardsvr.persistence.subPath "context" $) }}{{- end }}
|
||||
chown {{ $.Values.shardsvr.dataNode.containerSecurityContext.runAsUser }}:{{ $.Values.shardsvr.dataNode.podSecurityContext.fsGroup }} {{ $.Values.shardsvr.persistence.mountPath }}{{- if $.Values.shardsvr.persistence.subPath }}/{{ include "common.tplvalues.render" (dict "value" $.Values.shardsvr.persistence.subPath "context" $) }}{{- end }}
|
||||
find {{ $.Values.shardsvr.persistence.mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs -r chown -R {{ $.Values.shardsvr.dataNode.containerSecurityContext.runAsUser }}:{{ $.Values.shardsvr.dataNode.podSecurityContext.fsGroup }}
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
@@ -100,7 +100,7 @@ spec:
|
||||
- name: datadir
|
||||
mountPath: {{ $.Values.shardsvr.persistence.mountPath }}
|
||||
{{- if $.Values.shardsvr.persistence.subPath }}
|
||||
subPath: {{ $.Values.shardsvr.persistence.subPath }}
|
||||
subPath: {{ include "common.tplvalues.render" (dict "value" $.Values.shardsvr.persistence.subPath "context" $) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with $.Values.shardsvr.dataNode.initContainers }}
|
||||
@@ -262,7 +262,7 @@ spec:
|
||||
- name: datadir
|
||||
mountPath: {{ $.Values.shardsvr.persistence.mountPath }}
|
||||
{{- if $.Values.shardsvr.persistence.subPath }}
|
||||
subPath: {{ $.Values.shardsvr.persistence.subPath }}
|
||||
subPath: {{ include "common.tplvalues.render" (dict "value" $.Values.shardsvr.persistence.subPath "context" $) }}
|
||||
{{- end }}
|
||||
{{- if or $.Values.shardsvr.dataNode.config $.Values.shardsvr.dataNode.configCM }}
|
||||
- name: config
|
||||
|
||||
@@ -481,7 +481,7 @@ configsvr:
|
||||
## MongoDB® images.
|
||||
##
|
||||
mountPath: /bitnami/mongodb
|
||||
## @param configsvr.persistence.subPath Subdirectory of the volume to mount at
|
||||
## @param configsvr.persistence.subPath Subdirectory of the volume to mount at (evaluated as a template)
|
||||
## Useful in dev environments and one PV for multiple services.
|
||||
##
|
||||
subPath: ""
|
||||
@@ -1246,7 +1246,7 @@ shardsvr:
|
||||
## @param shardsvr.persistence.mountPath The path the volume will be mounted at, useful when using different MongoDB® images.
|
||||
##
|
||||
mountPath: /bitnami/mongodb
|
||||
## @param shardsvr.persistence.subPath Subdirectory of the volume to mount at
|
||||
## @param shardsvr.persistence.subPath Subdirectory of the volume to mount at (evaluated as a template)
|
||||
## Useful in development environments and one PV for multiple services.
|
||||
##
|
||||
subPath: ""
|
||||
|
||||
Reference in New Issue
Block a user