Merge pull request 'Fix the creation of Forgejo service instances' (#58) from 43-fix-forgejo-instances into main
Reviewed-on: #58
This commit is contained in:
commit
f03940fe61
1 changed files with 1 additions and 4 deletions
|
@ -369,10 +369,7 @@ class ControlPlaneCRD(ServalaModelMixin, models.Model):
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def kind_plural(self):
|
def kind_plural(self):
|
||||||
plural = self.kind.lower()
|
return self.resource_definition.status.accepted_names.plural
|
||||||
if not plural.endswith("s"):
|
|
||||||
plural = f"{plural}s"
|
|
||||||
return plural
|
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def resource_definition(self):
|
def resource_definition(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue