Here is SAMPLEctxon.yaml file. it needs to create in LOCAL first
apiVersion:krew.googlecontainertools.github.com/v1alpha2kind:Pluginmetadata:name:ctxonspec:platforms: - sha256:64e336dca2d0d152687b6d837ae5d1d05b59ca409064056f4cb2598ca00fe764uri:https://github.com/sysnet4admin/kubectxon/releases/download/v0.0.3/kubectxon_v0.0.3_linux_arm64.tar.gzbin:kubectxonfiles: - from:"kubectxon"to:"." - from:"LICENSE"to:"."selector:matchExpressions: - {key:os,operator:In,values: [darwin,linux]}version:"v0.0.3"homepage:https://github.com/sysnet4admin/kubectxonshortDescription: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.
$kubectlkrewinstall--manifest=ctxon.yaml--archive=kubectxon_v0.0.3_linux_arm64.tar.gzInstallingplugin:ctxonW0512 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