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

Force delete functionality to remove any hanging resources #5282

Merged
merged 22 commits into from
Sep 5, 2022

Conversation

rohan-dassani
Copy link
Contributor

@rohan-dassani rohan-dassani commented Aug 26, 2022


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

	modified:   src/connectedk8s/azext_connectedk8s/_params.py
	modified:   src/connectedk8s/azext_connectedk8s/_utils.py
	modified:   src/connectedk8s/azext_connectedk8s/custom.py
	new file:   src/connectedk8s/azext_connectedk8s/patch-file.yaml
@yonzhan
Copy link
Collaborator

yonzhan commented Aug 26, 2022

connectedk8s

@rohan-dassani
Copy link
Contributor Author

This functionality is added to remove any hanging resources from the connected cluster if the config map is missing or namespace "azure-arc" itself gets deleted . This function does the work of deletion of resources without using any hooks

Copy link
Member

@wangzelin007 wangzelin007 left a comment

Choose a reason for hiding this comment

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

May I ask you to add a scenario test for the new parameter?

@rohan-dassani rohan-dassani marked this pull request as draft September 1, 2022 10:56
	modified:   src/connectedk8s/azext_connectedk8s/commands.py
	modified:   src/connectedk8s/azext_connectedk8s/custom.py
	new file:   src/connectedk8s/azext_connectedk8s/tests/latest/recordings/test_forcedelete.yaml
	modified:   src/connectedk8s/azext_connectedk8s/tests/latest/test_connectedk8s_scenario.py
	modified:   src/connectedk8s/azext_connectedk8s/custom.py
	renamed:    src/connectedk8s/azext_connectedk8s/patch-file.yaml -> src/connectedk8s/azext_connectedk8s/remove_crd_finalizer.yaml
	modified:   src/connectedk8s/azext_connectedk8s/tests/latest/recordings/test_forcedelete.yaml
	modified:   src/connectedk8s/azext_connectedk8s/tests/latest/test_connectedk8s_scenario.py
	modified:   src/connectedk8s/azext_connectedk8s/tests/latest/test_connectedk8s_scenario.py
@rohan-dassani
Copy link
Contributor Author

May I ask you to add a scenario test for the new parameter?
The scenario test is added

	modified:   src/connectedk8s/azext_connectedk8s/custom.py
	modified:   src/connectedk8s/setup.py
@rohan-dassani rohan-dassani marked this pull request as ready for review September 5, 2022 07:47
@zhoxing-ms zhoxing-ms merged commit bc46ff9 into Azure:main Sep 5, 2022
@azclibot
Copy link
Collaborator

azclibot commented Sep 5, 2022

[Release] Update index.json for extension [ connectedk8s ] : https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1830394&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants