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

feat: refactor enterprise, org and repo controller #46

Merged
merged 4 commits into from
Jan 4, 2024

Conversation

H777K
Copy link
Member

@H777K H777K commented Dec 22, 2023

This PR ensures that the Enterprise, Organization and Repository CR will sync the IDs if the CR already exists with an ID and the resource needs to be created in garm.

During implementation, we decided that refactoring would make sense. Otherwise, we would have had to implement several checks in order to be able to call the necessary method in each case.

closes #37

@H777K H777K self-assigned this Dec 22, 2023
Copy link
Member

@bavarianbidi bavarianbidi left a comment

Choose a reason for hiding this comment

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

controller code is so much clearer with that, thank you!

LGTM to me (but there are some small conflicts with main)

@H777K H777K merged commit 96d5cb6 into main Jan 4, 2024
3 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.

Recreate Enterprise, Org and Repo Resources and sync new ID if garm-server gets restarted
2 participants