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

{AKS} Fix enabled virtual node addon showing wrong status in aks addon list #5099

Merged
merged 3 commits into from
Jul 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/aks-preview/azext_aks_preview/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,7 @@ def aks_addon_list_available():
def aks_addon_list(cmd, client, resource_group_name, name):
mc = client.get(resource_group_name, name)
current_addons = []
os_type = 'Linux'

for name, addon_key in ADDONS.items():
# web_application_routing is a special case, the configuration is stored in a separate profile
Expand All @@ -1402,6 +1403,13 @@ def aks_addon_list(cmd, client, resource_group_name, name):
mc.addon_profiles[addon_key].enabled
else False
)
if name == "virtual_node":
addon_key += os_type
enabled = (
True
if addon_key in mc.addon_profiles and mc.addon_profiles[addon_key].enabled
else False
)
current_addons.append({
"name": name,
"api_key": addon_key,
Expand Down