Apply privileged: true on container steps that don't set connectorRef, or warn when it's ignored
B
Bright Wildcat
Problem: On VM (Docker runtime) stages, a Run step with privileged: true and an image only runs privileged if connectorRef is also set. Without connectorRef, the step runs with Docker's default capabilities and no host devices, and nothing tells you privileged was dropped. This matters when the image is already on the host and nothing needs to be pulled.
A connector we never use still costs us:
- Every step with a connector carries the connector's setup, which adds time to builds.
Requested behaviour (either would solve it)
- Apply privileged: true whenever it is set, whether or not connectorRef is present. This is the preferred fix.
- If privileged is going to be ignored, fail validation or log a visible warning on the step, and document the requirement that container steps need both image and connectorRef.