Both tar.gz or zip are okay. so you could use as your preference.
$ tar cvfz kubectxon_v0.0.3_linux_arm64.tar.gz kubectxon LICENSE
1-4.Upload achieved file your repo's releases
1-5.make manifest file
Here is SAMPLEctxon.yaml file. it needs to create in LOCAL first
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: ctxon
spec:
platforms:
- sha256: 64e336dca2d0d152687b6d837ae5d1d05b59ca409064056f4cb2598ca00fe764
uri: https://github.com/sysnet4admin/kubectxon/releases/download/v0.0.3/kubectxon_v0.0.3_linux_arm64.tar.gz
bin: kubectxon
files:
- from: "kubectxon"
to: "."
- from: "LICENSE"
to: "."
selector:
matchExpressions:
- {key: os, operator: In, values: [darwin,linux]}
version: "v0.0.3"
homepage: https://github.com/sysnet4admin/kubectxon
shortDescription: Easy to check active-context in kubernetes thru the prompt
1-6.Check Validation
It can check automatically (especially sha256), so you could verify and modify as this guideline.
Here is some error on sha256, so I changed as this guideline. or you could make it before showing this error. online-sha256 link.
$ kubectl krew install --manifest=ctxon.yaml --archive=kubectxon_v0.0.3_linux_arm64.tar.gz
Installing plugin: ctxon
W0512 14:12:58.127870 48774 install.go:164] failed to install plugin "ctxon": install failed: failed to unpack into staging dir: failed to unpack the plugin archive: checksum does not match, want: 48ff5e51920b76506f99e18ff927a6b79a354d306e3cb0063af6517b53c605cb, got 64e336dca2d0d152687b6d837ae5d1d05b59ca409064056f4cb2598ca00fe764
F0512 14:12:58.127999 48774 root.go:79] failed to install some plugins: [ctxon]: install failed: failed to unpack into staging dir: failed to unpack the plugin archive: checksum does not match, want: 48ff5e51920b76506f99e18ff927a6b79a354d306e3cb0063af6517b53c605cb, got 64e336dca2d0d152687b6d837ae5d1d05b59ca409064056f4cb2598ca00fe764
2.Publish your files
2-1.Create REPO like this tree structure.
i.e. manifest files should locate in plugins folder from main.
plugins folder have actual manifests. so upload your manifest in plugins folder