This is an automated email from the ASF dual-hosted git repository.

jscheffl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new ec8f59fbd4b Add missing deprecation warnings for workers section 
(#63659)
ec8f59fbd4b is described below

commit ec8f59fbd4bdb8d08ba51c419848ab2077160033
Author: Przemysław Mirowski <[email protected]>
AuthorDate: Tue Mar 17 20:16:37 2026 +0100

    Add missing deprecation warnings for workers section (#63659)
    
    * Add missing deprecation warnings
    
    * Add newsfragment
---
 chart/newsfragments/63659.significant.rst |  12 ++
 chart/templates/NOTES.txt                 | 196 ++++++++++++++++++++++++------
 chart/values.schema.json                  |  42 +++----
 chart/values.yaml                         |  81 +++++++++---
 4 files changed, 257 insertions(+), 74 deletions(-)

diff --git a/chart/newsfragments/63659.significant.rst 
b/chart/newsfragments/63659.significant.rst
new file mode 100644
index 00000000000..21e6a48800a
--- /dev/null
+++ b/chart/newsfragments/63659.significant.rst
@@ -0,0 +1,12 @@
+``workers`` specific sections have been moved to 
``workers.celery``/``workers.kubernetes`` sections.
+
+Please update your configuration accordingly:
+* ``workers.command`` command is now deprecated in favor of 
``workers.celery.command``/``workers.kubernetes.command`` (#60067).
+* ``workers.securityContexts`` command is now deprecated in favor of 
``workers.celery.securityContexts``/``workers.kubernetes.securityContexts`` 
(#60396).
+* ``workers.containerLifecycleHooks`` command is now deprecated in favor of 
``workers.celery.containerLifecycleHooks``/``workers.kubernetes.containerLifecycleHooks``
 (#61369).
+* ``workers.kerberosSidecar`` section is now deprecated in favor of 
``workers.celery.kerberosSidecar``/``workers.kubernetes.kerberosSidecar`` 
(#61881).
+* ``workers.kerberosInitContainer`` section is now deprecated in favor of 
``workers.celery.kerberosInitContainer``/``workers.kubernetes.kerberosInitContainer``
 (#60751).
+* ``workers.terminationGracePeriodSeconds`` command is now deprecated in favor 
of 
``workers.celery.terminationGracePeriodSeconds``/``workers.kubernetes.terminationGracePeriodSeconds``
 (#61892).
+* ``workers.nodeSelector`` command is now deprecated in favor of 
``workers.celery.nodeSelector``/``workers.kubernetes.nodeSelector`` (#61957).
+
+The previous configuration options are still working, but are deprecated and 
will be removed in a future version.
diff --git a/chart/templates/NOTES.txt b/chart/templates/NOTES.txt
index 5e61762a1a6..86709424b3b 100644
--- a/chart/templates/NOTES.txt
+++ b/chart/templates/NOTES.txt
@@ -269,6 +269,14 @@ DEPRECATION WARNING:
 
 {{- end }}
 
+{{- if not (empty .Values.workers.command) }}
+
+ DEPRECATION WARNING:
+    `workers.command` has been renamed to 
`workers.celery.command`/`workers.kubernetes.command`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
 {{- if ne (.Values.workers.args | toJson) (list "bash" "-c" "exec \\\nairflow 
celery worker\n{{- if and .Values.workers.queue (ne .Values.workers.queue 
\"default\") }}\n{{- \" -q \" }}{{ .Values.workers.queue }}\n{{- end }}" | 
toJson) }}
 
  DEPRECATION WARNING:
@@ -325,82 +333,58 @@ DEPRECATION WARNING:
 
 {{- end }}
 
-{{- if not .Values.workers.persistence.enabled }}
-
- DEPRECATION WARNING:
-    `workers.persistence.enabled` has been renamed to 
`workers.celery.persistence.enabled`.
-    Please change your values as support for the old name will be dropped in a 
future release.
-
-{{- end }}
-
-{{- if not (empty 
.Values.workers.persistence.persistentVolumeClaimRetentionPolicy) }}
-
- DEPRECATION WARNING:
-    `workers.persistence.persistentVolumeClaimRetentionPolicy` has been 
renamed to `workers.celery.persistence.persistentVolumeClaimRetentionPolicy`.
-    Please change your values as support for the old name will be dropped in a 
future release.
-
-{{- end }}
-
-{{- if ne .Values.workers.persistence.size "100Gi" }}
+{{- if not (empty .Values.workers.updateStrategy) }}
 
  DEPRECATION WARNING:
-    `workers.persistence.size` has been renamed to 
`workers.celery.persistence.size`.
+    `workers.updateStrategy` has been renamed to 
`workers.celery.updateStrategy`.
     Please change your values as support for the old name will be dropped in a 
future release.
 
 {{- end }}
 
-{{- if not (empty .Values.workers.persistence.storageClassName) }}
+{{- if ne (toJson .Values.workers.strategy | quote) (toJson 
"{\"rollingUpdate\":{\"maxSurge\":\"100%\",\"maxUnavailable\":\"50%\"}}") }}
 
  DEPRECATION WARNING:
-    `workers.persistence.storageClassName` has been renamed to 
`workers.celery.persistence.storageClassName`.
+    `workers.strategy` has been renamed to `workers.celery.strategy`.
     Please change your values as support for the old name will be dropped in a 
future release.
 
 {{- end }}
 
-{{- if .Values.workers.persistence.fixPermissions }}
+{{- if not (empty .Values.workers.podManagementPolicy) }}
 
  DEPRECATION WARNING:
-    `workers.persistence.fixPermissions` has been renamed to 
`workers.celery.persistence.fixPermissions`.
+    `workers.podManagementPolicy` has been renamed to 
`workers.celery.podManagementPolicy`.
     Please change your values as support for the old name will be dropped in a 
future release.
 
 {{- end }}
 
-{{- if not (empty .Values.workers.persistence.annotations) }}
+{{- if not (empty .Values.workers.securityContext) }}
 
  DEPRECATION WARNING:
-    `workers.persistence.annotations` has been renamed to 
`workers.celery.persistence.annotations`.
+    `workers.securityContext` has been renamed to 
`workers.celery.securityContexts`/`workers.kubernetes.securityContexts`.
     Please change your values as support for the old name will be dropped in a 
future release.
 
 {{- end }}
 
-{{- if .Values.workers.persistence.securityContexts.container }}
+{{- if not (empty .Values.workers.securityContexts.pod) }}
 
  DEPRECATION WARNING:
-    `workers.persistence.securityContexts` has been renamed to 
`workers.celery.persistence.securityContexts`.
+    `workers.securityContexts.pod` has been renamed to 
`workers.celery.securityContexts.pod`/`workers.kubernetes.securityContexts.pod`.
     Please change your values as support for the old name will be dropped in a 
future release.
 
 {{- end }}
 
-{{- if not (empty .Values.workers.updateStrategy) }}
+{{- if not (empty .Values.workers.securityContexts.container) }}
 
  DEPRECATION WARNING:
-    `workers.updateStrategy` has been renamed to 
`workers.celery.updateStrategy`.
+    `workers.securityContexts.container` has been renamed to 
`workers.celery.securityContexts.container`/`workers.kubernetes.securityContexts.container`.
     Please change your values as support for the old name will be dropped in a 
future release.
 
 {{- end }}
 
-{{- if ne (toJson .Values.workers.strategy | quote) (toJson 
"{\"rollingUpdate\":{\"maxSurge\":\"100%\",\"maxUnavailable\":\"50%\"}}") }}
+{{- if not (empty .Values.workers.containerLifecycleHooks) }}
 
  DEPRECATION WARNING:
-    `workers.strategy` has been renamed to `workers.celery.strategy`.
-    Please change your values as support for the old name will be dropped in a 
future release.
-
-{{- end }}
-
-{{- if not (empty .Values.workers.podManagementPolicy) }}
-
- DEPRECATION WARNING:
-    `workers.podManagementPolicy` has been renamed to 
`workers.celery.podManagementPolicy`.
+    `workers.containerLifecycleHooks` has been renamed to 
`workers.celery.containerLifecycleHooks`/`workers.kubernetes.containerLifecycleHooks`.
     Please change your values as support for the old name will be dropped in a 
future release.
 
 {{- end }}
@@ -501,6 +485,126 @@ DEPRECATION WARNING:
 
 {{- end }}
 
+{{- if not .Values.workers.persistence.enabled }}
+
+ DEPRECATION WARNING:
+    `workers.persistence.enabled` has been renamed to 
`workers.celery.persistence.enabled`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if not (empty 
.Values.workers.persistence.persistentVolumeClaimRetentionPolicy) }}
+
+ DEPRECATION WARNING:
+    `workers.persistence.persistentVolumeClaimRetentionPolicy` has been 
renamed to `workers.celery.persistence.persistentVolumeClaimRetentionPolicy`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if ne .Values.workers.persistence.size "100Gi" }}
+
+ DEPRECATION WARNING:
+    `workers.persistence.size` has been renamed to 
`workers.celery.persistence.size`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if not (empty .Values.workers.persistence.storageClassName) }}
+
+ DEPRECATION WARNING:
+    `workers.persistence.storageClassName` has been renamed to 
`workers.celery.persistence.storageClassName`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if .Values.workers.persistence.fixPermissions }}
+
+ DEPRECATION WARNING:
+    `workers.persistence.fixPermissions` has been renamed to 
`workers.celery.persistence.fixPermissions`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if not (empty .Values.workers.persistence.annotations) }}
+
+ DEPRECATION WARNING:
+    `workers.persistence.annotations` has been renamed to 
`workers.celery.persistence.annotations`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if .Values.workers.persistence.securityContexts.container }}
+
+ DEPRECATION WARNING:
+    `workers.persistence.securityContexts` has been renamed to 
`workers.celery.persistence.securityContexts`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if .Values.workers.kerberosSidecar.enabled }}
+
+ DEPRECATION WARNING:
+    `workers.kerberosSidecar.enabled` has been renamed to 
`workers.celery.kerberosSidecar.enabled`/`workers.kubernetes.kerberosSidecar.enabled`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if .Values.workers.kerberosSidecar.resources }}
+
+ DEPRECATION WARNING:
+    `workers.kerberosSidecar.resources` has been renamed to 
`workers.celery.kerberosSidecar.resources`/`workers.kubernetes.kerberosSidecar.resources`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if .Values.workers.kerberosSidecar.securityContexts.container }}
+
+ DEPRECATION WARNING:
+    `workers.kerberosSidecar.securityContexts.container` has been renamed to 
`workers.celery.kerberosSidecar.securityContexts.container`/`workers.kubernetes.kerberosSidecar.securityContexts.container`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if .Values.workers.kerberosSidecar.containerLifecycleHooks }}
+
+ DEPRECATION WARNING:
+    `workers.kerberosSidecar.containerLifecycleHooks` has been renamed to 
`workers.celery.kerberosSidecar.containerLifecycleHooks`/`workers.kubernetes.kerberosSidecar.containerLifecycleHooks`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if .Values.workers.kerberosInitContainer.enabled }}
+
+ DEPRECATION WARNING:
+    `workers.kerberosInitContainer.enabled` has been renamed to 
`workers.celery.kerberosInitContainer.enabled`/`workers.kubernetes.kerberosInitContainer.enabled`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if .Values.workers.kerberosInitContainer.resources }}
+
+ DEPRECATION WARNING:
+    `workers.kerberosInitContainer.resources` has been renamed to 
`workers.celery.kerberosInitContainer.resources`/`workers.kubernetes.kerberosInitContainer.resources`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if .Values.workers.kerberosInitContainer.securityContexts.container }}
+
+ DEPRECATION WARNING:
+    `workers.kerberosInitContainer.securityContexts.container` has been 
renamed to 
`workers.celery.kerberosInitContainer.securityContexts.container`/`workers.kubernetes.kerberosInitContainer.securityContexts.container`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if .Values.workers.kerberosInitContainer.containerLifecycleHooks }}
+
+ DEPRECATION WARNING:
+    `workers.kerberosInitContainer.containerLifecycleHooks` has been renamed 
to 
`workers.celery.kerberosInitContainer.containerLifecycleHooks`/`workers.kubernetes.kerberosInitContainer.containerLifecycleHooks`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
 {{- if not (empty .Values.workers.resources) }}
 
  DEPRECATION WARNING:
@@ -509,6 +613,22 @@ DEPRECATION WARNING:
 
 {{- end }}
 
+{{- if ne (int .Values.workers.terminationGracePeriodSeconds) 600 }}
+
+ DEPRECATION WARNING:
+    `workers.terminationGracePeriodSeconds` has been renamed to 
`workers.celery.terminationGracePeriodSeconds`/`workers.kubernetes.terminationGracePeriodSeconds`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
+{{- if not (empty .Values.workers.nodeSelector) }}
+
+ DEPRECATION WARNING:
+    `workers.nodeSelector` has been renamed to 
`workers.celery.nodeSelector`/`workers.kubernetes.nodeSelector`.
+    Please change your values as support for the old name will be dropped in a 
future release.
+
+{{- end }}
+
 {{- if not (empty .Values.webserver.defaultUser) }}
 
  DEPRECATION WARNING:
diff --git a/chart/values.schema.json b/chart/values.schema.json
index 31e6333e885..1e441120dcc 100644
--- a/chart/values.schema.json
+++ b/chart/values.schema.json
@@ -1746,7 +1746,7 @@
                     "x-docsSection": null
                 },
                 "command": {
-                    "description": "Command to use when running Airflow Celery 
workers and using pod-template-file (templated). Use workers.celery.command 
and/or workers.kubernetes.command to separate value between Celery workers and 
pod-template-file.",
+                    "description": "Command to use when running Airflow Celery 
workers and using pod-template-file (templated) (deprecated, use 
``workers.celery.command`` and/or ``workers.kubernetes.command`` instead).",
                     "type": [
                         "array",
                         "null"
@@ -2063,17 +2063,17 @@
                     }
                 },
                 "kerberosSidecar": {
-                    "description": "Kerberos sidecar for Airflow Celery 
workers and pods created with pod-template-file. Use 
`workers.celery.kerberosSidecar` and/or `workers.kubernetes.kerberosSidecar` to 
separate value between Celery workers and pod-template-file",
+                    "description": "Kerberos sidecar for Airflow Celery 
workers and pods created with pod-template-file (deprecated, use 
``workers.celery.kerberosSidecar`` and/or 
``workers.kubernetes.kerberosSidecar`` instead).",
                     "type": "object",
                     "additionalProperties": false,
                     "properties": {
                         "enabled": {
-                            "description": "Enable Kerberos sidecar.",
+                            "description": "Enable Kerberos sidecar 
(deprecated, use ``workers.celery.kerberosSidecar.enabled`` and/or 
``workers.kubernetes.kerberosSidecar.enabled`` instead).",
                             "type": "boolean",
                             "default": false
                         },
                         "resources": {
-                            "description": "Resources on kerberos sidecar.",
+                            "description": "Resources on kerberos sidecar 
(deprecated, use ``workers.celery.kerberosSidecar.resources`` and/or 
``workers.kubernetes.kerberosSidecar.resources`` instead).",
                             "type": "object",
                             "default": {},
                             "examples": [
@@ -2091,7 +2091,7 @@
                             "$ref": 
"#/definitions/io.k8s.api.core.v1.ResourceRequirements"
                         },
                         "containerLifecycleHooks": {
-                            "description": "Container Lifecycle Hooks 
definition for the kerberos sidecar. If not set, the values from global 
`containerLifecycleHooks` will be used.",
+                            "description": "Container Lifecycle Hooks 
definition for the kerberos sidecar (deprecated, use 
``workers.celery.kerberosSidecar.containerLifecycleHooks`` and/or 
``workers.kubernetes.kerberosSidecar.containerLifecycleHooks`` instead). If not 
set, the values from global `containerLifecycleHooks` will be used.",
                             "type": "object",
                             "$ref": 
"#/definitions/io.k8s.api.core.v1.Lifecycle",
                             "default": {},
@@ -2120,12 +2120,12 @@
                             ]
                         },
                         "securityContexts": {
-                            "description": "Security context definition for 
the kerberos sidecar. If not set, the values from global `securityContexts` 
will be used.",
+                            "description": "Security context definition for 
the kerberos sidecar (deprecated, use 
``workers.celery.kerberosSidecar.securityContexts`` and/or 
``workers.kubernetes.kerberosSidecar.securityContexts`` instead). If not set, 
the values from global `securityContexts` will be used.",
                             "type": "object",
                             "x-docsSection": "Kubernetes",
                             "properties": {
                                 "container": {
-                                    "description": "Container security context 
definition for the kerberos sidecar.",
+                                    "description": "Container security context 
definition for the kerberos sidecar (deprecated, use 
``workers.celery.kerberosSidecar.securityContexts.container`` and/or 
``workers.kubernetes.kerberosSidecar.securityContexts.container`` instead).",
                                     "type": "object",
                                     "$ref": 
"#/definitions/io.k8s.api.core.v1.SecurityContext",
                                     "default": {},
@@ -2146,17 +2146,17 @@
                     }
                 },
                 "kerberosInitContainer": {
-                    "description": "Kerberos init container for Airflow Celery 
workers and pods created with pod-template-file.",
+                    "description": "Kerberos init container for Airflow Celery 
workers and pods created with pod-template-file (deprecated, use 
``workers.celery.kerberosInitContainer`` and/or 
``workers.kubernetes.kerberosInitContainer`` instead).",
                     "type": "object",
                     "additionalProperties": false,
                     "properties": {
                         "enabled": {
-                            "description": "Enable Kerberos init container.",
+                            "description": "Enable Kerberos init container 
(deprecated, use ``workers.celery.kerberosInitContainer.enabled`` and/or 
``workers.kubernetes.kerberosInitContainer.enabled`` instead).",
                             "type": "boolean",
                             "default": false
                         },
                         "resources": {
-                            "description": "Resources on kerberos init 
container.",
+                            "description": "Resources on kerberos init 
container (deprecated, use ``workers.celery.kerberosInitContainer.resources`` 
and/or ``workers.kubernetes.kerberosInitContainer.resources`` instead).",
                             "type": "object",
                             "default": {},
                             "examples": [
@@ -2174,7 +2174,7 @@
                             "$ref": 
"#/definitions/io.k8s.api.core.v1.ResourceRequirements"
                         },
                         "containerLifecycleHooks": {
-                            "description": "Container Lifecycle Hooks 
definition for the kerberos init container. If not set, the values from global 
`containerLifecycleHooks` will be used.",
+                            "description": "Container Lifecycle Hooks 
definition for the kerberos init container (deprecated, use 
``workers.celery.kerberosInitContainer.containerLifecycleHooks`` and/or 
``workers.kubernetes.kerberosInitContainer.containerLifecycleHooks`` instead). 
If not set, the values from global `containerLifecycleHooks` will be used.",
                             "type": "object",
                             "$ref": 
"#/definitions/io.k8s.api.core.v1.Lifecycle",
                             "default": {},
@@ -2203,12 +2203,12 @@
                             ]
                         },
                         "securityContexts": {
-                            "description": "Security context definition for 
the kerberos init container. If not set, the values from global 
`securityContexts` will be used.",
+                            "description": "Security context definition for 
the kerberos init container (deprecated, use 
``workers.celery.kerberosInitContainer.securityContexts`` and/or 
``workers.kubernetes.kerberosInitContainer.securityContexts`` instead). If not 
set, the values from global `securityContexts` will be used.",
                             "type": "object",
                             "x-docsSection": "Kubernetes",
                             "properties": {
                                 "container": {
-                                    "description": "Container security context 
definition for the kerberos init container.",
+                                    "description": "Container security context 
definition for the kerberos init container (deprecated, use 
``workers.celery.kerberosInitContainer.securityContexts.container`` and/or 
``workers.kubernetes.kerberosInitContainer.securityContexts.container`` 
instead).",
                                     "type": "object",
                                     "$ref": 
"#/definitions/io.k8s.api.core.v1.SecurityContext",
                                     "default": {},
@@ -2264,7 +2264,7 @@
                     }
                 },
                 "resources": {
-                    "description": "Resource configuration for Airflow Celery 
workers and pods created with pod-template-file (deprecated, use 
`workers.celery.resources` or/and `workers.kubernetes.resources` instead).",
+                    "description": "Resource configuration for Airflow Celery 
workers and pods created with pod-template-file (deprecated, use 
``workers.celery.resources`` or/and ``workers.kubernetes.resources`` instead).",
                     "type": "object",
                     "default": {},
                     "examples": [
@@ -2282,7 +2282,7 @@
                     "$ref": 
"#/definitions/io.k8s.api.core.v1.ResourceRequirements"
                 },
                 "terminationGracePeriodSeconds": {
-                    "description": "Grace period for tasks to finish after 
SIGTERM is sent from Kubernetes. It is used by Airflow Celery workers and 
pod-template-file. Use ``workers.celery.terminationGracePeriodSeconds`` and/or 
``workers.kubernetes.terminationGracePeriodSeconds`` to separate value between 
Celery workers and pod-template-file",
+                    "description": "Grace period for tasks to finish after 
SIGTERM is sent from Kubernetes. It is used by Airflow Celery workers and 
pod-template-file (deprecated, use 
``workers.celery.terminationGracePeriodSeconds`` or/and 
``workers.kubernetes.terminationGracePeriodSeconds`` instead).",
                     "type": "integer",
                     "default": 600
                 },
@@ -2332,7 +2332,7 @@
                     }
                 },
                 "nodeSelector": {
-                    "description": "Select certain nodes for Airflow Celery 
worker pods and pods created with pod-template-file. Use 
``workers.celery.nodeSelector`` and/or ``workers.kubernetes.nodeSelector`` to 
separate value between Celery workers and pod-template-file.",
+                    "description": "Select certain nodes for Airflow Celery 
worker pods and pods created with pod-template-file (deprecated, use 
``workers.celery.nodeSelector`` or/and ``workers.kubernetes.nodeSelector`` 
instead).",
                     "type": "object",
                     "default": {},
                     "additionalProperties": {
@@ -2439,7 +2439,7 @@
                     "description": "Configuration for Airflow Celery worker 
log groomer sidecar"
                 },
                 "securityContext": {
-                    "description": "Security context for the Airflow Celery 
worker pods and pods created with pod-template-file (deprecated, use 
`securityContexts` instead). If not set, the values from `securityContext` will 
be used.",
+                    "description": "Security context for the Airflow Celery 
worker pods and pods created with pod-template-file (deprecated, use 
``workers.celery.securityContexts`` and/or 
``workers.kubernetes.securityContexts`` instead). If not set, the values from 
`securityContext` will be used.",
                     "type": "object",
                     "$ref": 
"#/definitions/io.k8s.api.core.v1.PodSecurityContext",
                     "default": {},
@@ -2452,7 +2452,7 @@
                     ]
                 },
                 "containerLifecycleHooks": {
-                    "description": "Container Lifecycle Hooks definition for 
Airflow Celery workers and pods created with pod-template-file. If not set, the 
values from global `containerLifecycleHooks` will be used. Use 
`workers.celery.containerLifecycleHooks` and/or 
`workers.kubernetes.containerLifecycleHooks` to separate value between Celery 
workers and pod-template-file.",
+                    "description": "Container Lifecycle Hooks definition for 
Airflow Celery workers and pods created with pod-template-file (deprecated, use 
``workers.celery.containerLifecycleHooks`` and/or 
``workers.kubernetes.containerLifecycleHooks`` instead). If not set, the values 
from global `containerLifecycleHooks` will be used.",
                     "type": "object",
                     "$ref": "#/definitions/io.k8s.api.core.v1.Lifecycle",
                     "default": {},
@@ -2481,12 +2481,12 @@
                     ]
                 },
                 "securityContexts": {
-                    "description": "Security context definition for the 
Airflow Celery workers and pod-template-file. If not set, the values from 
global `securityContexts` will be used. Use workers.celery.securityContexts 
and/or workers.kubernetes.securityContexts to separate value between Celery 
workers and pod-template-file.",
+                    "description": "Security context definition for the 
Airflow Celery workers and pod-template-file (deprecated, use 
``workers.celery.securityContexts`` and/or 
``workers.kubernetes.securityContexts`` instead). If not set, the values from 
global `securityContexts` will be used.",
                     "type": "object",
                     "x-docsSection": "Kubernetes",
                     "properties": {
                         "pod": {
-                            "description": "Pod security context definition.",
+                            "description": "Pod security context definition 
(deprecated, use ``workers.celery.securityContexts.pod`` and/or 
``workers.kubernetes.securityContexts.pod`` instead).",
                             "type": "object",
                             "$ref": 
"#/definitions/io.k8s.api.core.v1.PodSecurityContext",
                             "default": {},
@@ -2500,7 +2500,7 @@
                             ]
                         },
                         "container": {
-                            "description": "Container security context 
definition.",
+                            "description": "Container security context 
definition (deprecated, use ``workers.celery.securityContexts.container`` 
and/or ``workers.kubernetes.securityContexts.container`` instead).",
                             "type": "object",
                             "$ref": 
"#/definitions/io.k8s.api.core.v1.SecurityContext",
                             "default": {},
diff --git a/chart/values.yaml b/chart/values.yaml
index a5159c84faa..8c380e5af73 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -634,8 +634,7 @@ workers:
   revisionHistoryLimit: ~
 
   # Command to use when running Airflow Celery workers and using 
pod-template-file (templated)
-  # Use workers.celery.command and/or workers.kubernetes.command to separate 
value between
-  # Celery workers and pod-template-file
+  # (deprecated, use workers.celery.command and/or workers.kubernetes.command 
instead)
   command: ~
 
   # Args to use when running Airflow Celery workers (templated)
@@ -684,6 +683,7 @@ workers:
 
   # When not set, the values defined in the global securityContext will
   # be used in Airflow Celery workers and pod-template-file
+  # (deprecated, use workers.celery.securityContexts and/or 
workers.kubernetes.securityContexts instead)
   securityContext: {}
   #  runAsUser: 50000
   #  fsGroup: 0
@@ -691,16 +691,25 @@ workers:
 
   # Detailed default security context for the
   # Airflow Celery workers and pod-template-file on container and pod level
-  # Use workers.celery.securityContexts and/or 
workers.kubernetes.securityContexts to separate value between
-  # Celery workers and pod-template-file
+  # (deprecated, use workers.celery.securityContexts and/or 
workers.kubernetes.securityContexts instead)
   securityContexts:
+    # (deprecated, use
+    #   workers.celery.securityContexts.pod and/or
+    #   workers.kubernetes.securityContexts.pod
+    # instead)
     pod: {}
+    # (deprecated, use
+    #   workers.celery.securityContexts.container and/or
+    #   workers.kubernetes.securityContexts.container
+    # instead)
     container: {}
 
   # Container level Lifecycle Hooks definition for
   # Airflow Celery workers and pods created with pod-template-file
-  # Use workers.celery.containerLifecycleHooks and/or 
workers.kubernetes.containerLifecycleHooks
-  # to separate value between Celery workers and pod-template-file.
+  # (deprecated, use
+  #   workers.celery.containerLifecycleHooks and/or
+  #   workers.kubernetes.containerLifecycleHooks
+  # instead)
   containerLifecycleHooks: {}
 
   # Airflow Celery workers pod disruption budget
@@ -854,12 +863,19 @@ workers:
       container: {}
 
   # Kerberos sidecar configuration for Airflow Celery workers and pods created 
with pod-template-file
-  # Use workers.celery.kerberosSidecar and/or 
workers.kubernetes.kerberosSidecar to separate
-  # value between Celery workers and pod-template-file
+  # (deprecated, use workers.celery.kerberosSidecar and/or 
workers.kubernetes.kerberosSidecar instead)
   kerberosSidecar:
     # Enable kerberos sidecar
+    # (deprecated, use
+    #   workers.celery.kerberosSidecar.enabled and/or
+    #   workers.kubernetes.kerberosSidecar.enabled
+    # instead)
     enabled: false
 
+    # (deprecated, use
+    #   workers.celery.kerberosSidecar.resources and/or
+    #   workers.kubernetes.kerberosSidecar.resources
+    # instead)
     resources: {}
     #  limits:
     #   cpu: 100m
@@ -869,19 +885,41 @@ workers:
     #   memory: 128Mi
 
     # Detailed default security context for kerberos sidecar on container level
+    # (deprecated, use
+    #   workers.celery.kerberosSidecar.securityContexts and/or
+    #   workers.kubernetes.kerberosSidecar.securityContexts
+    # instead)
     securityContexts:
+      # (deprecated, use
+      #   workers.celery.kerberosSidecar.securityContexts.container and/or
+      #   workers.kubernetes.kerberosSidecar.securityContexts.container
+      # instead)
       container: {}
 
     # Container level lifecycle hooks
+    # (deprecated, use
+    #   workers.celery.kerberosSidecar.containerLifecycleHooks and/or
+    #   workers.kubernetes.kerberosSidecar.containerLifecycleHooks
+    # instead)
     containerLifecycleHooks: {}
 
   # Kerberos init container configuration for Airflow Celery workers and pods 
created with pod-template-file
-  # Use workers.celery.kerberosInitContainer and/or 
workers.kubernetes.kerberosInitContainer to separate
-  # value between Celery workers and pod-template-file
+  # (deprecated, use
+  #   workers.celery.kerberosInitContainer and/or
+  #   workers.kubernetes.kerberosInitContainer
+  # instead)
   kerberosInitContainer:
     # Enable kerberos init container
+    # (deprecated, use
+    #   workers.celery.kerberosInitContainer.enabled and/or
+    #   workers.kubernetes.kerberosInitContainer.enabled
+    # instead)
     enabled: false
 
+    # (deprecated, use
+    #   workers.celery.kerberosInitContainer.resources and/or
+    #   workers.kubernetes.kerberosInitContainer.resources
+    # instead)
     resources: {}
     #  limits:
     #   cpu: 100m
@@ -891,14 +929,26 @@ workers:
     #   memory: 128Mi
 
     # Detailed default security context for kerberos init container
+    # (deprecated, use
+    #   workers.celery.kerberosInitContainer.securityContexts and/or
+    #   workers.kubernetes.kerberosInitContainer.securityContexts
+    # instead)
     securityContexts:
+      # (deprecated, use
+      #   workers.celery.kerberosInitContainer.securityContexts.container 
and/or
+      #   workers.kubernetes.kerberosInitContainer.securityContexts.container
+      # instead)
       container: {}
 
     # Container level lifecycle hooks
+    # (deprecated, use
+    #   workers.celery.kerberosInitContainer.containerLifecycleHooks and/or
+    #   workers.kubernetes.kerberosInitContainer.containerLifecycleHooks
+    # instead)
     containerLifecycleHooks: {}
 
   # Resource configuration for Airflow Celery workers and pods created with 
pod-template-file
-  # (deprecated, use `workers.celery.resources` or/and 
`workers.kubernetes.resources` instead)
+  # (deprecated, use workers.celery.resources or/and 
workers.kubernetes.resources instead)
   resources: {}
   #  limits:
   #   cpu: 100m
@@ -909,8 +959,10 @@ workers:
 
   # Grace period for tasks to finish after SIGTERM is sent from kubernetes.
   # It is used by Airflow Celery workers and pod-template-file.
-  # Use workers.celery.terminationGracePeriodSeconds and/or 
workers.kubernetes.terminationGracePeriodSeconds
-  # to separate value between Celery workers and pod-template-file
+  # (deprecated, use
+  #   workers.celery.terminationGracePeriodSeconds or/and
+  #   workers.kubernetes.terminationGracePeriodSeconds
+  # instead)
   terminationGracePeriodSeconds: 600
 
   # This setting tells kubernetes that its ok to evict when it wants to scale 
a node down.
@@ -947,8 +999,7 @@ workers:
   extraPorts: []
 
   # Select certain nodes for Airflow Celery worker pods and pods created with 
pod-template-file
-  # Use workers.celery.nodeSelector and/or workers.kubernetes.nodeSelector to 
separate value
-  # between Celery workers and pod-template-file
+  # (deprecated, use workers.celery.nodeSelector or/and 
workers.kubernetes.nodeSelector instead)
   nodeSelector: {}
 
   runtimeClassName: ~


Reply via email to