Skip to content

Commit 020a513

Browse files
Commit from GitHub Actions (Scheduled Jobs)
1 parent ad0362f commit 020a513

1 file changed

Lines changed: 106 additions & 1 deletion

File tree

schema/jobset.x-k8s.io/jobset_v1alpha2.json

Lines changed: 106 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,40 @@
119119
"items": {
120120
"additionalProperties": false,
121121
"properties": {
122+
"dependsOn": {
123+
"items": {
124+
"additionalProperties": false,
125+
"properties": {
126+
"name": {
127+
"type": "string"
128+
},
129+
"status": {
130+
"enum": [
131+
"Ready",
132+
"Complete"
133+
],
134+
"type": "string"
135+
}
136+
},
137+
"required": [
138+
"name",
139+
"status"
140+
],
141+
"type": "object"
142+
},
143+
"maxItems": 1,
144+
"type": "array",
145+
"x-kubernetes-list-map-keys": [
146+
"name"
147+
],
148+
"x-kubernetes-list-type": "map",
149+
"x-kubernetes-validations": [
150+
{
151+
"message": "Value is immutable",
152+
"rule": "self == oldSelf"
153+
}
154+
]
155+
},
122156
"name": {
123157
"type": "string"
124158
},
@@ -4582,6 +4616,64 @@
45824616
],
45834617
"x-kubernetes-list-type": "map"
45844618
},
4619+
"resources": {
4620+
"additionalProperties": false,
4621+
"properties": {
4622+
"claims": {
4623+
"items": {
4624+
"additionalProperties": false,
4625+
"properties": {
4626+
"name": {
4627+
"type": "string"
4628+
},
4629+
"request": {
4630+
"type": "string"
4631+
}
4632+
},
4633+
"required": [
4634+
"name"
4635+
],
4636+
"type": "object"
4637+
},
4638+
"type": "array",
4639+
"x-kubernetes-list-map-keys": [
4640+
"name"
4641+
],
4642+
"x-kubernetes-list-type": "map"
4643+
},
4644+
"limits": {
4645+
"additionalProperties": {
4646+
"anyOf": [
4647+
{
4648+
"type": "integer"
4649+
},
4650+
{
4651+
"type": "string"
4652+
}
4653+
],
4654+
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
4655+
"x-kubernetes-int-or-string": true
4656+
},
4657+
"type": "object"
4658+
},
4659+
"requests": {
4660+
"additionalProperties": {
4661+
"anyOf": [
4662+
{
4663+
"type": "integer"
4664+
},
4665+
{
4666+
"type": "string"
4667+
}
4668+
],
4669+
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
4670+
"x-kubernetes-int-or-string": true
4671+
},
4672+
"type": "object"
4673+
}
4674+
},
4675+
"type": "object"
4676+
},
45854677
"restartPolicy": {
45864678
"type": "string"
45874679
},
@@ -4646,6 +4738,9 @@
46464738
"format": "int64",
46474739
"type": "integer"
46484740
},
4741+
"seLinuxChangePolicy": {
4742+
"type": "string"
4743+
},
46494744
"seLinuxOptions": {
46504745
"additionalProperties": false,
46514746
"properties": {
@@ -6227,7 +6322,17 @@
62276322
"type": "integer"
62286323
}
62296324
},
6230-
"type": "object"
6325+
"type": "object",
6326+
"x-kubernetes-validations": [
6327+
{
6328+
"message": "StartupPolicy and DependsOn APIs are mutually exclusive",
6329+
"rule": "!(has(self.startupPolicy) && self.startupPolicy.startupPolicyOrder == 'InOrder' && self.replicatedJobs.exists(x, has(x.dependsOn)))"
6330+
},
6331+
{
6332+
"message": "DependsOn can't be set for the first ReplicatedJob",
6333+
"rule": "!(has(self.replicatedJobs[0].dependsOn))"
6334+
}
6335+
]
62316336
},
62326337
"status": {
62336338
"additionalProperties": false,

0 commit comments

Comments
 (0)