package IO::K8s::Api::Resource::V1::CapacityRequirements;
# ABSTRACT: CapacityRequirements defines the capacity requirements for a specific device request.
our $VERSION = '1.105';
use IO::K8s::Resource;

k8s requests => { Str => 1 };


1;

__END__

=pod

=encoding UTF-8

=head1 NAME

IO::K8s::Api::Resource::V1::CapacityRequirements - CapacityRequirements defines the capacity requirements for a specific device request.

=head1 VERSION

version 1.105

=head2 requests

Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with C<device.capacity[<domain>].<name>.compareTo(quantity(<request>)) E<gt>= 0>.

When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value because it exceeds what the requestPolicy allows, the device is considered ineligible for allocation.

For any capacity that is not explicitly requested: if no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed); if a requestPolicy is set, the default consumed capacity is determined according to that policy.

The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim's status.devices[*].consumedCapacity field.

=head1 SUPPORT

=head2 Issues

Please report bugs and feature requests on GitHub at
L<https://github.com/pplu/io-k8s-p5/issues>.

=head2 IRC

Join C<#kubernetes> on C<irc.perl.org> or message Getty directly.

=head1 CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

=head1 AUTHORS

=over 4

=item *

Torsten Raudssus <torsten@raudssus.de>

=item *

Jose Luis Martinez Torres <jlmartin@cpan.org>

=back

=head1 COPYRIGHT AND LICENSE

This software is Copyright (c) 2018-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004

=cut
