Skip to content

chore(versions): bump pinned tool versions and unify kubelogin between settings and templates#2278

Draft
bosesuneha wants to merge 1 commit into
Azure:mainfrom
bosesuneha:chore/bump-pinned-tool-versions
Draft

chore(versions): bump pinned tool versions and unify kubelogin between settings and templates#2278
bosesuneha wants to merge 1 commit into
Azure:mainfrom
bosesuneha:chore/bump-pinned-tool-versions

Conversation

@bosesuneha

@bosesuneha bosesuneha commented Jul 1, 2026

Copy link
Copy Markdown
Member

Addresses "stop defaulting to old tool versions" and "update tool versions in generated workflows" from the feedback doc.

Version bumps

Setting Old New
azure.kubelogin.releaseTag v0.0.31 v0.2.19
azure.kubectlgadget.releaseTag v0.51.0 v0.53.2
aks.drafttool.releaseTag v0.0.38 v0.17.14
aks.retinatool.releaseTag v0.0.26 v1.2.2
aks.aksmcpserver.releaseTag v0.0.17 v0.0.19

Platform assets verified for each. Draft skipped v0.17.15 because its assets aren't uploaded yet.

Kubelogin split-brain fix

Setting default was v0.0.31 but 4 workflow templates hard-coded v0.0.25. Replaced the hard-code with a { { KUBELOGINVERSION } } placeholder that workflowTemplate.ts substitutes from the current setting value at generation time.

Docs

New "Pinned tool versions" section in docs/book/src/release/releasing.md with an update-check snippet so these get reviewed each release.

Tests

207 passing (+2): both renderers substitute the placeholder with a well-formed vX.Y.Z, and every deploy job in the multi-container variant uses the same version.

…n settings and templates

Two related problems addressed:

1. Every pinned third-party tool version was stale. Bump to current stable:
   - azure.kubelogin.releaseTag:      v0.0.31  -> v0.2.19
   - azure.kubectlgadget.releaseTag:  v0.51.0  -> v0.53.2
   - aks.drafttool.releaseTag:        v0.0.38  -> v0.17.14
     (v0.17.15 exists but has no uploaded assets yet)
   - aks.retinatool.releaseTag:       v0.0.26  -> v1.2.2
   - aks.aksmcpserver.releaseTag:     v0.0.17  -> v0.0.19

2. Kubelogin was pinned in TWO places that disagreed: the setting default
   above, and a hard-coded 'v0.0.25' in four generated-workflow templates.
   Generated CI was silently using a different (older) kubelogin than the
   local CLI, and there was no mechanism to keep them in sync.

   Fix: replace the hard-coded value in all four templates with a new
   { { KUBELOGINVERSION } } placeholder. workflowTemplate.ts substitutes
   the current azure.kubelogin.releaseTag setting value at generation time
   so user overrides propagate into freshly generated workflows.
   A KUBELOGIN_FALLBACK_VERSION constant provides the value when the
   setting isn't readable (e.g. in unit tests that don't boot VS Code
   config); it is kept in sync with the package.json default.

Docs: added a 'Pinned tool versions' section to docs/book/src/release/releasing.md
with a table of settings, upstream repos, and a one-liner shell snippet to
check for updates each release, so this drifts less next time.

Tests: two new assertions in workflowTemplate.test.ts confirm the placeholder
is substituted with a well-formed semver tag in both the single-container
and multi-container templates, and that every deploy job in the multi-container
variant uses the same version.
@bosesuneha bosesuneha marked this pull request as draft July 1, 2026 00:56
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