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

Proxy test + bug fix diagnoser +force del +arm id #6166

Merged
merged 96 commits into from
Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
337382b
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Aug 26, 2022
e275558
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 26, 2022
8c89fc3
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 26, 2022
11c2f90
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Aug 29, 2022
fb57d0c
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Aug 29, 2022
9d2317c
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 29, 2022
d684639
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 29, 2022
866e916
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 29, 2022
2202cd3
Merge branch 'Azure:main' into force_delete_add
rohan-dassani Aug 29, 2022
76800dd
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 29, 2022
cd46fbc
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 29, 2022
b46d055
modified: src/connectedk8s/azext_connectedk8s/_utils.py
rohan-dassani Aug 29, 2022
474e2ec
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Aug 29, 2022
a1c1093
modified: src/connectedk8s/azext_connectedk8s/_params.py
rohan-dassani Sep 1, 2022
a33c7d7
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Sep 2, 2022
0190574
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 2, 2022
6e893c4
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 2, 2022
a639010
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 2, 2022
ba70771
modified: src/connectedk8s/azext_connectedk8s/_params.py
rohan-dassani Sep 2, 2022
fda625c
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Sep 5, 2022
088d5e9
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Sep 5, 2022
3062720
Merge branch 'main' of https://github.com/rohan-dassani/azure-cli-ext…
rohan-dassani Sep 5, 2022
944c706
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 12, 2022
6aa9077
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 12, 2022
238de24
Merge branch 'timeout_in_crd_deletion_force_delete' of https://github…
rohan-dassani Sep 12, 2022
7ff4202
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 12, 2022
d4ea462
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 12, 2022
810dd10
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Sep 12, 2022
2110301
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Sep 12, 2022
7741186
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Sep 12, 2022
dac1e88
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Nov 21, 2022
df16fe6
new file: src/connectedk8s/azext_connectedk8s/tests/latest/recordi…
rohan-dassani Nov 21, 2022
4f28b57
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani Nov 21, 2022
cc482a3
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Nov 21, 2022
f8d8ab6
modified: src/connectedk8s/azext_connectedk8s/tests/latest/recordi…
rohan-dassani Nov 21, 2022
4f9bdce
modified: src/connectedk8s/azext_connectedk8s/tests/latest/recordi…
rohan-dassani Nov 21, 2022
26797a1
deleted: src/connectedk8s/azext_connectedk8s/tests/latest/recordi…
rohan-dassani Nov 23, 2022
3082aff
Delete test_connectedk8s.yaml
wangzelin007 Nov 24, 2022
12e83b6
Update test_connectedk8s_scenario.py
wangzelin007 Nov 24, 2022
cd7b659
deleted: src/connectedk8s/azext_connectedk8s/tests/latest/recordi…
rohan-dassani Nov 24, 2022
5556147
Merge branch 'connectedk8s_nightly_testing' of https://github.com/roh…
rohan-dassani Nov 24, 2022
59686ad
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Nov 24, 2022
40c5611
modified: src/connectedk8s/azext_connectedk8s/tests/latest/recordi…
rohan-dassani Nov 24, 2022
0e727c7
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani Feb 3, 2023
96a6b6a
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 3, 2023
ace2e02
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 3, 2023
a87383e
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 6, 2023
cab4ba4
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 6, 2023
eddbae2
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 6, 2023
1298879
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 6, 2023
b25217e
Merge branch 'Azure:main' into connectedk8s_nightly_testing
rohan-dassani Feb 13, 2023
3d519f9
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 14, 2023
e43b6cb
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 14, 2023
f19a3ad
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 14, 2023
c2fb835
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 14, 2023
910e916
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 15, 2023
a1ed9dd
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
be6739f
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
d94836e
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
7891b9b
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
ee818ad
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
f7e18ea
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
1b34589
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
37177cf
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
1a22f1b
modified: src/connectedk8s/azext_connectedk8s/tests/latest/test_co…
rohan-dassani Feb 16, 2023
dbed4ab
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Feb 28, 2023
6d628d8
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani Feb 28, 2023
3f6e841
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Feb 28, 2023
9e8e8ba
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Feb 28, 2023
df369d8
modified: src/connectedk8s/azext_connectedk8s/_precheckutils.py
rohan-dassani Feb 28, 2023
6f04cea
modified: src/connectedk8s/azext_connectedk8s/_precheckutils.py
rohan-dassani Feb 28, 2023
a0f180a
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Mar 1, 2023
c5d508b
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Mar 8, 2023
202a216
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Mar 8, 2023
b327eee
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani Mar 8, 2023
7224044
modified: src/connectedk8s/azext_connectedk8s/_troubleshootutils.py
rohan-dassani Mar 8, 2023
e80e14b
modified: src/connectedk8s/azext_connectedk8s/_troubleshootutils.py
rohan-dassani Mar 8, 2023
e022773
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Mar 9, 2023
e5ee706
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Mar 9, 2023
cc7a545
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Mar 21, 2023
49642a0
modified: src/connectedk8s/azext_connectedk8s/_precheckutils.py
rohan-dassani Mar 21, 2023
9da438b
modified: src/connectedk8s/azext_connectedk8s/_utils.py
rohan-dassani Mar 23, 2023
818a530
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Mar 23, 2023
6efefd1
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Mar 23, 2023
9390ff5
modified: src/connectedk8s/azext_connectedk8s/_constants.py
rohan-dassani Mar 24, 2023
70f9c84
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Mar 24, 2023
60fba05
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Mar 24, 2023
84d0b06
Merge https://github.com/Azure/azure-cli-extensions into connectedk8s…
rohan-dassani Mar 27, 2023
7d94fae
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Apr 4, 2023
beb0fcc
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Apr 4, 2023
15dc881
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Apr 10, 2023
cb96347
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Apr 10, 2023
9daef22
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Apr 10, 2023
1886ed3
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Apr 10, 2023
708ee01
modified: src/connectedk8s/azext_connectedk8s/custom.py
rohan-dassani Apr 10, 2023
904d6d8
modified: src/connectedk8s/HISTORY.rst
rohan-dassani Apr 10, 2023
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
7 changes: 7 additions & 0 deletions src/connectedk8s/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

Release History
===============
1.3.16
++++++
* Adding force delete in connect command in case of stale resources present during onboarding
* Bug fixes in diagnoser
* Pushing armd id and location to telemetry
* Adding test for connectedk8s proxy command

1.3.15
++++++

Expand Down
12 changes: 12 additions & 0 deletions src/connectedk8s/azext_connectedk8s/_troubleshootutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@ def fetch_connected_cluster_resource(filepath_with_timestamp, connected_cluster,
connected_cluster.last_connectivity_time = last_connectivity_time_str
managed_identity_certificate_expiration_time_str = str(connected_cluster.managed_identity_certificate_expiration_time)
connected_cluster.managed_identity_certificate_expiration_time = managed_identity_certificate_expiration_time_str

# Formatting system_data
created_at = str(connected_cluster.system_data.created_at)
connected_cluster.system_data.created_at = created_at
last_modified_at = str(connected_cluster.system_data.last_modified_at)
connected_cluster.system_data.last_modified_at = last_modified_at
system_data = str(connected_cluster.system_data)
connected_cluster.system_data = system_data
# Formatting identity
identity = str(connected_cluster.identity)
connected_cluster.identity = identity

if storage_space_available:
# If storage space is available then only store the connected cluster resource
with open(connected_cluster_resource_file_path, 'w+') as cc:
Expand Down
103 changes: 57 additions & 46 deletions src/connectedk8s/azext_connectedk8s/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ def create_connectedk8s(cmd, client, resource_group_name, cluster_name, correlat
}
telemetry.add_extension_event('connectedk8s', kubernetes_properties)

resource_id = f'/subscriptions/{subscription_id}/resourcegroups/{resource_group_name}/providers/Microsoft.Kubernetes/connectedClusters/{cluster_name}/location/{location}'
telemetry.add_extension_event('connectedk8s', {'Context.Default.AzureCLI.resourceid': resource_id})
rohan-dassani marked this conversation as resolved.
Show resolved Hide resolved

# Checking if it is an AKS cluster
is_aks_cluster = check_aks_cluster(kube_config, kube_context)
if is_aks_cluster:
Expand Down Expand Up @@ -310,8 +313,11 @@ def create_connectedk8s(cmd, client, resource_group_name, cluster_name, correlat
"is already onboarded to the resource group" +
" '{}' with resource name '{}'.".format(configmap_rg_name, configmap_cluster_name))
else:
# Cleanup agents and continue with put
utils.delete_arc_agents(release_namespace, kube_config, kube_context, helm_client_location, is_arm64_cluster)
logger.warning("Cleaning up the stale arc agents present on the cluster before starting new onboarding.")
# Explicit CRD Deletion
crd_cleanup_force_delete(kubectl_client_location, kube_config, kube_context)
# Cleaning up the cluster
utils.delete_arc_agents(release_namespace, kube_config, kube_context, helm_client_location, is_arm64_cluster, True)

else:
if connected_cluster_exists(client, resource_group_name, cluster_name):
Expand Down Expand Up @@ -824,48 +830,7 @@ def delete_connectedk8s(cmd, client, resource_group_name, cluster_name,
delete_cc_resource(client, resource_group_name, cluster_name, no_wait).result()

# Explicit CRD Deletion

timeout_for_crd_deletion = "20s"
for crds in consts.CRD_FOR_FORCE_DELETE:
cmd_helm_delete = [kubectl_client_location, "delete", "crds", crds, "--ignore-not-found", "--wait", "--timeout", "{}".format(timeout_for_crd_deletion)]
if kube_config:
cmd_helm_delete.extend(["--kubeconfig", kube_config])
if kube_context:
cmd_helm_delete.extend(["--context", kube_context])
response_helm_delete = Popen(cmd_helm_delete, stdout=PIPE, stderr=PIPE)
_, error_helm_delete = response_helm_delete.communicate()

# Timer added to have sufficient time after CRD deletion
# to check the status of the CRD ( deleted or terminating )
time.sleep(3)

# patching yaml file path for removing CRD finalizer
current_path = os.path.abspath(os.path.dirname(__file__))
yaml_file_path = os.path.join(current_path, "remove_crd_finalizer.yaml")

# Patch if CRD is in Terminating state
for crds in consts.CRD_FOR_FORCE_DELETE:

cmd = [kubectl_client_location, "get", "crd", crds, "-ojson"]
if kube_config:
cmd.extend(["--kubeconfig", kube_config])
if kube_context:
cmd.extend(["--context", kube_context])
cmd_output = Popen(cmd, stdout=PIPE, stderr=PIPE)
_, error_helm_delete = cmd_output.communicate()

if(cmd_output.returncode == 0):
changed_cmd = json.loads(cmd_output.communicate()[0].strip())
status = changed_cmd['status']['conditions'][-1]['type']

if(status == "Terminating"):
patch_cmd = [kubectl_client_location, "patch", "crd", crds, "--type=merge", "--patch-file", yaml_file_path]
if kube_config:
patch_cmd.extend(["--kubeconfig", kube_config])
if kube_context:
patch_cmd.extend(["--context", kube_context])
output_patch_cmd = Popen(patch_cmd, stdout=PIPE, stderr=PIPE)
_, error_helm_delete = output_patch_cmd.communicate()
crd_cleanup_force_delete(kubectl_client_location, kube_config, kube_context)

if(release_namespace):
utils.delete_arc_agents(release_namespace, kube_config, kube_context, helm_client_location, is_arm64_cluster, True)
Expand Down Expand Up @@ -2364,8 +2329,9 @@ def troubleshoot(cmd, client, resource_group_name, cluster_name, kube_config=Non
# saving metadata CR sanpshot
storage_space_available = troubleshootutils.get_metadata_cr_snapshot(corev1_api_instance, kubectl_client_location, kube_config, kube_context, filepath_with_timestamp, storage_space_available)

# saving kube-aad-proxy CR snapshot
storage_space_available = troubleshootutils.get_kubeaadproxy_cr_snapshot(corev1_api_instance, kubectl_client_location, kube_config, kube_context, filepath_with_timestamp, storage_space_available)
# saving kube-aad-proxy CR snapshot only in the case private link is disabled
if connected_cluster.private_link_state == "Disabled":
storage_space_available = troubleshootutils.get_kubeaadproxy_cr_snapshot(corev1_api_instance, kubectl_client_location, kube_config, kube_context, filepath_with_timestamp, storage_space_available)

# checking cluster connectivity status
cluster_connectivity_status = connected_cluster.connectivity_status
Expand Down Expand Up @@ -2436,3 +2402,48 @@ def install_kubectl_client():
except Exception as e:
telemetry.set_exception(exception=e, fault_type=consts.Download_And_Install_Kubectl_Fault_Type, summary="Failed to download and install kubectl")
raise CLIInternalError("Unable to install kubectl. Error: ", str(e))


def crd_cleanup_force_delete(kubectl_client_location, kube_config, kube_context):

timeout_for_crd_deletion = "20s"
for crds in consts.CRD_FOR_FORCE_DELETE:
cmd_helm_delete = [kubectl_client_location, "delete", "crds", crds, "--ignore-not-found", "--wait", "--timeout", "{}".format(timeout_for_crd_deletion)]
if kube_config:
cmd_helm_delete.extend(["--kubeconfig", kube_config])
if kube_context:
cmd_helm_delete.extend(["--context", kube_context])
response_helm_delete = Popen(cmd_helm_delete, stdout=PIPE, stderr=PIPE)
_, error_helm_delete = response_helm_delete.communicate()

# Timer added to have sufficient time after CRD deletion
# to check the status of the CRD ( deleted or terminating )
time.sleep(3)

# patching yaml file path for removing CRD finalizer
current_path = os.path.abspath(os.path.dirname(__file__))
yaml_file_path = os.path.join(current_path, "remove_crd_finalizer.yaml")

# Patch if CRD is in Terminating state
for crds in consts.CRD_FOR_FORCE_DELETE:

cmd = [kubectl_client_location, "get", "crd", crds, "-ojson"]
if kube_config:
cmd.extend(["--kubeconfig", kube_config])
if kube_context:
cmd.extend(["--context", kube_context])
cmd_output = Popen(cmd, stdout=PIPE, stderr=PIPE)
_, error_helm_delete = cmd_output.communicate()

if(cmd_output.returncode == 0):
changed_cmd = json.loads(cmd_output.communicate()[0].strip())
status = changed_cmd['status']['conditions'][-1]['type']

if(status == "Terminating"):
patch_cmd = [kubectl_client_location, "patch", "crd", crds, "--type=merge", "--patch-file", yaml_file_path]
if kube_config:
patch_cmd.extend(["--kubeconfig", kube_config])
if kube_context:
patch_cmd.extend(["--context", kube_context])
output_patch_cmd = Popen(patch_cmd, stdout=PIPE, stderr=PIPE)
_, error_helm_delete = output_patch_cmd.communicate()
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import azext_connectedk8s._constants as consts
import urllib.request
import shutil
import time
from knack.log import get_logger
from azure.cli.core import get_default_cli
import subprocess
Expand Down Expand Up @@ -514,3 +515,49 @@ def test_troubleshoot(self,resource_group):
# delete the kube config
os.remove("%s" % (_get_test_data_file(managed_cluster_name + '-config.yaml')))

@live_only()
@ResourceGroupPreparer(name_prefix='conk8stest', location='eastus2euap', random_name_length=16)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask why you mark this test as @live_only()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the tests for our connectedk8s CLI are currently marked as live_only because these tests would not run as recording mode test or integration test because in out connectedk8s connect command in some steps we use some cache to get some values and in recording mode the cache doesnt get recorded and hence we decided to use live_mode only so that we can run the CLI testing pipeline whenever required in live mode only

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks~

def test_proxy(self,resource_group):
managed_cluster_name = self.create_random_name(prefix='test-proxy', length=24)
kubeconfig="%s" % (_get_test_data_file(managed_cluster_name + '-config.yaml'))
kubeconfig2="%s" % (_get_test_data_file(managed_cluster_name + '-config2.yaml'))
name = self.create_random_name(prefix='cc-', length=12)
self.kwargs.update({
'name': name,
'kubeconfig': kubeconfig,
'kubeconfig2': kubeconfig2,
'rg':resource_group,
'managed_cluster_name': managed_cluster_name
})

self.cmd('aks create -g {rg} -n {managed_cluster_name} --generate-ssh-keys')
self.cmd('aks get-credentials -g {rg} -n {managed_cluster_name} -f {kubeconfig} --admin')
self.cmd('connectedk8s connect -g {rg} -n {name} -l eastus --tags foo=doo --kube-config {kubeconfig} --kube-context {managed_cluster_name}-admin', checks=[
self.check('tags.foo', 'doo'),
self.check('name', '{name}')
])
self.cmd('connectedk8s show -g {rg} -n {name}', checks=[
self.check('name', '{name}'),
self.check('resourceGroup', '{rg}'),
self.check('tags.foo', 'doo')
])
# starting the proxy
script = ['az','connectedk8s', 'proxy', '-n', name, '-g', resource_group, '-f' , kubeconfig2, '&']
process = subprocess.Popen(script, shell=True)

rohan-dassani marked this conversation as resolved.
Show resolved Hide resolved
# Time to let the kubeconfig merge in current context
time.sleep(10)

# Start running proxy as a background process
process2 = subprocess.Popen(['disown %1'],shell=True)

# testing if the proxy kubeconfig file is created
process3 = ['sudo', 'cat', kubeconfig2]
process3 = subprocess.run(process3,shell=True)

# Cleaning up the cluster
self.cmd('connectedk8s delete -g {rg} -n {name} --kube-config {kubeconfig} --kube-context {managed_cluster_name}-admin -y')
self.cmd('aks delete -g {rg} -n {managed_cluster_name} -y')

# delete the kube config
os.remove("%s" % (_get_test_data_file(managed_cluster_name + '-config.yaml')))
2 changes: 1 addition & 1 deletion src/connectedk8s/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# TODO: Confirm this is the right version number you want and it matches your
# HISTORY.rst entry.

VERSION = '1.3.15'
VERSION = '1.3.16'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down