Skip to content

Commit

Permalink
add another deploy element to publish krew-index
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatjindal committed Feb 3, 2020
1 parent f395df9 commit 11933fd
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .krew.yaml
@@ -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.
6 changes: 6 additions & 0 deletions .travis.yml
Expand Up @@ -26,3 +26,9 @@ deploy:
on:
tags: true
branch: master
- provider: script
script:
- env GITHUB_TOKEN=${GITHUB_OAUTH_TOKEN} bash scripts/update-krew-index.sh
on:
tags: true
branch: master
7 changes: 7 additions & 0 deletions scripts/update-krew-index.sh
@@ -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

0 comments on commit 11933fd

Please sign in to comment.