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

Don't install Azure CLI by default #1458

Merged
merged 1 commit into from
May 3, 2024

Conversation

mboersma
Copy link
Contributor

@mboersma mboersma commented May 1, 2024

Change description

The az CLI isn't necessary for Azure images to run, it's more of a troubleshooting or debugging tool, so let's not install it by default. You can still install it by enabling the debug_tools variable, for example:

PACKER_FLAGS="--var 'debug_tools=true'" noproxy=* \
  make -C images/capi build-azure-vhd-mariner-2

Related issues

Additional context

I wasn't sure how to test conditionally for the azure-cli package in Goss, so I removed it to match the default. If you have an idea how to keep this as a conditional test, please let me know!

Also this doesn't apply to Windows images currently because I wasn't positive that az wasn't actually required there. But maybe I should extend this behavior to Windows images as well? Feedback welcome.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 1, 2024
@mboersma mboersma added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label May 1, 2024
@mboersma
Copy link
Contributor Author

mboersma commented May 1, 2024

/cc @jsturtevant

FYI this doesn't apply to Windows currently. Should it?

@jsturtevant
Copy link
Contributor

FYI this doesn't apply to Windows currently. Should it?

What doesn't apply? We do install azure cli on Windows: #1326

@mboersma
Copy link
Contributor Author

mboersma commented May 1, 2024

Sorry, I meant that I didn't wire this up to not install on Windows; it still does so by default. Say the word and I'll try to make Windows images have the same default and option.

It will only be installed if the Packer `debug_tools` variable is `true`.
@mboersma
Copy link
Contributor Author

mboersma commented May 2, 2024

Updated to act the same way in Windows.

@jsturtevant
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 2, 2024
@jsturtevant
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jsturtevant

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 2, 2024
@jsturtevant
Copy link
Contributor

/hold
for the tests

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 2, 2024
@mboersma
Copy link
Contributor Author

mboersma commented May 3, 2024

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 3, 2024
@k8s-ci-robot k8s-ci-robot merged commit 99b33d9 into kubernetes-sigs:main May 3, 2024
12 checks passed
@mboersma mboersma deleted the azure-cli-opt-in branch May 3, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Don't install azure client by default
3 participants