Fix the creation of Forgejo service instances #58

Merged
rixx merged 1 commit from 43-fix-forgejo-instances into main 2025-05-19 14:09:15 +00:00

View file

@ -369,10 +369,7 @@ class ControlPlaneCRD(ServalaModelMixin, models.Model):
@cached_property
def kind_plural(self):
plural = self.kind.lower()
if not plural.endswith("s"):
plural = f"{plural}s"
return plural
return self.resource_definition.status.accepted_names.plural
@cached_property
def resource_definition(self):