-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from rajatjindal/krew-release-bot
add krew release bot
- Loading branch information
Showing
5 changed files
with
72 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: sniff | ||
spec: | ||
version: {{ .TagName }} | ||
homepage: https://github.com/eldadru/ksniff | ||
platforms: | ||
- {{ addURIAndSha "https://github.com/eldadru/ksniff/releases/download/{{ .TagName }}/ksniff.zip" .TagName }} | ||
bin: kubectl-sniff | ||
files: | ||
- from: ./kubectl-sniff-darwin | ||
to: kubectl-sniff | ||
- from: ./static-tcpdump | ||
to: static-tcpdump | ||
selector: | ||
matchLabels: | ||
os: darwin | ||
arch: amd64 | ||
- {{ addURIAndSha "https://github.com/eldadru/ksniff/releases/download/{{ .TagName }}/ksniff.zip" .TagName }} | ||
bin: kubectl-sniff | ||
files: | ||
- from: ./kubectl-sniff | ||
to: kubectl-sniff | ||
- from: ./static-tcpdump | ||
to: static-tcpdump | ||
selector: | ||
matchLabels: | ||
os: linux | ||
arch: amd64 | ||
- {{ addURIAndSha "https://github.com/eldadru/ksniff/releases/download/{{ .TagName }}/ksniff.zip" .TagName }} | ||
bin: kubectl-sniff.exe | ||
files: | ||
- from: ./kubectl-sniff-windows | ||
to: kubectl-sniff.exe | ||
- from: ./static-tcpdump | ||
to: static-tcpdump | ||
selector: | ||
matchLabels: | ||
os: windows | ||
arch: amd64 | ||
shortDescription: Start a remote packet capture on pods using tcpdump and wireshark | ||
caveats: | | ||
This plugin needs the following programs: | ||
* wireshark (optional, used for live capture) | ||
description: | | ||
When working with micro-services, many times it's very helpful to get a capture of the network | ||
activity between your micro-service and it's dependencies. | ||
ksniff use kubectl to upload a statically compiled tcpdump binary to your pod and redirecting it's | ||
output to your local Wireshark for smooth network debugging experience. |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
export KREW_RELEASE_BOT_VERSION=v0.0.36 | ||
|
||
curl -LO https://github.com/rajatjindal/krew-release-bot/releases/download/${KREW_RELEASE_BOT_VERSION}/krew-release-bot_${KREW_RELEASE_BOT_VERSION}_linux_amd64.tar.gz | ||
tar -xvf krew-release-bot_${KREW_RELEASE_BOT_VERSION}_linux_amd64.tar.gz | ||
./krew-release-bot action |
This file was deleted.
Oops, something went wrong.