This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(jobspec): make restartPolicy as OnFailure (#347)
* fix(jobspec): make restartPolicy as OnFailure Job cannot have a pod with `restartPolicy` as `Always`, but it was being defaulted to `Always` in this commit changing it to `OnFailure`.
- Loading branch information
Showing
4 changed files
with
184 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Job | ||
|
||
Now you can add support for Kubernetes controller type Job. All you need to do is provide a | ||
root level field called `controller` like this: | ||
|
||
```yaml | ||
name: pival | ||
controller: job | ||
containers: | ||
... | ||
``` | ||
|
||
All of the information you provide for a normal controller will be same. By default the value | ||
of the `restartPolicy` will be `OnFailure`. | ||
|
||
|
||
At root level the fields that are available are from `PodSpec` and `JobSpec`. For example of | ||
job definition in kedge look at file [`job.yaml`](job.yaml). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters