From 5b32c7d446caa6d2c2fd97e177ad4f48f9dc728a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Rodr=C3=ADguez=20Hern=C3=A1ndez?= Date: Wed, 29 May 2019 08:44:20 +0200 Subject: [PATCH] [stable/joomla] Use immutable tags (#14213) * Bump chart version Signed-off-by: Carlos Rodriguez Hernandez * [stable/joomla] Use immutable tags Signed-off-by: Carlos Rodriguez Hernandez --- stable/joomla/Chart.yaml | 2 +- stable/joomla/README.md | 8 +++++++- stable/joomla/templates/NOTES.txt | 7 +++++++ stable/joomla/values.yaml | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/stable/joomla/Chart.yaml b/stable/joomla/Chart.yaml index 6f3b1d5220..bd9acfe877 100644 --- a/stable/joomla/Chart.yaml +++ b/stable/joomla/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: joomla -version: 4.2.2 +version: 4.2.3 appVersion: 3.9.6 description: PHP content management system (CMS) for publishing web content keywords: diff --git a/stable/joomla/README.md b/stable/joomla/README.md index 397a81148c..32ea081795 100644 --- a/stable/joomla/README.md +++ b/stable/joomla/README.md @@ -53,7 +53,7 @@ The following table lists the configurable parameters of the Joomla! chart and t | `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) | | `image.registry` | Joomla! image registry | `docker.io` | | `image.repository` | Joomla! Image name | `bitnami/joomla` | -| `image.tag` | Joomla! Image tag | `{VERSION}` | +| `image.tag` | Joomla! Image tag | `{TAG_NAME}` | | `image.pullPolicy` | Image pull policy | `Always` | | `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) | | `joomlaUsername` | User of the application | `user` | @@ -147,6 +147,12 @@ $ helm install --name my-release -f values.yaml stable/joomla > **Tip**: You can use the default [values.yaml](values.yaml) +### [Rolling VS Immutable tags](https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/) + +It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image. + +Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist. + ## Persistence The [Bitnami Joomla!](https://github.com/bitnami/bitnami-docker-joomla) image stores the Joomla! data and configurations at the `/bitnami/joomla` and `/bitnami/apache` paths of the container. diff --git a/stable/joomla/templates/NOTES.txt b/stable/joomla/templates/NOTES.txt index fe3caeba4b..b5937e1d3d 100644 --- a/stable/joomla/templates/NOTES.txt +++ b/stable/joomla/templates/NOTES.txt @@ -59,3 +59,10 @@ host. To configure Joomla! to use and external database host: helm upgrade {{ .Release.Name }} --set service.type={{ .Values.service.type }},mariadb.enabled=false,externalDatabase.host=YOUR_EXTERNAL_DATABASE_HOST stable/joomla {{- end }} + +{{- if and (contains "bitnami/" .Values.image.repository) (not (.Values.image.tag | regexFind "-r\\d+$")) }} + +WARNING: Rolling tag detected ({{ .Values.image.repository }}:{{ .Values.image.tag }}), please note that it is strongly recommended to avoid using rolling tags in a production environment. ++info https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/ + +{{- end }} diff --git a/stable/joomla/values.yaml b/stable/joomla/values.yaml index df8a226f97..cd0846021d 100644 --- a/stable/joomla/values.yaml +++ b/stable/joomla/values.yaml @@ -13,7 +13,7 @@ image: registry: docker.io repository: bitnami/joomla - tag: 3.9.6 + tag: 3.9.6-debian-9-r9 ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images