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

Update azure Policy key under addonProfiles matching Azure Portal casing #8495

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
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
4 changes: 4 additions & 0 deletions src/aks-preview/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ If there is no rush to release a new version, please just add a description of t

To release a new version, please select a new version number (usually plus 1 to last patch version, X.Y.Z -> Major.Minor.Patch, more details in `\doc <https://semver.org/>`_), and then add a new section named as the new version number in this file, the content should include the new modifications and everything from the *Pending* section. Finally, update the `VERSION` variable in `setup.py` with this new version number.

13.0.0b7
+++++++
* `az aks enable-addons`: Fix azure policy key under addonProfiles

13.0.0b6
+++++++
* `az aks create/update`: Update parameter description of `--custom-ca-certificates`.
Expand Down
2 changes: 1 addition & 1 deletion src/aks-preview/azext_aks_preview/_consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
CONST_KUBE_DASHBOARD_ADDON_NAME = "kubeDashboard"

# azure policy
CONST_AZURE_POLICY_ADDON_NAME = "azurepolicy"
CONST_AZURE_POLICY_ADDON_NAME = "azurePolicy"

# ingressApplicaitonGateway configuration keys
CONST_INGRESS_APPGW_ADDON_NAME = "ingressApplicationGateway"
Expand Down
10 changes: 5 additions & 5 deletions src/aks-preview/azext_aks_preview/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1840,11 +1840,11 @@ def aks_addon_list(cmd, client, resource_group_name, name):
else:
if addon_name == "virtual-node":
addon_key += os_type
enabled = bool(
mc.addon_profiles and
addon_key in mc.addon_profiles and
mc.addon_profiles[addon_key].enabled
)
enabled = False
if mc.addon_profiles:
matching_key = next((key for key in mc.addon_profiles if key.lower() == addon_key.lower()), None)
if matching_key:
enabled = bool(mc.addon_profiles[matching_key].enabled)
current_addons.append({
"name": addon_name,
"api_key": addon_key,
Expand Down
2 changes: 1 addition & 1 deletion src/aks-preview/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from setuptools import setup, find_packages

VERSION = "13.0.0b6"
VERSION = "13.0.0b7"

CLASSIFIERS = [
"Development Status :: 4 - Beta",
Expand Down
Loading