Merge pull request 'Fix the creation of Forgejo service instances' (#58) from 43-fix-forgejo-instances into main
All checks were successful
Build and Deploy Staging / build (push) Successful in 1m15s
Tests / test (push) Successful in 24s
Build and Deploy Staging / deploy (push) Successful in 9s

Reviewed-on: #58
This commit is contained in:
Tobias Kunze 2025-05-19 14:09:13 +00:00
commit f03940fe61

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):