Compare commits

..

No commits in common. "f03940fe61a4fd553bb7eaca4a0487851956b641" and "22178f32fd748bf58ea1ebc30d3ec52eb6fd06e8" have entirely different histories.

View file

@ -369,7 +369,10 @@ class ControlPlaneCRD(ServalaModelMixin, models.Model):
@cached_property
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
def resource_definition(self):