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

feat: do not download reference CNI plugins #4597

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

paulgmiller
Copy link
Member

What type of PR is this?
Feature (kind of more removing a feature)

What this PR does / why we need it:
Reference CNI plugins were formally able to be downloaded from a share however this just caused out of sync issues and was not really used since a node image upgrade was still required. This just always uses the version cached on the vhd

Very open to suggestions on which components.json is used, if it should cache arm64 and amd64 and how to not have to sync vesions between compoennts.json and cse.sh.

Which issue(s) this PR fixes:
none

Requirements:

Special notes for your reviewer:

Release note:

none

@@ -33,7 +33,6 @@ SERVICE_PRINCIPAL_CLIENT_ID={{.AuthConfig.GetServicePrincipalId}}
NETWORK_PLUGIN={{getStringFromNetworkPluginType .GetNetworkConfig.GetNetworkPlugin}}
NETWORK_POLICY="{{getStringFromNetworkPolicyType .GetNetworkConfig.GetNetworkPolicy}}"
VNET_CNI_PLUGINS_URL={{.GetNetworkConfig.GetVnetCniPluginsUrl}}
CNI_PLUGINS_URL={{.GetNetworkConfig.GetCniPluginsUrl}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

cc @lilypan26 @anujmaheshwari1 for bootstrap contract changes

Copy link
Member Author

Choose a reason for hiding this comment

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

hoping rp can drop this too.

# and how is that different from AgentBaker/vhdbuilder/packer/components.json
#Only the seconde one caches arm?
if [[ $(isARM64) == 1 ]]; then
CNI_TGZ_TMP="cni-plugins-linux-arm64-v1.4.1.tgz"
Copy link
Collaborator

Choose a reason for hiding this comment

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

we're currently working on revamping all of our component download/install logic to reference versions baked into components.json, thus we'd want to use that here as well

Copy link
Member Author

Choose a reason for hiding this comment

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

Can I be a beta tester here?

@cameronmeissner cameronmeissner changed the title [feature] Do not download reference CNI plugins feat: do not download reference CNI plugins Jul 8, 2024
@cameronmeissner
Copy link
Collaborator

also, check-generated is sad, you need a make generate from repo root


# Is there a ${arch} variable I can use instead of the iff
Copy link
Collaborator

Choose a reason for hiding this comment

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

seems CPU_ARCH will already be defined at the global scope during build, though I guess installCNI will only ever be called at runtime after Devin's changes

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.

None yet

2 participants