diff --git a/bitnami/airflow/CHANGELOG.md b/bitnami/airflow/CHANGELOG.md index 5ac9a591c2946a..0fb617d30b5af3 100644 --- a/bitnami/airflow/CHANGELOG.md +++ b/bitnami/airflow/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog -## 23.0.1 (2025-04-29) +## 23.0.2 (2025-05-01) -* [bitnami/airflow] Release 23.0.1 ([#33254](https://github.com/bitnami/charts/pull/33254)) +* [bitnami/airflow] Minor performance improvements ([#33276](https://github.com/bitnami/charts/pull/33276)) + +## 23.0.1 (2025-04-29) + +* [bitnami/airflow] Release 23.0.1 (#33254) ([704baf2](https://github.com/bitnami/charts/commit/704baf2653410238a5a1365afc39aa374b375ad1)), closes [#33254](https://github.com/bitnami/charts/issues/33254) ## 23.0.0 (2025-04-29) diff --git a/bitnami/airflow/Chart.yaml b/bitnami/airflow/Chart.yaml index 5089bad475b53c..ec372047447f8d 100644 --- a/bitnami/airflow/Chart.yaml +++ b/bitnami/airflow/Chart.yaml @@ -40,4 +40,4 @@ maintainers: name: airflow sources: - https://github.com/bitnami/charts/tree/main/bitnami/airflow -version: 23.0.1 +version: 23.0.2 diff --git a/bitnami/airflow/README.md b/bitnami/airflow/README.md index 34fe53fa7cd63a..db452685eb1859 100644 --- a/bitnami/airflow/README.md +++ b/bitnami/airflow/README.md @@ -1027,41 +1027,41 @@ The Bitnami Airflow chart relies on the PostgreSQL chart persistence. This means ### Airflow "setup-db" K8s Job parameters -| Name | Description | Value | -| -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | -| `setupDBJob.enabled` | Enable setting up the Airflow database using a K8s job (otherwise it's done by the Webserver on startup) | `true` | -| `setupDBJob.backoffLimit` | set backoff limit of the job | `10` | -| `setupDBJob.command` | Override default container command on "setup-db" job's containers | `[]` | -| `setupDBJob.args` | Override default container args on "setup-db" job's containers | `[]` | -| `setupDBJob.containerSecurityContext.enabled` | Enabled "setup-db" job's containers' Security Context | `true` | -| `setupDBJob.containerSecurityContext.seLinuxOptions` | Set SELinux options in "setup-db" job's containers | `{}` | -| `setupDBJob.containerSecurityContext.runAsUser` | Set runAsUser in "setup-db" job's containers' Security Context | `1001` | -| `setupDBJob.containerSecurityContext.runAsGroup` | Set runAsUser in "setup-db" job's containers' Security Context | `1001` | -| `setupDBJob.containerSecurityContext.runAsNonRoot` | Set runAsNonRoot in "setup-db" job's containers' Security Context | `true` | -| `setupDBJob.containerSecurityContext.readOnlyRootFilesystem` | Set readOnlyRootFilesystem in "setup-db" job's containers' Security Context | `true` | -| `setupDBJob.containerSecurityContext.privileged` | Set privileged in "setup-db" job's containers' Security Context | `false` | -| `setupDBJob.containerSecurityContext.allowPrivilegeEscalation` | Set allowPrivilegeEscalation in "setup-db" job's containers' Security Context | `false` | -| `setupDBJob.containerSecurityContext.capabilities.add` | List of capabilities to be added in "setup-db" job's containers | `[]` | -| `setupDBJob.containerSecurityContext.capabilities.drop` | List of capabilities to be dropped in "setup-db" job's containers | `["ALL"]` | -| `setupDBJob.containerSecurityContext.seccompProfile.type` | Set seccomp profile in "setup-db" job's containers | `RuntimeDefault` | -| `setupDBJob.podSecurityContext.enabled` | Enabled "setup-db" job's pods' Security Context | `true` | -| `setupDBJob.podSecurityContext.fsGroupChangePolicy` | Set fsGroupChangePolicy in "setup-db" job's pods' Security Context | `Always` | -| `setupDBJob.podSecurityContext.sysctls` | List of sysctls to allow in "setup-db" job's pods' Security Context | `[]` | -| `setupDBJob.podSecurityContext.supplementalGroups` | List of supplemental groups to add to "setup-db" job's pods' Security Context | `[]` | -| `setupDBJob.podSecurityContext.fsGroup` | Set fsGroup in "setup-db" job's pods' Security Context | `1001` | -| `setupDBJob.extraEnvVars` | Array containing extra env vars to configure the Airflow "setup-db" job's container | `[]` | -| `setupDBJob.extraEnvVarsCM` | ConfigMap containing extra env vars to configure the Airflow "setup-db" job's container | `""` | -| `setupDBJob.extraEnvVarsSecret` | Secret containing extra env vars to configure the Airflow "setup-db" job's container (in case of sensitive data) | `""` | -| `setupDBJob.resourcesPreset` | Set Airflow "setup-db" job's container resources according to one common preset (allowed values: none, nano, small, medium, large, xlarge, 2xlarge). This is ignored if setupDBJob.resources is set (setupDBJob.resources is recommended for production). | `micro` | -| `setupDBJob.resources` | Set Airflow "setup-db" job's container requests and limits for different resources like CPU or memory (essential for production workloads) | `{}` | -| `setupDBJob.automountServiceAccountToken` | Mount Service Account token in Airflow "setup-db" job's pods | `false` | -| `setupDBJob.hostAliases` | Add deployment host aliases | `[]` | -| `setupDBJob.annotations` | Add annotations to the Airflow "setup-db" job | `{}` | -| `setupDBJob.podLabels` | Additional pod labels for Airflow "setup-db" job | `{}` | -| `setupDBJob.podAnnotations` | Additional pod annotations for Airflow "setup-db" job | `{}` | -| `setupDBJob.extraVolumes` | Optionally specify extra list of additional volumes for Airflow "setup-db" job's pods | `[]` | -| `setupDBJob.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the Airflow "setup-db" job's containers | `[]` | -| `setupDBJob.initContainers` | Add additional init containers to the Airflow "setup-db" job's pods | `[]` | +| Name | Description | Value | +| -------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------- | +| `setupDBJob.enabled` | Enable setting up the Airflow database using a K8s job (otherwise it's done by the Webserver on startup) | `true` | +| `setupDBJob.backoffLimit` | set backoff limit of the job | `10` | +| `setupDBJob.command` | Override default container command on "setup-db" job's containers | `[]` | +| `setupDBJob.args` | Override default container args on "setup-db" job's containers | `[]` | +| `setupDBJob.containerSecurityContext.enabled` | Enabled "setup-db" job's containers' Security Context | `true` | +| `setupDBJob.containerSecurityContext.seLinuxOptions` | Set SELinux options in "setup-db" job's containers | `{}` | +| `setupDBJob.containerSecurityContext.runAsUser` | Set runAsUser in "setup-db" job's containers' Security Context | `1001` | +| `setupDBJob.containerSecurityContext.runAsGroup` | Set runAsUser in "setup-db" job's containers' Security Context | `1001` | +| `setupDBJob.containerSecurityContext.runAsNonRoot` | Set runAsNonRoot in "setup-db" job's containers' Security Context | `true` | +| `setupDBJob.containerSecurityContext.readOnlyRootFilesystem` | Set readOnlyRootFilesystem in "setup-db" job's containers' Security Context | `true` | +| `setupDBJob.containerSecurityContext.privileged` | Set privileged in "setup-db" job's containers' Security Context | `false` | +| `setupDBJob.containerSecurityContext.allowPrivilegeEscalation` | Set allowPrivilegeEscalation in "setup-db" job's containers' Security Context | `false` | +| `setupDBJob.containerSecurityContext.capabilities.add` | List of capabilities to be added in "setup-db" job's containers | `[]` | +| `setupDBJob.containerSecurityContext.capabilities.drop` | List of capabilities to be dropped in "setup-db" job's containers | `["ALL"]` | +| `setupDBJob.containerSecurityContext.seccompProfile.type` | Set seccomp profile in "setup-db" job's containers | `RuntimeDefault` | +| `setupDBJob.podSecurityContext.enabled` | Enabled "setup-db" job's pods' Security Context | `true` | +| `setupDBJob.podSecurityContext.fsGroupChangePolicy` | Set fsGroupChangePolicy in "setup-db" job's pods' Security Context | `Always` | +| `setupDBJob.podSecurityContext.sysctls` | List of sysctls to allow in "setup-db" job's pods' Security Context | `[]` | +| `setupDBJob.podSecurityContext.supplementalGroups` | List of supplemental groups to add to "setup-db" job's pods' Security Context | `[]` | +| `setupDBJob.podSecurityContext.fsGroup` | Set fsGroup in "setup-db" job's pods' Security Context | `1001` | +| `setupDBJob.extraEnvVars` | Array containing extra env vars to configure the Airflow "setup-db" job's container | `[]` | +| `setupDBJob.extraEnvVarsCM` | ConfigMap containing extra env vars to configure the Airflow "setup-db" job's container | `""` | +| `setupDBJob.extraEnvVarsSecret` | Secret containing extra env vars to configure the Airflow "setup-db" job's container (in case of sensitive data) | `""` | +| `setupDBJob.resourcesPreset` | Set Airflow "setup-db" job's container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if setupDBJob.resources is set (setupDBJob.resources is recommended for production). | `small` | +| `setupDBJob.resources` | Set Airflow "setup-db" job's container requests and limits for different resources like CPU or memory (essential for production workloads) | `{}` | +| `setupDBJob.automountServiceAccountToken` | Mount Service Account token in Airflow "setup-db" job's pods | `false` | +| `setupDBJob.hostAliases` | Add deployment host aliases | `[]` | +| `setupDBJob.annotations` | Add annotations to the Airflow "setup-db" job | `{}` | +| `setupDBJob.podLabels` | Additional pod labels for Airflow "setup-db" job | `{}` | +| `setupDBJob.podAnnotations` | Additional pod annotations for Airflow "setup-db" job | `{}` | +| `setupDBJob.extraVolumes` | Optionally specify extra list of additional volumes for Airflow "setup-db" job's pods | `[]` | +| `setupDBJob.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the Airflow "setup-db" job's containers | `[]` | +| `setupDBJob.initContainers` | Add additional init containers to the Airflow "setup-db" job's pods | `[]` | ### Airflow ldap parameters diff --git a/bitnami/airflow/templates/setup-db-job.yaml b/bitnami/airflow/templates/setup-db-job.yaml index e5c576bd98a379..7296bb4ad692d1 100644 --- a/bitnami/airflow/templates/setup-db-job.yaml +++ b/bitnami/airflow/templates/setup-db-job.yaml @@ -78,7 +78,7 @@ spec: airflow_create_admin_user info "Synchronizing internal metadata" - airflow_execute sync-perm + airflow_execute sync-perm --include-dags true else info "Upgrading database schema" diff --git a/bitnami/airflow/templates/web/deployment.yaml b/bitnami/airflow/templates/web/deployment.yaml index 39e3cc41417a68..9050800d196b34 100644 --- a/bitnami/airflow/templates/web/deployment.yaml +++ b/bitnami/airflow/templates/web/deployment.yaml @@ -181,6 +181,16 @@ spec: livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.web.customLivenessProbe "context" $) | nindent 12 }} {{- else if .Values.web.livenessProbe.enabled }} livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.web.livenessProbe "enabled") "context" $) | nindent 12 }} + exec: + command: + - pgrep + - -f + - airflow + {{- end }} + {{- if .Values.web.customReadinessProbe }} + readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.web.customReadinessProbe "context" $) | nindent 12 }} + {{- else if .Values.web.readinessProbe.enabled }} + readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.web.readinessProbe "enabled") "context" $) | nindent 12 }} {{- if contains "127.0.0.1" (include "airflow.baseUrl" .) }} httpGet: {{- if (include "airflow.isImageMajorVersion3" .) }} @@ -195,16 +205,6 @@ spec: port: http {{- end }} {{- end }} - {{- if .Values.web.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.web.customReadinessProbe "context" $) | nindent 12 }} - {{- else if .Values.web.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.web.readinessProbe "enabled") "context" $) | nindent 12 }} - exec: - command: - - pgrep - - -f - - airflow - {{- end }} {{- end }} {{- if .Values.web.lifecycleHooks }} lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.web.lifecycleHooks "context" $) | nindent 12 }} diff --git a/bitnami/airflow/values.yaml b/bitnami/airflow/values.yaml index c94216cd35e381..7c60e5a496fd33 100644 --- a/bitnami/airflow/values.yaml +++ b/bitnami/airflow/values.yaml @@ -2443,10 +2443,10 @@ setupDBJob: extraEnvVarsSecret: "" ## Airflow "setup-db" job's container resource requests and limits ## ref: http://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ - ## @param setupDBJob.resourcesPreset Set Airflow "setup-db" job's container resources according to one common preset (allowed values: none, nano, small, medium, large, xlarge, 2xlarge). This is ignored if setupDBJob.resources is set (setupDBJob.resources is recommended for production). + ## @param setupDBJob.resourcesPreset Set Airflow "setup-db" job's container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if setupDBJob.resources is set (setupDBJob.resources is recommended for production). ## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15 ## - resourcesPreset: "micro" + resourcesPreset: "small" ## @param setupDBJob.resources Set Airflow "setup-db" job's container requests and limits for different resources like CPU or memory (essential for production workloads) ## E.g: ## resources: