Skip to content

[installer-tests] fix azure authentication #12665

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

Merged
merged 1 commit into from
Sep 6, 2022
Merged

Conversation

nandajavarma
Copy link
Contributor

Description

Currently, for the cleanup job, we try to get the kubeconfig file so as to delete the gitpod installation, external-dns etc. that will remove loadbalancers and such. In azure, the aws cli is currently throwing an error saying it is not logged in. It turns out, it isn't automatically picking up the env vars anymore, we have to explicitly login using them. This PR logs in using azure cli before getting the kubeconfig.

Related Issue(s)

Fixes #

How to test

You can try exporting the suggested env vars, and running make azure-kubeconfig from install/tests/ directory.

Release Notes

NONE

Documentation

Werft options:

  • /werft with-preview

@nandajavarma nandajavarma requested a review from a team September 6, 2022 04:28
@github-actions github-actions bot added the team: delivery Issue belongs to the self-hosted team label Sep 6, 2022
Copy link
Contributor

@Pothulapati Pothulapati left a comment

Choose a reason for hiding this comment

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

Haven't specifically tested it, but manually logging in using the az cli before we can retrieve the kubeconfig doesn't sound wrong.

Looks like it is a known issue where the CLI has to write to disk, and cannot directly use the env variables.

@roboquat roboquat merged commit 789f142 into main Sep 6, 2022
@roboquat roboquat deleted the nvn/fix-aks-creds branch September 6, 2022 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none size/XS team: delivery Issue belongs to the self-hosted team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants