Skip to content

Commit

Permalink
Adding new schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann Hamon committed Jul 13, 2024
1 parent 3d5e7fe commit 6008bfd
Show file tree
Hide file tree
Showing 40 changed files with 184 additions and 112 deletions.
10 changes: 8 additions & 2 deletions master-local/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4909,7 +4909,7 @@
},
"podFailurePolicy": {
"$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicy",
"description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.\n\nThis field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default)."
"description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure."
},
"podReplacementPolicy": {
"description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.",
Expand Down Expand Up @@ -7665,6 +7665,9 @@
"type": "string"
}
},
"required": [
"ip"
],
"type": "object"
},
"io.k8s.api.core.v1.HostPathVolumeSource": {
Expand Down Expand Up @@ -9265,7 +9268,7 @@
"properties": {
"lastPhaseTransitionTime": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
"description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default)."
"description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions."
},
"message": {
"description": "message is a human-readable message indicating details about why the volume is in this state.",
Expand Down Expand Up @@ -9509,6 +9512,9 @@
"type": "string"
}
},
"required": [
"ip"
],
"type": "object"
},
"io.k8s.api.core.v1.PodList": {
Expand Down
3 changes: 3 additions & 0 deletions master-local/hostip-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
]
}
},
"required": [
"ip"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
3 changes: 3 additions & 0 deletions master-local/hostip.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
]
}
},
"required": [
"ip"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
2 changes: 1 addition & 1 deletion master-local/jobspec-batch-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
"podFailurePolicy": {
"$ref": "_definitions.json#/definitions/io.k8s.api.batch.v1.PodFailurePolicy",
"description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.\n\nThis field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default)."
"description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure."
},
"podReplacementPolicy": {
"description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.",
Expand Down
2 changes: 1 addition & 1 deletion master-local/jobspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
"podFailurePolicy": {
"$ref": "_definitions.json#/definitions/io.k8s.api.batch.v1.PodFailurePolicy",
"description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.\n\nThis field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default)."
"description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure."
},
"podReplacementPolicy": {
"description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.",
Expand Down
2 changes: 1 addition & 1 deletion master-local/persistentvolumestatus-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"properties": {
"lastPhaseTransitionTime": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
"description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default)."
"description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions."
},
"message": {
"description": "message is a human-readable message indicating details about why the volume is in this state.",
Expand Down
2 changes: 1 addition & 1 deletion master-local/persistentvolumestatus.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"properties": {
"lastPhaseTransitionTime": {
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
"description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default)."
"description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions."
},
"message": {
"description": "message is a human-readable message indicating details about why the volume is in this state.",
Expand Down
3 changes: 3 additions & 0 deletions master-local/podip-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
]
}
},
"required": [
"ip"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
3 changes: 3 additions & 0 deletions master-local/podip.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
]
}
},
"required": [
"ip"
],
"type": "object",
"$schema": "http://json-schema.org/schema#"
}
10 changes: 8 additions & 2 deletions master-standalone-strict/_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5070,7 +5070,7 @@
},
"podFailurePolicy": {
"$ref": "#/definitions/io.k8s.api.batch.v1.PodFailurePolicy",
"description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.\n\nThis field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default)."
"description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure."
},
"podReplacementPolicy": {
"description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.",
Expand Down Expand Up @@ -7916,6 +7916,9 @@
"type": "string"
}
},
"required": [
"ip"
],
"type": "object",
"additionalProperties": false
},
Expand Down Expand Up @@ -9567,7 +9570,7 @@
"properties": {
"lastPhaseTransitionTime": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
"description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default)."
"description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions."
},
"message": {
"description": "message is a human-readable message indicating details about why the volume is in this state.",
Expand Down Expand Up @@ -9820,6 +9823,9 @@
"type": "string"
}
},
"required": [
"ip"
],
"type": "object",
"additionalProperties": false
},
Expand Down
3 changes: 3 additions & 0 deletions master-standalone-strict/hostip-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
]
}
},
"required": [
"ip"
],
"type": "object",
"additionalProperties": false,
"$schema": "http://json-schema.org/schema#"
Expand Down
3 changes: 3 additions & 0 deletions master-standalone-strict/hostip.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
]
}
},
"required": [
"ip"
],
"type": "object",
"additionalProperties": false,
"$schema": "http://json-schema.org/schema#"
Expand Down
16 changes: 8 additions & 8 deletions master-standalone-strict/pod-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -11420,12 +11420,12 @@
"properties": {
"ip": {
"description": "IP is the IP address assigned to the host",
"type": [
"string",
"null"
]
"type": "string"
}
},
"required": [
"ip"
],
"type": [
"object",
"null"
Expand Down Expand Up @@ -11970,12 +11970,12 @@
"properties": {
"ip": {
"description": "IP is the IP address assigned to the pod",
"type": [
"string",
"null"
]
"type": "string"
}
},
"required": [
"ip"
],
"type": [
"object",
"null"
Expand Down
16 changes: 8 additions & 8 deletions master-standalone-strict/pod.json
Original file line number Diff line number Diff line change
Expand Up @@ -11417,12 +11417,12 @@
"properties": {
"ip": {
"description": "IP is the IP address assigned to the host",
"type": [
"string",
"null"
]
"type": "string"
}
},
"required": [
"ip"
],
"type": [
"object",
"null"
Expand Down Expand Up @@ -11967,12 +11967,12 @@
"properties": {
"ip": {
"description": "IP is the IP address assigned to the pod",
"type": [
"string",
"null"
]
"type": "string"
}
},
"required": [
"ip"
],
"type": [
"object",
"null"
Expand Down
3 changes: 3 additions & 0 deletions master-standalone-strict/podip-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
]
}
},
"required": [
"ip"
],
"type": "object",
"additionalProperties": false,
"$schema": "http://json-schema.org/schema#"
Expand Down
3 changes: 3 additions & 0 deletions master-standalone-strict/podip.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
]
}
},
"required": [
"ip"
],
"type": "object",
"additionalProperties": false,
"$schema": "http://json-schema.org/schema#"
Expand Down
16 changes: 8 additions & 8 deletions master-standalone-strict/podlist-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -11435,12 +11435,12 @@
"properties": {
"ip": {
"description": "IP is the IP address assigned to the host",
"type": [
"string",
"null"
]
"type": "string"
}
},
"required": [
"ip"
],
"type": [
"object",
"null"
Expand Down Expand Up @@ -11985,12 +11985,12 @@
"properties": {
"ip": {
"description": "IP is the IP address assigned to the pod",
"type": [
"string",
"null"
]
"type": "string"
}
},
"required": [
"ip"
],
"type": [
"object",
"null"
Expand Down
16 changes: 8 additions & 8 deletions master-standalone-strict/podlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -11429,12 +11429,12 @@
"properties": {
"ip": {
"description": "IP is the IP address assigned to the host",
"type": [
"string",
"null"
]
"type": "string"
}
},
"required": [
"ip"
],
"type": [
"object",
"null"
Expand Down Expand Up @@ -11979,12 +11979,12 @@
"properties": {
"ip": {
"description": "IP is the IP address assigned to the pod",
"type": [
"string",
"null"
]
"type": "string"
}
},
"required": [
"ip"
],
"type": [
"object",
"null"
Expand Down
16 changes: 8 additions & 8 deletions master-standalone-strict/podstatus-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1070,12 +1070,12 @@
"properties": {
"ip": {
"description": "IP is the IP address assigned to the host",
"type": [
"string",
"null"
]
"type": "string"
}
},
"required": [
"ip"
],
"type": [
"object",
"null"
Expand Down Expand Up @@ -1620,12 +1620,12 @@
"properties": {
"ip": {
"description": "IP is the IP address assigned to the pod",
"type": [
"string",
"null"
]
"type": "string"
}
},
"required": [
"ip"
],
"type": [
"object",
"null"
Expand Down
16 changes: 8 additions & 8 deletions master-standalone-strict/podstatus.json
Original file line number Diff line number Diff line change
Expand Up @@ -1070,12 +1070,12 @@
"properties": {
"ip": {
"description": "IP is the IP address assigned to the host",
"type": [
"string",
"null"
]
"type": "string"
}
},
"required": [
"ip"
],
"type": [
"object",
"null"
Expand Down Expand Up @@ -1620,12 +1620,12 @@
"properties": {
"ip": {
"description": "IP is the IP address assigned to the pod",
"type": [
"string",
"null"
]
"type": "string"
}
},
"required": [
"ip"
],
"type": [
"object",
"null"
Expand Down
Loading

0 comments on commit 6008bfd

Please sign in to comment.