Skip to content

Commit 86889ac

Browse files
authored
Merge branch 'main' into nguyensteven/cnl-stream-update
2 parents 54d354f + 1e7551c commit 86889ac

File tree

12 files changed

+5619
-11
lines changed

12 files changed

+5619
-11
lines changed

src/aks-agent/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ To release a new version, please select a new version number (usually plus 1 to
1212
Pending
1313
+++++++
1414

15+
1.0.0b10
16+
++++++++
17+
* pin supabase==2.8.0 to avoid "ModuleNotFoundError: No module named 'supabase_auth.http_clients'"
18+
1519
1.0.0b9
1620
+++++++
1721
* agent-init: replace model name with deployment name for Azure OpenAI service.

src/aks-agent/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from setuptools import find_packages, setup
1111

12-
VERSION = "1.0.0b9"
12+
VERSION = "1.0.0b10"
1313

1414
CLASSIFIERS = [
1515
"Development Status :: 4 - Beta",
@@ -25,6 +25,7 @@
2525

2626
DEPENDENCIES = [
2727
"rich==13.9.4",
28+
"supabase==2.8.0",
2829
"holmesgpt==0.15.0; python_version >= '3.10'",
2930
]
3031

src/aks-preview/HISTORY.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ To release a new version, please select a new version number (usually plus 1 to
1111

1212
Pending
1313
+++++++
14+
* Update enable-container-network-logs DCR to ContainerNetworkLogs instead of RetinaNetworkFlowLogs
1415

15-
19.0.0.b12
16+
19.0.0b12
1617
+++++++
17-
* Update enable-container-network-logs DCR to ContainerNetworkLogs instead of RetinaNetworkFlowLogs
18+
* `az aks create --workload-runtime KataVmIsolation`: Added the KataVmIsolation workload runtime value.
1819

1920
19.0.0b11
2021
+++++++

src/aks-preview/azext_aks_preview/_consts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
# workload runtime
6262
CONST_WORKLOAD_RUNTIME_OCI_CONTAINER = "OCIContainer"
6363
CONST_WORKLOAD_RUNTIME_WASM_WASI = "WasmWasi"
64-
CONST_WORKLOAD_RUNTIME_KATA_MSHV_VM_ISOLATION = "KataMshvVmIsolation"
64+
CONST_WORKLOAD_RUNTIME_KATA_VM_ISOLATION = "KataVmIsolation"
65+
CONST_WORKLOAD_RUNTIME_OLD_KATA_VM_ISOLATION = "KataMshvVmIsolation"
6566
CONST_WORKLOAD_RUNTIME_KATA_CC_ISOLATION = "KataCcIsolation"
6667

6768
# gpu instance

src/aks-preview/azext_aks_preview/_params.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@
127127
CONST_WEEKINDEX_SECOND,
128128
CONST_WEEKINDEX_THIRD,
129129
CONST_WEEKLY_MAINTENANCE_SCHEDULE,
130-
CONST_WORKLOAD_RUNTIME_KATA_MSHV_VM_ISOLATION,
130+
CONST_WORKLOAD_RUNTIME_KATA_VM_ISOLATION,
131+
CONST_WORKLOAD_RUNTIME_OLD_KATA_VM_ISOLATION,
131132
CONST_WORKLOAD_RUNTIME_KATA_CC_ISOLATION,
132133
CONST_WORKLOAD_RUNTIME_OCI_CONTAINER,
133134
CONST_WORKLOAD_RUNTIME_WASM_WASI,
@@ -314,7 +315,8 @@
314315
workload_runtimes = [
315316
CONST_WORKLOAD_RUNTIME_OCI_CONTAINER,
316317
CONST_WORKLOAD_RUNTIME_WASM_WASI,
317-
CONST_WORKLOAD_RUNTIME_KATA_MSHV_VM_ISOLATION,
318+
CONST_WORKLOAD_RUNTIME_KATA_VM_ISOLATION,
319+
CONST_WORKLOAD_RUNTIME_OLD_KATA_VM_ISOLATION,
318320
CONST_WORKLOAD_RUNTIME_KATA_CC_ISOLATION,
319321
]
320322
gpu_instance_profiles = [

src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_cluster_kata.yaml

Lines changed: 986 additions & 0 deletions
Large diffs are not rendered by default.

src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_cluster_kata_mshv_vm_isolation.yaml

Lines changed: 986 additions & 0 deletions
Large diffs are not rendered by default.

src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_add_with_kata.yaml

Lines changed: 1566 additions & 0 deletions
Large diffs are not rendered by default.

src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_nodepool_add_with_kata_mshv_vm_isolation.yaml

Lines changed: 1664 additions & 0 deletions
Large diffs are not rendered by default.

src/aks-preview/azext_aks_preview/tests/latest/test_agentpool_decorator.py

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from azext_aks_preview.__init__ import register_aks_preview_resource_type
1010
from azext_aks_preview._client_factory import CUSTOM_MGMT_AKS_PREVIEW
11-
from azext_aks_preview._consts import CONST_WORKLOAD_RUNTIME_OCI_CONTAINER, CONST_SSH_ACCESS_LOCALUSER, CONST_VIRTUAL_MACHINES
11+
from azext_aks_preview._consts import CONST_WORKLOAD_RUNTIME_OCI_CONTAINER, CONST_WORKLOAD_RUNTIME_KATA_VM_ISOLATION, CONST_WORKLOAD_RUNTIME_OLD_KATA_VM_ISOLATION, CONST_SSH_ACCESS_LOCALUSER, CONST_VIRTUAL_MACHINES
1212
from azext_aks_preview.agentpool_decorator import (
1313
AKSPreviewAgentPoolAddDecorator,
1414
AKSPreviewAgentPoolContext,
@@ -618,6 +618,35 @@ def common_get_disable_fips_image(self):
618618
ctx_1.attach_agentpool(agentpool_1)
619619
self.assertEqual(ctx_1.get_disable_fips_image(), True)
620620

621+
def common_get_enable_kata_image(self):
622+
# testing new kata naming convention
623+
ctx_1 = AKSPreviewAgentPoolContext(
624+
self.cmd,
625+
AKSAgentPoolParamDict({
626+
"workload_runtime": CONST_WORKLOAD_RUNTIME_KATA_VM_ISOLATION,
627+
}),
628+
self.models,
629+
DecoratorMode.CREATE,
630+
self.agentpool_decorator_mode,
631+
)
632+
agentpool_1 = self.create_initialized_agentpool_instance(workload_runtime=CONST_WORKLOAD_RUNTIME_KATA_VM_ISOLATION)
633+
ctx_1.attach_agentpool(agentpool_1)
634+
self.assertEqual(ctx_1.get_workload_runtime(), CONST_WORKLOAD_RUNTIME_KATA_VM_ISOLATION)
635+
636+
# tesing old kata naming convention
637+
ctx_2 = AKSPreviewAgentPoolContext(
638+
self.cmd,
639+
AKSAgentPoolParamDict({
640+
"workload_runtime": CONST_WORKLOAD_RUNTIME_OLD_KATA_VM_ISOLATION,
641+
}),
642+
self.models,
643+
DecoratorMode.CREATE,
644+
self.agentpool_decorator_mode,
645+
)
646+
agentpool_2 = self.create_initialized_agentpool_instance(workload_runtime=CONST_WORKLOAD_RUNTIME_OLD_KATA_VM_ISOLATION)
647+
ctx_2.attach_agentpool(agentpool_2)
648+
self.assertEqual(ctx_2.get_workload_runtime(), CONST_WORKLOAD_RUNTIME_OLD_KATA_VM_ISOLATION)
649+
621650
def common_get_agentpool_windows_profile(self):
622651
ctx_1 = AKSPreviewAgentPoolContext(
623652
self.cmd,
@@ -1034,12 +1063,15 @@ def test_get_enable_vtpm(self):
10341063
def test_get_disable_vtpm(self):
10351064
self.common_get_disable_vtpm()
10361065

1037-
def common_get_enable_fips_image(self):
1066+
def test_common_get_enable_fips_image(self):
10381067
self.common_get_enable_fips_image()
10391068

1040-
def common_get_disable_fips_image(self):
1069+
def test_common_get_disable_fips_image(self):
10411070
self.common_get_disable_fips_image()
10421071

1072+
def test_common_get_enable_kata_image(self):
1073+
self.common_get_enable_kata_image()
1074+
10431075
def test_get_agentpool_windows_profile(self):
10441076
self.common_get_agentpool_windows_profile()
10451077

@@ -1116,9 +1148,12 @@ def test_get_disable_secure_boot(self):
11161148
def test_get_enable_vtpm(self):
11171149
self.common_get_enable_vtpm()
11181150

1119-
def common_get_enable_fips_image(self):
1151+
def test_common_get_enable_fips_image(self):
11201152
self.common_get_enable_fips_image()
11211153

1154+
def test_common_get_enable_kata_image(self):
1155+
self.common_get_enable_kata_image()
1156+
11221157
def test_get_agentpool_windows_profile(self):
11231158
self.common_get_agentpool_windows_profile()
11241159

0 commit comments

Comments
 (0)