Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Confusing documentation of resource requiremetns #118

Closed
@kozikow

Description

@kozikow

ResourceLimits class says it expect keys of type ResourceQuantity: https://github.com/kubernetes-incubator/client-python/blob/master//kubernetes/client/models/v1_resource_requirements.py#L54.

ResourceQuantity is an empty class: https://github.com/kubernetes-incubator/client-python/blob/master//kubernetes/client/models/resource_quantity.py#L25 .

ResourceLimits in the end accepts dict of string:string, e.g.

  resources=V1ResourceRequirements(
    limits={"memory": "9Gi"}
  )

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions