forked from tektoncd/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Optional status of Workspaces in describe cmd
Until now there was no way user could get to know whether the defined workspace in the Task/Pipeline are optional or not until and unless they start the Task/Pipeline interactively. This patch adds the `Optional` column in the describe command of Task/Pipeline which will print true/false based on what is defined in the definition of Task/Pipeline. Signed-off-by: vinamra28 <[email protected]>
- Loading branch information
1 parent
a3a76ef
commit 476a1be
Showing
8 changed files
with
194 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
pkg/cmd/pipeline/testdata/TestPipelineDescribe_OptionalWorkspaces.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Name: pipeline | ||
Namespace: ns | ||
|
||
Resources | ||
|
||
NAME TYPE | ||
name git | ||
|
||
Results | ||
|
||
NAME DESCRIPTION | ||
result-1 This is a descripti... | ||
result-2 This is a descripti... | ||
result-3 | ||
|
||
Workspaces | ||
|
||
NAME DESCRIPTION OPTIONAL | ||
test test workspace false | ||
test-optional test optional works... true | ||
|
||
Tasks | ||
|
||
NAME TASKREF RUNAFTER TIMEOUT PARAMS | ||
task-1 task-1 --- --- | ||
task-2 task-2 --- --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
pkg/cmd/task/testdata/TestTaskDescribe_With_OptionalWorkspaces.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Name: task-1 | ||
Namespace: ns | ||
Description: a test description | ||
|
||
Workspaces | ||
|
||
NAME DESCRIPTION OPTIONAL | ||
test test workspace false | ||
test-optional test optional works... true | ||
|
||
Steps | ||
|
||
hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters