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

deps(al2): update logic for pulling cni plugins and bump version #2048

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ndbaker1
Copy link
Member

Issue #, if available:

Description of changes:

Updates the binary artifact storage scheme for the cni-plugins bundle

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Testing Done

See this guide for recommended testing for PRs. Some tests may not apply. Completing tests and providing additional validation steps are not required, but it is recommended and may reduce review time and time to merge.

@ndbaker1 ndbaker1 changed the title Update logic for pulling cni plugins and bump version deps(al2): update logic for pulling cni plugins and bump version Nov 12, 2024
local os="linux"
local arch="$ARCH"
local version=""
while getopts 'n:o:a:v:' OPTION; do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using this in a function is a bit odd IMO. positional args would be more verbose in some places, but simpler to grok

Copy link
Member Author

@ndbaker1 ndbaker1 Nov 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree 😅 looking for something with sane defaults and the ability to override that wasn't too verbose, ill either keep iterating on it or just inline all the paths

local binary_name=""
local os="linux"
local arch="$ARCH"
local version=""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how could we support a version marker for binaries? e.g.

bin/$binary_name/latest.txt => 1.2.3

bin/$binary_name/1.2.3/$os/$arch/$binary_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants