Skip to content

Commit

Permalink
Merge pull request #1 from mattfenwick/krew-automation
Browse files Browse the repository at this point in the history
set up krew automation
  • Loading branch information
mattfenwick authored Feb 25, 2021
2 parents eae5cf1 + 4586586 commit 3fb8d18
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yaml
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
50 changes: 50 additions & 0 deletions .krew.yaml
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

0 comments on commit 3fb8d18

Please sign in to comment.