Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 2.75 KB

File metadata and controls

30 lines (23 loc) · 2.75 KB

V1CustomResourceSubresourceScale

CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.

Properties

Name Type Description Notes
label_selector_path str labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string. [optional]
spec_replicas_path str specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.
status_replicas_path str statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.

Example

from kubernetes.client.models.v1_custom_resource_subresource_scale import V1CustomResourceSubresourceScale

# TODO update the JSON string below
json = "{}"
# create an instance of V1CustomResourceSubresourceScale from a JSON string
v1_custom_resource_subresource_scale_instance = V1CustomResourceSubresourceScale.from_json(json)
# print the JSON string representation of the object
print(V1CustomResourceSubresourceScale.to_json())

# convert the object into a dict
v1_custom_resource_subresource_scale_dict = v1_custom_resource_subresource_scale_instance.to_dict()
# create an instance of V1CustomResourceSubresourceScale from a dict
v1_custom_resource_subresource_scale_from_dict = V1CustomResourceSubresourceScale.from_dict(v1_custom_resource_subresource_scale_dict)

[Back to Model list] [Back to API list] [Back to README]