-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
spec.homepage
field to the plugin manifest (#158)
* Add `spec.homepage` field to the plugin manifest The `spec.homepage` field of the plugin manifest defines the url of the plugin project homepage. The field value should be a valid url. In addition, if the `spec.homepage` field is defined in plugin manifest, `kubectl krew info` command displays that field value as HOMEPAGE as follows: $ kubectl krew info krew NAME: krew URI: https://storage.googleapis.com/krew/v0.2.1/krew.tar.gz SHA256: dc2f2e1ec8a0acb6f3e23580d4a8b38c44823e948c40342e13ff6e8e12edb15a VERSION: v0.2.1 HOMEPAGE: https://github.com/GoogleContainerTools/krew ... * Reorder the output fields of `krew info` command By this change, the output fields of `krew info` command are reordered as follows: ``` $ out/bin/krew-darwin_amd64 info krew NAME: krew URI: https://storage.googleapis.com/krew/v0.2.1/krew.tar.gz SHA256: dc2f2e1ec8a0acb6f3e23580d4a8b38c44823e948c40342e13ff6e8e12edb15a VERSION: v0.2.1 HOMEPAGE: https://github.com/GoogleContainerTools/krew CAVEATS: \ ... ``` * Edit testdata to add homepage field * Remove validating code for homepage field
- Loading branch information
1 parent
c94ea89
commit c931212
Showing
5 changed files
with
10 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,4 @@ spec: | |
matchLabels: | ||
os: "windows" | ||
shortDescription: "exists" | ||
|
||
homepage: "https://example.com/foo" |
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