redpanda icon indicating copy to clipboard operation
redpanda copied to clipboard

rpk: try download plugin directly from cloudsmith

Open r-vasquez opened this issue 3 years ago • 1 comments

Cover letter

rpk plugin install will try to download the plugin directly from Cloudsmith URL:

https://packages.vectorized.io/cloudv2/raw/names/rpk-plugin-[PLUGIN-NAME]-[OS]-[ARCH]/versions/0.0.3/rpk-plugin-[PLUGIN-NAME]-[OS]-[ARCH]

if an error occurs then it'll fall back to the old behavior of looking for the plugin in the S3 manifest.

Fixes #5785

Backport Required

  • [x] v22.2.x

UX changes

  • none

Release notes

  • none

r-vasquez avatar Aug 04 '22 19:08 r-vasquez

i’ve uploaded sample packages to https://cloudsmith.io/~redpanda/repos/rpk-plugins/packages/ . this is an example URL:

https://packages.vectorized.io/rpk-plugins/raw/names/byoc-linux-amd64/versions/0.0.1~alpha1/byoc.tgz

note that the domain will change this week to dl.redpanda.com. so the template will be something like:

https://dl.redpanda.com/rpk-plugins/raw/names/byoc-{{OS}}-{{ARCH}}/versions/{{VERSION}}/byoc.tgz

ivotron avatar Aug 10 '22 05:08 ivotron

fyi, dl.redpanda.com is now active

ivotron avatar Aug 12 '22 00:08 ivotron

Closing for now since it's not urgent anymore, please let us know if this is needed, otherwise, we will likely wait for the native cloud top-level command

r-vasquez avatar Aug 23 '22 20:08 r-vasquez

reopening as per discussion on reordering priorities for rpk cloudv2 byoc plugin in q3 and q4

ivotron avatar Sep 06 '22 14:09 ivotron

@ivotron @r-vasquez @twmb Are we ok with hardcoding an entitlement token in a public repo? Is the scope of the token limited to rpk plugins repo? Why not making that repo public?

simon0191 avatar Oct 12 '22 06:10 simon0191

the repo has been made public

ivotron avatar Oct 12 '22 19:10 ivotron

Thanks @ivotron, changed the code to use the public URL:

https://dl.redpanda.com/rpk-plugins/raw/names/byoc-linux-amd64/versions/0.0.1~alpha1/byoc.tgz

r-vasquez avatar Oct 13 '22 17:10 r-vasquez