Skip to content

Commit

Permalink
feat(krew): enable release automation (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghouscht authored Dec 21, 2021
1 parent dc7c2a2 commit 83732ae
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release
on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*'
jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -19,3 +19,5 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update new version in krew-index
uses: rajatjindal/[email protected]
35 changes: 35 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: kuota-calc
spec:
version: {{ .TagName }}
homepage: https://github.com/postfinance/kuota-calc
shortDescription: Calculate needed quota to perform rolling updates.
description: |
This plugin calculates the maximum needed resource quota for you. The deployment
strategy, replicas and all containers are taken into account to calculate the
resources needed in order to be able to perform a rolling update and still have
enough resource quota.
caveats: |
* Currently kuota-calc supports apps/v1.Deployment, apps/v1.StatefulSet,
apps/v1.DaemonSet, batch/v1.CronJob, batch/v1.Job and v1.Pod resources
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{ addURIAndSha "https://github.com/postfinance/kuota-calc/releases/download/{{ .TagName}}/kuota-calc_darwin_x86_64.zip" .TagName }}
bin: kuota-calc
- selector:
matchLabels:
os: linux
arch: amd64
{{ addURIAndSha "https://github.com/postfinance/kuota-calc/releases/download/{{ .TagName}}/kuota-calc_linux_x86_64.zip" .TagName }}
bin: kuota-calc
- selector:
matchLabels:
os: windows
arch: amd64
{{ addURIAndSha "https://github.com/postfinance/kuota-calc/releases/download/{{ .TagName}}/kuota-calc_windows.zip" .TagName }}
bin: kuota-calc.exe

0 comments on commit 83732ae

Please sign in to comment.