forked from kubernetes-sigs/external-dns
-
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 integration tests for
krew install
with --archive and --manifes…
…t options (kubernetes-sigs#245) * Add test cases for `krew install` with --archive and --manifest options * Improve formatting * ReplaceAll was added in go 1.12, but krew uses 1.11 * Rename test plugin from `test-foo` to `foo` * Use wildcard platform selector in test data * Add windows version of the test plugin for testing on windows
- Loading branch information
1 parent
2dab1a1
commit 7b2c944
Showing
4 changed files
with
105 additions
and
1 deletion.
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
Binary file not shown.
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,28 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: foo | ||
spec: | ||
version: "v0.1.0" | ||
shortDescription: A valid plugin for integration tests | ||
platforms: | ||
- uri: https://foo.bar/foo.tar.gz | ||
sha256: 354bad230cdd0966fc8c919476c4e6c7f2078b04a6ff7dead6a811cdc101d31e | ||
bin: foo.sh | ||
files: | ||
- from: ./foo.sh | ||
to: "." | ||
selector: | ||
matchExpressions: | ||
- key: os | ||
operator: In | ||
values: ["darwin", "linux"] | ||
- uri: https://foo.bar/foo.tar.gz | ||
sha256: 354bad230cdd0966fc8c919476c4e6c7f2078b04a6ff7dead6a811cdc101d31e | ||
bin: foo.bat | ||
files: | ||
- from: ./foo.bat | ||
to: "." | ||
selector: | ||
matchLabels: | ||
os: windows |
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,28 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: konfig | ||
spec: | ||
version: "v0.2.0" | ||
shortDescription: a plugin in central index with small size | ||
platforms: | ||
- uri: https://github.com/corneliusweig/konfig/releases/download/v0.2.0/bundle.tar.gz | ||
sha256: 7dc7b884ca92e3c9b39f905cc11bcf31e79b9c929741a4383d9ff61414101962 | ||
bin: konfig-krew | ||
files: | ||
- from: ./konfig-krew | ||
to: "." | ||
selector: | ||
matchExpressions: | ||
- key: os | ||
operator: In | ||
values: ["darwin", "linux"] | ||
- uri: https://github.com/corneliusweig/konfig/releases/download/v0.2.0/bundle.tar.gz | ||
sha256: 7dc7b884ca92e3c9b39f905cc11bcf31e79b9c929741a4383d9ff61414101962 | ||
bin: konfig-krew.exe | ||
files: | ||
- from: ./konfig-krew | ||
to: konfig-krew.exe | ||
selector: | ||
matchLabels: | ||
os: windows |