renoki-co/php-k8s

View on GitHub
src/Traits/Resource/HasMinimumSurge.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace RenokiCo\PhpK8s\Traits\Resource;

trait HasMinimumSurge
{
    use HasSpec;

    /**
     * Set the minreadySeconds attribute.
     *
     * @param  int  $seconds
     * @return $this
     */
    public function setMinReadySeconds(int $seconds)
    {
        return $this->setSpec('minReadySeconds', $seconds);
    }

    /**
     * Get the minimum ready seconds until it's considered ok.
     *
     * @return int
     */
    public function getMinReadySeconds(): int
    {
        return $this->getSpec('minReadySeconds', 0);
    }
}