Skip to content

Commit

Permalink
Update schemas (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhirverma committed Sep 13, 2021
1 parent 7e72bf7 commit 82fc8df
Show file tree
Hide file tree
Showing 21 changed files with 5,585 additions and 143 deletions.
4 changes: 4 additions & 0 deletions scheme/index.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ triggers.tekton.dev/v1alpha1_EventListener.json
triggers.tekton.dev/v1alpha1_TriggerTemplate.json
triggers.tekton.dev/v1alpha1_TriggerBinding.json
triggers.tekton.dev/v1alpha1_ClusterTriggerBinding.json
triggers.tekton.dev/v1beta1_EventListener.json
triggers.tekton.dev/v1beta1_TriggerTemplate.json
triggers.tekton.dev/v1beta1_TriggerBinding.json
triggers.tekton.dev/v1beta1_ClusterTriggerBinding.json
189 changes: 182 additions & 7 deletions scheme/tekton.dev/v1alpha1_ClusterTask.json
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,19 @@
"additionalProperties": false,
"type": "object"
},
"EphemeralVolumeSource": {
"properties": {
"volumeClaimTemplate": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/PersistentVolumeClaimTemplate"
},
"readOnly": {
"type": "boolean"
}
},
"additionalProperties": false,
"type": "object"
},
"ExecAction": {
"properties": {
"command": {
Expand Down Expand Up @@ -535,11 +548,6 @@
"additionalProperties": false,
"type": "object"
},
"FieldsV1": {
"properties": {},
"additionalProperties": false,
"type": "object"
},
"FlexVolumeSource": {
"required": [
"driver"
Expand Down Expand Up @@ -819,6 +827,49 @@
"additionalProperties": false,
"type": "object"
},
"LabelSelector": {
"properties": {
"matchLabels": {
"patternProperties": {
".*": {
"type": "string"
}
},
"type": "object"
},
"matchExpressions": {
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/LabelSelectorRequirement"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object"
},
"LabelSelectorRequirement": {
"required": [
"key",
"operator"
],
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object"
},
"Lifecycle": {
"properties": {
"postStart": {
Expand Down Expand Up @@ -860,8 +911,9 @@
"type": "string"
},
"fieldsV1": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/FieldsV1"
"properties": {},
"additionalProperties": true,
"type": "object"
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -1058,6 +1110,54 @@
"additionalProperties": false,
"type": "object"
},
"PersistentVolumeClaimSpec": {
"properties": {
"accessModes": {
"items": {
"type": "string"
},
"type": "array"
},
"selector": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/LabelSelector"
},
"resources": {
"$ref": "#/definitions/ResourceRequirements"
},
"volumeName": {
"type": "string"
},
"storageClassName": {
"type": "string"
},
"volumeMode": {
"type": "string"
},
"dataSource": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/TypedLocalObjectReference"
}
},
"additionalProperties": false,
"type": "object"
},
"PersistentVolumeClaimTemplate": {
"required": [
"spec"
],
"properties": {
"metadata": {
"$ref": "#/definitions/ObjectMeta"
},
"spec": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/PersistentVolumeClaimSpec"
}
},
"additionalProperties": false,
"type": "object"
},
"PersistentVolumeClaimVolumeSource": {
"required": [
"claimName"
Expand Down Expand Up @@ -1328,6 +1428,21 @@
"additionalProperties": false,
"type": "object"
},
"SeccompProfile": {
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"localhostProfile": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"SecretEnvSource": {
"properties": {
"name": {
Expand Down Expand Up @@ -1432,6 +1547,10 @@
},
"procMount": {
"type": "string"
},
"seccompProfile": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/SeccompProfile"
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -1549,6 +1668,12 @@
},
"script": {
"type": "string"
},
"workspaces": {
"items": {
"$ref": "#/definitions/WorkspaceUsage"
},
"type": "array"
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -1661,6 +1786,16 @@
"timeout": {
"pattern": "^[-+]?([0-9]*(\\.[0-9]*)?(ns|us|µs|μs|ms|s|m|h))+$",
"type": "string"
},
"workspaces": {
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/WorkspaceUsage"
},
"type": "array"
},
"onError": {
"type": "string"
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -1849,6 +1984,26 @@
"additionalProperties": false,
"type": "object"
},
"TypedLocalObjectReference": {
"required": [
"apiGroup",
"kind",
"name"
],
"properties": {
"apiGroup": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"Volume": {
"required": [
"name"
Expand Down Expand Up @@ -1968,6 +2123,10 @@
"csi": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/CSIVolumeSource"
},
"ephemeral": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/EphemeralVolumeSource"
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -2098,6 +2257,22 @@
},
"additionalProperties": false,
"type": "object"
},
"WorkspaceUsage": {
"required": [
"name",
"mountPath"
],
"properties": {
"name": {
"type": "string"
},
"mountPath": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
}
}
}
55 changes: 48 additions & 7 deletions scheme/tekton.dev/v1alpha1_Condition.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,6 @@
"additionalProperties": false,
"type": "object"
},
"FieldsV1": {
"properties": {},
"additionalProperties": false,
"type": "object"
},
"HTTPGetAction": {
"required": [
"port"
Expand Down Expand Up @@ -312,8 +307,9 @@
"type": "string"
},
"fieldsV1": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/FieldsV1"
"properties": {},
"additionalProperties": true,
"type": "object"
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -594,6 +590,21 @@
"additionalProperties": false,
"type": "object"
},
"SeccompProfile": {
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"localhostProfile": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
},
"SecretEnvSource": {
"properties": {
"name": {
Expand Down Expand Up @@ -658,6 +669,10 @@
},
"procMount": {
"type": "string"
},
"seccompProfile": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/SeccompProfile"
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -770,6 +785,16 @@
"timeout": {
"pattern": "^[-+]?([0-9]*(\\.[0-9]*)?(ns|us|µs|μs|ms|s|m|h))+$",
"type": "string"
},
"workspaces": {
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/WorkspaceUsage"
},
"type": "array"
},
"onError": {
"type": "string"
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -848,6 +873,22 @@
},
"additionalProperties": false,
"type": "object"
},
"WorkspaceUsage": {
"required": [
"name",
"mountPath"
],
"properties": {
"name": {
"type": "string"
},
"mountPath": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object"
}
}
}
Loading

0 comments on commit 82fc8df

Please sign in to comment.