Skip to content

Issue #139 - Application sync should delete 'unexpected' resources#144

Merged
alexmt merged 3 commits intoargoproj:masterfrom
alexmt:104-unexpected-resources
May 1, 2018
Merged

Issue #139 - Application sync should delete 'unexpected' resources#144
alexmt merged 3 commits intoargoproj:masterfrom
alexmt:104-unexpected-resources

Conversation

@alexmt
Copy link
Collaborator

@alexmt alexmt commented Apr 30, 2018

Closes #139

@alexmt alexmt requested review from jessesuen and merenbach April 30, 2018 15:25
@CLAassistant
Copy link

CLAassistant commented Apr 30, 2018

CLA assistant check
All committers have signed the CLA.

if needsCreate {
resDetails.Message = fmt.Sprintf("will create")
} else if needsDelete {
resDetails.Message = fmt.Sprintf("will delete")
Copy link
Member

Choose a reason for hiding this comment

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

This needs to take consideration the prune flag. Can we use the term "ignored" if we decide not to delete the resource?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done


resDetails.Message = fmt.Sprintf("deleted")
} else {
resDetails.Message = fmt.Sprintf("skipped (should be deleted)")
Copy link
Member

Choose a reason for hiding this comment

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

Lets use the term "ignored"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@alexmt
Copy link
Collaborator Author

alexmt commented May 1, 2018

@jessesuen your comments are implemented. PTAL

@alexmt alexmt merged commit 3c98457 into argoproj:master May 1, 2018
@alexmt alexmt deleted the 104-unexpected-resources branch May 1, 2018 18:02
leoluz pushed a commit to leoluz/argo-cd that referenced this pull request Sep 29, 2023
argoproj#144)

* fix: Hook Deletion Policies HookSucceeded should be run after whole Hook succeed and not only Resource succeed

* fix: handle HookFailed.

* fix: fixing lint error.
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.

4 participants