Skip to content

Conversation

@bgriddaluru
Copy link

Goals

  1. If user doesn't specify overrides for distro and/or infra, values should be calculated from heuristics . These values shouldn't be fixed during the onboarding time.
  2. User should be able to override to generic value of distro and infra.

Issues

  1. User is unable to override the values to generic
  2. If the user doesn't specify any override values for distro or infra, these are calculated from heuristics and stored in config map. Cluster metadata agent considers values from config map as override and ignores the values calculated from heuristics
  3. For update command supports distribution parameter and updates in CC resource but doesn't update in config map for agents.
    So old value in config map is unchanged.

Fixes

  1. Since heuristics calculation is in cluster metadata agent, remove the duplicate logic from az cli.
  2. If the user didn't specify any overrides, set the values in config map to empty string so that cluster metadata can use the heuristics values.
  3. For update command, support infrastructure parameter. If these values are set, update the values in config map.

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@bgriddaluru bgriddaluru changed the title Distro fixes Update default values of distribution and infrastructure fields Jan 13, 2026
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