Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kubectl plugin manifest & Update krew-index automatically #3

Merged
merged 2 commits into from
Mar 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
with:
go-version: '>=1.20'
cache: true
# More assembly might be required: Docker logins, GPG, etc. It all depends
# on your needs.
- uses: goreleaser/goreleaser-action@v4
with:
# either 'goreleaser' (default) or 'goreleaser-pro':
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
- name: Update new version in krew-index
uses: rajatjindal/[email protected]
36 changes: 36 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: kopilot
spec:
version: {{ .TagName }}
homepage: https://github.com/knight42/kopilot
shortDescription: Diagnose/audit resources with AI
description: |
Kopilot will send the yaml of target resource to AI services to help you troubleshoot the Kubernetes clusters
by diagnosing unhealthy workload or nodes, and audit Kubernetes resource to find the security misconfigurations.
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{addURIAndSha "https://github.com/knight42/kopilot/releases/download/{{ .TagName }}/kopilot_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
bin: kopilot
- selector:
matchLabels:
os: darwin
arch: arm64
{{addURIAndSha "https://github.com/knight42/kopilot/releases/download/{{ .TagName }}/kopilot_{{ .TagName }}_darwin_arm64.tar.gz" .TagName }}
bin: kopilot
- selector:
matchLabels:
os: linux
arch: amd64
{{addURIAndSha "https://github.com/knight42/kopilot/releases/download/{{ .TagName }}/kopilot_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
bin: kopilot
- selector:
matchLabels:
os: linux
arch: arm64
{{addURIAndSha "https://github.com/knight42/kopilot/releases/download/{{ .TagName }}/kopilot_{{ .TagName }}_linux_arm64.tar.gz" .TagName }}
bin: kopilot