@@ -55,7 +55,7 @@ const (
5555 taskNameLabelKey = pipeline .GroupName + pipeline .TaskLabelKey
5656 taskRunNameLabelKey = pipeline .GroupName + pipeline .TaskRunLabelKey
5757 workspaceDir = "/workspace"
58- currentApiVersion = "tekton.dev/v1alpha1"
58+ currentAPIVersion = "tekton.dev/v1alpha1"
5959)
6060
6161var (
@@ -237,7 +237,7 @@ func getRunName(tr *v1alpha1.TaskRun) string {
237237
238238// getTaskRunController returns an instance of the TaskRun controller/reconciler that has been seeded with
239239// d, where d represents the state of the system (existing resources) needed for the test.
240- func getTaskRunController (t * testing.T , d test.Data ) (test.TestAssets , func ()) {
240+ func getTaskRunController (t * testing.T , d test.Data ) (test.Assets , func ()) {
241241 ctx , _ := ttesting .SetupFakeContext (t )
242242 ctx , cancel := context .WithCancel (ctx )
243243 cloudEventClientBehaviour := cloudevent.FakeClientBehaviour {
@@ -246,7 +246,7 @@ func getTaskRunController(t *testing.T, d test.Data) (test.TestAssets, func()) {
246246 ctx = cloudevent .WithClient (ctx , & cloudEventClientBehaviour )
247247 c , _ := test .SeedTestData (t , ctx , d )
248248 configMapWatcher := configmap .NewInformedWatcher (c .Kube , system .GetNamespace ())
249- return test.TestAssets {
249+ return test.Assets {
250250 Controller : NewController (images )(ctx , configMapWatcher ),
251251 Clients : c ,
252252 }, cancel
@@ -286,7 +286,7 @@ func TestReconcile_ExplicitDefaultSA(t *testing.T) {
286286 tb .PodLabel (taskRunNameLabelKey , "test-taskrun-run-success" ),
287287 tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
288288 tb .PodOwnerReference ("TaskRun" , "test-taskrun-run-success" ,
289- tb .OwnerReferenceAPIVersion (currentApiVersion )),
289+ tb .OwnerReferenceAPIVersion (currentAPIVersion )),
290290 tb .PodSpec (
291291 tb .PodServiceAccountName (defaultSAName ),
292292 tb .PodVolumes (workspaceVolume , homeVolume , toolsVolume , downwardVolume ),
@@ -321,7 +321,7 @@ func TestReconcile_ExplicitDefaultSA(t *testing.T) {
321321 tb .PodLabel (taskRunNameLabelKey , "test-taskrun-with-sa-run-success" ),
322322 tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
323323 tb .PodOwnerReference ("TaskRun" , "test-taskrun-with-sa-run-success" ,
324- tb .OwnerReferenceAPIVersion (currentApiVersion )),
324+ tb .OwnerReferenceAPIVersion (currentAPIVersion )),
325325 tb .PodSpec (
326326 tb .PodServiceAccountName ("test-sa" ),
327327 tb .PodVolumes (workspaceVolume , homeVolume , toolsVolume , downwardVolume ),
@@ -540,7 +540,7 @@ func TestReconcile(t *testing.T) {
540540 tb .PodLabel (taskRunNameLabelKey , "test-taskrun-run-success" ),
541541 tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
542542 tb .PodOwnerReference ("TaskRun" , "test-taskrun-run-success" ,
543- tb .OwnerReferenceAPIVersion (currentApiVersion )),
543+ tb .OwnerReferenceAPIVersion (currentAPIVersion )),
544544 tb .PodSpec (
545545 tb .PodVolumes (workspaceVolume , homeVolume , toolsVolume , downwardVolume ),
546546 tb .PodRestartPolicy (corev1 .RestartPolicyNever ),
@@ -574,7 +574,7 @@ func TestReconcile(t *testing.T) {
574574 tb .PodLabel (taskRunNameLabelKey , "test-taskrun-with-sa-run-success" ),
575575 tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
576576 tb .PodOwnerReference ("TaskRun" , "test-taskrun-with-sa-run-success" ,
577- tb .OwnerReferenceAPIVersion (currentApiVersion )),
577+ tb .OwnerReferenceAPIVersion (currentAPIVersion )),
578578 tb .PodSpec (
579579 tb .PodServiceAccountName ("test-sa" ),
580580 tb .PodVolumes (workspaceVolume , homeVolume , toolsVolume , downwardVolume ),
@@ -609,7 +609,7 @@ func TestReconcile(t *testing.T) {
609609 tb .PodLabel (taskRunNameLabelKey , "test-taskrun-substitution" ),
610610 tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
611611 tb .PodOwnerReference ("TaskRun" , "test-taskrun-substitution" ,
612- tb .OwnerReferenceAPIVersion (currentApiVersion )),
612+ tb .OwnerReferenceAPIVersion (currentAPIVersion )),
613613 tb .PodSpec (
614614 tb .PodVolumes (
615615 workspaceVolume , homeVolume , toolsVolume , downwardVolume ,
@@ -683,7 +683,7 @@ func TestReconcile(t *testing.T) {
683683 tb .PodLabel (taskRunNameLabelKey , "test-taskrun-with-taskspec" ),
684684 tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
685685 tb .PodOwnerReference ("TaskRun" , "test-taskrun-with-taskspec" ,
686- tb .OwnerReferenceAPIVersion (currentApiVersion )),
686+ tb .OwnerReferenceAPIVersion (currentAPIVersion )),
687687 tb .PodSpec (
688688 tb .PodVolumes (workspaceVolume , homeVolume , toolsVolume , downwardVolume ),
689689 tb .PodRestartPolicy (corev1 .RestartPolicyNever ),
@@ -735,7 +735,7 @@ func TestReconcile(t *testing.T) {
735735 tb .PodLabel (taskRunNameLabelKey , "test-taskrun-with-cluster-task" ),
736736 tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
737737 tb .PodOwnerReference ("TaskRun" , "test-taskrun-with-cluster-task" ,
738- tb .OwnerReferenceAPIVersion (currentApiVersion )),
738+ tb .OwnerReferenceAPIVersion (currentAPIVersion )),
739739 tb .PodSpec (
740740 tb .PodVolumes (workspaceVolume , homeVolume , toolsVolume , downwardVolume ),
741741 tb .PodRestartPolicy (corev1 .RestartPolicyNever ),
@@ -768,7 +768,7 @@ func TestReconcile(t *testing.T) {
768768 tb .PodLabel (taskRunNameLabelKey , "test-taskrun-with-resource-spec" ),
769769 tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
770770 tb .PodOwnerReference ("TaskRun" , "test-taskrun-with-resource-spec" ,
771- tb .OwnerReferenceAPIVersion (currentApiVersion )),
771+ tb .OwnerReferenceAPIVersion (currentAPIVersion )),
772772 tb .PodSpec (
773773 tb .PodVolumes (workspaceVolume , homeVolume , toolsVolume , downwardVolume ),
774774 tb .PodRestartPolicy (corev1 .RestartPolicyNever ),
@@ -818,7 +818,7 @@ func TestReconcile(t *testing.T) {
818818 tb .PodLabel (taskRunNameLabelKey , "test-taskrun-with-pod" ),
819819 tb .PodLabel (podconvert .ManagedByLabelKey , podconvert .ManagedByLabelValue ),
820820 tb .PodOwnerReference ("TaskRun" , "test-taskrun-with-pod" ,
821- tb .OwnerReferenceAPIVersion (currentApiVersion )),
821+ tb .OwnerReferenceAPIVersion (currentAPIVersion )),
822822 tb .PodSpec (
823823 tb .PodVolumes (workspaceVolume , homeVolume , toolsVolume , downwardVolume ),
824824 tb .PodRestartPolicy (corev1 .RestartPolicyNever ),
0 commit comments