-
Notifications
You must be signed in to change notification settings - Fork 2
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 #1 from mattfenwick/krew-automation
set up krew automation
- Loading branch information
Showing
2 changed files
with
74 additions
and
0 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,24 @@ | ||
name: release | ||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Setup Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.16 | ||
- name: GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Update new version in krew-index | ||
uses: rajatjindal/krew-release-bot@v0.0.38 |
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,50 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: cyclonus | ||
spec: | ||
version: "{{ .TagName }}" | ||
platforms: | ||
- selector: | ||
matchLabels: | ||
os: linux | ||
arch: amd64 | ||
{{addURIAndSha "https://github.com/mattfenwick/kubectl-cyclonus/releases/download/{{ .TagName }}/kubectl-cyclonus_linux_amd64.tar.gz" .TagName }} | ||
files: | ||
- from: "./kubectl-cyclonus" | ||
to: "cyclonus" | ||
- from: LICENSE | ||
to: "." | ||
bin: "cyclonus" | ||
- selector: | ||
matchLabels: | ||
os: darwin | ||
arch: amd64 | ||
{{addURIAndSha "https://github.com/mattfenwick/kubectl-cyclonus/releases/download/{{ .TagName }}/kubectl-cyclonus_darwin_amd64.tar.gz" .TagName }} | ||
files: | ||
- from: "./kubectl-cyclonus" | ||
to: "cyclonus" | ||
- from: LICENSE | ||
to: "." | ||
bin: "cyclonus" | ||
- selector: | ||
matchLabels: | ||
os: windows | ||
arch: amd64 | ||
{{addURIAndSha "https://github.com/mattfenwick/kubectl-cyclonus/releases/download/{{ .TagName }}/kubectl-cyclonus_windows_amd64.zip" .TagName }} | ||
files: | ||
- from: "/kubectl-cyclonus.exe" | ||
to: "cyclonus.exe" | ||
- from: LICENSE | ||
to: "." | ||
bin: "cyclonus.exe" | ||
shortDescription: NetworkPolicy analysis tool suite | ||
homepage: https://github.com/mattfenwick/kubectl-cyclonus | ||
description: | | ||
This plugin provides a suite of tools for working with network policies, including: | ||
- linting to detect common problems | ||
- target- and pod-based resolution of policies, to understand how policies work in practice | ||
and override each other | ||
- simulation of traffic allow/deny based on application of policies to source and destination | ||
pod and namespace labels and IP addresses | ||