Prepare immutable tags

This commit is contained in:
Carlos Rodriguez Hernandez
2019-05-28 11:06:49 +00:00
parent 04bf2cbbe1
commit f9093c1aaa
71 changed files with 328 additions and 63 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: airflow
version: 0.1.0
version: 0.1.1
appVersion: 1.10.3
description: Apache Airflow is a platform to programmatically author, schedule and monitor workflows.
keywords:

View File

@@ -51,25 +51,25 @@ The following tables lists the configurable parameters of the Kafka chart and th
| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `image.registry` | Airflow image registry | `docker.io` |
| `image.repository` | Airflow image name | `bitnami/airflow` |
| `image.tag` | Airflow image tag | `{VERSION}` |
| `image.tag` | Airflow image tag | `{TAG_NAME}` |
| `image.pullPolicy` | Airflow image pull policy | `Always` |
| `image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `image.debug` | Specify if debug values should be set | `false` |
| `schedulerImage.registry` | Airflow Scheduler image registry | `docker.io` |
| `schedulerImage.repository` | Airflow Scheduler image name | `bitnami/airflow-shceduler` |
| `schedulerImage.tag` | Airflow Scheduler image tag | `{VERSION}` |
| `schedulerImage.tag` | Airflow Scheduler image tag | `{TAG_NAME}` |
| `schedulerImage.pullPolicy` | Airflow Scheduler image pull policy | `Always` |
| `schedulerImage.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `schedulerImage.debug` | Specify if debug values should be set | `false` |
| `workerImage.registry` | Airflow Worker image registry | `docker.io` |
| `workerImage.repository` | Airflow Worker image name | `bitnami/airflow-worker` |
| `workerImage.tag` | Airflow Worker image tag | `{VERSION}` |
| `workerImage.tag` | Airflow Worker image tag | `{TAG_NAME}` |
| `workerImage.pullPolicy` | Airflow Worker image pull policy | `Always` |
| `workerImage.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `workerImage.debug` | Specify if debug values should be set | `false` |
| `git.registry` | Git image registry | `docker.io` |
| `git.repository` | Git image name | `bitnami/git` |
| `git.tag` | Git image tag | `{VERSION}` |
| `git.tag` | Git image tag | `{TAG_NAME}` |
| `git.pullPolicy` | Git image pull policy | `Always` |
| `git.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
| `updateStrategy` | Update strategy for the stateful set | `RollingUpdate` |
@@ -165,6 +165,12 @@ $ helm install --name my-release -f values.yaml bitnami/airflow
> **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 Airflow chart relies on the PostgreSQL chart persistence. This means that Airflow does not persist anything.

View File

@@ -78,3 +78,10 @@ host. To configure Airflow with the URL of your service:
{{- end }}
{{ include "airflow.validateValues" . }}
{{- if and (contains bitnami/ .Values.image.repository) (not (regexMatch -r\d+$ .Values.image.tag)) }}
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 }}

View File

@@ -37,7 +37,7 @@ image:
schedulerImage:
registry: docker.io
repository: bitnami/airflow-scheduler
tag: 1.10.3
tag: 1.10.3-debian-9-r26
## 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
@@ -61,7 +61,7 @@ schedulerImage:
workerImage:
registry: docker.io
repository: bitnami/airflow-worker
tag: 1.10.3
tag: 1.10.3-debian-9-r25
## 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
@@ -85,7 +85,7 @@ workerImage:
git:
registry: docker.io
repository: bitnami/git
tag: latest
tag: 2.21.0-debian-9-r72
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.

View File

@@ -37,7 +37,7 @@ image:
schedulerImage:
registry: docker.io
repository: bitnami/airflow-scheduler
tag: 1.10.3
tag: 1.10.3-debian-9-r26
## 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
@@ -61,7 +61,7 @@ schedulerImage:
workerImage:
registry: docker.io
repository: bitnami/airflow-worker
tag: 1.10.3
tag: 1.10.3-debian-9-r25
## 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
@@ -85,7 +85,7 @@ workerImage:
git:
registry: docker.io
repository: bitnami/git
tag: latest
tag: 2.21.0-debian-9-r72
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.