Expressions
The expression instance is used to define Match Expressions in a more OOP-oriented way.
In & Not In
use RenokiCo\PhpK8s\K8s;
K8s::expression()->in('some-key', ['value1', 'value2']);
K8s::expression()->notIn('some-key', ['value1', 'value2']);
Exists & Does Not Exist
use RenokiCo\PhpK8s\K8s;
K8s::expression()->exists('some-key');
K8s::expression()->doesNotexist('some-key');
Greater & Less Than
use RenokiCo\PhpK8s\K8s;
K8s::expression()->greaterThan('some-key', '1');
K8s::expression()->lessThan('some-key', '1');
Last updated
Was this helpful?