Skip to content

Commit f5cfbaa

Browse files
committed
fixed job version for testing
1 parent 8597a8f commit f5cfbaa

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

tests/CronJobTest.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ public function test_cronjob_from_yaml()
6262
->restartOnFailure()
6363
->neverRestart();
6464

65-
$job = $this->cluster->job()
66-
->setName('pi')
67-
->setLabels(['tier' => 'backend'])
68-
->setAnnotations(['perl/annotation' => 'yes'])
69-
->setTTL(3600)
70-
->setTemplate($pod);
71-
7265
$cronjob = $this->cluster->fromYamlFile(__DIR__.'/yaml/cronjob.yaml');
7366

7467
$this->assertEquals('batch/v1beta1', $cronjob->getApiVersion());
@@ -96,7 +89,7 @@ public function runCreationTests()
9689
{
9790
$pi = K8s::container()
9891
->setName('pi')
99-
->setImage('perl')
92+
->setImage('perl', '5.34.0')
10093
->setCommand(['perl', '-Mbignum=bpi', '-wle', 'print bpi(2000)']);
10194

10295
$pod = $this->cluster->pod()

tests/JobTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function runCreationTests()
8080
{
8181
$pi = K8s::container()
8282
->setName('pi')
83-
->setImage('perl')
83+
->setImage('perl', '5.34.0')
8484
->setCommand(['perl', '-Mbignum=bpi', '-wle', 'print bpi(2000)']);
8585

8686
$pod = $this->cluster->pod()

0 commit comments

Comments
 (0)