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

refac(Cluster) - Merge & Standardize DirectAccess and ClusterStatus Controller #624

Merged
merged 130 commits into from
Oct 22, 2024

Conversation

abhijith-darshan
Copy link
Contributor

@abhijith-darshan abhijith-darshan commented Oct 7, 2024

Description

This PR depends on #623 as it uses the shared reconcile functionality to standardize reconciliation loop.

Create / Update and Delete is separated into EnsureCreated and EnsureDeleted methods.

Cluster Status Conditions calculation is passed to lifecycle.Reconcile to be updated at the end of reconciliation

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help
  • Separate ticket for tests # (issue/pr)

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added to documentation?

  • 📜 README.md
  • 🤝 Documentation pages updated
  • 🙅 no documentation needed
  • (if applicable) generated OpenAPI docs for CRD changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@abhijith-darshan abhijith-darshan self-assigned this Oct 7, 2024
@github-actions github-actions bot added documentation Improvements or additions to documentation core-apis dependencies labels Oct 7, 2024
Base automatically changed from feat/reconcile_standardization to main October 16, 2024 11:59
cmd/greenhouse/controllers.go Outdated Show resolved Hide resolved
test/e2e/controllers.go Outdated Show resolved Hide resolved
pkg/controllers/cluster/cluster_controller.go Outdated Show resolved Hide resolved
abhijith-darshan and others added 7 commits October 21, 2024 13:36
Greenhouse created Namespace will not be dropped but instead the resources managed by Greenhouse in that Namespace will be cleaned up. (ServiceAccount, ClusterRoleBinding..)
Copy link
Contributor

@IvoGoman IvoGoman left a comment

Choose a reason for hiding this comment

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

Looks good.

@abhijith-darshan abhijith-darshan merged commit bfaf3f3 into main Oct 22, 2024
@abhijith-darshan abhijith-darshan deleted the refac/direct_access_standardization branch October 22, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-apis dependencies documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REFAC] - Merge & Standardize DirectAccess-, and ClusterStatusController
2 participants