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(backend): handle two modules owning the same resource #262

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hanshal101
Copy link
Contributor

Closes #163
Fixes #163

πŸ“‘ Description

This PR solves the issue of handling two modules having the same resources.

Solution

Added a check before creating if any value of label cyclops.Module matches with the current name of the Module. If return false then return with error.

βœ… Checks

  • I have updated the documentation as required
  • I have performed a self-review of my code

β„Ή Additional context

@hanshal101 hanshal101 requested a review from a team as a code owner May 8, 2024 18:52
Copy link
Collaborator

@petar-cvit petar-cvit left a comment

Choose a reason for hiding this comment

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

You should check for the label value in the Reconcile function. It is responsible for deploying all resources from templates. And also this does not only apply to Deployments, but to all K8s services deployed by the controler

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.

Handle two Modules owning the same resource
2 participants