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/don't create deployment resources if using .remote field #1545

Merged
merged 10 commits into from
Oct 3, 2024

Conversation

anandrkskd
Copy link
Contributor

What type of PR is this?

/kind bug

What does this PR do / why we need it:
Before this PR, operator used to create resources even if remote redis/repo server were defined to be used in argocd CR, that caused unnecessary resource consumption.
This PR resolve it by checking if remote is defined in argocd CR, if defined then it doesn't create if absent or deletes if present.

Have you updated the necessary documentation?

  • Documentation update is required by this PR.
  • Documentation has been updated.

Which issue(s) this PR fixes:

Fixes #?

How to test changes / Special notes to the reviewer:

@anandrkskd anandrkskd marked this pull request as ready for review September 20, 2024 06:27
@anandrkskd anandrkskd force-pushed the bug/5574 branch 2 times, most recently from bb48813 to a4e0acf Compare September 24, 2024 07:30
Copy link
Collaborator

@svghadi svghadi left a comment

Choose a reason for hiding this comment

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

Thanks @anandrkskd. Left few suggestions. Overall, looks good.

controllers/argocd/deployment.go Outdated Show resolved Hide resolved
docs/usage/enabling-disabling-argocd-core-components.md Outdated Show resolved Hide resolved
Signed-off-by: Anand Kumar Singh <[email protected]>
Signed-off-by: Anand Kumar Singh <[email protected]>
Signed-off-by: Anand Kumar Singh <[email protected]>
Signed-off-by: Anand Kumar Singh <[email protected]>
Signed-off-by: Anand Kumar Singh <[email protected]>
Signed-off-by: Anand Kumar Singh <[email protected]>
controllers/argocd/service.go Outdated Show resolved Hide resolved
controllers/argocd/service.go Show resolved Hide resolved
controllers/argocd/service.go Show resolved Hide resolved
controllers/argocd/deployment.go Show resolved Hide resolved
controllers/argocd/deployment.go Show resolved Hide resolved
Signed-off-by: Anand Kumar Singh <[email protected]>
Copy link
Collaborator

@svghadi svghadi left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@svghadi svghadi merged commit 2ef2bc4 into argoproj-labs:master Oct 3, 2024
7 checks passed
@anandrkskd anandrkskd deleted the bug/5574 branch October 3, 2024 11:06
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.

2 participants