Compare commits
No commits in common. "f03940fe61a4fd553bb7eaca4a0487851956b641" and "22178f32fd748bf58ea1ebc30d3ec52eb6fd06e8" have entirely different histories.
f03940fe61
...
22178f32fd
1 changed files with 4 additions and 1 deletions
|
@ -369,7 +369,10 @@ class ControlPlaneCRD(ServalaModelMixin, models.Model):
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def kind_plural(self):
|
def kind_plural(self):
|
||||||
return self.resource_definition.status.accepted_names.plural
|
plural = self.kind.lower()
|
||||||
|
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