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-preview: feature support for web application routing #4872

Merged
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a61121e
Add a release note for 0.5.72: add support for web application routing.
yizhang4321 May 20, 2022
01082b1
Add param and help text for web_application_routing addon and dns-zon…
yizhang4321 May 20, 2022
4db5359
Add dns_zone_resource_id param to various commands that use it.
yizhang4321 May 20, 2022
7c1aa94
Add support for "az aks create ... --enable-addons web_application_ro…
yizhang4321 May 20, 2022
3013527
Add support to enable/disable/update addon web app routing.
yizhang4321 May 21, 2022
4175522
Add test case for "az aks create --enable-addons web_application_rout…
yizhang4321 May 21, 2022
4fe6e2b
Add test case for "az aks disable-addons --addons web_application_rou…
yizhang4321 May 21, 2022
631d25f
Fix some lint warnings.
yizhang4321 May 23, 2022
40f838b
Remove options_list from argument when the option is the default.
yizhang4321 May 23, 2022
6fb4e2d
Update web app routing profile creation during "aks create" to work s…
yizhang4321 May 23, 2022
5e17e4f
Remove defined constant CONST_WEB_APPLICATION_ROUTING_ADDON_NAME = "w…
yizhang4321 May 24, 2022
91f1285
Align the lines to remove lint warnings.
yizhang4321 May 24, 2022
b510f98
Merge branch 'main' into yizhang4321/AddWebApplicationRouting
yizhang4321 May 24, 2022
e45c5f5
Add "--ssh-key-value={ssh_key_value}" to test cases to fix the RSA ke…
yizhang4321 May 24, 2022
2c7712d
Merge branch 'main' into yizhang4321/AddWebApplicationRouting
yizhang4321 May 24, 2022
29ccb7e
Update VERSION in preparation for a new release.
yizhang4321 May 25, 2022
66b9414
Add a test case to test when dns zone resource does not exist.
yizhang4321 May 25, 2022
aff899f
Better formatting of HISTORY.rst
yizhang4321 May 25, 2022
311389f
Add the missing space between two command line options used in test.
yizhang4321 May 25, 2022
794b520
Update src/aks-preview/azext_aks_preview/custom.py
zhoxing-ms May 25, 2022
c7de074
Update src/aks-preview/azext_aks_preview/custom.py
zhoxing-ms May 25, 2022
730d014
Use a more specific BadRequestError instead of the generic CLIError f…
yizhang4321 May 25, 2022
d1c387f
Merge branch 'yizhang4321/AddWebApplicationRouting' of https://github…
yizhang4321 May 25, 2022
a7413c9
Disable a check in a test case (for Live test) due to a bug in the AK…
yizhang4321 May 25, 2022
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
5 changes: 5 additions & 0 deletions src/aks-preview/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ To release a new version, please select a new version number (usually plus 1 to
Pending
+++++++

0.5.72
++++++

* Add support for web application routing.

0.5.71
++++++

Expand Down
4 changes: 3 additions & 1 deletion src/aks-preview/azext_aks_preview/_consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
# consts for addons
# http application routing
CONST_HTTP_APPLICATION_ROUTING_ADDON_NAME = "httpApplicationRouting"
CONST_WEB_APPLICATION_ROUTING_ADDON_NAME = "webApplicationRouting"

# monitoring
CONST_MONITORING_ADDON_NAME = "omsagent"
Expand Down Expand Up @@ -136,7 +137,8 @@
"confcom": CONST_CONFCOM_ADDON_NAME,
'open-service-mesh': CONST_OPEN_SERVICE_MESH_ADDON_NAME,
'azure-keyvault-secrets-provider': CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME,
'gitops': CONST_GITOPS_ADDON_NAME
'gitops': CONST_GITOPS_ADDON_NAME,
'web_application_routing': CONST_WEB_APPLICATION_ROUTING_ADDON_NAME
}

ADDONS_DESCRIPTIONS = {
Expand Down
15 changes: 15 additions & 0 deletions src/aks-preview/azext_aks_preview/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
open-service-mesh - enable Open Service Mesh addon (PREVIEW).
gitops - enable GitOps (PREVIEW).
azure-keyvault-secrets-provider - enable Azure Keyvault Secrets Provider addon (PREVIEW).
web_application_routing - enable Web Application Routing addon (PREVIEW). Specify "--dns-zone-resource-id" to configure DNS.
- name: --disable-rbac
type: bool
short-summary: Disable Kubernetes Role-Based Access Control.
Expand Down Expand Up @@ -437,6 +438,9 @@
- name: --azure-keyvault-kms-key-id
type: string
short-summary: Identifier of Azure Key Vault key.
- name: --dns-zone-resource-id
type: string
short-summary: The resource ID of the DNS zone resource to use with the web_application_routing addon.
examples:
- name: Create a Kubernetes cluster with an existing SSH public key.
text: az aks create -g MyResourceGroup -n MyManagedCluster --ssh-key-value /path/to/publickey
Expand Down Expand Up @@ -1334,6 +1338,7 @@
open-service-mesh - enable Open Service Mesh addon (PREVIEW).
gitops - enable GitOps (PREVIEW).
azure-keyvault-secrets-provider - enable Azure Keyvault Secrets Provider addon (PREVIEW).
web_application_routing - enable Web Application Routing addon (PREVIEW). Specify "--dns-zone-resource-id" to configure DNS.
parameters:
- name: --addon -a
type: string
Expand Down Expand Up @@ -1374,6 +1379,9 @@
- name: --rotation-poll-interval
type: string
short-summary: Set interval of rotation poll. Use with azure-keyvault-secrets-provider addon.
- name: --dns-zone-resource-id
type: string
short-summary: The resource ID of the DNS zone resource to use with the web_application_routing addon.
examples:
- name: Enable a Kubernetes addon. (autogenerated)
text: az aks addon enable --addon virtual-node --name MyManagedCluster --resource-group MyResourceGroup --subnet-name VirtualNodeSubnet
Expand Down Expand Up @@ -1429,6 +1437,9 @@
- name: --rotation-poll-interval
type: string
short-summary: Set interval of rotation poll. Use with azure-keyvault-secrets-provider addon.
- name: --dns-zone-resource-id
type: string
short-summary: The resource ID of the DNS zone resource to use with the web_application_routing addon.
examples:
- name: Update a Kubernetes addon. (autogenerated)
text: az aks addon update --addon virtual-node --name MyManagedCluster --resource-group MyResourceGroup --subnet-name VirtualNodeSubnet
Expand Down Expand Up @@ -1457,6 +1468,7 @@
open-service-mesh - enable Open Service Mesh addon (PREVIEW).
gitops - enable GitOps (PREVIEW).
azure-keyvault-secrets-provider - enable Azure Keyvault Secrets Provider addon (PREVIEW).
web_application_routing - enable Web Application Routing addon (PREVIEW). Specify "--dns-zone-resource-id" to configure DNS.
parameters:
- name: --addons -a
type: string
Expand Down Expand Up @@ -1497,6 +1509,9 @@
- name: --rotation-poll-interval
type: string
short-summary: Set interval of rotation poll. Use with azure-keyvault-secrets-provider addon.
- name: --dns-zone-resource-id
type: string
short-summary: The resource ID of the DNS zone resource to use with the web_application_routing addon.
examples:
- name: Enable Kubernetes addons. (autogenerated)
text: az aks enable-addons --addons virtual-node --name MyManagedCluster --resource-group MyResourceGroup --subnet-name VirtualNodeSubnet
Expand Down
4 changes: 4 additions & 0 deletions src/aks-preview/azext_aks_preview/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def load_arguments(self, _):
c.argument('workload_runtime', arg_type=get_enum_type(workload_runtimes), default=CONST_WORKLOAD_RUNTIME_OCI_CONTAINER)
c.argument('enable_apiserver_vnet_integration', action='store_true', is_preview=True)
c.argument('apiserver_subnet_id', validator=validate_apiserver_subnet_id, is_preview=True)
c.argument('dns-zone-resource-id', options_list=['--dns-zone-resource-id'])

with self.argument_context('aks update') as c:
# managed cluster paramerters
Expand Down Expand Up @@ -513,6 +514,7 @@ def load_arguments(self, _):
c.argument('workspace_resource_id')
c.argument('enable_msi_auth_for_monitoring',
arg_type=get_three_state_flag(), is_preview=True)
c.argument('dns-zone-resource-id', options_list=['--dns-zone-resource-id'])

with self.argument_context('aks addon disable') as c:
c.argument('addon', options_list=[
Expand Down Expand Up @@ -541,6 +543,7 @@ def load_arguments(self, _):
c.argument('workspace_resource_id')
c.argument('enable_msi_auth_for_monitoring',
arg_type=get_three_state_flag(), is_preview=True)
c.argument('dns-zone-resource-id', options_list=['--dns-zone-resource-id'])

with self.argument_context('aks disable-addons') as c:
c.argument('addons', options_list=[
Expand Down Expand Up @@ -569,6 +572,7 @@ def load_arguments(self, _):
c.argument('workspace_resource_id')
c.argument('enable_msi_auth_for_monitoring',
arg_type=get_three_state_flag(), is_preview=True)
c.argument('dns-zone-resource-id', options_list=['--dns-zone-resource-id'])

with self.argument_context('aks get-credentials') as c:
c.argument('admin', options_list=['--admin', '-a'], default=False)
Expand Down
Loading