Compare commits

...

2 commits

Author SHA1 Message Date
f03940fe61 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
2025-05-19 14:09:13 +00:00
4d1215f976 Fix the creation of Forgejo service instances
All checks were successful
Tests / test (push) Successful in 24s
closes #43
2025-05-19 16:04:43 +02: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):