Skip to content

fix: use azurecli login for AKS kubeconfig and fix az symlink in symlink-binaries#288

Draft
amdove wants to merge 1 commit into
mainfrom
az-workspaces-fix
Draft

fix: use azurecli login for AKS kubeconfig and fix az symlink in symlink-binaries#288
amdove wants to merge 1 commit into
mainfrom
az-workspaces-fix

Conversation

@amdove
Copy link
Copy Markdown
Contributor

@amdove amdove commented May 8, 2026

setupAzureKubeConfig was writing raw AKS kubeconfig bytes directly to disk,
bypassing BuildAKSKubeconfigString which replaces --login devicecode with
--login azurecli. This caused kubelogin to prompt for device code auth on every
kubectl/k9s invocation even with a valid az session.

symlink-binaries was creating a symlink to /usr/bin/az, which is a bash script
that uses BASH_SOURCE-relative paths to find its Python interpreter — a symlink
breaks that calculation. Now writes a wrapper script that calls Python directly.

Description

Code Flow

Category of change

  • Bug fix (non-breaking change which fixes an issue)
  • Version upgrade (upgrading the version of a service or product)
  • New feature (non-breaking change which adds functionality)
  • Build: a code change that affects the build system or external dependencies
  • Performance: a code change that improves performance
  • Refactor: a code change that neither fixes a bug nor adds a feature
  • Documentation: documentation changes
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have reviewed my own diff and added inline comments on lines I want reviewers to focus on or that I am uncertain about

…ink-binaries

setupAzureKubeConfig was writing raw AKS kubeconfig bytes directly to disk,
bypassing BuildAKSKubeconfigString which replaces --login devicecode with
--login azurecli. This caused kubelogin to prompt for device code auth on every
kubectl/k9s invocation even with a valid az session.

symlink-binaries was creating a symlink to /usr/bin/az, which is a bash script
that uses BASH_SOURCE-relative paths to find its Python interpreter — a symlink
breaks that calculation. Now writes a wrapper script that calls Python directly.
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.

1 participant