@@ -35,7 +35,7 @@ NAME UID STARTED DURATION STATUS
3535{{ end -}}
3636{{- end -}}
3737{{- range $_, $tr := .TaskRuns.Items }}{{- if $tr }}{{- if $.AllNamespaces -}}
38- {{ $tr.Namespace }} {{ $tr.Name }} {{ $tr.UID }} {{ formatAge $tr.Status.StartTime $.Time }} {{ formatDuration $tr.Status.StartTime $tr.Status.CompletionTime }} {{ formatCondition $tr.Status.Conditions }}
38+ {{ $tr.Namespace }} {{ $tr.Name }} {{ $tr.UID }} {{ formatAge $tr.Status.StartTime $.Time }} {{ formatDuration $tr.Status.StartTime $tr.Status.CompletionTime }} {{ formatCondition $tr.Status.Conditions }}
3939{{ else -}}
4040{{ $tr.Name }} {{ $tr.UID }} {{ formatAge $tr.Status.StartTime $.Time }} {{ formatDuration $tr.Status.StartTime $tr.Status.CompletionTime }} {{ formatCondition $tr.Status.Conditions }}
4141{{ end -}}{{- end -}}{{- end -}}
@@ -88,7 +88,6 @@ List TaskRuns for a specific PipelineRun:
8888 if allNs && nsSet {
8989 return errors .New ("cannot use --all-namespaces/-A and --namespace/-n together" )
9090 }
91-
9291 // Initialize the client using the shared prerun function
9392 var err error
9493 opts .Client , err = prerun .InitClient (p , cmd )
@@ -99,12 +98,10 @@ List TaskRuns for a specific PipelineRun:
9998 if opts .Limit < 5 || opts .Limit > 1000 {
10099 return errors .New ("limit should be between 5 and 1000" )
101100 }
102-
103101 // Validate label format if provided
104102 if opts .Label != "" {
105103 return common .ValidateLabels (opts .Label )
106104 }
107-
108105 if len (args ) > 0 {
109106 opts .ResourceName = args [0 ]
110107 }
@@ -131,7 +128,7 @@ func listTaskRuns(ctx context.Context, p common.Params, opts *options.ListOption
131128 // Handle all namespaces
132129 parent := fmt .Sprintf ("%s/results/-" , p .Namespace ())
133130 if opts .AllNamespaces {
134- parent = "*/results/-"
131+ parent = common . AllNamespacesResultsParent
135132 }
136133
137134 // Create initial request
0 commit comments