Skip to content

Commit

Permalink
Bump Hub dependency with latest updates
Browse files Browse the repository at this point in the history
This update
- improves install, reinstall, upgrade, downgrade command to check
if resource is compatible with the pipelines version installed for
users with access to pipelines version otherwise will give a warning.
- adds a new command `check-upgrade` to check if newer version of task
is available.
- minor improvements in existing commands

Signed-off-by: Shivam Mukhade <[email protected]>
  • Loading branch information
SM43 authored and tekton-robot committed May 25, 2021
1 parent bd86190 commit a97fa80
Show file tree
Hide file tree
Showing 467 changed files with 19,651 additions and 5,060 deletions.
1 change: 1 addition & 0 deletions docs/cmd/tkn_hub.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Interact with tekton hub
### SEE ALSO

* [tkn](tkn.md) - CLI for tekton pipelines
* [tkn hub check-upgrade](tkn_hub_check-upgrade.md) - Check for upgrades of resources if present
* [tkn hub downgrade](tkn_hub_downgrade.md) - Downgrade an installed resource
* [tkn hub get](tkn_hub_get.md) - Get resource manifest by its name, kind, catalog, and version
* [tkn hub info](tkn_hub_info.md) - Display info of resource by its name, kind, catalog, and version
Expand Down
34 changes: 34 additions & 0 deletions docs/cmd/tkn_hub_check-upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## tkn hub check-upgrade

Check for upgrades of resources if present

### Usage

```
tkn hub check-upgrade
```

### Synopsis

Check for upgrades of resources if present

### Options

```
-c, --context string Name of the kubeconfig context to use (default: kubectl config current-context)
-h, --help help for check-upgrade
-k, --kubeconfig string Kubectl config file (default: $HOME/.kube/config)
-n, --namespace string Namespace to use (default: from $KUBECONFIG)
```

### Options inherited from parent commands

```
--api-server string Hub API Server URL (default "https://api.hub.tekton.dev")
```

### SEE ALSO

* [tkn hub](tkn_hub.md) - Interact with tekton hub
* [tkn hub check-upgrade task](tkn_hub_check-upgrade_task.md) - Check updates for Task installed via Hub CLI

47 changes: 47 additions & 0 deletions docs/cmd/tkn_hub_check-upgrade_task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
## tkn hub check-upgrade task

Check updates for Task installed via Hub CLI

### Usage

```
tkn hub check-upgrade task
```

### Synopsis

Check updates for Task installed via Hub CLI

### Examples


Check for Upgrades of Task installed via Tekton Hub CLI:

tkn hub check-upgrades task

The above command will check for upgrades of Tasks installed via Tekton Hub CLI
and will skip the Tasks which are not installed by Tekton Hub CLI.

NOTE: If Pipelines version is unknown it will show the latest version available
else it will show latest compatible version.


### Options

```
-h, --help help for task
```

### Options inherited from parent commands

```
--api-server string Hub API Server URL (default "https://api.hub.tekton.dev")
-c, --context string Name of the kubeconfig context to use (default: kubectl config current-context)
-k, --kubeconfig string Kubectl config file (default: $HOME/.kube/config)
-n, --namespace string Namespace to use (default: from $KUBECONFIG)
```

### SEE ALSO

* [tkn hub check-upgrade](tkn_hub_check-upgrade.md) - Check for upgrades of resources if present

70 changes: 70 additions & 0 deletions docs/man/man1/tkn-hub-check-upgrade-task.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
.TH "TKN\-HUB\-CHECK-UPGRADE\-TASK" "1" "" "Auto generated by spf13/cobra" ""
.nh
.ad l


.SH NAME
.PP
tkn\-hub\-check\-upgrade\-task \- Check updates for Task installed via Hub CLI


.SH SYNOPSIS
.PP
\fBtkn hub check\-upgrade task\fP


.SH DESCRIPTION
.PP
Check updates for Task installed via Hub CLI


.SH OPTIONS
.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for task


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-\-api\-server\fP="
\[la]https://api.hub.tekton.dev"\[ra]
Hub API Server URL

.PP
\fB\-c\fP, \fB\-\-context\fP=""
Name of the kubeconfig context to use (default: kubectl config current\-context)

.PP
\fB\-k\fP, \fB\-\-kubeconfig\fP=""
Kubectl config file (default: $HOME/.kube/config)

.PP
\fB\-n\fP, \fB\-\-namespace\fP=""
Namespace to use (default: from $KUBECONFIG)


.SH EXAMPLE
.PP
Check for Upgrades of Task installed via Tekton Hub CLI:

.PP
.RS

.nf
tkn hub check\-upgrades task

.fi
.RE

.PP
The above command will check for upgrades of Tasks installed via Tekton Hub CLI
and will skip the Tasks which are not installed by Tekton Hub CLI.

.PP
NOTE: If Pipelines version is unknown it will show the latest version available
else it will show latest compatible version.


.SH SEE ALSO
.PP
\fBtkn\-hub\-check\-upgrade(1)\fP
48 changes: 48 additions & 0 deletions docs/man/man1/tkn-hub-check-upgrade.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.TH "TKN\-HUB\-CHECK-UPGRADE" "1" "" "Auto generated by spf13/cobra" ""
.nh
.ad l


.SH NAME
.PP
tkn\-hub\-check\-upgrade \- Check for upgrades of resources if present


.SH SYNOPSIS
.PP
\fBtkn hub check\-upgrade\fP


.SH DESCRIPTION
.PP
Check for upgrades of resources if present


.SH OPTIONS
.PP
\fB\-c\fP, \fB\-\-context\fP=""
Name of the kubeconfig context to use (default: kubectl config current\-context)

.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for check\-upgrade

.PP
\fB\-k\fP, \fB\-\-kubeconfig\fP=""
Kubectl config file (default: $HOME/.kube/config)

.PP
\fB\-n\fP, \fB\-\-namespace\fP=""
Namespace to use (default: from $KUBECONFIG)


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-\-api\-server\fP="
\[la]https://api.hub.tekton.dev"\[ra]
Hub API Server URL


.SH SEE ALSO
.PP
\fBtkn\-hub(1)\fP, \fBtkn\-hub\-check\-upgrade\-task(1)\fP
2 changes: 1 addition & 1 deletion docs/man/man1/tkn-hub.1
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ Interact with tekton hub

.SH SEE ALSO
.PP
\fBtkn(1)\fP, \fBtkn\-hub\-downgrade(1)\fP, \fBtkn\-hub\-get(1)\fP, \fBtkn\-hub\-info(1)\fP, \fBtkn\-hub\-install(1)\fP, \fBtkn\-hub\-reinstall(1)\fP, \fBtkn\-hub\-search(1)\fP, \fBtkn\-hub\-upgrade(1)\fP
\fBtkn(1)\fP, \fBtkn\-hub\-check\-upgrade(1)\fP, \fBtkn\-hub\-downgrade(1)\fP, \fBtkn\-hub\-get(1)\fP, \fBtkn\-hub\-info(1)\fP, \fBtkn\-hub\-install(1)\fP, \fBtkn\-hub\-reinstall(1)\fP, \fBtkn\-hub\-search(1)\fP, \fBtkn\-hub\-upgrade(1)\fP
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/cpuguy83/go-md2man v1.0.10
github.com/fatih/color v1.9.0
github.com/ghodss/yaml v1.0.0
github.com/google/go-cmp v0.5.4
github.com/google/go-cmp v0.5.5
github.com/google/go-containerregistry v0.4.1-0.20210128200529-19c2b639fab1
github.com/hako/durafmt v0.0.0-20191009132224-3f39dc1ed9f4
github.com/hinshun/vt10x v0.0.0-20180809195222-d55458df857c
Expand All @@ -19,7 +19,7 @@ require (
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.1.3
github.com/spf13/pflag v1.0.5
github.com/tektoncd/hub/api v0.0.0-20210208113044-f2a63f81502c
github.com/tektoncd/hub/api v0.0.0-20210517094448-c032b766a83c
github.com/tektoncd/pipeline v0.23.0
github.com/tektoncd/plumbing v0.0.0-20210514044347-f8a9689d5bd5
github.com/tektoncd/triggers v0.13.0
Expand Down
Loading

0 comments on commit a97fa80

Please sign in to comment.