mirror of
https://github.com/lukaszraczylo/jobs-manager-operator.git
synced 2026-07-12 07:41:00 +00:00
Completely rebuild the tree generation logic.
This commit is contained in:
@@ -38,6 +38,18 @@ spec:
|
||||
groups:
|
||||
items:
|
||||
properties:
|
||||
dependencies:
|
||||
items:
|
||||
properties:
|
||||
name:
|
||||
default: ""
|
||||
type: string
|
||||
status:
|
||||
type: string
|
||||
required:
|
||||
- status
|
||||
type: object
|
||||
type: array
|
||||
jobs:
|
||||
items:
|
||||
properties:
|
||||
@@ -2170,14 +2182,17 @@ spec:
|
||||
type: array
|
||||
type: object
|
||||
dependencies:
|
||||
properties:
|
||||
group:
|
||||
default: ""
|
||||
type: string
|
||||
job:
|
||||
default: ""
|
||||
type: string
|
||||
type: object
|
||||
items:
|
||||
properties:
|
||||
name:
|
||||
default: ""
|
||||
type: string
|
||||
status:
|
||||
type: string
|
||||
required:
|
||||
- status
|
||||
type: object
|
||||
type: array
|
||||
image:
|
||||
minLength: 5
|
||||
type: string
|
||||
|
||||
@@ -41,6 +41,11 @@ spec:
|
||||
args:
|
||||
- "sleep"
|
||||
- "10"
|
||||
- name: "second-half-job"
|
||||
image: "busybox"
|
||||
args:
|
||||
- "sleep"
|
||||
- "10"
|
||||
|
||||
- name: "second-group"
|
||||
parallel: true
|
||||
@@ -57,4 +62,14 @@ spec:
|
||||
args:
|
||||
- "sleep"
|
||||
- "10"
|
||||
parallel: false
|
||||
|
||||
- name: "third-group"
|
||||
parallel: false
|
||||
jobs:
|
||||
- name: "fifth-job"
|
||||
image: "busybox"
|
||||
args:
|
||||
- "echo"
|
||||
- "Hello world!"
|
||||
parallel: true
|
||||
Reference in New Issue
Block a user