diff --git a/pkg/reconciler/pipelinerun/affinity_assistant_test.go b/pkg/reconciler/pipelinerun/affinity_assistant_test.go index 83ae51da9f5..aa9c4fb7d16 100644 --- a/pkg/reconciler/pipelinerun/affinity_assistant_test.go +++ b/pkg/reconciler/pipelinerun/affinity_assistant_test.go @@ -652,6 +652,13 @@ func TestDefaultPodTemplatesArePropagatedToAffinityAssistant(t *testing.T) { ObjectMeta: metav1.ObjectMeta{ Name: "pipelinerun-with-custom-podtemplate", }, + Spec: v1.PipelineRunSpec{ + TaskRunTemplate: v1.PipelineTaskRunTemplate{ + PodTemplate: &pod.PodTemplate{ + HostNetwork: true, + }, + }, + }, } defaultTpl := &pod.AffinityAssistantTemplate{