Skip to content

Commit

Permalink
👷 setup krew-release-bot
Browse files Browse the repository at this point in the history
  • Loading branch information
davidB committed Sep 24, 2023
1 parent a6dd9c2 commit 38f316f
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,10 @@ jobs:
tag: ${{ steps.zip-release-ci-flow.outputs.dist_version }}
prerelease: ${{ github.ref == format('refs/tags/{0}', steps.zip-release-ci-flow.outputs.dist_version) }}
overwrite: true

krew-update:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Update new version in krew-index
uses: rajatjindal/[email protected]
44 changes: 44 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: view-allocations
spec:
version: "v{{ .TagName }}"
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/davidB/kubectl-view-allocations/releases/download/{{ .TagName }}/kubectl-view-allocations_{{ .TagName }}-x86_64-apple-darwin.tar.gz" .TagName | indent 6 }}
bin: "./kubectl-view-allocations"
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha "https://github.com/davidB/kubectl-view-allocations/releases/download/{{ .TagName }}/kubectl-view-allocations_{{ .TagName }}-aarch64-apple-darwin.tar.gz" .TagName | indent 6}}
bin: "./kubectl-view-allocations"
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/davidB/kubectl-view-allocations/releases/download/{{ .TagName }}/kubectl-view-allocations_{{ .TagName }}-x86_64-unknown-linux-musl.tar.gz" .TagName | indent 6}}
bin: "./kubectl-view-allocations"
- selector:
matchLabels:
os: linux
arch: arm64
{{addURIAndSha "https://github.com/davidB/kubectl-view-allocations/releases/download/{{ .TagName }}/kubectl-view-allocations_{{ .TagName }}-aarch64-unknown-linux-musl.tar.gz" .TagName | indent 6}}
bin: "./kubectl-view-allocations"
- selector:
matchLabels:
os: windows
arch: amd64
{{addURIAndSha "https://github.com/davidB/kubectl-view-allocations/releases/download/{{ .TagName }}/kubectl-view-allocations_{{ .TagName }}-x86_64-pc-windows-msvc.zip" .TagName | indent 6}}
bin: "./kubectl-view-allocations.exe"
shortDescription: List allocations per resources, nodes, pods.
homepage: https://github.com/davidB/kubectl-view-allocations
description: |
This plugin lists resources (cpu, memory, gpu,...) allocations (requested,
limit, allocatable) as defined in the manifest of nodes and running pods,
and utilization from metrics-server.
try `kubectl view-allocations -h`, `kubectl view-allocations`

0 comments on commit 38f316f

Please sign in to comment.