Question: Is there a plan to completely remove the deprecated disable-affinity-assistant
configuration option?
#8587
Labels
area/roadmap
Issues that are part of the project (or organization) roadmap (usually an epic)
kind/question
Issues or PRs that are questions around the project or a particular feature
Milestone
Currently, if I need to allow TaskRun to mount 2 PVCs, I must set the deprecated
disable-affinity-assistant
totrue
, which is quite strange.As comment, this configuration item is planned to be removed in v0.60, and v0.68 has already been released.
pipeline/config/config-feature-flags.yaml
Lines 23 to 34 in 30f7cce
Related validation code
pipeline/pkg/reconciler/taskrun/taskrun.go
Lines 549 to 558 in 30f7cce
If
disable-affinity-assistant
is set tofalse
by default,GetAffinityAssistantBehavior
will inevitably exit early.pipeline/pkg/internal/affinityassistant/affinityassistant_types.go
Lines 32 to 44 in 30f7cce
The
ValidateOnlyOnePVCIsUsed
check will definitely be executed.pipeline/pkg/workspace/validate.go
Lines 66 to 86 in 30f7cce
In addition, the document mentions that setting disable-affinity-assistant to false and coschedule to disabled results in a disabled behavior, but currently this combination cannot be configured at all, as it has already been rejected in the webhook.
Affinity Assistants
pipeline/pkg/apis/config/feature_flags.go
Lines 343 to 356 in 30f7cce
The text was updated successfully, but these errors were encountered: