You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cleanup: [TEP-0135] remove deprecated disable-affinity-assistant feature flag
This field has been deprecated for about a year and half. So this is
"removing" this feature flag from the codebase.
The field is kept in the go code to provide a backward compatibility
for client code (like chains, …) but it will be disallowed by the
webhook. It will also be completely ignore by the rest of the code.
# or https://github.com/tektoncd/pipeline/pull/2630 for more info.
32
-
#
33
-
# Note: This feature flag is deprecated and will be removed in release v0.60. Consider using `coschedule` feature flag to configure Affinity Assistant behavior.
34
-
disable-affinity-assistant: "false"
35
24
# Setting this flag will determine how PipelineRun Pods are scheduled with Affinity Assistant.
36
25
# Acceptable values are "workspaces" (default), "pipelineruns", "isolate-pipelinerun", or "disabled".
Copy file name to clipboardexpand all lines: docs/additional-configs.md
-15
Original file line number
Diff line number
Diff line change
@@ -275,21 +275,6 @@ that are running while the change occurs.
275
275
276
276
The flags in this ConfigMap are as follows:
277
277
278
-
- `disable-affinity-assistant`- set this flag to `true` to disable the [Affinity Assistant](./affinityassistants)
279
-
that is used to provide Node Affinity for `TaskRun` pods that share workspace volume.
280
-
The Affinity Assistant is incompatible with other affinity rules
281
-
configured for `TaskRun` pods.
282
-
283
-
**Note:** This feature flag is deprecated and will be removed in release `v0.60`. Consider using `coschedule` feature flag to configure Affinity Assistant behavior.
284
-
285
-
**Note:** Affinity Assistant use [Inter-pod affinity and anti-affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)
286
-
that require substantial amount of processing which can slow down scheduling in large clusters
287
-
significantly. We do not recommend using them in clusters larger than several hundred nodes
288
-
289
-
**Note:** Pod anti-affinity requires nodes to be consistently labelled, in other words every
290
-
node in the cluster must have an appropriate label matching `topologyKey`. If some or all nodes
291
-
are missing the specified `topologyKey` label, it can lead to unintended behavior.
292
-
293
278
- `coschedule`: set this flag determines how PipelineRun Pods are scheduled with [Affinity Assistant](./affinityassistants).
294
279
Acceptable values are "workspaces" (default), "pipelineruns", "isolate-pipelinerun", or "disabled".
295
280
Setting it to "workspaces" will schedule all the taskruns sharing the same PVC-based workspace in a pipelinerun to the same node.
Copy file name to clipboardexpand all lines: docs/affinityassistants.md
+6-5
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,11 @@ weight: 405
6
6
-->
7
7
8
8
# Affinity Assistants
9
+
9
10
Affinity Assistant is a feature to coschedule `PipelineRun``pods` to the same node
10
11
based on [kubernetes pod affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity) so that it possible for the taskruns to execute parallel while sharing volume.
11
12
Available Affinity Assistant Modes are **coschedule workspaces**, **coschedule pipelineruns**,
12
-
**isolate pipelinerun** and **disabled**.
13
+
**isolate pipelinerun** and **disabled**.
13
14
14
15
> :seedling:**coschedule pipelineruns** and **isolate pipelinerun** modes are [**alpha features**](./additional-configs.md#alpha-features).
15
16
> **coschedule workspaces** is a **stable feature**
@@ -27,10 +28,10 @@ and only one PipelineRun is allowed to run on a node at a time.
27
28
This means that Affinity Assistant is incompatible with other affinity rules
28
29
configured for the `TaskRun` pods (i.e. other affinity rules specified in custom [PodTemplate](pipelineruns.md#specifying-a-pod-template) will be overwritten by Affinity Assistant).
29
30
If the `PipelineRun` has a custom [PodTemplate](pipelineruns.md#specifying-a-pod-template) configured, the `NodeSelector` and `Tolerations` fields will also be set on the Affinity Assistant pod. The Affinity Assistant
30
-
is deleted when the `PipelineRun` is completed.
31
+
is deleted when the `PipelineRun` is completed.
31
32
32
-
Currently, the Affinity Assistant Modes can be configured by the `disable-affinity-assistant` and `coschedule` feature flags.
33
-
The `disable-affinity-assistant` feature flag is now deprecated and will be removed in release `v0.60`. At the time, the Affinity Assistant Modes will be only determined by the `coschedule` feature flag.
33
+
The Affinity Assistant Modes are configured by the `coschedule` feature flag.
34
+
Previously, it was also controlled by the `disable-affinity-assistant` feature flag which was deprecated and removed after release `v0.68`.
34
35
35
36
The following chart summarizes the Affinity Assistant Modes with different combinations of the `disable-affinity-assistant` and `coschedule` feature flags during migration (when both feature flags are present) and after the migration (when only the `coschedule` flag is present).
36
37
@@ -95,7 +96,7 @@ The following chart summarizes the Affinity Assistant Modes with different combi
95
96
</tbody>
96
97
</table>
97
98
98
-
**Note:**For users who previously accepted the default behavior (`disable-affinity-assistant`: `false`) but now want one of the new features, you need to set `disable-affinity-assistant`to "true" and then turn on the new behavior by setting the `coschedule`flag. For users who previously disabled the affinity assistant but want one of the new features, just set the `coschedule`flag accordingly.
99
+
**Note:**After release `v0.68`, the `disable-affinity-assistant`feature flag is removed and the Affinity Assistant Modes are only controlled by the `coschedule`feature flag.
99
100
100
101
**Note:** Affinity Assistant use [Inter-pod affinity and anti-affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity)
101
102
that require substantial amount of processing which can slow down scheduling in large clusters
|[The `default-cloud-events-sink` setting in the `config-defaults` configMap is deprecated](https://github.com/tektoncd/pipeline/pull/6883) in favour of the new `config-events` configMap. | v0.50.0 | N/A | v0.59.0 |
28
28
|[v1beta1 Tasks, TaskRuns, Pipelines, and PipelineRuns are deprecated in favor of v1](https://github.com/tektoncd/pipeline/issues/5541)| v0.50.0 | Beta | v0.62.0 |
29
-
|[The `disable-affinity-assistant` feature flag is deprecated in favor of the `coschedule` feature flag](https://github.com/tektoncd/pipeline/issues/6988)| v0.51.0 | N/A | April 27, 2024 |
30
29
| The `resolver framework` is [deprecated](https://github.com/tektoncd/pipeline/pull/7945) in favor of an [upgraded framework](https://github.com/tektoncd/pipeline/pull/7910)| v0.60.0 | N/A | v0.72. |
31
30
32
31
### v1beta1 deprecation
@@ -46,6 +45,8 @@ The features listed below have been removed but may still be supported in releas
46
45
|[The `PipelineRun.Status.TaskRuns` and `PipelineRun.Status.Runs` fields and the `embedded-status` feature flag along with their functionalities have been tombstoned since v0.45.](https://github.com/tektoncd/community/blob/main/teps/0100-embedded-taskruns-and-runs-status-in-pipelineruns.md)|[[TEP100] Remove Taskruns and Runs Fields for PipelineRunStatus](https://github.com/tektoncd/pipeline/pull/6099)| Jan 25, 2023 | v0.44.0 | Jan 24, 2024 |
47
46
| PipelineResources are removed, along with the components of the API that rely on them as proposed in [TEP-0074](https://github.com/tektoncd/community/blob/main/teps/0074-deprecate-pipelineresources.md). See [Removed `PipelineResources` related features](#removed-pipelineresources-related-features) for more info. |[[TEP074] Remove Generic PipelineResources with Rest of Resources Types](https://github.com/tektoncd/pipeline/pull/6150)| Mar 8, 2023 | v0.44.0 | Jan 24, 2024 |
48
47
| v1alpha1 Runs are removed, as proposed in [TEP-0114](https://github.com/tektoncd/community/blob/main/teps/0114-custom-tasks-beta.md), along with the feature flags `enable-custom-task` and `custom-task-version`. |[TEP-0114: Remove support for v1alpha1.Run](https://github.com/tektoncd/pipeline/pull/6508)| April 7, 2023 | v0.44.0 | Jan 24, 2024 |
48
+
|[The `disable-affinity-assistant` feature flag is deprecated in favor of the `coschedule` feature flag](https://github.com/tektoncd/community/blob/main/teps/0135-coscheduling-pipelinerun-pods.md#tep-0135-coscheduling-pipelinerun-pods)|[cleanup: [TEP-0135] remove deprecated disable-affinity-assistant feature flag](https://github.com/tektoncd/pipeline/pull/8603)| Mar 1, 2025 | v0.68.0 | Jan 30, 2026 |
0 commit comments