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.
Modify tkn version output to hide Triggers and Dashboard version if t…
…hey are not installed and added required unit tests. Signed-off-by: Divyansh42 <diagrawa@redhat.com>
- Loading branch information
1 parent
7168e57
commit efd31f9
Showing
8 changed files
with
123 additions
and
10 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
pkg/cmd/version/testdata/TestGetVersions-deployment_only_with_pipeline_installed.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,2 @@ | ||
Client version: dev | ||
Pipeline version: v0.10.0 |
4 changes: 4 additions & 0 deletions
4
...estdata/TestGetVersions-deployment_with_pipeline,_triggers_and_dashboard_installed.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,4 @@ | ||
Client version: dev | ||
Pipeline version: v0.10.0 | ||
Triggers version: v0.5.0 | ||
Dashboard version: v0.7.0 |
3 changes: 3 additions & 0 deletions
3
.../version/testdata/TestGetVersions-deployment_with_pipeline_and_dashboard_installed.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,3 @@ | ||
Client version: dev | ||
Pipeline version: v0.10.0 | ||
Dashboard version: v0.7.0 |
3 changes: 3 additions & 0 deletions
3
...d/version/testdata/TestGetVersions-deployment_with_pipeline_and_triggers_installed.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,3 @@ | ||
Client version: dev | ||
Pipeline version: v0.10.0 | ||
Triggers version: v0.5.0 |
2 changes: 2 additions & 0 deletions
2
pkg/cmd/version/testdata/TestGetVersions-empty_deployment_items.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,2 @@ | ||
Client version: dev | ||
Pipeline version: unknown, pipeline controller may be installed in another namespace please use tkn version -n {namespace} |
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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
Client version: v1.2.3 | ||
Pipeline version: unknown, pipeline controller may be installed in another namespace please use tkn version -n {namespace} | ||
Triggers version: unknown, triggers controller may be installed in another namespace please use tkn version -n {namespace} | ||
Dashboard version: unknown, dashboard controller may be installed in another namespace please use tkn version -n {namespace} |
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