Skip to content
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

docs: fix --query parameter in install guide #1592

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

flo-kn
Copy link

@flo-kn flo-kn commented Feb 6, 2024

Checklist

  • The title of the PR is clear and informative
  • If applicable, the changes made in the PR have proper test coverage
  • Issues addressed by the PR are mentioned in the description followed by Fixes.

Description

closes #1591

The json output format of the az aks get-version command might have changed since the creation of this guide. Here is an attempt to fix it by adjusting the --query parameter in order to follow up on the change so that variable kubernetesVersion get populated.

Fixes

before:

"...orchestrators[-1].orchestratorVersion..."

now:

patchedVersions=$(az aks get-versions --location $location --query "values[?isDefault==\`true\`].patchVersions" -o json)
kubernetesVersion=$(echo $patchedVersions | jq -r 'map(keys[]) | sort_by(split(".") | map(tonumber)) | .[-1]')

with in intermediate step to get the latest isDefault patchedVersion from the patchedVersions list using jq. Reason: The subsequent deployment template requires the version in the format major.minor.patch

… this guide. fixing --query parameter to follow up on the change
…on requires version in the format major.minor.patch
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.

az cli command from install guide evaluates with empty value
1 participant