diff --git a/schema/core.jenkins-x.io/v4beta1/requirements.json b/schema/core.jenkins-x.io/v4beta1/requirements.json index 45419ca..233aebe 100755 --- a/schema/core.jenkins-x.io/v4beta1/requirements.json +++ b/schema/core.jenkins-x.io/v4beta1/requirements.json @@ -1,36 +1,51 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/jenkins-x/jx-api/v4/pkg/apis/core/v4beta1/requirements", - "$ref": "#/$defs/Requirements", - "$defs": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Requirements", + "definitions": { "AutoUpdateConfig": { "properties": { + "autoMerge": { + "type": "boolean" + }, "enabled": { "type": "boolean" }, "schedule": { "type": "string" - }, - "autoMerge": { - "type": "boolean" } }, "additionalProperties": false, "type": "object" }, - "AzureConfig": { + "AzureClusterNodesConfig": { "properties": { - "registrySubscription": { + "clientID": { "type": "string" + } + }, + "additionalProperties": false, + "type": "object" + }, + "AzureConfig": { + "properties": { + "clusterNodes": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/AzureClusterNodesConfig" }, "dns": { - "$ref": "#/$defs/AzureDNSConfig" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/AzureDNSConfig" + }, + "registrySubscription": { + "type": "string" }, "secretStorage": { - "$ref": "#/$defs/AzureSecretConfig" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/AzureSecretConfig" }, "storage": { - "$ref": "#/$defs/AzureStorageConfig" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/AzureStorageConfig" } }, "additionalProperties": false, @@ -38,13 +53,13 @@ }, "AzureDNSConfig": { "properties": { - "tenantId": { + "resourceGroup": { "type": "string" }, "subscriptionId": { "type": "string" }, - "resourceGroup": { + "tenantId": { "type": "string" } }, @@ -71,77 +86,80 @@ }, "ClusterConfig": { "properties": { - "chartRepository": { - "type": "string" + "azure": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/AzureConfig" }, "chartKind": { "type": "string" }, - "chartSecret": { + "chartRepository": { "type": "string" }, - "registry": { + "chartSecret": { "type": "string" }, - "dockerRegistryOrg": { + "clusterName": { "type": "string" }, - "kanikoFlags": { + "devEnvApprovers": { + "items": { + "type": "string" + }, + "type": "array" + }, + "dockerRegistryOrg": { "type": "string" }, "environmentGitOwner": { "type": "string" }, - "azure": { - "$ref": "#/$defs/AzureConfig" - }, - "gke": { - "$ref": "#/$defs/GKEConfig" - }, "environmentGitPublic": { "type": "boolean" }, - "gitPublic": { - "type": "boolean" - }, - "provider": { + "externalDNSSAName": { "type": "string" }, - "project": { + "gitKind": { "type": "string" }, - "clusterName": { + "gitName": { "type": "string" }, - "region": { - "type": "string" + "gitPublic": { + "type": "boolean" }, - "zone": { + "gitServer": { "type": "string" }, - "gitName": { + "gke": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/GKEConfig" + }, + "issueProvider": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/IssueTracker" + }, + "kanikoFlags": { "type": "string" }, - "gitKind": { + "kanikoSAName": { "type": "string" }, - "gitServer": { + "project": { "type": "string" }, - "externalDNSSAName": { + "provider": { "type": "string" }, - "kanikoSAName": { + "region": { "type": "string" }, - "devEnvApprovers": { - "items": { - "type": "string" - }, - "type": "array" + "registry": { + "type": "string" }, - "issueProvider": { - "$ref": "#/$defs/IssueTracker" + "zone": { + "type": "string" } }, "additionalProperties": false, @@ -149,38 +167,39 @@ }, "EnvironmentConfig": { "properties": { - "key": { + "gitKind": { "type": "string" }, - "owner": { + "gitServer": { "type": "string" }, - "repository": { + "gitUrl": { "type": "string" }, - "gitServer": { + "ingress": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/IngressConfig" + }, + "key": { "type": "string" }, - "gitKind": { + "namespace": { "type": "string" }, - "gitUrl": { + "owner": { "type": "string" }, - "ingress": { - "$ref": "#/$defs/IngressConfig" + "promotionStrategy": { + "type": "string" }, "remoteCluster": { "type": "boolean" }, - "promotionStrategy": { + "repository": { "type": "string" }, "reusePullRequest": { "type": "boolean" - }, - "namespace": { - "type": "string" } }, "additionalProperties": false, @@ -197,35 +216,38 @@ }, "IngressConfig": { "properties": { + "annotations": { + "patternProperties": { + ".*": { + "type": "string" + } + }, + "type": "object" + }, "apiVersion": { "type": "string" }, - "externalDNS": { - "type": "boolean" - }, "cloud_dns_secret_name": { "type": "string" }, "domain": { "type": "string" }, - "kind": { - "type": "string" + "externalDNS": { + "type": "boolean" }, "ignoreLoadBalancer": { "type": "boolean" }, + "kind": { + "type": "string" + }, "namespaceSubDomain": { "type": "string" }, "tls": { - "$ref": "#/$defs/TLSConfig" - }, - "annotations": { - "additionalProperties": { - "type": "string" - }, - "type": "object" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/TLSConfig" } }, "additionalProperties": false, @@ -234,7 +256,8 @@ "IssueTracker": { "properties": { "jira": { - "$ref": "#/$defs/JiraTracker" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/JiraTracker" } }, "additionalProperties": false, @@ -242,13 +265,13 @@ }, "JiraTracker": { "properties": { - "serverUrl": { + "project": { "type": "string" }, - "userName": { + "serverUrl": { "type": "string" }, - "project": { + "userName": { "type": "string" } }, @@ -270,7 +293,8 @@ "RepositoryConfig": { "properties": { "maven": { - "$ref": "#/$defs/MavenRepositoryConfig" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/MavenRepositoryConfig" } }, "additionalProperties": false, @@ -278,14 +302,15 @@ }, "Requirements": { "properties": { - "kind": { + "apiVersion": { "type": "string" }, - "apiVersion": { + "kind": { "type": "string" }, "spec": { - "$ref": "#/$defs/RequirementsConfig" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/RequirementsConfig" } }, "additionalProperties": false, @@ -294,44 +319,50 @@ "RequirementsConfig": { "properties": { "autoUpdate": { - "$ref": "#/$defs/AutoUpdateConfig" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/AutoUpdateConfig" }, "cluster": { - "$ref": "#/$defs/ClusterConfig" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ClusterConfig" }, "environments": { "items": { - "$ref": "#/$defs/EnvironmentConfig" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/EnvironmentConfig" }, "type": "array" }, "extraDomains": { "items": { - "$ref": "#/$defs/IngressConfig" + "$ref": "#/definitions/IngressConfig" }, "type": "array" }, "ingress": { - "$ref": "#/$defs/IngressConfig" + "$ref": "#/definitions/IngressConfig" }, "kuberhealthy": { "type": "boolean" }, "pipelineUser": { - "$ref": "#/$defs/UserNameEmailConfig" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/UserNameEmailConfig" + }, + "repositories": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/RepositoryConfig" }, "repository": { "type": "string" }, - "repositories": { - "$ref": "#/$defs/RepositoryConfig" - }, "secretStorage": { "type": "string" }, "storage": { "items": { - "$ref": "#/$defs/StorageConfig" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/StorageConfig" }, "type": "array" }, @@ -342,7 +373,8 @@ "type": "boolean" }, "vault": { - "$ref": "#/$defs/VaultConfig" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/VaultConfig" }, "webhook": { "type": "string" @@ -365,12 +397,12 @@ }, "TLSConfig": { "properties": { - "enabled": { - "type": "boolean" - }, "email": { "type": "string" }, + "enabled": { + "type": "boolean" + }, "production": { "type": "boolean" }, @@ -383,10 +415,10 @@ }, "UserNameEmailConfig": { "properties": { - "username": { + "email": { "type": "string" }, - "email": { + "username": { "type": "string" } }, @@ -395,31 +427,31 @@ }, "VaultAWSConfig": { "properties": { - "kmsKeyId": { - "type": "string" + "autoCreate": { + "type": "boolean" }, - "kmsRegion": { + "dynamoDBRegion": { "type": "string" }, - "s3Bucket": { + "dynamoDBTable": { "type": "string" }, - "s3Prefix": { + "iamUserName": { "type": "string" }, - "s3Region": { + "kmsKeyId": { "type": "string" }, - "autoCreate": { - "type": "boolean" + "kmsRegion": { + "type": "string" }, - "dynamoDBTable": { + "s3Bucket": { "type": "string" }, - "dynamoDBRegion": { + "s3Prefix": { "type": "string" }, - "iamUserName": { + "s3Region": { "type": "string" } }, @@ -428,10 +460,7 @@ }, "VaultAzureConfig": { "properties": { - "tenantId": { - "type": "string" - }, - "vaultName": { + "containerName": { "type": "string" }, "keyName": { @@ -440,7 +469,10 @@ "storageAccountName": { "type": "string" }, - "containerName": { + "tenantId": { + "type": "string" + }, + "vaultName": { "type": "string" } }, @@ -449,43 +481,45 @@ }, "VaultConfig": { "properties": { - "name": { - "type": "string" + "aws": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/VaultAWSConfig" + }, + "azure": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/VaultAzureConfig" }, "bucket": { "type": "string" }, - "recreateBucket": { + "disableURLDiscovery": { "type": "boolean" }, - "keyring": { - "type": "string" - }, "key": { "type": "string" }, - "disableURLDiscovery": { - "type": "boolean" - }, - "aws": { - "$ref": "#/$defs/VaultAWSConfig" - }, - "azure": { - "$ref": "#/$defs/VaultAzureConfig" + "keyring": { + "type": "string" }, - "url": { + "kubernetesAuthPath": { "type": "string" }, - "serviceAccount": { + "name": { "type": "string" }, "namespace": { "type": "string" }, + "recreateBucket": { + "type": "boolean" + }, "secretEngineMountPoint": { "type": "string" }, - "kubernetesAuthPath": { + "serviceAccount": { + "type": "string" + }, + "url": { "type": "string" } }, diff --git a/schema/jenkins.io/v1/environment.json b/schema/jenkins.io/v1/environment.json index 7e6c7b2..1d6b48b 100755 --- a/schema/jenkins.io/v1/environment.json +++ b/schema/jenkins.io/v1/environment.json @@ -1,13 +1,9 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/jenkins-x/jx-api/v4/pkg/apis/jenkins.io/v1/environment", - "$ref": "#/$defs/Environment", - "$defs": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Environment", + "definitions": { "AWSElasticBlockStoreVolumeSource": { "properties": { - "volumeID": { - "type": "string" - }, "fsType": { "type": "string" }, @@ -16,6 +12,9 @@ }, "readOnly": { "type": "boolean" + }, + "volumeID": { + "type": "string" } }, "additionalProperties": false, @@ -24,13 +23,16 @@ "Affinity": { "properties": { "nodeAffinity": { - "$ref": "#/$defs/NodeAffinity" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/NodeAffinity" }, "podAffinity": { - "$ref": "#/$defs/PodAffinity" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodAffinity" }, "podAntiAffinity": { - "$ref": "#/$defs/PodAntiAffinity" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodAntiAffinity" } }, "additionalProperties": false, @@ -38,10 +40,10 @@ }, "AppArmorProfile": { "properties": { - "type": { + "localhostProfile": { "type": "string" }, - "localhostProfile": { + "type": { "type": "string" } }, @@ -50,23 +52,23 @@ }, "AzureDiskVolumeSource": { "properties": { + "cachingMode": { + "type": "string" + }, "diskName": { "type": "string" }, "diskURI": { "type": "string" }, - "cachingMode": { + "fsType": { "type": "string" }, - "fsType": { + "kind": { "type": "string" }, "readOnly": { "type": "boolean" - }, - "kind": { - "type": "string" } }, "additionalProperties": false, @@ -74,14 +76,14 @@ }, "AzureFileVolumeSource": { "properties": { + "readOnly": { + "type": "boolean" + }, "secretName": { "type": "string" }, "shareName": { "type": "string" - }, - "readOnly": { - "type": "boolean" } }, "additionalProperties": false, @@ -92,20 +94,22 @@ "driver": { "type": "string" }, - "readOnly": { - "type": "boolean" - }, "fsType": { "type": "string" }, + "nodePublishSecretRef": { + "$ref": "#/definitions/LocalObjectReference" + }, + "readOnly": { + "type": "boolean" + }, "volumeAttributes": { - "additionalProperties": { - "type": "string" + "patternProperties": { + ".*": { + "type": "string" + } }, "type": "object" - }, - "nodePublishSecretRef": { - "$ref": "#/$defs/LocalObjectReference" } }, "additionalProperties": false, @@ -140,17 +144,17 @@ "path": { "type": "string" }, - "user": { - "type": "string" + "readOnly": { + "type": "boolean" }, "secretFile": { "type": "string" }, "secretRef": { - "$ref": "#/$defs/LocalObjectReference" + "$ref": "#/definitions/LocalObjectReference" }, - "readOnly": { - "type": "boolean" + "user": { + "type": "string" } }, "additionalProperties": false, @@ -158,9 +162,6 @@ }, "CinderVolumeSource": { "properties": { - "volumeID": { - "type": "string" - }, "fsType": { "type": "string" }, @@ -168,7 +169,10 @@ "type": "boolean" }, "secretRef": { - "$ref": "#/$defs/LocalObjectReference" + "$ref": "#/definitions/LocalObjectReference" + }, + "volumeID": { + "type": "string" } }, "additionalProperties": false, @@ -188,20 +192,20 @@ }, "ClusterTrustBundleProjection": { "properties": { - "name": { - "type": "string" + "labelSelector": { + "$ref": "#/definitions/LabelSelector" }, - "signerName": { + "name": { "type": "string" }, - "labelSelector": { - "$ref": "#/$defs/LabelSelector" - }, "optional": { "type": "boolean" }, "path": { "type": "string" + }, + "signerName": { + "type": "string" } }, "additionalProperties": false, @@ -221,10 +225,10 @@ }, "ConfigMapKeySelector": { "properties": { - "name": { + "key": { "type": "string" }, - "key": { + "name": { "type": "string" }, "optional": { @@ -236,15 +240,15 @@ }, "ConfigMapProjection": { "properties": { - "name": { - "type": "string" - }, "items": { "items": { - "$ref": "#/$defs/KeyToPath" + "$ref": "#/definitions/KeyToPath" }, "type": "array" }, + "name": { + "type": "string" + }, "optional": { "type": "boolean" } @@ -254,17 +258,17 @@ }, "ConfigMapVolumeSource": { "properties": { - "name": { - "type": "string" + "defaultMode": { + "type": "integer" }, "items": { "items": { - "$ref": "#/$defs/KeyToPath" + "$ref": "#/definitions/KeyToPath" }, "type": "array" }, - "defaultMode": { - "type": "integer" + "name": { + "type": "string" }, "optional": { "type": "boolean" @@ -274,25 +278,24 @@ "type": "object" }, "Container": { - "properties": {}, - "additionalProperties": false, + "additionalProperties": true, "type": "object" }, "ContainerPort": { "properties": { - "name": { + "containerPort": { + "type": "integer" + }, + "hostIP": { "type": "string" }, "hostPort": { "type": "integer" }, - "containerPort": { - "type": "integer" - }, - "protocol": { + "name": { "type": "string" }, - "hostIP": { + "protocol": { "type": "string" } }, @@ -327,7 +330,7 @@ "properties": { "items": { "items": { - "$ref": "#/$defs/DownwardAPIVolumeFile" + "$ref": "#/definitions/DownwardAPIVolumeFile" }, "type": "array" } @@ -337,17 +340,19 @@ }, "DownwardAPIVolumeFile": { "properties": { - "path": { - "type": "string" - }, "fieldRef": { - "$ref": "#/$defs/ObjectFieldSelector" - }, - "resourceFieldRef": { - "$ref": "#/$defs/ResourceFieldSelector" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ObjectFieldSelector" }, "mode": { "type": "integer" + }, + "path": { + "type": "string" + }, + "resourceFieldRef": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ResourceFieldSelector" } }, "additionalProperties": false, @@ -355,14 +360,15 @@ }, "DownwardAPIVolumeSource": { "properties": { + "defaultMode": { + "type": "integer" + }, "items": { "items": { - "$ref": "#/$defs/DownwardAPIVolumeFile" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/DownwardAPIVolumeFile" }, "type": "array" - }, - "defaultMode": { - "type": "integer" } }, "additionalProperties": false, @@ -374,7 +380,8 @@ "type": "string" }, "sizeLimit": { - "$ref": "#/$defs/Quantity" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Quantity" } }, "additionalProperties": false, @@ -382,14 +389,16 @@ }, "EnvFromSource": { "properties": { + "configMapRef": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ConfigMapEnvSource" + }, "prefix": { "type": "string" }, - "configMapRef": { - "$ref": "#/$defs/ConfigMapEnvSource" - }, "secretRef": { - "$ref": "#/$defs/SecretEnvSource" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SecretEnvSource" } }, "additionalProperties": false, @@ -404,7 +413,8 @@ "type": "string" }, "valueFrom": { - "$ref": "#/$defs/EnvVarSource" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/EnvVarSource" } }, "additionalProperties": false, @@ -412,17 +422,19 @@ }, "EnvVarSource": { "properties": { + "configMapKeyRef": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ConfigMapKeySelector" + }, "fieldRef": { - "$ref": "#/$defs/ObjectFieldSelector" + "$ref": "#/definitions/ObjectFieldSelector" }, "resourceFieldRef": { - "$ref": "#/$defs/ResourceFieldSelector" - }, - "configMapKeyRef": { - "$ref": "#/$defs/ConfigMapKeySelector" + "$ref": "#/definitions/ResourceFieldSelector" }, "secretKeyRef": { - "$ref": "#/$defs/SecretKeySelector" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SecretKeySelector" } }, "additionalProperties": false, @@ -430,20 +442,23 @@ }, "Environment": { "properties": { - "kind": { + "apiVersion": { "type": "string" }, - "apiVersion": { + "kind": { "type": "string" }, "metadata": { - "$ref": "#/$defs/ObjectMeta" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ObjectMeta" }, "spec": { - "$ref": "#/$defs/EnvironmentSpec" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/EnvironmentSpec" }, "status": { - "$ref": "#/$defs/EnvironmentStatus" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/EnvironmentStatus" } }, "additionalProperties": false, @@ -454,10 +469,10 @@ "kind": { "type": "string" }, - "url": { + "ref": { "type": "string" }, - "ref": { + "url": { "type": "string" } }, @@ -466,41 +481,44 @@ }, "EnvironmentSpec": { "properties": { - "label": { + "cluster": { "type": "string" }, - "namespace": { + "kind": { "type": "string" }, - "cluster": { + "label": { "type": "string" }, - "promotionStrategy": { + "namespace": { "type": "string" }, - "source": { - "$ref": "#/$defs/EnvironmentRepository" - }, "order": { "type": "integer" }, - "kind": { + "previewGitInfo": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PreviewGitSpec" + }, + "promotionStrategy": { "type": "string" }, "pullRequestURL": { "type": "string" }, - "teamSettings": { - "$ref": "#/$defs/TeamSettings" + "remoteCluster": { + "type": "boolean" }, - "previewGitInfo": { - "$ref": "#/$defs/PreviewGitSpec" + "source": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/EnvironmentRepository" + }, + "teamSettings": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/TeamSettings" }, "webHookEngine": { "type": "string" - }, - "remoteCluster": { - "type": "boolean" } }, "additionalProperties": false, @@ -517,103 +535,113 @@ }, "EphemeralContainer": { "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - }, - "command": { + "args": { "items": { "type": "string" }, "type": "array" }, - "args": { + "command": { "items": { "type": "string" }, "type": "array" }, - "workingDir": { - "type": "string" - }, - "ports": { + "env": { "items": { - "$ref": "#/$defs/ContainerPort" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/EnvVar" }, "type": "array" }, "envFrom": { "items": { - "$ref": "#/$defs/EnvFromSource" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/EnvFromSource" }, "type": "array" }, - "env": { - "items": { - "$ref": "#/$defs/EnvVar" - }, - "type": "array" + "image": { + "type": "string" }, - "resources": { - "$ref": "#/$defs/ResourceRequirements" + "imagePullPolicy": { + "type": "string" }, - "resizePolicy": { - "items": { - "$ref": "#/$defs/ContainerResizePolicy" - }, - "type": "array" + "lifecycle": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Lifecycle" }, - "restartPolicy": { + "livenessProbe": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Probe" + }, + "name": { "type": "string" }, - "volumeMounts": { + "ports": { "items": { - "$ref": "#/$defs/VolumeMount" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ContainerPort" }, "type": "array" }, - "volumeDevices": { + "readinessProbe": { + "$ref": "#/definitions/Probe" + }, + "resizePolicy": { "items": { - "$ref": "#/$defs/VolumeDevice" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ContainerResizePolicy" }, "type": "array" }, - "livenessProbe": { - "$ref": "#/$defs/Probe" + "resources": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ResourceRequirements" }, - "readinessProbe": { - "$ref": "#/$defs/Probe" + "restartPolicy": { + "type": "string" + }, + "securityContext": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SecurityContext" }, "startupProbe": { - "$ref": "#/$defs/Probe" + "$ref": "#/definitions/Probe" }, - "lifecycle": { - "$ref": "#/$defs/Lifecycle" + "stdin": { + "type": "boolean" }, - "terminationMessagePath": { - "type": "string" + "stdinOnce": { + "type": "boolean" }, - "terminationMessagePolicy": { + "targetContainerName": { "type": "string" }, - "imagePullPolicy": { + "terminationMessagePath": { "type": "string" }, - "securityContext": { - "$ref": "#/$defs/SecurityContext" + "terminationMessagePolicy": { + "type": "string" }, - "stdin": { + "tty": { "type": "boolean" }, - "stdinOnce": { - "type": "boolean" + "volumeDevices": { + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/VolumeDevice" + }, + "type": "array" }, - "tty": { - "type": "boolean" + "volumeMounts": { + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/VolumeMount" + }, + "type": "array" }, - "targetContainerName": { + "workingDir": { "type": "string" } }, @@ -623,7 +651,8 @@ "EphemeralVolumeSource": { "properties": { "volumeClaimTemplate": { - "$ref": "#/$defs/PersistentVolumeClaimTemplate" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PersistentVolumeClaimTemplate" } }, "additionalProperties": false, @@ -643,21 +672,21 @@ }, "FCVolumeSource": { "properties": { - "targetWWNs": { - "items": { - "type": "string" - }, - "type": "array" + "fsType": { + "type": "string" }, "lun": { "type": "integer" }, - "fsType": { - "type": "string" - }, "readOnly": { "type": "boolean" }, + "targetWWNs": { + "items": { + "type": "string" + }, + "type": "array" + }, "wwids": { "items": { "type": "string" @@ -669,7 +698,6 @@ "type": "object" }, "FieldsV1": { - "properties": {}, "additionalProperties": false, "type": "object" }, @@ -681,17 +709,19 @@ "fsType": { "type": "string" }, - "secretRef": { - "$ref": "#/$defs/LocalObjectReference" + "options": { + "patternProperties": { + ".*": { + "type": "string" + } + }, + "type": "object" }, "readOnly": { "type": "boolean" }, - "options": { - "additionalProperties": { - "type": "string" - }, - "type": "object" + "secretRef": { + "$ref": "#/definitions/LocalObjectReference" } }, "additionalProperties": false, @@ -711,15 +741,15 @@ }, "GCEPersistentDiskVolumeSource": { "properties": { - "pdName": { - "type": "string" - }, "fsType": { "type": "string" }, "partition": { "type": "integer" }, + "pdName": { + "type": "string" + }, "readOnly": { "type": "boolean" } @@ -741,13 +771,13 @@ }, "GitRepoVolumeSource": { "properties": { - "repository": { + "directory": { "type": "string" }, - "revision": { + "repository": { "type": "string" }, - "directory": { + "revision": { "type": "string" } }, @@ -771,23 +801,25 @@ }, "HTTPGetAction": { "properties": { - "path": { - "type": "string" - }, - "port": { - "$ref": "#/$defs/IntOrString" - }, "host": { "type": "string" }, - "scheme": { - "type": "string" - }, "httpHeaders": { "items": { - "$ref": "#/$defs/HTTPHeader" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/HTTPHeader" }, "type": "array" + }, + "path": { + "type": "string" + }, + "port": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/IntOrString" + }, + "scheme": { + "type": "string" } }, "additionalProperties": false, @@ -807,14 +839,14 @@ }, "HostAlias": { "properties": { - "ip": { - "type": "string" - }, "hostnames": { "items": { "type": "string" }, "type": "array" + }, + "ip": { + "type": "string" } }, "additionalProperties": false, @@ -834,23 +866,26 @@ }, "ISCSIVolumeSource": { "properties": { - "targetPortal": { - "type": "string" + "chapAuthDiscovery": { + "type": "boolean" }, - "iqn": { + "chapAuthSession": { + "type": "boolean" + }, + "fsType": { "type": "string" }, - "lun": { - "type": "integer" + "initiatorName": { + "type": "string" }, - "iscsiInterface": { + "iqn": { "type": "string" }, - "fsType": { + "iscsiInterface": { "type": "string" }, - "readOnly": { - "type": "boolean" + "lun": { + "type": "integer" }, "portals": { "items": { @@ -858,16 +893,14 @@ }, "type": "array" }, - "chapAuthDiscovery": { - "type": "boolean" - }, - "chapAuthSession": { + "readOnly": { "type": "boolean" }, "secretRef": { - "$ref": "#/$defs/LocalObjectReference" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/LocalObjectReference" }, - "initiatorName": { + "targetPortal": { "type": "string" } }, @@ -876,14 +909,14 @@ }, "IntOrString": { "properties": { - "Type": { - "type": "integer" - }, "IntVal": { "type": "integer" }, "StrVal": { "type": "string" + }, + "Type": { + "type": "integer" } }, "additionalProperties": false, @@ -891,20 +924,22 @@ }, "Job": { "properties": { - "kind": { + "apiVersion": { "type": "string" }, - "apiVersion": { + "kind": { "type": "string" }, "metadata": { - "$ref": "#/$defs/ObjectMeta" + "$ref": "#/definitions/ObjectMeta" }, "spec": { - "$ref": "#/$defs/JobSpec" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/JobSpec" }, "status": { - "$ref": "#/$defs/JobStatus" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/JobStatus" } }, "additionalProperties": false, @@ -912,22 +947,30 @@ }, "JobCondition": { "properties": { - "type": { - "type": "string" - }, - "status": { - "type": "string" - }, "lastProbeTime": { - "$ref": "#/$defs/Time" + "type": [ + "string", + "null" + ], + "format": "date-time" }, "lastTransitionTime": { - "$ref": "#/$defs/Time" + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "message": { + "type": "string" }, "reason": { "type": "string" }, - "message": { + "status": { + "type": "string" + }, + "type": { "type": "string" } }, @@ -936,53 +979,57 @@ }, "JobSpec": { "properties": { - "parallelism": { - "type": "integer" - }, - "completions": { - "type": "integer" - }, "activeDeadlineSeconds": { "type": "integer" }, - "podFailurePolicy": { - "$ref": "#/$defs/PodFailurePolicy" - }, - "successPolicy": { - "$ref": "#/$defs/SuccessPolicy" - }, "backoffLimit": { "type": "integer" }, "backoffLimitPerIndex": { "type": "integer" }, - "maxFailedIndexes": { + "completionMode": { + "type": "string" + }, + "completions": { "type": "integer" }, - "selector": { - "$ref": "#/$defs/LabelSelector" + "managedBy": { + "type": "string" }, "manualSelector": { "type": "boolean" }, - "template": { - "$ref": "#/$defs/PodTemplateSpec" + "maxFailedIndexes": { + "type": "integer" }, - "ttlSecondsAfterFinished": { + "parallelism": { "type": "integer" }, - "completionMode": { + "podFailurePolicy": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodFailurePolicy" + }, + "podReplacementPolicy": { "type": "string" }, + "selector": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/LabelSelector" + }, + "successPolicy": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SuccessPolicy" + }, "suspend": { "type": "boolean" }, - "podReplacementPolicy": { - "type": "string" + "template": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodTemplateSpec" }, - "managedBy": { - "type": "string" + "ttlSecondsAfterFinished": { + "type": "integer" } }, "additionalProperties": false, @@ -990,41 +1037,51 @@ }, "JobStatus": { "properties": { + "active": { + "type": "integer" + }, + "completedIndexes": { + "type": "string" + }, + "completionTime": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, "conditions": { "items": { - "$ref": "#/$defs/JobCondition" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/JobCondition" }, "type": "array" }, - "startTime": { - "$ref": "#/$defs/Time" + "failed": { + "type": "integer" }, - "completionTime": { - "$ref": "#/$defs/Time" + "failedIndexes": { + "type": "string" }, - "active": { + "ready": { "type": "integer" }, - "succeeded": { - "type": "integer" + "startTime": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "failed": { + "succeeded": { "type": "integer" }, "terminating": { "type": "integer" }, - "completedIndexes": { - "type": "string" - }, - "failedIndexes": { - "type": "string" - }, "uncountedTerminatedPods": { - "$ref": "#/$defs/UncountedTerminatedPods" - }, - "ready": { - "type": "integer" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/UncountedTerminatedPods" } }, "additionalProperties": false, @@ -1035,11 +1092,11 @@ "key": { "type": "string" }, - "path": { - "type": "string" - }, "mode": { "type": "integer" + }, + "path": { + "type": "string" } }, "additionalProperties": false, @@ -1047,17 +1104,20 @@ }, "LabelSelector": { "properties": { - "matchLabels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - }, "matchExpressions": { "items": { - "$ref": "#/$defs/LabelSelectorRequirement" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/LabelSelectorRequirement" }, "type": "array" + }, + "matchLabels": { + "patternProperties": { + ".*": { + "type": "string" + } + }, + "type": "object" } }, "additionalProperties": false, @@ -1084,10 +1144,11 @@ "Lifecycle": { "properties": { "postStart": { - "$ref": "#/$defs/LifecycleHandler" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/LifecycleHandler" }, "preStop": { - "$ref": "#/$defs/LifecycleHandler" + "$ref": "#/definitions/LifecycleHandler" } }, "additionalProperties": false, @@ -1096,16 +1157,17 @@ "LifecycleHandler": { "properties": { "exec": { - "$ref": "#/$defs/ExecAction" + "$ref": "#/definitions/ExecAction" }, "httpGet": { - "$ref": "#/$defs/HTTPGetAction" - }, - "tcpSocket": { - "$ref": "#/$defs/TCPSocketAction" + "$ref": "#/definitions/HTTPGetAction" }, "sleep": { - "$ref": "#/$defs/SleepAction" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SleepAction" + }, + "tcpSocket": { + "$ref": "#/definitions/TCPSocketAction" } }, "additionalProperties": false, @@ -1122,26 +1184,31 @@ }, "ManagedFieldsEntry": { "properties": { - "manager": { - "type": "string" - }, - "operation": { - "type": "string" - }, "apiVersion": { "type": "string" }, - "time": { - "$ref": "#/$defs/Time" - }, "fieldsType": { "type": "string" }, "fieldsV1": { - "$ref": "#/$defs/FieldsV1" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/FieldsV1" + }, + "manager": { + "type": "string" + }, + "operation": { + "type": "string" }, "subresource": { "type": "string" + }, + "time": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "additionalProperties": false, @@ -1149,14 +1216,14 @@ }, "NFSVolumeSource": { "properties": { - "server": { - "type": "string" - }, "path": { "type": "string" }, "readOnly": { "type": "boolean" + }, + "server": { + "type": "string" } }, "additionalProperties": false, @@ -1164,14 +1231,16 @@ }, "NodeAffinity": { "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "$ref": "#/$defs/NodeSelector" - }, "preferredDuringSchedulingIgnoredDuringExecution": { "items": { - "$ref": "#/$defs/PreferredSchedulingTerm" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PreferredSchedulingTerm" }, "type": "array" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/NodeSelector" } }, "additionalProperties": false, @@ -1181,7 +1250,8 @@ "properties": { "nodeSelectorTerms": { "items": { - "$ref": "#/$defs/NodeSelectorTerm" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/NodeSelectorTerm" }, "type": "array" } @@ -1211,13 +1281,14 @@ "properties": { "matchExpressions": { "items": { - "$ref": "#/$defs/NodeSelectorRequirement" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/NodeSelectorRequirement" }, "type": "array" }, "matchFields": { "items": { - "$ref": "#/$defs/NodeSelectorRequirement" + "$ref": "#/definitions/NodeSelectorRequirement" }, "type": "array" } @@ -1239,65 +1310,79 @@ }, "ObjectMeta": { "properties": { - "name": { - "type": "string" + "annotations": { + "patternProperties": { + ".*": { + "type": "string" + } + }, + "type": "object" }, - "generateName": { - "type": "string" + "creationTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "namespace": { - "type": "string" + "deletionGracePeriodSeconds": { + "type": "integer" }, - "selfLink": { - "type": "string" + "deletionTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "uid": { - "type": "string" + "finalizers": { + "items": { + "type": "string" + }, + "type": "array" }, - "resourceVersion": { + "generateName": { "type": "string" }, "generation": { "type": "integer" }, - "creationTimestamp": { - "$ref": "#/$defs/Time" - }, - "deletionTimestamp": { - "$ref": "#/$defs/Time" - }, - "deletionGracePeriodSeconds": { - "type": "integer" - }, "labels": { - "additionalProperties": { - "type": "string" + "patternProperties": { + ".*": { + "type": "string" + } }, "type": "object" }, - "annotations": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - }, - "ownerReferences": { + "managedFields": { "items": { - "$ref": "#/$defs/OwnerReference" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ManagedFieldsEntry" }, "type": "array" }, - "finalizers": { - "items": { - "type": "string" - }, - "type": "array" + "name": { + "type": "string" }, - "managedFields": { + "namespace": { + "type": "string" + }, + "ownerReferences": { "items": { - "$ref": "#/$defs/ManagedFieldsEntry" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/OwnerReference" }, "type": "array" + }, + "resourceVersion": { + "type": "string" + }, + "selfLink": { + "type": "string" + }, + "uid": { + "type": "string" } }, "additionalProperties": false, @@ -1308,20 +1393,20 @@ "apiVersion": { "type": "string" }, - "kind": { - "type": "string" + "blockOwnerDeletion": { + "type": "boolean" + }, + "controller": { + "type": "boolean" + }, + "kind": { + "type": "string" }, "name": { "type": "string" }, "uid": { "type": "string" - }, - "controller": { - "type": "boolean" - }, - "blockOwnerDeletion": { - "type": "boolean" } }, "additionalProperties": false, @@ -1335,28 +1420,31 @@ }, "type": "array" }, - "selector": { - "$ref": "#/$defs/LabelSelector" + "dataSource": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/TypedLocalObjectReference" + }, + "dataSourceRef": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/TypedObjectReference" }, "resources": { - "$ref": "#/$defs/VolumeResourceRequirements" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/VolumeResourceRequirements" }, - "volumeName": { - "type": "string" + "selector": { + "$ref": "#/definitions/LabelSelector" }, "storageClassName": { "type": "string" }, - "volumeMode": { + "volumeAttributesClassName": { "type": "string" }, - "dataSource": { - "$ref": "#/$defs/TypedLocalObjectReference" - }, - "dataSourceRef": { - "$ref": "#/$defs/TypedObjectReference" + "volumeMode": { + "type": "string" }, - "volumeAttributesClassName": { + "volumeName": { "type": "string" } }, @@ -1366,10 +1454,11 @@ "PersistentVolumeClaimTemplate": { "properties": { "metadata": { - "$ref": "#/$defs/ObjectMeta" + "$ref": "#/definitions/ObjectMeta" }, "spec": { - "$ref": "#/$defs/PersistentVolumeClaimSpec" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PersistentVolumeClaimSpec" } }, "additionalProperties": false, @@ -1389,10 +1478,10 @@ }, "PhotonPersistentDiskVolumeSource": { "properties": { - "pdID": { + "fsType": { "type": "string" }, - "fsType": { + "pdID": { "type": "string" } }, @@ -1401,15 +1490,17 @@ }, "PodAffinity": { "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { + "preferredDuringSchedulingIgnoredDuringExecution": { "items": { - "$ref": "#/$defs/PodAffinityTerm" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/WeightedPodAffinityTerm" }, "type": "array" }, - "preferredDuringSchedulingIgnoredDuringExecution": { + "requiredDuringSchedulingIgnoredDuringExecution": { "items": { - "$ref": "#/$defs/WeightedPodAffinityTerm" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodAffinityTerm" }, "type": "array" } @@ -1420,31 +1511,31 @@ "PodAffinityTerm": { "properties": { "labelSelector": { - "$ref": "#/$defs/LabelSelector" + "$ref": "#/definitions/LabelSelector" }, - "namespaces": { + "matchLabelKeys": { "items": { "type": "string" }, "type": "array" }, - "topologyKey": { - "type": "string" - }, - "namespaceSelector": { - "$ref": "#/$defs/LabelSelector" - }, - "matchLabelKeys": { + "mismatchLabelKeys": { "items": { "type": "string" }, "type": "array" }, - "mismatchLabelKeys": { + "namespaceSelector": { + "$ref": "#/definitions/LabelSelector" + }, + "namespaces": { "items": { "type": "string" }, "type": "array" + }, + "topologyKey": { + "type": "string" } }, "additionalProperties": false, @@ -1452,15 +1543,15 @@ }, "PodAntiAffinity": { "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { + "preferredDuringSchedulingIgnoredDuringExecution": { "items": { - "$ref": "#/$defs/PodAffinityTerm" + "$ref": "#/definitions/WeightedPodAffinityTerm" }, "type": "array" }, - "preferredDuringSchedulingIgnoredDuringExecution": { + "requiredDuringSchedulingIgnoredDuringExecution": { "items": { - "$ref": "#/$defs/WeightedPodAffinityTerm" + "$ref": "#/definitions/PodAffinityTerm" }, "type": "array" } @@ -1476,15 +1567,16 @@ }, "type": "array" }, - "searches": { + "options": { "items": { - "type": "string" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodDNSConfigOption" }, "type": "array" }, - "options": { + "searches": { "items": { - "$ref": "#/$defs/PodDNSConfigOption" + "type": "string" }, "type": "array" } @@ -1508,7 +1600,8 @@ "properties": { "rules": { "items": { - "$ref": "#/$defs/PodFailurePolicyRule" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodFailurePolicyRule" }, "type": "array" } @@ -1536,10 +1629,10 @@ }, "PodFailurePolicyOnPodConditionsPattern": { "properties": { - "type": { + "status": { "type": "string" }, - "status": { + "type": { "type": "string" } }, @@ -1552,11 +1645,13 @@ "type": "string" }, "onExitCodes": { - "$ref": "#/$defs/PodFailurePolicyOnExitCodesRequirement" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodFailurePolicyOnExitCodesRequirement" }, "onPodConditions": { "items": { - "$ref": "#/$defs/PodFailurePolicyOnPodConditionsPattern" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodFailurePolicyOnPodConditionsPattern" }, "type": "array" } @@ -1588,7 +1683,8 @@ "type": "string" }, "source": { - "$ref": "#/$defs/ClaimSource" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ClaimSource" } }, "additionalProperties": false, @@ -1605,44 +1701,45 @@ }, "PodSecurityContext": { "properties": { - "seLinuxOptions": { - "$ref": "#/$defs/SELinuxOptions" - }, - "windowsOptions": { - "$ref": "#/$defs/WindowsSecurityContextOptions" + "appArmorProfile": { + "$ref": "#/definitions/AppArmorProfile" }, - "runAsUser": { + "fsGroup": { "type": "integer" }, + "fsGroupChangePolicy": { + "type": "string" + }, "runAsGroup": { "type": "integer" }, "runAsNonRoot": { "type": "boolean" }, + "runAsUser": { + "type": "integer" + }, + "seLinuxOptions": { + "$ref": "#/definitions/SELinuxOptions" + }, + "seccompProfile": { + "$ref": "#/definitions/SeccompProfile" + }, "supplementalGroups": { "items": { "type": "integer" }, "type": "array" }, - "fsGroup": { - "type": "integer" - }, "sysctls": { "items": { - "$ref": "#/$defs/Sysctl" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Sysctl" }, "type": "array" }, - "fsGroupChangePolicy": { - "type": "string" - }, - "seccompProfile": { - "$ref": "#/$defs/SeccompProfile" - }, - "appArmorProfile": { - "$ref": "#/$defs/AppArmorProfile" + "windowsOptions": { + "$ref": "#/definitions/WindowsSecurityContextOptions" } }, "additionalProperties": false, @@ -1650,156 +1747,176 @@ }, "PodSpec": { "properties": { - "volumes": { - "items": { - "$ref": "#/$defs/Volume" - }, - "type": "array" + "activeDeadlineSeconds": { + "type": "integer" }, - "initContainers": { - "items": { - "$ref": "#/$defs/Container" - }, - "type": "array" + "affinity": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Affinity" }, - "containers": { - "items": { - "$ref": "#/$defs/Container" - }, - "type": "array" + "automountServiceAccountToken": { + "type": "boolean" }, - "ephemeralContainers": { + "containers": { "items": { - "$ref": "#/$defs/EphemeralContainer" + "$ref": "#/definitions/Container" }, "type": "array" }, - "restartPolicy": { - "type": "string" - }, - "terminationGracePeriodSeconds": { - "type": "integer" - }, - "activeDeadlineSeconds": { - "type": "integer" + "dnsConfig": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodDNSConfig" }, "dnsPolicy": { "type": "string" }, - "nodeSelector": { - "additionalProperties": { - "type": "string" - }, - "type": "object" + "enableServiceLinks": { + "type": "boolean" }, - "serviceAccountName": { - "type": "string" + "ephemeralContainers": { + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/EphemeralContainer" + }, + "type": "array" }, - "serviceAccount": { - "type": "string" + "hostAliases": { + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/HostAlias" + }, + "type": "array" }, - "automountServiceAccountToken": { + "hostIPC": { "type": "boolean" }, - "nodeName": { - "type": "string" - }, "hostNetwork": { "type": "boolean" }, "hostPID": { "type": "boolean" }, - "hostIPC": { - "type": "boolean" - }, - "shareProcessNamespace": { + "hostUsers": { "type": "boolean" }, - "securityContext": { - "$ref": "#/$defs/PodSecurityContext" + "hostname": { + "type": "string" }, "imagePullSecrets": { "items": { - "$ref": "#/$defs/LocalObjectReference" + "$ref": "#/definitions/LocalObjectReference" }, "type": "array" }, - "hostname": { + "initContainers": { + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Container" + }, + "type": "array" + }, + "nodeName": { "type": "string" }, - "subdomain": { + "nodeSelector": { + "patternProperties": { + ".*": { + "type": "string" + } + }, + "type": "object" + }, + "os": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodOS" + }, + "overhead": { + "patternProperties": { + ".*": { + "$ref": "#/definitions/Quantity" + } + }, + "type": "object" + }, + "preemptionPolicy": { "type": "string" }, - "affinity": { - "$ref": "#/$defs/Affinity" + "priority": { + "type": "integer" }, - "schedulerName": { + "priorityClassName": { "type": "string" }, - "tolerations": { + "readinessGates": { "items": { - "$ref": "#/$defs/Toleration" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodReadinessGate" }, "type": "array" }, - "hostAliases": { + "resourceClaims": { "items": { - "$ref": "#/$defs/HostAlias" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodResourceClaim" }, "type": "array" }, - "priorityClassName": { + "restartPolicy": { "type": "string" }, - "priority": { - "type": "integer" + "runtimeClassName": { + "type": "string" }, - "dnsConfig": { - "$ref": "#/$defs/PodDNSConfig" + "schedulerName": { + "type": "string" }, - "readinessGates": { + "schedulingGates": { "items": { - "$ref": "#/$defs/PodReadinessGate" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodSchedulingGate" }, "type": "array" }, - "runtimeClassName": { + "securityContext": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodSecurityContext" + }, + "serviceAccount": { "type": "string" }, - "enableServiceLinks": { + "serviceAccountName": { + "type": "string" + }, + "setHostnameAsFQDN": { "type": "boolean" }, - "preemptionPolicy": { + "shareProcessNamespace": { + "type": "boolean" + }, + "subdomain": { "type": "string" }, - "overhead": { - "$ref": "#/$defs/ResourceList" + "terminationGracePeriodSeconds": { + "type": "integer" }, - "topologySpreadConstraints": { + "tolerations": { "items": { - "$ref": "#/$defs/TopologySpreadConstraint" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Toleration" }, "type": "array" }, - "setHostnameAsFQDN": { - "type": "boolean" - }, - "os": { - "$ref": "#/$defs/PodOS" - }, - "hostUsers": { - "type": "boolean" - }, - "schedulingGates": { + "topologySpreadConstraints": { "items": { - "$ref": "#/$defs/PodSchedulingGate" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/TopologySpreadConstraint" }, "type": "array" }, - "resourceClaims": { + "volumes": { "items": { - "$ref": "#/$defs/PodResourceClaim" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Volume" }, "type": "array" } @@ -1810,10 +1927,11 @@ "PodTemplateSpec": { "properties": { "metadata": { - "$ref": "#/$defs/ObjectMeta" + "$ref": "#/definitions/ObjectMeta" }, "spec": { - "$ref": "#/$defs/PodSpec" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PodSpec" } }, "additionalProperties": false, @@ -1821,14 +1939,14 @@ }, "PortworxVolumeSource": { "properties": { - "volumeID": { - "type": "string" - }, "fsType": { "type": "string" }, "readOnly": { "type": "boolean" + }, + "volumeID": { + "type": "string" } }, "additionalProperties": false, @@ -1836,11 +1954,11 @@ }, "PreferredSchedulingTerm": { "properties": { + "preference": { + "$ref": "#/definitions/NodeSelectorTerm" + }, "weight": { "type": "integer" - }, - "preference": { - "$ref": "#/$defs/NodeSelectorTerm" } }, "additionalProperties": false, @@ -1848,32 +1966,33 @@ }, "PreviewGitSpec": { "properties": { - "name": { + "appName": { "type": "string" }, - "url": { + "applicationURL": { "type": "string" }, - "user": { - "$ref": "#/$defs/UserSpec" + "buildStatus": { + "type": "string" }, - "title": { + "buildStatusUrl": { "type": "string" }, "description": { "type": "string" }, - "buildStatus": { + "name": { "type": "string" }, - "buildStatusUrl": { + "title": { "type": "string" }, - "appName": { + "url": { "type": "string" }, - "applicationURL": { - "type": "string" + "user": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/UserSpec" } }, "additionalProperties": false, @@ -1882,34 +2001,38 @@ "Probe": { "properties": { "exec": { - "$ref": "#/$defs/ExecAction" - }, - "httpGet": { - "$ref": "#/$defs/HTTPGetAction" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ExecAction" }, - "tcpSocket": { - "$ref": "#/$defs/TCPSocketAction" + "failureThreshold": { + "type": "integer" }, "grpc": { - "$ref": "#/$defs/GRPCAction" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/GRPCAction" + }, + "httpGet": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/HTTPGetAction" }, "initialDelaySeconds": { "type": "integer" }, - "timeoutSeconds": { - "type": "integer" - }, "periodSeconds": { "type": "integer" }, "successThreshold": { "type": "integer" }, - "failureThreshold": { - "type": "integer" + "tcpSocket": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/TCPSocketAction" }, "terminationGracePeriodSeconds": { "type": "integer" + }, + "timeoutSeconds": { + "type": "integer" } }, "additionalProperties": false, @@ -1917,37 +2040,36 @@ }, "ProjectedVolumeSource": { "properties": { + "defaultMode": { + "type": "integer" + }, "sources": { "items": { - "$ref": "#/$defs/VolumeProjection" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/VolumeProjection" }, "type": "array" - }, - "defaultMode": { - "type": "integer" } }, "additionalProperties": false, "type": "object" }, "Quantity": { - "properties": { - "Format": { - "type": "string" - } - }, "additionalProperties": false, "type": "object" }, "QuickStartLocation": { "properties": { - "gitUrl": { - "type": "string" + "excludes": { + "items": { + "type": "string" + }, + "type": "array" }, "gitKind": { "type": "string" }, - "owner": { + "gitUrl": { "type": "string" }, "includes": { @@ -1956,11 +2078,8 @@ }, "type": "array" }, - "excludes": { - "items": { - "type": "string" - }, - "type": "array" + "owner": { + "type": "string" } }, "additionalProperties": false, @@ -1968,22 +2087,22 @@ }, "QuobyteVolumeSource": { "properties": { - "registry": { - "type": "string" - }, - "volume": { + "group": { "type": "string" }, "readOnly": { "type": "boolean" }, - "user": { + "registry": { "type": "string" }, - "group": { + "tenant": { "type": "string" }, - "tenant": { + "user": { + "type": "string" + }, + "volume": { "type": "string" } }, @@ -1992,32 +2111,32 @@ }, "RBDVolumeSource": { "properties": { - "monitors": { - "items": { - "type": "string" - }, - "type": "array" + "fsType": { + "type": "string" }, "image": { "type": "string" }, - "fsType": { + "keyring": { "type": "string" }, - "pool": { - "type": "string" + "monitors": { + "items": { + "type": "string" + }, + "type": "array" }, - "user": { + "pool": { "type": "string" }, - "keyring": { - "type": "string" + "readOnly": { + "type": "boolean" }, "secretRef": { - "$ref": "#/$defs/LocalObjectReference" + "$ref": "#/definitions/LocalObjectReference" }, - "readOnly": { - "type": "boolean" + "user": { + "type": "string" } }, "additionalProperties": false, @@ -2037,22 +2156,16 @@ "containerName": { "type": "string" }, + "divisor": { + "$ref": "#/definitions/Quantity" + }, "resource": { "type": "string" - }, - "divisor": { - "$ref": "#/$defs/Quantity" } }, "additionalProperties": false, "type": "object" }, - "ResourceList": { - "additionalProperties": { - "$ref": "#/$defs/Quantity" - }, - "type": "object" - }, "ResourceReference": { "properties": { "apiVersion": { @@ -2073,17 +2186,28 @@ }, "ResourceRequirements": { "properties": { - "limits": { - "$ref": "#/$defs/ResourceList" - }, - "requests": { - "$ref": "#/$defs/ResourceList" - }, "claims": { "items": { - "$ref": "#/$defs/ResourceClaim" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ResourceClaim" }, "type": "array" + }, + "limits": { + "patternProperties": { + ".*": { + "$ref": "#/definitions/Quantity" + } + }, + "type": "object" + }, + "requests": { + "patternProperties": { + ".*": { + "$ref": "#/definitions/Quantity" + } + }, + "type": "object" } }, "additionalProperties": false, @@ -2091,7 +2215,7 @@ }, "SELinuxOptions": { "properties": { - "user": { + "level": { "type": "string" }, "role": { @@ -2100,7 +2224,7 @@ "type": { "type": "string" }, - "level": { + "user": { "type": "string" } }, @@ -2109,35 +2233,35 @@ }, "ScaleIOVolumeSource": { "properties": { + "fsType": { + "type": "string" + }, "gateway": { "type": "string" }, - "system": { + "protectionDomain": { "type": "string" }, + "readOnly": { + "type": "boolean" + }, "secretRef": { - "$ref": "#/$defs/LocalObjectReference" + "$ref": "#/definitions/LocalObjectReference" }, "sslEnabled": { "type": "boolean" }, - "protectionDomain": { + "storageMode": { "type": "string" }, "storagePool": { "type": "string" }, - "storageMode": { + "system": { "type": "string" }, "volumeName": { "type": "string" - }, - "fsType": { - "type": "string" - }, - "readOnly": { - "type": "boolean" } }, "additionalProperties": false, @@ -2145,10 +2269,10 @@ }, "SeccompProfile": { "properties": { - "type": { + "localhostProfile": { "type": "string" }, - "localhostProfile": { + "type": { "type": "string" } }, @@ -2169,10 +2293,10 @@ }, "SecretKeySelector": { "properties": { - "name": { + "key": { "type": "string" }, - "key": { + "name": { "type": "string" }, "optional": { @@ -2184,15 +2308,15 @@ }, "SecretProjection": { "properties": { - "name": { - "type": "string" - }, "items": { "items": { - "$ref": "#/$defs/KeyToPath" + "$ref": "#/definitions/KeyToPath" }, "type": "array" }, + "name": { + "type": "string" + }, "optional": { "type": "boolean" } @@ -2202,20 +2326,21 @@ }, "SecretVolumeSource": { "properties": { - "secretName": { - "type": "string" + "defaultMode": { + "type": "integer" }, "items": { "items": { - "$ref": "#/$defs/KeyToPath" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/KeyToPath" }, "type": "array" }, - "defaultMode": { - "type": "integer" - }, "optional": { "type": "boolean" + }, + "secretName": { + "type": "string" } }, "additionalProperties": false, @@ -2223,20 +2348,25 @@ }, "SecurityContext": { "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "appArmorProfile": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/AppArmorProfile" + }, "capabilities": { - "$ref": "#/$defs/Capabilities" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Capabilities" }, "privileged": { "type": "boolean" }, - "seLinuxOptions": { - "$ref": "#/$defs/SELinuxOptions" - }, - "windowsOptions": { - "$ref": "#/$defs/WindowsSecurityContextOptions" + "procMount": { + "type": "string" }, - "runAsUser": { - "type": "integer" + "readOnlyRootFilesystem": { + "type": "boolean" }, "runAsGroup": { "type": "integer" @@ -2244,20 +2374,20 @@ "runAsNonRoot": { "type": "boolean" }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "allowPrivilegeEscalation": { - "type": "boolean" + "runAsUser": { + "type": "integer" }, - "procMount": { - "type": "string" + "seLinuxOptions": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SELinuxOptions" }, "seccompProfile": { - "$ref": "#/$defs/SeccompProfile" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SeccompProfile" }, - "appArmorProfile": { - "$ref": "#/$defs/AppArmorProfile" + "windowsOptions": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/WindowsSecurityContextOptions" } }, "additionalProperties": false, @@ -2289,16 +2419,16 @@ }, "StorageLocation": { "properties": { - "classifier": { + "bucketUrl": { "type": "string" }, - "gitUrl": { + "classifier": { "type": "string" }, "gitBranch": { "type": "string" }, - "bucketUrl": { + "gitUrl": { "type": "string" } }, @@ -2307,12 +2437,6 @@ }, "StorageOSVolumeSource": { "properties": { - "volumeName": { - "type": "string" - }, - "volumeNamespace": { - "type": "string" - }, "fsType": { "type": "string" }, @@ -2320,7 +2444,13 @@ "type": "boolean" }, "secretRef": { - "$ref": "#/$defs/LocalObjectReference" + "$ref": "#/definitions/LocalObjectReference" + }, + "volumeName": { + "type": "string" + }, + "volumeNamespace": { + "type": "string" } }, "additionalProperties": false, @@ -2330,7 +2460,8 @@ "properties": { "rules": { "items": { - "$ref": "#/$defs/SuccessPolicyRule" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SuccessPolicyRule" }, "type": "array" } @@ -2340,11 +2471,11 @@ }, "SuccessPolicyRule": { "properties": { - "succeededIndexes": { - "type": "string" - }, "succeededCount": { "type": "integer" + }, + "succeededIndexes": { + "type": "string" } }, "additionalProperties": false, @@ -2364,11 +2495,11 @@ }, "TCPSocketAction": { "properties": { - "port": { - "$ref": "#/$defs/IntOrString" - }, "host": { "type": "string" + }, + "port": { + "$ref": "#/definitions/IntOrString" } }, "additionalProperties": false, @@ -2376,106 +2507,110 @@ }, "TeamSettings": { "properties": { - "branchPatterns": { - "type": "string" - }, - "forkBranchPatterns": { - "type": "string" - }, - "quickstartLocations": { - "items": { - "$ref": "#/$defs/QuickStartLocation" - }, - "type": "array" - }, - "postPreviewJobs": { + "appPrefixes": { "items": { - "$ref": "#/$defs/Job" + "type": "string" }, "type": "array" }, - "promotionEngine": { + "appsRepository": { "type": "string" }, - "gitServer": { + "bootRequirements": { "type": "string" }, - "organisation": { + "branchPatterns": { "type": "string" }, - "envOrganisation": { + "defaultScheduler": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ResourceReference" + }, + "deployKind": { "type": "string" }, - "pipelineUsername": { + "deployOptions": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/DeployOptions" + }, + "dockerRegistryOrg": { "type": "string" }, - "pipelineUserEmail": { + "envOrganisation": { "type": "string" }, - "dockerRegistryOrg": { + "forkBranchPatterns": { "type": "string" }, "gitPublic": { "type": "boolean" }, + "gitServer": { + "type": "string" + }, "kubeProvider": { "type": "string" }, - "appsRepository": { + "organisation": { "type": "string" }, - "storageLocations": { - "items": { - "$ref": "#/$defs/StorageLocation" - }, - "type": "array" + "pipelineUserEmail": { + "type": "string" }, - "deployKind": { + "pipelineUsername": { "type": "string" }, - "appPrefixes": { + "postPreviewJobs": { "items": { - "type": "string" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Job" }, "type": "array" }, - "defaultScheduler": { - "$ref": "#/$defs/ResourceReference" + "promotionEngine": { + "type": "string" }, "prowConfig": { "type": "string" }, - "bootRequirements": { - "type": "string" + "quickstartLocations": { + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/QuickStartLocation" + }, + "type": "array" }, - "deployOptions": { - "$ref": "#/$defs/DeployOptions" + "storageLocations": { + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/StorageLocation" + }, + "type": "array" } }, "additionalProperties": false, "type": "object" }, "Time": { - "properties": {}, "additionalProperties": false, "type": "object" }, "Toleration": { "properties": { - "key": { - "type": "string" - }, - "operator": { + "effect": { "type": "string" }, - "value": { + "key": { "type": "string" }, - "effect": { + "operator": { "type": "string" }, "tolerationSeconds": { "type": "integer" + }, + "value": { + "type": "string" } }, "additionalProperties": false, @@ -2483,17 +2618,17 @@ }, "TopologySpreadConstraint": { "properties": { - "maxSkew": { - "type": "integer" - }, - "topologyKey": { - "type": "string" + "labelSelector": { + "$ref": "#/definitions/LabelSelector" }, - "whenUnsatisfiable": { - "type": "string" + "matchLabelKeys": { + "items": { + "type": "string" + }, + "type": "array" }, - "labelSelector": { - "$ref": "#/$defs/LabelSelector" + "maxSkew": { + "type": "integer" }, "minDomains": { "type": "integer" @@ -2504,11 +2639,11 @@ "nodeTaintsPolicy": { "type": "string" }, - "matchLabelKeys": { - "items": { - "type": "string" - }, - "type": "array" + "topologyKey": { + "type": "string" + }, + "whenUnsatisfiable": { + "type": "string" } }, "additionalProperties": false, @@ -2549,13 +2684,13 @@ }, "UncountedTerminatedPods": { "properties": { - "succeeded": { + "failed": { "items": { "type": "string" }, "type": "array" }, - "failed": { + "succeeded": { "items": { "type": "string" }, @@ -2567,16 +2702,16 @@ }, "UserSpec": { "properties": { - "username": { + "imageUrl": { "type": "string" }, - "name": { + "linkUrl": { "type": "string" }, - "linkUrl": { + "name": { "type": "string" }, - "imageUrl": { + "username": { "type": "string" } }, @@ -2585,95 +2720,124 @@ }, "Volume": { "properties": { - "name": { - "type": "string" - }, - "hostPath": { - "$ref": "#/$defs/HostPathVolumeSource" + "awsElasticBlockStore": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/AWSElasticBlockStoreVolumeSource" }, - "emptyDir": { - "$ref": "#/$defs/EmptyDirVolumeSource" + "azureDisk": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/AzureDiskVolumeSource" }, - "gcePersistentDisk": { - "$ref": "#/$defs/GCEPersistentDiskVolumeSource" + "azureFile": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/AzureFileVolumeSource" }, - "awsElasticBlockStore": { - "$ref": "#/$defs/AWSElasticBlockStoreVolumeSource" + "cephfs": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/CephFSVolumeSource" }, - "gitRepo": { - "$ref": "#/$defs/GitRepoVolumeSource" + "cinder": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/CinderVolumeSource" }, - "secret": { - "$ref": "#/$defs/SecretVolumeSource" + "configMap": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ConfigMapVolumeSource" }, - "nfs": { - "$ref": "#/$defs/NFSVolumeSource" + "csi": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/CSIVolumeSource" }, - "iscsi": { - "$ref": "#/$defs/ISCSIVolumeSource" + "downwardAPI": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/DownwardAPIVolumeSource" }, - "glusterfs": { - "$ref": "#/$defs/GlusterfsVolumeSource" + "emptyDir": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/EmptyDirVolumeSource" }, - "persistentVolumeClaim": { - "$ref": "#/$defs/PersistentVolumeClaimVolumeSource" + "ephemeral": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/EphemeralVolumeSource" }, - "rbd": { - "$ref": "#/$defs/RBDVolumeSource" + "fc": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/FCVolumeSource" }, "flexVolume": { - "$ref": "#/$defs/FlexVolumeSource" - }, - "cinder": { - "$ref": "#/$defs/CinderVolumeSource" - }, - "cephfs": { - "$ref": "#/$defs/CephFSVolumeSource" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/FlexVolumeSource" }, "flocker": { - "$ref": "#/$defs/FlockerVolumeSource" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/FlockerVolumeSource" }, - "downwardAPI": { - "$ref": "#/$defs/DownwardAPIVolumeSource" + "gcePersistentDisk": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/GCEPersistentDiskVolumeSource" }, - "fc": { - "$ref": "#/$defs/FCVolumeSource" + "gitRepo": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/GitRepoVolumeSource" }, - "azureFile": { - "$ref": "#/$defs/AzureFileVolumeSource" + "glusterfs": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/GlusterfsVolumeSource" }, - "configMap": { - "$ref": "#/$defs/ConfigMapVolumeSource" + "hostPath": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/HostPathVolumeSource" }, - "vsphereVolume": { - "$ref": "#/$defs/VsphereVirtualDiskVolumeSource" + "iscsi": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ISCSIVolumeSource" }, - "quobyte": { - "$ref": "#/$defs/QuobyteVolumeSource" + "name": { + "type": "string" }, - "azureDisk": { - "$ref": "#/$defs/AzureDiskVolumeSource" + "nfs": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/NFSVolumeSource" + }, + "persistentVolumeClaim": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PersistentVolumeClaimVolumeSource" }, "photonPersistentDisk": { - "$ref": "#/$defs/PhotonPersistentDiskVolumeSource" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PhotonPersistentDiskVolumeSource" + }, + "portworxVolume": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PortworxVolumeSource" }, "projected": { - "$ref": "#/$defs/ProjectedVolumeSource" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ProjectedVolumeSource" }, - "portworxVolume": { - "$ref": "#/$defs/PortworxVolumeSource" + "quobyte": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/QuobyteVolumeSource" + }, + "rbd": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/RBDVolumeSource" }, "scaleIO": { - "$ref": "#/$defs/ScaleIOVolumeSource" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ScaleIOVolumeSource" }, - "storageos": { - "$ref": "#/$defs/StorageOSVolumeSource" + "secret": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SecretVolumeSource" }, - "csi": { - "$ref": "#/$defs/CSIVolumeSource" + "storageos": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/StorageOSVolumeSource" }, - "ephemeral": { - "$ref": "#/$defs/EphemeralVolumeSource" + "vsphereVolume": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/VsphereVirtualDiskVolumeSource" } }, "additionalProperties": false, @@ -2681,10 +2845,10 @@ }, "VolumeDevice": { "properties": { - "name": { + "devicePath": { "type": "string" }, - "devicePath": { + "name": { "type": "string" } }, @@ -2693,6 +2857,12 @@ }, "VolumeMount": { "properties": { + "mountPath": { + "type": "string" + }, + "mountPropagation": { + "type": "string" + }, "name": { "type": "string" }, @@ -2702,15 +2872,9 @@ "recursiveReadOnly": { "type": "string" }, - "mountPath": { - "type": "string" - }, "subPath": { "type": "string" }, - "mountPropagation": { - "type": "string" - }, "subPathExpr": { "type": "string" } @@ -2720,20 +2884,25 @@ }, "VolumeProjection": { "properties": { - "secret": { - "$ref": "#/$defs/SecretProjection" + "clusterTrustBundle": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ClusterTrustBundleProjection" + }, + "configMap": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ConfigMapProjection" }, "downwardAPI": { - "$ref": "#/$defs/DownwardAPIProjection" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/DownwardAPIProjection" }, - "configMap": { - "$ref": "#/$defs/ConfigMapProjection" + "secret": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SecretProjection" }, "serviceAccountToken": { - "$ref": "#/$defs/ServiceAccountTokenProjection" - }, - "clusterTrustBundle": { - "$ref": "#/$defs/ClusterTrustBundleProjection" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ServiceAccountTokenProjection" } }, "additionalProperties": false, @@ -2742,10 +2911,20 @@ "VolumeResourceRequirements": { "properties": { "limits": { - "$ref": "#/$defs/ResourceList" + "patternProperties": { + ".*": { + "$ref": "#/definitions/Quantity" + } + }, + "type": "object" }, "requests": { - "$ref": "#/$defs/ResourceList" + "patternProperties": { + ".*": { + "$ref": "#/definitions/Quantity" + } + }, + "type": "object" } }, "additionalProperties": false, @@ -2753,16 +2932,16 @@ }, "VsphereVirtualDiskVolumeSource": { "properties": { - "volumePath": { + "fsType": { "type": "string" }, - "fsType": { + "storagePolicyID": { "type": "string" }, "storagePolicyName": { "type": "string" }, - "storagePolicyID": { + "volumePath": { "type": "string" } }, @@ -2771,11 +2950,11 @@ }, "WeightedPodAffinityTerm": { "properties": { + "podAffinityTerm": { + "$ref": "#/definitions/PodAffinityTerm" + }, "weight": { "type": "integer" - }, - "podAffinityTerm": { - "$ref": "#/$defs/PodAffinityTerm" } }, "additionalProperties": false, @@ -2783,17 +2962,17 @@ }, "WindowsSecurityContextOptions": { "properties": { - "gmsaCredentialSpecName": { - "type": "string" - }, "gmsaCredentialSpec": { "type": "string" }, - "runAsUserName": { + "gmsaCredentialSpecName": { "type": "string" }, "hostProcess": { "type": "boolean" + }, + "runAsUserName": { + "type": "string" } }, "additionalProperties": false, diff --git a/schema/jenkins.io/v1/pipeline-activity.json b/schema/jenkins.io/v1/pipeline-activity.json index 0366b58..ca64e5e 100755 --- a/schema/jenkins.io/v1/pipeline-activity.json +++ b/schema/jenkins.io/v1/pipeline-activity.json @@ -1,8 +1,7 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/jenkins-x/jx-api/v4/pkg/apis/jenkins.io/v1/pipeline-activity", - "$ref": "#/$defs/PipelineActivity", - "$defs": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PipelineActivity", + "definitions": { "Attachment": { "properties": { "name": { @@ -20,15 +19,16 @@ }, "BatchPipelineActivity": { "properties": { - "batchBuildNumber": { + "batchBranchName": { "type": "string" }, - "batchBranchName": { + "batchBuildNumber": { "type": "string" }, "pullRequestInfo": { "items": { - "$ref": "#/$defs/PullRequestInfo" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PullRequestInfo" }, "type": "array" } @@ -38,39 +38,46 @@ }, "CoreActivityStep": { "properties": { - "name": { - "type": "string" + "completedTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, "description": { "type": "string" }, - "status": { + "message": { "type": "string" }, - "message": { + "name": { "type": "string" }, "startedTimestamp": { - "$ref": "#/$defs/Time" + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "completedTimestamp": { - "$ref": "#/$defs/Time" + "status": { + "type": "string" } }, "additionalProperties": false, "type": "object" }, "FieldsV1": { - "properties": {}, "additionalProperties": false, "type": "object" }, "GitStatus": { "properties": { - "url": { + "status": { "type": "string" }, - "status": { + "url": { "type": "string" } }, @@ -79,26 +86,31 @@ }, "ManagedFieldsEntry": { "properties": { - "manager": { - "type": "string" - }, - "operation": { - "type": "string" - }, "apiVersion": { "type": "string" }, - "time": { - "$ref": "#/$defs/Time" - }, "fieldsType": { "type": "string" }, "fieldsV1": { - "$ref": "#/$defs/FieldsV1" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/FieldsV1" + }, + "manager": { + "type": "string" + }, + "operation": { + "type": "string" }, "subresource": { "type": "string" + }, + "time": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "additionalProperties": false, @@ -106,65 +118,79 @@ }, "ObjectMeta": { "properties": { - "name": { - "type": "string" + "annotations": { + "patternProperties": { + ".*": { + "type": "string" + } + }, + "type": "object" }, - "generateName": { - "type": "string" + "creationTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "namespace": { - "type": "string" + "deletionGracePeriodSeconds": { + "type": "integer" }, - "selfLink": { - "type": "string" + "deletionTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "uid": { - "type": "string" + "finalizers": { + "items": { + "type": "string" + }, + "type": "array" }, - "resourceVersion": { + "generateName": { "type": "string" }, "generation": { "type": "integer" }, - "creationTimestamp": { - "$ref": "#/$defs/Time" - }, - "deletionTimestamp": { - "$ref": "#/$defs/Time" - }, - "deletionGracePeriodSeconds": { - "type": "integer" - }, "labels": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - }, - "annotations": { - "additionalProperties": { - "type": "string" + "patternProperties": { + ".*": { + "type": "string" + } }, "type": "object" }, - "ownerReferences": { + "managedFields": { "items": { - "$ref": "#/$defs/OwnerReference" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ManagedFieldsEntry" }, "type": "array" }, - "finalizers": { - "items": { - "type": "string" - }, - "type": "array" + "name": { + "type": "string" }, - "managedFields": { + "namespace": { + "type": "string" + }, + "ownerReferences": { "items": { - "$ref": "#/$defs/ManagedFieldsEntry" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/OwnerReference" }, "type": "array" + }, + "resourceVersion": { + "type": "string" + }, + "selfLink": { + "type": "string" + }, + "uid": { + "type": "string" } }, "additionalProperties": false, @@ -175,6 +201,12 @@ "apiVersion": { "type": "string" }, + "blockOwnerDeletion": { + "type": "boolean" + }, + "controller": { + "type": "boolean" + }, "kind": { "type": "string" }, @@ -183,12 +215,6 @@ }, "uid": { "type": "string" - }, - "controller": { - "type": "boolean" - }, - "blockOwnerDeletion": { - "type": "boolean" } }, "additionalProperties": false, @@ -196,20 +222,23 @@ }, "PipelineActivity": { "properties": { - "kind": { + "apiVersion": { "type": "string" }, - "apiVersion": { + "kind": { "type": "string" }, "metadata": { - "$ref": "#/$defs/ObjectMeta" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ObjectMeta" }, "spec": { - "$ref": "#/$defs/PipelineActivitySpec" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PipelineActivitySpec" }, "status": { - "$ref": "#/$defs/PipelineActivityStatus" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PipelineActivityStatus" } }, "additionalProperties": false, @@ -217,88 +246,99 @@ }, "PipelineActivitySpec": { "properties": { - "pipeline": { - "type": "string" + "attachments": { + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Attachment" + }, + "type": "array" }, - "build": { + "author": { "type": "string" }, - "version": { + "authorAvatarURL": { "type": "string" }, - "status": { + "authorURL": { "type": "string" }, - "message": { + "baseSHA": { "type": "string" }, - "startedTimestamp": { - "$ref": "#/$defs/Time" + "batchPipelineActivity": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/BatchPipelineActivity" }, - "completedTimestamp": { - "$ref": "#/$defs/Time" + "build": { + "type": "string" }, - "steps": { - "items": { - "$ref": "#/$defs/PipelineActivityStep" - }, - "type": "array" + "buildLogsUrl": { + "type": "string" }, "buildUrl": { "type": "string" }, - "buildLogsUrl": { - "type": "string" + "completedTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "gitUrl": { + "context": { "type": "string" }, - "gitRepository": { + "gitBranch": { "type": "string" }, "gitOwner": { "type": "string" }, - "gitBranch": { + "gitRepository": { "type": "string" }, - "author": { + "gitUrl": { "type": "string" }, - "authorAvatarURL": { + "lastCommitMessage": { "type": "string" }, - "authorURL": { + "lastCommitSHA": { "type": "string" }, - "pullTitle": { + "lastCommitURL": { "type": "string" }, - "releaseNotesURL": { + "message": { "type": "string" }, - "lastCommitSHA": { + "pipeline": { "type": "string" }, - "lastCommitMessage": { + "pullTitle": { "type": "string" }, - "lastCommitURL": { + "releaseNotesURL": { "type": "string" }, - "attachments": { + "startedTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "status": { + "type": "string" + }, + "steps": { "items": { - "$ref": "#/$defs/Attachment" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PipelineActivityStep" }, "type": "array" }, - "batchPipelineActivity": { - "$ref": "#/$defs/BatchPipelineActivity" - }, - "context": { - "type": "string" - }, - "baseSHA": { + "version": { "type": "string" } }, @@ -319,14 +359,17 @@ "kind": { "type": "string" }, - "stage": { - "$ref": "#/$defs/StageActivityStep" + "preview": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PreviewActivityStep" }, "promote": { - "$ref": "#/$defs/PromoteActivityStep" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PromoteActivityStep" }, - "preview": { - "$ref": "#/$defs/PreviewActivityStep" + "stage": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/StageActivityStep" } }, "additionalProperties": false, @@ -334,31 +377,39 @@ }, "PreviewActivityStep": { "properties": { - "name": { + "applicationURL": { "type": "string" }, + "completedTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, "description": { "type": "string" }, - "status": { + "environment": { "type": "string" }, "message": { "type": "string" }, - "startedTimestamp": { - "$ref": "#/$defs/Time" - }, - "completedTimestamp": { - "$ref": "#/$defs/Time" - }, - "environment": { + "name": { "type": "string" }, "pullRequestURL": { "type": "string" }, - "applicationURL": { + "startedTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "status": { "type": "string" } }, @@ -367,35 +418,45 @@ }, "PromoteActivityStep": { "properties": { - "name": { + "applicationURL": { "type": "string" }, + "completedTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, "description": { "type": "string" }, - "status": { + "environment": { "type": "string" }, "message": { "type": "string" }, - "startedTimestamp": { - "$ref": "#/$defs/Time" - }, - "completedTimestamp": { - "$ref": "#/$defs/Time" - }, - "environment": { + "name": { "type": "string" }, "pullRequest": { - "$ref": "#/$defs/PromotePullRequestStep" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PromotePullRequestStep" }, - "update": { - "$ref": "#/$defs/PromoteUpdateStep" + "startedTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "applicationURL": { + "status": { "type": "string" + }, + "update": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/PromoteUpdateStep" } }, "additionalProperties": false, @@ -403,28 +464,36 @@ }, "PromotePullRequestStep": { "properties": { - "name": { - "type": "string" + "completedTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, "description": { "type": "string" }, - "status": { + "mergeCommitSHA": { "type": "string" }, "message": { "type": "string" }, - "startedTimestamp": { - "$ref": "#/$defs/Time" - }, - "completedTimestamp": { - "$ref": "#/$defs/Time" + "name": { + "type": "string" }, "pullRequestURL": { "type": "string" }, - "mergeCommitSHA": { + "startedTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "status": { "type": "string" } }, @@ -433,27 +502,36 @@ }, "PromoteUpdateStep": { "properties": { - "name": { - "type": "string" + "completedTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, "description": { "type": "string" }, - "status": { + "message": { "type": "string" }, - "message": { + "name": { "type": "string" }, "startedTimestamp": { - "$ref": "#/$defs/Time" + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "completedTimestamp": { - "$ref": "#/$defs/Time" + "status": { + "type": "string" }, "statuses": { "items": { - "$ref": "#/$defs/GitStatus" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/GitStatus" }, "type": "array" } @@ -463,14 +541,14 @@ }, "PullRequestInfo": { "properties": { - "pullRequestNumber": { - "type": "string" - }, "lastBuildNumberForCommit": { "type": "string" }, "lastBuildSHA": { "type": "string" + }, + "pullRequestNumber": { + "type": "string" } }, "additionalProperties": false, @@ -478,27 +556,36 @@ }, "StageActivityStep": { "properties": { - "name": { - "type": "string" + "completedTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, "description": { "type": "string" }, - "status": { + "message": { "type": "string" }, - "message": { + "name": { "type": "string" }, "startedTimestamp": { - "$ref": "#/$defs/Time" + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "completedTimestamp": { - "$ref": "#/$defs/Time" + "status": { + "type": "string" }, "steps": { "items": { - "$ref": "#/$defs/CoreActivityStep" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/CoreActivityStep" }, "type": "array" } @@ -507,7 +594,6 @@ "type": "object" }, "Time": { - "properties": {}, "additionalProperties": false, "type": "object" } diff --git a/schema/jenkins.io/v1/release.json b/schema/jenkins.io/v1/release.json index eaaffdf..5d9b47a 100755 --- a/schema/jenkins.io/v1/release.json +++ b/schema/jenkins.io/v1/release.json @@ -1,14 +1,13 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/jenkins-x/jx-api/v4/pkg/apis/jenkins.io/v1/release", - "$ref": "#/$defs/Release", - "$defs": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/Release", + "definitions": { "AccountReference": { "properties": { - "provider": { + "id": { "type": "string" }, - "id": { + "provider": { "type": "string" } }, @@ -17,29 +16,30 @@ }, "CommitSummary": { "properties": { - "message": { - "type": "string" - }, - "sha": { - "type": "string" - }, - "url": { - "type": "string" - }, "author": { - "$ref": "#/$defs/UserDetails" - }, - "committer": { - "$ref": "#/$defs/UserDetails" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/UserDetails" }, "branch": { "type": "string" }, + "committer": { + "$ref": "#/definitions/UserDetails" + }, "issueIds": { "items": { "type": "string" }, "type": "array" + }, + "message": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" } }, "additionalProperties": false, @@ -47,31 +47,35 @@ }, "DependencyUpdate": { "properties": { - "host": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "repo": { + "component": { "type": "string" }, - "component": { + "fromReleaseHTMLURL": { "type": "string" }, - "url": { + "fromReleaseName": { "type": "string" }, "fromVersion": { "type": "string" }, - "fromReleaseHTMLURL": { + "host": { "type": "string" }, - "fromReleaseName": { + "owner": { "type": "string" }, - "toVersion": { + "paths": { + "items": { + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/DependencyUpdateDetails" + }, + "type": "array" + }, + "type": "array" + }, + "repo": { "type": "string" }, "toReleaseHTMLURL": { @@ -80,11 +84,11 @@ "toReleaseName": { "type": "string" }, - "paths": { - "items": { - "$ref": "#/$defs/DependencyUpdatePath" - }, - "type": "array" + "toVersion": { + "type": "string" + }, + "url": { + "type": "string" } }, "additionalProperties": false, @@ -92,63 +96,56 @@ }, "DependencyUpdateDetails": { "properties": { - "host": { + "component": { "type": "string" }, - "owner": { + "fromReleaseHTMLURL": { "type": "string" }, - "repo": { + "fromReleaseName": { "type": "string" }, - "component": { + "fromVersion": { "type": "string" }, - "url": { + "host": { "type": "string" }, - "fromVersion": { + "owner": { "type": "string" }, - "fromReleaseHTMLURL": { + "repo": { "type": "string" }, - "fromReleaseName": { + "toReleaseHTMLURL": { "type": "string" }, - "toVersion": { + "toReleaseName": { "type": "string" }, - "toReleaseHTMLURL": { + "toVersion": { "type": "string" }, - "toReleaseName": { + "url": { "type": "string" } }, "additionalProperties": false, "type": "object" }, - "DependencyUpdatePath": { - "items": { - "$ref": "#/$defs/DependencyUpdateDetails" - }, - "type": "array" - }, "FieldsV1": { - "properties": {}, "additionalProperties": false, "type": "object" }, "IssueLabel": { "properties": { - "name": { + "color": { "type": "string" }, - "url": { + "name": { "type": "string" }, - "color": { + "url": { "type": "string" } }, @@ -157,44 +154,49 @@ }, "IssueSummary": { "properties": { - "id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "title": { - "type": "string" - }, - "body": { - "type": "string" - }, - "state": { - "type": "string" - }, - "message": { - "type": "string" - }, - "user": { - "$ref": "#/$defs/UserDetails" - }, "assignees": { "items": { - "$ref": "#/$defs/UserDetails" + "$ref": "#/definitions/UserDetails" }, "type": "array" }, + "body": { + "type": "string" + }, "closedBy": { - "$ref": "#/$defs/UserDetails" + "$ref": "#/definitions/UserDetails" }, "creationTimestamp": { - "$ref": "#/$defs/Time" + "type": [ + "string", + "null" + ], + "format": "date-time" + }, + "id": { + "type": "string" }, "labels": { "items": { - "$ref": "#/$defs/IssueLabel" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/IssueLabel" }, "type": "array" + }, + "message": { + "type": "string" + }, + "state": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/UserDetails" } }, "additionalProperties": false, @@ -202,26 +204,31 @@ }, "ManagedFieldsEntry": { "properties": { - "manager": { - "type": "string" - }, - "operation": { - "type": "string" - }, "apiVersion": { "type": "string" }, - "time": { - "$ref": "#/$defs/Time" - }, "fieldsType": { "type": "string" }, "fieldsV1": { - "$ref": "#/$defs/FieldsV1" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/FieldsV1" + }, + "manager": { + "type": "string" + }, + "operation": { + "type": "string" }, "subresource": { "type": "string" + }, + "time": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "additionalProperties": false, @@ -229,65 +236,79 @@ }, "ObjectMeta": { "properties": { - "name": { - "type": "string" + "annotations": { + "patternProperties": { + ".*": { + "type": "string" + } + }, + "type": "object" }, - "generateName": { - "type": "string" + "creationTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "namespace": { - "type": "string" + "deletionGracePeriodSeconds": { + "type": "integer" }, - "selfLink": { - "type": "string" + "deletionTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "uid": { - "type": "string" + "finalizers": { + "items": { + "type": "string" + }, + "type": "array" }, - "resourceVersion": { + "generateName": { "type": "string" }, "generation": { "type": "integer" }, - "creationTimestamp": { - "$ref": "#/$defs/Time" - }, - "deletionTimestamp": { - "$ref": "#/$defs/Time" - }, - "deletionGracePeriodSeconds": { - "type": "integer" - }, "labels": { - "additionalProperties": { - "type": "string" + "patternProperties": { + ".*": { + "type": "string" + } }, "type": "object" }, - "annotations": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - }, - "ownerReferences": { + "managedFields": { "items": { - "$ref": "#/$defs/OwnerReference" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ManagedFieldsEntry" }, "type": "array" }, - "finalizers": { - "items": { - "type": "string" - }, - "type": "array" + "name": { + "type": "string" }, - "managedFields": { + "namespace": { + "type": "string" + }, + "ownerReferences": { "items": { - "$ref": "#/$defs/ManagedFieldsEntry" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/OwnerReference" }, "type": "array" + }, + "resourceVersion": { + "type": "string" + }, + "selfLink": { + "type": "string" + }, + "uid": { + "type": "string" } }, "additionalProperties": false, @@ -298,6 +319,12 @@ "apiVersion": { "type": "string" }, + "blockOwnerDeletion": { + "type": "boolean" + }, + "controller": { + "type": "boolean" + }, "kind": { "type": "string" }, @@ -306,12 +333,6 @@ }, "uid": { "type": "string" - }, - "controller": { - "type": "boolean" - }, - "blockOwnerDeletion": { - "type": "boolean" } }, "additionalProperties": false, @@ -319,20 +340,23 @@ }, "Release": { "properties": { - "kind": { + "apiVersion": { "type": "string" }, - "apiVersion": { + "kind": { "type": "string" }, "metadata": { - "$ref": "#/$defs/ObjectMeta" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ObjectMeta" }, "spec": { - "$ref": "#/$defs/ReleaseSpec" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ReleaseSpec" }, "status": { - "$ref": "#/$defs/ReleaseStatus" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ReleaseStatus" } }, "additionalProperties": false, @@ -340,49 +364,52 @@ }, "ReleaseSpec": { "properties": { - "name": { - "type": "string" + "commits": { + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/CommitSummary" + }, + "type": "array" }, - "version": { + "dependencyUpdates": { + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/DependencyUpdate" + }, + "type": "array" + }, + "gitCloneUrl": { "type": "string" }, "gitHttpUrl": { "type": "string" }, - "gitCloneUrl": { + "gitOwner": { "type": "string" }, - "commits": { - "items": { - "$ref": "#/$defs/CommitSummary" - }, - "type": "array" + "gitRepository": { + "type": "string" }, "issues": { "items": { - "$ref": "#/$defs/IssueSummary" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/IssueSummary" }, "type": "array" }, - "pullRequests": { - "items": { - "$ref": "#/$defs/IssueSummary" - }, - "type": "array" + "name": { + "type": "string" }, - "dependencyUpdates": { + "pullRequests": { "items": { - "$ref": "#/$defs/DependencyUpdate" + "$ref": "#/definitions/IssueSummary" }, "type": "array" }, "releaseNotesURL": { "type": "string" }, - "gitRepository": { - "type": "string" - }, - "gitOwner": { + "version": { "type": "string" } }, @@ -399,41 +426,45 @@ "type": "object" }, "Time": { - "properties": {}, "additionalProperties": false, "type": "object" }, "UserDetails": { "properties": { - "login": { - "type": "string" + "accountReference": { + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/AccountReference" + }, + "type": "array" }, - "name": { + "avatarUrl": { "type": "string" }, + "creationTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" + }, "email": { "type": "string" }, - "creationTimestamp": { - "$ref": "#/$defs/Time" + "externalUser": { + "type": "boolean" }, - "url": { + "login": { "type": "string" }, - "avatarUrl": { + "name": { "type": "string" }, "serviceAccount": { "type": "string" }, - "accountReference": { - "items": { - "$ref": "#/$defs/AccountReference" - }, - "type": "array" - }, - "externalUser": { - "type": "boolean" + "url": { + "type": "string" } }, "additionalProperties": false, diff --git a/schema/jenkins.io/v1/source-repository.json b/schema/jenkins.io/v1/source-repository.json index e1a00f9..6db7864 100755 --- a/schema/jenkins.io/v1/source-repository.json +++ b/schema/jenkins.io/v1/source-repository.json @@ -1,35 +1,38 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/jenkins-x/jx-api/v4/pkg/apis/jenkins.io/v1/source-repository", - "$ref": "#/$defs/SourceRepository", - "$defs": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SourceRepository", + "definitions": { "FieldsV1": { - "properties": {}, "additionalProperties": false, "type": "object" }, "ManagedFieldsEntry": { "properties": { - "manager": { - "type": "string" - }, - "operation": { - "type": "string" - }, "apiVersion": { "type": "string" }, - "time": { - "$ref": "#/$defs/Time" - }, "fieldsType": { "type": "string" }, "fieldsV1": { - "$ref": "#/$defs/FieldsV1" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/FieldsV1" + }, + "manager": { + "type": "string" + }, + "operation": { + "type": "string" }, "subresource": { "type": "string" + }, + "time": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "additionalProperties": false, @@ -37,65 +40,79 @@ }, "ObjectMeta": { "properties": { - "name": { - "type": "string" + "annotations": { + "patternProperties": { + ".*": { + "type": "string" + } + }, + "type": "object" }, - "generateName": { - "type": "string" + "creationTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "namespace": { - "type": "string" + "deletionGracePeriodSeconds": { + "type": "integer" }, - "selfLink": { - "type": "string" + "deletionTimestamp": { + "type": [ + "string", + "null" + ], + "format": "date-time" }, - "uid": { - "type": "string" + "finalizers": { + "items": { + "type": "string" + }, + "type": "array" }, - "resourceVersion": { + "generateName": { "type": "string" }, "generation": { "type": "integer" }, - "creationTimestamp": { - "$ref": "#/$defs/Time" - }, - "deletionTimestamp": { - "$ref": "#/$defs/Time" - }, - "deletionGracePeriodSeconds": { - "type": "integer" - }, "labels": { - "additionalProperties": { - "type": "string" + "patternProperties": { + ".*": { + "type": "string" + } }, "type": "object" }, - "annotations": { - "additionalProperties": { - "type": "string" - }, - "type": "object" - }, - "ownerReferences": { + "managedFields": { "items": { - "$ref": "#/$defs/OwnerReference" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ManagedFieldsEntry" }, "type": "array" }, - "finalizers": { - "items": { - "type": "string" - }, - "type": "array" + "name": { + "type": "string" }, - "managedFields": { + "namespace": { + "type": "string" + }, + "ownerReferences": { "items": { - "$ref": "#/$defs/ManagedFieldsEntry" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/OwnerReference" }, "type": "array" + }, + "resourceVersion": { + "type": "string" + }, + "selfLink": { + "type": "string" + }, + "uid": { + "type": "string" } }, "additionalProperties": false, @@ -106,6 +123,12 @@ "apiVersion": { "type": "string" }, + "blockOwnerDeletion": { + "type": "boolean" + }, + "controller": { + "type": "boolean" + }, "kind": { "type": "string" }, @@ -114,12 +137,6 @@ }, "uid": { "type": "string" - }, - "controller": { - "type": "boolean" - }, - "blockOwnerDeletion": { - "type": "boolean" } }, "additionalProperties": false, @@ -145,17 +162,19 @@ }, "SourceRepository": { "properties": { - "kind": { + "apiVersion": { "type": "string" }, - "apiVersion": { + "kind": { "type": "string" }, "metadata": { - "$ref": "#/$defs/ObjectMeta" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ObjectMeta" }, "spec": { - "$ref": "#/$defs/SourceRepositorySpec" + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/SourceRepositorySpec" } }, "additionalProperties": false, @@ -166,39 +185,39 @@ "description": { "type": "string" }, - "provider": { + "httpCloneURL": { "type": "string" }, "org": { "type": "string" }, - "repo": { + "provider": { "type": "string" }, - "providerName": { + "providerKind": { "type": "string" }, - "providerKind": { + "providerName": { "type": "string" }, - "url": { + "repo": { "type": "string" }, + "scheduler": { + "$schema": "http://json-schema.org/draft-04/schema#", + "$ref": "#/definitions/ResourceReference" + }, "sshCloneURL": { "type": "string" }, - "httpCloneURL": { + "url": { "type": "string" - }, - "scheduler": { - "$ref": "#/$defs/ResourceReference" } }, "additionalProperties": false, "type": "object" }, "Time": { - "properties": {}, "additionalProperties": false, "type": "object" }