Skip to content

Commit

Permalink
[connectedk8s] fix connect cmd issue of namespace delete (#7894)
Browse files Browse the repository at this point in the history
Co-authored-by: Bavneet Singh <bavneetsingh@microsoft.com>
  • Loading branch information
bavneetsingh16 and Bavneet Singh authored Aug 20, 2024
1 parent 524a41f commit efd9f7d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/connectedk8s/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

1.9.1
++++++
* Fixed the issue where executing a second `connectedk8s connect` command would inadvertently delete the "azure-arc-release" namespace.

1.9.0
++++++
* Upgrading to v0.2.2 of ArcK8sDiagnoser
Expand Down
2 changes: 0 additions & 2 deletions src/connectedk8s/azext_connectedk8s/_precheckutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,6 @@ def executing_cluster_diagnostic_checks_job(corev1_api_instance, batchv1_api_ins

# Clearing all the resources after fetching the cluster diagnostic checks container logs
Popen(cmd_helm_delete, stdout=PIPE, stderr=PIPE)
delete_release_namespace = [kubectl_client_location, "delete", "namespace", "azure-arc-release"]
Popen(delete_release_namespace, stdout=PIPE, stderr=PIPE)

# To handle any exception that may occur during the execution
except Exception as e:
Expand Down
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.9.0'
VERSION = '1.9.1'

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

0 comments on commit efd9f7d

Please sign in to comment.