Skip to content

Commit

Permalink
fixed job version for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Jul 29, 2022
1 parent 8597a8f commit f5cfbaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions tests/CronJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ public function test_cronjob_from_yaml()
->restartOnFailure()
->neverRestart();

$job = $this->cluster->job()
->setName('pi')
->setLabels(['tier' => 'backend'])
->setAnnotations(['perl/annotation' => 'yes'])
->setTTL(3600)
->setTemplate($pod);

$cronjob = $this->cluster->fromYamlFile(__DIR__.'/yaml/cronjob.yaml');

$this->assertEquals('batch/v1beta1', $cronjob->getApiVersion());
Expand Down Expand Up @@ -96,7 +89,7 @@ public function runCreationTests()
{
$pi = K8s::container()
->setName('pi')
->setImage('perl')
->setImage('perl', '5.34.0')
->setCommand(['perl', '-Mbignum=bpi', '-wle', 'print bpi(2000)']);

$pod = $this->cluster->pod()
Expand Down
2 changes: 1 addition & 1 deletion tests/JobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function runCreationTests()
{
$pi = K8s::container()
->setName('pi')
->setImage('perl')
->setImage('perl', '5.34.0')
->setCommand(['perl', '-Mbignum=bpi', '-wle', 'print bpi(2000)']);

$pod = $this->cluster->pod()
Expand Down

0 comments on commit f5cfbaa

Please sign in to comment.