Closed vania-pooh closed 1 year ago
it works for me. not sure what could be causing this but could it be something about your local networking?
$ pbpaste > vm-unstable.yml && cat vm-unstable.yml
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: vm-unstable
spec:
version: v0.0.3
homepage: https://some-url/
shortDescription: Some short description
description: Some description.
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
uri: https://download.aerokube.com/boot/kubectl-vm/latest/kubectl-vm_latest_darwin_amd64.zip
sha256: eb0995d97bf37735e2daa8a615b7fac2f4c3524303c553ed4501707adfdd88df
bin: kubectl-vm
$ wget https://download.aerokube.com/boot/kubectl-vm/latest/kubectl-vm_latest_darwin_amd64.zip
--2023-08-22 14:24:04-- https://download.aerokube.com/boot/kubectl-vm/latest/kubectl-vm_latest_darwin_amd64.zip
Resolving download.aerokube.com (download.aerokube.com)... 18.244.214.2, 18.244.214.30, 18.244.214.73, ...
Connecting to download.aerokube.com (download.aerokube.com)|18.244.214.2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9988544 (9.5M) [application/zip]
Saving to: ‘kubectl-vm_latest_darwin_amd64.zip’
kubectl-vm_latest_darwin_amd64.zip 100%[========================================================================================================================>] 9.53M 37.1MB/s in 0.3s
2023-08-22 14:24:05 (37.1 MB/s) - ‘kubectl-vm_latest_darwin_amd64.zip’ saved [9988544/9988544]
$ shasum -a 256 kubectl-vm_latest_darwin_amd64.zip
cc6c22b877ab03add1ccb58f3421ca9e7cffd886b3edd2c7a0010c87be13f890 kubectl-vm_latest_darwin_amd64.zip
$ sed 's/eb0995d97bf37735e2daa8a615b7fac2f4c3524303c553ed4501707adfdd88df/cc6c22b877ab03add1ccb58f3421ca9e7cffd886b3edd2c7a0010c87be13f890/' -i vm-unstable.yml
$ cat vm-unstable.yml
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: vm-unstable
spec:
version: v0.0.3
homepage: https://some-url/
shortDescription: Some short description
description: Some description.
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
uri: https://download.aerokube.com/boot/kubectl-vm/latest/kubectl-vm_latest_darwin_amd64.zip
sha256: cc6c22b877ab03add1ccb58f3421ca9e7cffd886b3edd2c7a0010c87be13f890
bin: kubectl-vm
$ kubectl krew install --manifest vm-unstable.yml
Installing plugin: vm-unstable
Installed plugin: vm-unstable
\
| Use this plugin:
| kubectl vm-unstable
| Documentation:
| https://some-url/
/
i had to update the sha and i omitted the verbose logging
@chriskim06 yeah, seems to be. Now it works for me too. Probably related to caching in our CDN.
I'm developing a manifest for my kubectl plugin that should will be soon published as custom Krew index. Currently manifest is as follows (omitted all platforms except Darwin AMD64 for simplicity):
Using latest stable release:
Trying to test this manifest locally I get:
Krew seems to be not downloading all the bytes of my archive, because
content-length
header is as follows:You can see that
content-length = 9989259
whereas krew is saying:Now if I download the same file with curl and try to install with krew - everything works: