ResourceRequirements class

ResourceRequirements describes the compute resource requirements.

Constructors

ResourceRequirements({List<ResourceClaim>? claims, Map<String, String>? limits, Map<String, String>? requests})
Default constructor.
const
ResourceRequirements.fromJson(Map<String, dynamic> json)
Creates a ResourceRequirements from JSON data.
factory

Properties

claims List<ResourceClaim>?
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.
final
hashCode int
The hash code for this object.
no setterinherited
limits Map<String, String>?
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/.
final
requests Map<String, String>?
Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a ResourceRequirements instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited