Skip to content

Fix aks-flex-config release schema#203

Open
anson627 wants to merge 2 commits into
mainfrom
fix/aks-flex-config-release-schema
Open

Fix aks-flex-config release schema#203
anson627 wants to merge 2 commits into
mainfrom
fix/aks-flex-config-release-schema

Conversation

@anson627

Copy link
Copy Markdown
Collaborator

This pull request introduces legacy field aliases in the generated AKS flex node config to maintain compatibility with the current released aks-flex-node binary while the config schema is evolving. It also adds tests to ensure these legacy fields are present and correct in both identity and bootstrap-token modes.

Copilot AI review requested due to automatic review settings June 22, 2026 16:35
@anson627 anson627 changed the title Fix/aks flex config release schema Fix aks-flex-config release schema Jun 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the workstation-side scripts/aks-flex-config generator to emit legacy field aliases alongside the current RP-shaped config, preserving compatibility with the currently released aks-flex-node binary while the config schema evolves.

Changes:

  • Always emit legacy kubernetes.version alongside components.kubernetes.
  • In bootstrap-token mode, emit legacy kubelet aliases (node.kubelet.serverURL and node.kubelet.dnsServiceIP) alongside current fields.
  • Add a Python unittest module to assert these legacy aliases are present and correct in identity and bootstrap-token modes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
scripts/aks-flex-config Adds legacy config aliases (kubernetes.version, kubelet serverURL/dnsServiceIP) to generated configs.
scripts/aks_flex_config_test.py Adds Python unit tests validating legacy alias fields for identity and bootstrap-token config generation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +6
import importlib.machinery
import importlib.util
import types
import unittest
from pathlib import Path
from unittest import mock
Comment on lines +8 to +12

SCRIPT_PATH = Path(__file__).with_name("aks-flex-config")


def load_helper():
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.

2 participants