Skip to content

Commit 5f2fe1f

Browse files
authored
feat: add krew releaser step (#532)
1 parent 9578250 commit 5f2fe1f

File tree

2 files changed

+63
-1
lines changed

2 files changed

+63
-1
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ jobs:
3333
version: latest
3434
args: release --clean
3535
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
38+
- name: Update new version in krew-index
39+
uses: rajatjindal/krew-release-bot@v0.0.46

.krew.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Generated from: https://rajatjindal.com/tools/krew-release-bot-helper/
2+
apiVersion: krew.googlecontainertools.github.com/v1alpha2
3+
kind: Plugin
4+
metadata:
5+
name: ai
6+
spec:
7+
version: {{ .TagName }}
8+
homepage: https://github.com/GoogleCloudPlatform/kubectl-ai
9+
shortDescription: AI-powered Kubernetes assistant
10+
description: |
11+
This plugin provides a natural language interface to carry out kubernetes
12+
related tasks. The plugin can plan and execute multiple steps given a high
13+
level description of a task.
14+
It's important to note that this plugin does not replace kubectl. Instead,
15+
it makes kubectl accessible to non-kubernetes users and makes kubectl users
16+
more productive because now they don't have to remember all the syntax and
17+
commands to perform common tasks.
18+
caveats: |
19+
This plugin uses AI models (LLM) to plan and execute tasks. It supports
20+
multiple LLM providers such as Gemini, Azure-OpenAI, Ollama, llamacpp.
21+
You can get the API key for the default provider (Gemini) from
22+
https://aistudio.google.com/app/apikey.
23+
platforms:
24+
- selector:
25+
matchLabels:
26+
os: linux
27+
arch: amd64
28+
{{addURIAndSha "https://github.com/GoogleCloudPlatform/kubectl-ai/releases/download/{{ .TagName }}/kubectl-ai_Linux_x86_64.tar.gz" .TagName }}
29+
bin: kubectl-ai
30+
- selector:
31+
matchLabels:
32+
os: linux
33+
arch: arm64
34+
{{addURIAndSha "https://github.com/GoogleCloudPlatform/kubectl-ai/releases/download/{{ .TagName }}/kubectl-ai_Linux_arm64.tar.gz" .TagName }}
35+
bin: kubectl-ai
36+
- selector:
37+
matchLabels:
38+
os: darwin
39+
arch: amd64
40+
{{addURIAndSha "https://github.com/GoogleCloudPlatform/kubectl-ai/releases/download/{{ .TagName }}/kubectl-ai_Darwin_x86_64.tar.gz" .TagName }}
41+
bin: kubectl-ai
42+
- selector:
43+
matchLabels:
44+
os: darwin
45+
arch: arm64
46+
{{addURIAndSha "https://github.com/GoogleCloudPlatform/kubectl-ai/releases/download/{{ .TagName }}/kubectl-ai_Darwin_arm64.tar.gz" .TagName }}
47+
bin: kubectl-ai
48+
- selector:
49+
matchLabels:
50+
os: windows
51+
arch: amd64
52+
{{addURIAndSha "https://github.com/GoogleCloudPlatform/kubectl-ai/releases/download/{{ .TagName }}/kubectl-ai_Windows_x86_64.zip" .TagName }}
53+
bin: kubectl-ai.exe
54+
- selector:
55+
matchLabels:
56+
os: windows
57+
arch: arm64
58+
{{addURIAndSha "https://github.com/GoogleCloudPlatform/kubectl-ai/releases/download/{{ .TagName }}/kubectl-ai_Windows_arm64.zip" .TagName }}
59+
bin: kubectl-ai.exe

0 commit comments

Comments
 (0)