From 31abd3a9b8185298984e5f565936271fbf1908f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Rodr=C3=ADguez=20Hern=C3=A1ndez?= Date: Mon, 22 Aug 2022 15:11:38 +0200 Subject: [PATCH] [bitnami/mongodb-sharded] Add support for image digest apart from tag (#11913) * [bitnami/mongodb-sharded] Add support for image digest apart from tag Signed-off-by: Carlos Rodriguez Hernandez * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers Signed-off-by: Carlos Rodriguez Hernandez Signed-off-by: Bitnami Containers Co-authored-by: Bitnami Containers --- bitnami/mongodb-sharded/Chart.lock | 6 +- bitnami/mongodb-sharded/Chart.yaml | 4 +- bitnami/mongodb-sharded/README.md | 93 +++++++++++++++-------------- bitnami/mongodb-sharded/values.yaml | 6 ++ 4 files changed, 59 insertions(+), 50 deletions(-) diff --git a/bitnami/mongodb-sharded/Chart.lock b/bitnami/mongodb-sharded/Chart.lock index 16c06fbf8a..47172a8f3d 100644 --- a/bitnami/mongodb-sharded/Chart.lock +++ b/bitnami/mongodb-sharded/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: common repository: https://charts.bitnami.com/bitnami - version: 1.17.1 -digest: sha256:dacc73770a5640c011e067ff8840ddf89631fc19016c8d0a9e5ea160e7da8690 -generated: "2022-08-20T03:29:25.214813506Z" + version: 2.0.0 +digest: sha256:c66468d294c878acfb7cc6c082bc08d7105d139098bd42f88e6fe26903506c8f +generated: "2022-08-20T10:59:34.44262524Z" diff --git a/bitnami/mongodb-sharded/Chart.yaml b/bitnami/mongodb-sharded/Chart.yaml index 0a23110638..f12fca29ec 100644 --- a/bitnami/mongodb-sharded/Chart.yaml +++ b/bitnami/mongodb-sharded/Chart.yaml @@ -7,7 +7,7 @@ dependencies: repository: https://charts.bitnami.com/bitnami tags: - bitnami-common - version: 1.x.x + version: 2.x.x description: MongoDB(R) is an open source NoSQL database that uses JSON for data storage. MongoDB(TM) Sharded improves scalability and reliability for large datasets by distributing data across multiple machines. engine: gotpl home: https://github.com/bitnami/charts/tree/master/bitnami/mongodb-sharded @@ -26,4 +26,4 @@ name: mongodb-sharded sources: - https://github.com/bitnami/containers/tree/main/bitnami/mongodb-sharded - https://mongodb.org -version: 6.0.4 +version: 6.1.0 diff --git a/bitnami/mongodb-sharded/README.md b/bitnami/mongodb-sharded/README.md index 914d1ca8c9..a30cfe211b 100644 --- a/bitnami/mongodb-sharded/README.md +++ b/bitnami/mongodb-sharded/README.md @@ -88,7 +88,8 @@ 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) | `5.0.9-debian-10-r0` | +| `image.tag` | MongoDB(®) Sharded image tag (immutable tags are recommended) | `6.0.1-debian-11-r1` | +| `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 | `[]` | | `image.debug` | Specify if debug logs should be enabled | `false` | @@ -125,7 +126,8 @@ 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 | `10-debian-10-r435` | +| `volumePermissions.image.tag` | Init container volume-permissions image tag | `11-debian-11-r27` | +| `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 | `[]` | | `volumePermissions.resources` | Init container resource requests/limit | `{}` | @@ -471,49 +473,50 @@ The command removes all the Kubernetes components associated with the chart and ### Metrics parameters -| Name | Description | Value | -| --------------------------------------------------------- | ---------------------------------------------------------------------------------- | -------------------------- | -| `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.32.0-debian-10-r28` | -| `metrics.image.pullPolicy` | MongoDB® exporter image pull policy | `Always` | -| `metrics.image.pullSecrets` | MongoDB® exporter image pull secrets | `[]` | -| `metrics.useTLS` | Whether to connect to MongoDB® with TLS | `false` | -| `metrics.extraArgs` | String with extra arguments to the metrics exporter | `""` | -| `metrics.resources` | Metrics exporter resource requests and limits | `{}` | -| `metrics.containerSecurityContext.enabled` | Enabled containers' Security Context | `true` | -| `metrics.containerSecurityContext.runAsUser` | Set containers' Security Context runAsUser | `1001` | -| `metrics.containerSecurityContext.runAsNonRoot` | Set containers' Security Context runAsNonRoot | `true` | -| `metrics.containerSecurityContext.readOnlyRootFilesystem` | Set containers' Security Context runAsNonRoot | `false` | -| `metrics.livenessProbe.enabled` | Enable livenessProbe | `false` | -| `metrics.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `15` | -| `metrics.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `5` | -| `metrics.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `5` | -| `metrics.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `3` | -| `metrics.livenessProbe.successThreshold` | Success threshold for livenessProbe | `1` | -| `metrics.readinessProbe.enabled` | Enable readinessProbe | `false` | -| `metrics.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `5` | -| `metrics.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `5` | -| `metrics.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `1` | -| `metrics.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `3` | -| `metrics.readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` | -| `metrics.startupProbe.enabled` | Enable startupProbe | `false` | -| `metrics.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `0` | -| `metrics.startupProbe.periodSeconds` | Period seconds for startupProbe | `5` | -| `metrics.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `2` | -| `metrics.startupProbe.failureThreshold` | Failure threshold for startupProbe | `15` | -| `metrics.startupProbe.successThreshold` | Success threshold for startupProbe | `1` | -| `metrics.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | -| `metrics.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | -| `metrics.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | -| `metrics.containerPorts.metrics` | Port of the Prometheus metrics container | `9216` | -| `metrics.podAnnotations` | Metrics exporter pod Annotation | `{}` | -| `metrics.podMonitor.enabled` | Create PodMonitor Resource for scraping metrics using PrometheusOperator | `false` | -| `metrics.podMonitor.namespace` | Namespace where podmonitor resource should be created | `monitoring` | -| `metrics.podMonitor.interval` | Specify the interval at which metrics should be scraped | `30s` | -| `metrics.podMonitor.scrapeTimeout` | Specify the timeout after which the scrape is ended | `""` | -| `metrics.podMonitor.additionalLabels` | Additional labels that can be used so PodMonitors will be discovered by Prometheus | `{}` | +| Name | Description | Value | +| --------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -------------------------- | +| `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-r5` | +| `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 | `[]` | +| `metrics.useTLS` | Whether to connect to MongoDB® with TLS | `false` | +| `metrics.extraArgs` | String with extra arguments to the metrics exporter | `""` | +| `metrics.resources` | Metrics exporter resource requests and limits | `{}` | +| `metrics.containerSecurityContext.enabled` | Enabled containers' Security Context | `true` | +| `metrics.containerSecurityContext.runAsUser` | Set containers' Security Context runAsUser | `1001` | +| `metrics.containerSecurityContext.runAsNonRoot` | Set containers' Security Context runAsNonRoot | `true` | +| `metrics.containerSecurityContext.readOnlyRootFilesystem` | Set containers' Security Context runAsNonRoot | `false` | +| `metrics.livenessProbe.enabled` | Enable livenessProbe | `false` | +| `metrics.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `15` | +| `metrics.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `5` | +| `metrics.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `5` | +| `metrics.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `3` | +| `metrics.livenessProbe.successThreshold` | Success threshold for livenessProbe | `1` | +| `metrics.readinessProbe.enabled` | Enable readinessProbe | `false` | +| `metrics.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `5` | +| `metrics.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `5` | +| `metrics.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `1` | +| `metrics.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `3` | +| `metrics.readinessProbe.successThreshold` | Success threshold for readinessProbe | `1` | +| `metrics.startupProbe.enabled` | Enable startupProbe | `false` | +| `metrics.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `0` | +| `metrics.startupProbe.periodSeconds` | Period seconds for startupProbe | `5` | +| `metrics.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `2` | +| `metrics.startupProbe.failureThreshold` | Failure threshold for startupProbe | `15` | +| `metrics.startupProbe.successThreshold` | Success threshold for startupProbe | `1` | +| `metrics.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | +| `metrics.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | +| `metrics.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | +| `metrics.containerPorts.metrics` | Port of the Prometheus metrics container | `9216` | +| `metrics.podAnnotations` | Metrics exporter pod Annotation | `{}` | +| `metrics.podMonitor.enabled` | Create PodMonitor Resource for scraping metrics using PrometheusOperator | `false` | +| `metrics.podMonitor.namespace` | Namespace where podmonitor resource should be created | `monitoring` | +| `metrics.podMonitor.interval` | Specify the interval at which metrics should be scraped | `30s` | +| `metrics.podMonitor.scrapeTimeout` | Specify the timeout after which the scrape is ended | `""` | +| `metrics.podMonitor.additionalLabels` | Additional labels that can be used so PodMonitors will be discovered by Prometheus | `{}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/bitnami/mongodb-sharded/values.yaml b/bitnami/mongodb-sharded/values.yaml index 370dd97a1c..917d3aceca 100644 --- a/bitnami/mongodb-sharded/values.yaml +++ b/bitnami/mongodb-sharded/values.yaml @@ -68,6 +68,7 @@ diagnosticMode: ## @param image.registry MongoDB(®) Sharded image registry ## @param image.repository MongoDB(®) Sharded Image name ## @param image.tag MongoDB(®) Sharded image tag (immutable tags are recommended) +## @param image.digest MongoDB(®) Sharded image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag ## @param image.pullPolicy MongoDB(®) Sharded image pull policy ## @param image.pullSecrets Specify docker-registry secret names as an array ## @param image.debug Specify if debug logs should be enabled @@ -76,6 +77,7 @@ image: registry: docker.io repository: bitnami/mongodb-sharded tag: 6.0.1-debian-11-r1 + digest: "" ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images @@ -236,6 +238,7 @@ volumePermissions: ## @param volumePermissions.image.registry Init container volume-permissions image registry ## @param volumePermissions.image.repository Init container volume-permissions image name ## @param volumePermissions.image.tag Init container volume-permissions image tag + ## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy ## @param volumePermissions.image.pullSecrets Init container volume-permissions image pull secrets ## @@ -243,6 +246,7 @@ volumePermissions: registry: docker.io repository: bitnami/bitnami-shell tag: 11-debian-11-r27 + digest: "" pullPolicy: IfNotPresent ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace. @@ -1531,6 +1535,7 @@ metrics: ## @param metrics.image.registry MongoDB® exporter image registry ## @param metrics.image.repository MongoDB® exporter image name ## @param metrics.image.tag MongoDB® exporter image tag + ## @param metrics.image.digest MongoDB® exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag ## @param metrics.image.pullPolicy MongoDB® exporter image pull policy ## @param metrics.image.pullSecrets MongoDB® exporter image pull secrets ## @@ -1538,6 +1543,7 @@ metrics: registry: docker.io repository: bitnami/mongodb-exporter tag: 0.34.0-debian-11-r5 + digest: "" pullPolicy: Always ## Optionally specify an array of imagePullSecrets. ## Secrets must be manually created in the namespace.