Skip to content

Commit

Permalink
Move status subresource to a class (#118)
Browse files Browse the repository at this point in the history
* Update apiextensions_v1_custom_resource_definition.py

* Update apiextensions_v1_custom_resource_definition.py
  • Loading branch information
herodes1991 authored Oct 23, 2023
1 parent a864f3e commit b7900ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions k8s/models/apiextensions_v1_custom_resource_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,13 @@ class CustomResourceSubresourceScale(Model):
statusReplicasPath = Field(str)


class CustomResourceSubresourceStatus(Model):
pass


class CustomResourceSubresources(Model):
scale = Field(CustomResourceSubresourceScale)
# CustomResourceSubresourceStatus contains no fields,
# so we use the dict type instead
status = Field(dict)
status = Field(CustomResourceSubresourceStatus)


class CustomResourceDefinitionVersion(Model):
Expand Down

0 comments on commit b7900ba

Please sign in to comment.