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

fix(delete): recreate cluster when deleted via argocd-ui #118

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

haarchri
Copy link
Member

Description of your changes

this PR solves a problem where, upon a user's deletion of a cluster through argocd-ui, the provider would recreate the cluster instead of displaying a permission denied error.

Fixes #116

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

  • create cluster
  • remove cluster via argocd-ui
  • cluster auto recreate
  • delete cluster

@haarchri haarchri force-pushed the fix/delete-argocd-ui branch from 1324b37 to a859458 Compare November 29, 2023 23:23
@janwillies
Copy link
Collaborator

Thanks @haarchri! I think it would be cleaner to implement this via the newly added filtering to the cluster LIST endpoint. What do you think?

@haarchri
Copy link
Member Author

I'd like to straightforwardly address the current implementation with this pull request. Iam open to modifying it to a List endpoint for a v0.6.0 release in a seperate PR?

Copy link
Collaborator

@janwillies janwillies left a comment

Choose a reason for hiding this comment

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

Sure thing. Please address the examples comment, otherwise LGTM

examples/cluster/cluster.yaml Outdated Show resolved Hide resolved
@haarchri haarchri force-pushed the fix/delete-argocd-ui branch from 16159d3 to 62f0c07 Compare November 30, 2023 18:29
@haarchri haarchri requested a review from janwillies November 30, 2023 18:30
@janwillies janwillies merged commit 8fa0d60 into crossplane-contrib:main Nov 30, 2023
7 checks passed
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.

Fail to Recreate Deleted Cluster in ArgoCD v2.9.1
2 participants