From 8321826662e184cab1b277d77d4dee0c50455d56 Mon Sep 17 00:00:00 2001 From: Will Thames Date: Mon, 19 Aug 2024 11:04:55 +1000 Subject: [PATCH] Add v1.31 schemas --- .../crds/crd-alertmanagers.yaml | 6097 ++++ .../v1.31.0-local-strict/_definitions.json | 27608 ++++++++++++++++ .../v1.31.0-local-strict/affinity-v1.json | 21 + .../aggregationrule-rbac-v1.json | 20 + .../v1.31.0-local-strict/all.json | 1909 ++ .../allocationresult-resource-v1alpha3.json | 24 + .../apigroup-meta-v1.json | 73 + .../apigrouplist-meta-v1.json | 50 + .../apiresource-meta-v1.json | 106 + .../apiresourcelist-meta-v1.json | 58 + .../apiservice-apiregistration-v1.json | 48 + ...piservicecondition-apiregistration-v1.json | 45 + .../apiservicelist-apiregistration-v1.json | 53 + .../apiservicespec-apiregistration-v1.json | 63 + .../apiservicestatus-apiregistration-v1.json | 25 + .../apiversions-meta-v1.json | 65 + .../apparmorprofile-v1.json | 34 + .../attachedvolume-v1.json | 27 + ...itannotation-admissionregistration-v1.json | 27 + ...tation-admissionregistration-v1alpha1.json | 27 + ...otation-admissionregistration-v1beta1.json | 27 + .../awselasticblockstorevolumesource-v1.json | 41 + .../azurediskvolumesource-v1.json | 55 + .../azurefilepersistentvolumesource-v1.json | 41 + .../azurefilevolumesource-v1.json | 34 + .../basicdevice-resource-v1alpha3.json | 29 + .../v1.31.0-local-strict/binding-v1.json | 47 + ...oundobjectreference-authentication-v1.json | 37 + .../v1.31.0-local-strict/capabilities-v1.json | 37 + .../celdeviceselector-resource-v1alpha3.json | 19 + .../cephfspersistentvolumesource-v1.json | 58 + .../cephfsvolumesource-v1.json | 58 + ...ificatesigningrequest-certificates-v1.json | 50 + ...gningrequestcondition-certificates-v1.json | 49 + ...atesigningrequestlist-certificates-v1.json | 52 + ...atesigningrequestspec-certificates-v1.json | 98 + ...esigningrequeststatus-certificates-v1.json | 32 + .../cinderpersistentvolumesource-v1.json | 37 + .../cindervolumesource-v1.json | 37 + .../clientipconfig-v1.json | 17 + .../clusterrole-rbac-v1.json | 55 + .../clusterrolebinding-rbac-v1.json | 58 + .../clusterrolebindinglist-rbac-v1.json | 53 + .../clusterrolelist-rbac-v1.json | 53 + ...stertrustbundle-certificates-v1alpha1.json | 47 + ...trustbundlelist-certificates-v1alpha1.json | 53 + .../clustertrustbundleprojection-v1.json | 44 + ...trustbundlespec-certificates-v1alpha1.json | 26 + .../componentcondition-v1.json | 41 + .../componentstatus-v1.json | 56 + .../componentstatuslist-v1.json | 53 + .../condition-meta-v1.json | 56 + .../v1.31.0-local-strict/configmap-v1.json | 74 + .../configmapenvsource-v1.json | 23 + .../configmapkeyselector-v1.json | 34 + .../configmaplist-v1.json | 53 + .../configmapnodeconfigsource-v1.json | 49 + .../configmapprojection-v1.json | 34 + .../configmapvolumesource-v1.json | 42 + .../v1.31.0-local-strict/container-v1.json | 221 + .../containerimage-v1.json | 31 + .../containerport-v1.json | 49 + .../containerresizepolicy-v1.json | 27 + ...erresourcemetricsource-autoscaling-v2.json | 32 + ...erresourcemetricstatus-autoscaling-v2.json | 32 + .../containerstate-v1.json | 21 + .../containerstaterunning-v1.json | 13 + .../containerstateterminated-v1.json | 57 + .../containerstatewaiting-v1.json | 23 + .../containerstatus-v1.json | 124 + .../containeruser-v1.json | 13 + .../controllerrevision-apps-v1.json | 55 + .../controllerrevisionlist-apps-v1.json | 53 + .../cronjob-batch-v1.json | 48 + .../cronjoblist-batch-v1.json | 53 + .../cronjobspec-batch-v1.json | 69 + .../cronjobstatus-batch-v1.json | 28 + ...versionobjectreference-autoscaling-v1.json | 35 + ...versionobjectreference-autoscaling-v2.json | 34 + .../csidriver-storage-v1.json | 47 + .../csidriverlist-storage-v1.json | 53 + .../csidriverspec-storage-v1.json | 76 + .../csinode-storage-v1.json | 47 + .../csinodedriver-storage-v1.json | 45 + .../csinodelist-storage-v1.json | 53 + .../csinodespec-storage-v1.json | 28 + .../csipersistentvolumesource-v1.json | 74 + .../csistoragecapacity-storage-v1.json | 62 + .../csistoragecapacitylist-storage-v1.json | 53 + .../csivolumesource-v1.json | 50 + ...urcecolumndefinition-apiextensions-v1.json | 57 + ...omresourceconversion-apiextensions-v1.json | 23 + ...omresourcedefinition-apiextensions-v1.json | 51 + ...edefinitioncondition-apiextensions-v1.json | 45 + ...sourcedefinitionlist-apiextensions-v1.json | 53 + ...ourcedefinitionnames-apiextensions-v1.json | 69 + ...sourcedefinitionspec-apiextensions-v1.json | 55 + ...urcedefinitionstatus-apiextensions-v1.json | 41 + ...rcedefinitionversion-apiextensions-v1.json | 79 + ...resourcesubresources-apiextensions-v1.json | 17 + ...urcesubresourcescale-apiextensions-v1.json | 34 + ...rcesubresourcestatus-apiextensions-v1.json | 7 + ...omresourcevalidation-apiextensions-v1.json | 13 + .../daemonendpoint-v1.json | 20 + .../daemonset-apps-v1.json | 48 + .../daemonsetcondition-apps-v1.json | 45 + .../daemonsetlist-apps-v1.json | 53 + .../daemonsetspec-apps-v1.json | 41 + .../daemonsetstatus-apps-v1.json | 103 + .../daemonsetupdatestrategy-apps-v1.json | 20 + .../deleteoptions-meta-v1.json | 430 + .../deployment-apps-v1.json | 48 + .../deploymentcondition-apps-v1.json | 49 + .../deploymentlist-apps-v1.json | 53 + .../deploymentspec-apps-v1.json | 65 + .../deploymentstatus-apps-v1.json | 81 + .../deploymentstrategy-apps-v1.json | 20 + .../device-resource-v1alpha3.json | 23 + ...cationconfiguration-resource-v1alpha3.json | 37 + ...iceallocationresult-resource-v1alpha3.json | 31 + .../deviceattribute-resource-v1alpha3.json | 38 + .../deviceclaim-resource-v1alpha3.json | 42 + ...eclaimconfiguration-resource-v1alpha3.json | 27 + .../deviceclass-resource-v1alpha3.json | 47 + ...eclassconfiguration-resource-v1alpha3.json | 13 + .../deviceclasslist-resource-v1alpha3.json | 53 + .../deviceclassspec-resource-v1alpha3.json | 35 + .../deviceconstraint-resource-v1alpha3.json | 30 + .../devicerequest-resource-v1alpha3.json | 60 + ...estallocationresult-resource-v1alpha3.json | 43 + .../deviceselector-resource-v1alpha3.json | 13 + .../downwardapiprojection-v1.json | 20 + .../downwardapivolumefile-v1.json | 35 + .../downwardapivolumesource-v1.json | 28 + .../emptydirvolumesource-v1.json | 20 + .../endpoint-discovery-v1.json | 72 + .../endpointaddress-v1.json | 38 + .../endpointconditions-discovery-v1.json | 30 + .../endpointhints-discovery-v1.json | 20 + .../endpointport-discovery-v1.json | 39 + .../v1.31.0-local-strict/endpointport-v1.json | 42 + .../v1.31.0-local-strict/endpoints-v1.json | 51 + .../endpointslice-discovery-v1.json | 73 + .../endpointslicelist-discovery-v1.json | 53 + .../endpointslist-v1.json | 53 + .../endpointsubset-v1.json | 42 + .../envfromsource-v1.json | 24 + .../v1.31.0-local-strict/envvar-v1.json | 30 + .../v1.31.0-local-strict/envvarsource-v1.json | 25 + .../ephemeralcontainer-v1.json | 228 + .../ephemeralvolumesource-v1.json | 13 + .../v1.31.0-local-strict/event-events-v1.json | 121 + .../v1.31.0-local-strict/event-v1.json | 122 + .../eventlist-events-v1.json | 53 + .../v1.31.0-local-strict/eventlist-v1.json | 53 + .../eventseries-events-v1.json | 25 + .../v1.31.0-local-strict/eventseries-v1.json | 21 + .../v1.31.0-local-strict/eventsource-v1.json | 23 + .../eviction-policy-v1.json | 44 + .../v1.31.0-local-strict/execaction-v1.json | 23 + ...ritylevelconfiguration-flowcontrol-v1.json | 25 + ...evelconfiguration-flowcontrol-v1beta3.json | 25 + ...ssionwarning-admissionregistration-v1.json | 27 + ...arning-admissionregistration-v1alpha1.json | 27 + ...warning-admissionregistration-v1beta1.json | 27 + ...xternaldocumentation-apiextensions-v1.json | 21 + .../externalmetricsource-autoscaling-v2.json | 21 + .../externalmetricstatus-autoscaling-v2.json | 21 + .../fcvolumesource-v1.json | 59 + ...ldselectorattributes-authorization-v1.json | 27 + .../fieldselectorrequirement-meta-v1.json | 41 + .../fieldsv1-meta-v1.json | 7 + .../flexpersistentvolumesource-v1.json | 50 + .../flexvolumesource-v1.json | 50 + .../flockervolumesource-v1.json | 23 + ...lowdistinguishermethod-flowcontrol-v1.json | 19 + ...stinguishermethod-flowcontrol-v1beta3.json | 19 + .../flowschema-flowcontrol-v1.json | 48 + .../flowschema-flowcontrol-v1beta3.json | 48 + .../flowschemacondition-flowcontrol-v1.json | 41 + ...owschemacondition-flowcontrol-v1beta3.json | 41 + .../flowschemalist-flowcontrol-v1.json | 53 + .../flowschemalist-flowcontrol-v1beta3.json | 53 + .../flowschemaspec-flowcontrol-v1.json | 39 + .../flowschemaspec-flowcontrol-v1beta3.json | 39 + .../flowschemastatus-flowcontrol-v1.json | 25 + .../flowschemastatus-flowcontrol-v1beta3.json | 25 + .../forzone-discovery-v1.json | 19 + .../gcepersistentdiskvolumesource-v1.json | 41 + .../gitrepovolumesource-v1.json | 33 + .../glusterfspersistentvolumesource-v1.json | 41 + .../glusterfsvolumesource-v1.json | 34 + .../groupsubject-flowcontrol-v1.json | 19 + .../groupsubject-flowcontrol-v1beta3.json | 19 + .../groupversionfordiscovery-meta-v1.json | 27 + ...ionresource-storagemigration-v1alpha1.json | 30 + .../v1.31.0-local-strict/grpcaction-v1.json | 26 + ...orizontalpodautoscaler-autoscaling-v1.json | 48 + ...orizontalpodautoscaler-autoscaling-v2.json | 48 + ...lpodautoscalerbehavior-autoscaling-v2.json | 17 + ...podautoscalercondition-autoscaling-v2.json | 45 + ...ontalpodautoscalerlist-autoscaling-v1.json | 53 + ...ontalpodautoscalerlist-autoscaling-v2.json | 53 + ...ontalpodautoscalerspec-autoscaling-v1.json | 41 + ...ontalpodautoscalerspec-autoscaling-v2.json | 48 + ...talpodautoscalerstatus-autoscaling-v1.json | 49 + ...talpodautoscalerstatus-autoscaling-v2.json | 67 + .../v1.31.0-local-strict/hostalias-v1.json | 33 + .../v1.31.0-local-strict/hostip-v1.json | 19 + .../hostpathvolumesource-v1.json | 26 + .../hpascalingpolicy-autoscaling-v2.json | 37 + .../hpascalingrules-autoscaling-v2.json | 35 + .../httpgetaction-v1.json | 48 + .../v1.31.0-local-strict/httpheader-v1.json | 27 + .../httpingresspath-networking-v1.json | 31 + .../httpingressrulevalue-networking-v1.json | 23 + .../imagevolumesource-v1.json | 23 + .../info-pkg-version.json | 74 + .../ingress-networking-v1.json | 48 + .../ingressbackend-networking-v1.json | 17 + .../ingressclass-networking-v1.json | 44 + .../ingressclasslist-networking-v1.json | 53 + ...lassparametersreference-networking-v1.json | 48 + .../ingressclassspec-networking-v1.json | 20 + .../ingresslist-networking-v1.json | 53 + ...ressloadbalanceringress-networking-v1.json | 34 + ...gressloadbalancerstatus-networking-v1.json | 20 + .../ingressportstatus-networking-v1.json | 35 + .../ingressrule-networking-v1.json | 19 + .../ingressservicebackend-networking-v1.json | 23 + .../ingressspec-networking-v1.json | 42 + .../ingressstatus-networking-v1.json | 13 + .../ingresstls-networking-v1.json | 30 + .../intorstring-util-intstr.json | 14 + .../ipaddress-networking-v1beta1.json | 44 + .../ipaddresslist-networking-v1beta1.json | 53 + .../ipaddressspec-networking-v1beta1.json | 16 + .../ipblock-networking-v1.json | 33 + .../iscsipersistentvolumesource-v1.json | 96 + .../iscsivolumesource-v1.json | 96 + .../v1.31.0-local-strict/job-batch-v1.json | 48 + .../jobcondition-batch-v1.json | 49 + .../joblist-batch-v1.json | 53 + .../jobspec-batch-v1.json | 119 + .../jobstatus-batch-v1.json | 88 + .../jobtemplatespec-batch-v1.json | 17 + .../json-apiextensions-v1.json | 7 + .../jsonschemaprops-apiextensions-v1.json | 315 + ...onschemapropsorarray-apiextensions-v1.json | 7 + ...sonschemapropsorbool-apiextensions-v1.json | 7 + ...mapropsorstringarray-apiextensions-v1.json | 7 + .../v1.31.0-local-strict/keytopath-v1.json | 35 + .../labelselector-meta-v1.json | 34 + ...elselectorattributes-authorization-v1.json | 27 + .../labelselectorrequirement-meta-v1.json | 41 + .../lease-coordination-v1.json | 44 + .../leasecandidate-coordination-v1alpha1.json | 44 + ...secandidatelist-coordination-v1alpha1.json | 53 + ...secandidatespec-coordination-v1alpha1.json | 56 + .../leaselist-coordination-v1.json | 53 + .../leasespec-coordination-v1.json | 54 + .../v1.31.0-local-strict/lifecycle-v1.json | 17 + .../lifecyclehandler-v1.json | 25 + ...ritylevelconfiguration-flowcontrol-v1.json | 37 + ...evelconfiguration-flowcontrol-v1beta3.json | 37 + .../v1.31.0-local-strict/limitrange-v1.json | 44 + .../limitrangeitem-v1.json | 69 + .../limitrangelist-v1.json | 53 + .../limitrangespec-v1.json | 23 + .../limitresponse-flowcontrol-v1.json | 31 + .../limitresponse-flowcontrol-v1beta3.json | 31 + .../linuxcontaineruser-v1.json | 44 + .../listmeta-meta-v1.json | 38 + .../loadbalanceringress-v1.json | 41 + .../loadbalancerstatus-v1.json | 20 + .../localobjectreference-v1.json | 17 + ...lsubjectaccessreview-authorization-v1.json | 51 + .../localvolumesource-v1.json | 26 + .../managedfieldsentry-meta-v1.json | 52 + ...tchcondition-admissionregistration-v1.json | 27 + ...dition-admissionregistration-v1alpha1.json | 26 + ...ndition-admissionregistration-v1beta1.json | 27 + ...tchresources-admissionregistration-v1.json | 47 + ...ources-admissionregistration-v1alpha1.json | 47 + ...sources-admissionregistration-v1beta1.json | 47 + .../metricidentifier-autoscaling-v2.json | 23 + .../metricspec-autoscaling-v2.json | 39 + .../metricstatus-autoscaling-v2.json | 39 + .../metrictarget-autoscaling-v2.json | 35 + .../metricvaluestatus-autoscaling-v2.json | 25 + .../microtime-meta-v1.json | 8 + ...oncondition-storagemigration-v1alpha1.json | 45 + .../modifyvolumestatus-v1.json | 26 + ...atingwebhook-admissionregistration-v1.json | 111 + ...onfiguration-admissionregistration-v1.json | 56 + ...gurationlist-admissionregistration-v1.json | 53 + ...thoperations-admissionregistration-v1.json | 87 + ...ations-admissionregistration-v1alpha1.json | 87 + ...rations-admissionregistration-v1beta1.json | 87 + .../v1.31.0-local-strict/namespace-v1.json | 48 + .../namespacecondition-v1.json | 42 + .../namespacelist-v1.json | 53 + .../namespacespec-v1.json | 23 + .../namespacestatus-v1.json | 32 + .../networkpolicy-networking-v1.json | 44 + ...networkpolicyegressrule-networking-v1.json | 31 + ...etworkpolicyingressrule-networking-v1.json | 31 + .../networkpolicylist-networking-v1.json | 53 + .../networkpolicypeer-networking-v1.json | 21 + .../networkpolicyport-networking-v1.json | 28 + .../networkpolicyspec-networking-v1.json | 52 + .../nfsvolumesource-v1.json | 34 + .../v1.31.0-local-strict/node-v1.json | 48 + .../v1.31.0-local-strict/nodeaddress-v1.json | 27 + .../v1.31.0-local-strict/nodeaffinity-v1.json | 24 + .../nodecondition-v1.json | 49 + .../nodeconfigsource-v1.json | 13 + .../nodeconfigstatus-v1.json | 28 + .../nodedaemonendpoints-v1.json | 13 + .../v1.31.0-local-strict/nodefeatures-v1.json | 16 + .../v1.31.0-local-strict/nodelist-v1.json | 53 + .../noderuntimehandler-v1.json | 20 + .../noderuntimehandlerfeatures-v1.json | 23 + .../v1.31.0-local-strict/nodeselector-v1.json | 24 + .../nodeselectorrequirement-v1.json | 41 + .../nodeselectorterm-v1.json | 32 + .../v1.31.0-local-strict/nodespec-v1.json | 67 + .../v1.31.0-local-strict/nodestatus-v1.json | 131 + .../nodesysteminfo-v1.json | 91 + ...onresourceattributes-authorization-v1.json | 23 + .../nonresourcepolicyrule-flowcontrol-v1.json | 41 + ...esourcepolicyrule-flowcontrol-v1beta3.json | 41 + .../nonresourcerule-authorization-v1.json | 40 + .../objectfieldselector-v1.json | 27 + .../objectmeta-meta-v1.json | 143 + .../objectmetricsource-autoscaling-v2.json | 26 + .../objectmetricstatus-autoscaling-v2.json | 26 + .../objectreference-v1.json | 59 + ...deviceconfiguration-resource-v1alpha3.json | 24 + .../overhead-node-v1.json | 19 + .../ownerreference-meta-v1.json | 58 + .../paramkind-admissionregistration-v1.json | 24 + ...amkind-admissionregistration-v1alpha1.json | 24 + ...ramkind-admissionregistration-v1beta1.json | 24 + .../paramref-admissionregistration-v1.json | 35 + ...ramref-admissionregistration-v1alpha1.json | 35 + ...aramref-admissionregistration-v1beta1.json | 35 + .../parentreference-networking-v1beta1.json | 41 + .../v1.31.0-local-strict/patch-meta-v1.json | 7 + .../persistentvolume-v1.json | 48 + .../persistentvolumeclaim-v1.json | 48 + .../persistentvolumeclaimcondition-v1.json | 47 + .../persistentvolumeclaimlist-v1.json | 53 + .../persistentvolumeclaimspec-v1.json | 67 + .../persistentvolumeclaimstatus-v1.json | 91 + .../persistentvolumeclaimtemplate-v1.json | 20 + .../persistentvolumeclaimvolumesource-v1.json | 26 + .../persistentvolumelist-v1.json | 53 + .../persistentvolumespec-v1.json | 172 + .../persistentvolumestatus-v1.json | 34 + .../photonpersistentdiskvolumesource-v1.json | 26 + .../v1.31.0-local-strict/pod-v1.json | 48 + .../v1.31.0-local-strict/podaffinity-v1.json | 31 + .../podaffinityterm-v1.json | 69 + .../podantiaffinity-v1.json | 31 + .../v1.31.0-local-strict/podcondition-v1.json | 49 + .../poddisruptionbudget-policy-v1.json | 48 + .../poddisruptionbudgetlist-policy-v1.json | 53 + .../poddisruptionbudgetspec-policy-v1.json | 29 + .../poddisruptionbudgetstatus-policy-v1.json | 81 + .../v1.31.0-local-strict/poddnsconfig-v1.json | 48 + .../poddnsconfigoption-v1.json | 22 + .../podfailurepolicy-batch-v1.json | 23 + ...policyonexitcodesrequirement-batch-v1.json | 42 + ...policyonpodconditionspattern-batch-v1.json | 27 + .../podfailurepolicyrule-batch-v1.json | 34 + .../v1.31.0-local-strict/podip-v1.json | 19 + .../v1.31.0-local-strict/podlist-v1.json | 53 + .../v1.31.0-local-strict/podos-v1.json | 19 + .../podreadinessgate-v1.json | 19 + .../podresourceclaim-v1.json | 33 + .../podresourceclaimstatus-v1.json | 26 + ...odschedulingcontext-resource-v1alpha3.json | 51 + ...hedulingcontextlist-resource-v1alpha3.json | 53 + ...hedulingcontextspec-resource-v1alpha3.json | 30 + ...dulingcontextstatus-resource-v1alpha3.json | 23 + .../podschedulinggate-v1.json | 19 + .../podsecuritycontext-v1.json | 96 + .../podsmetricsource-autoscaling-v2.json | 21 + .../podsmetricstatus-autoscaling-v2.json | 21 + .../v1.31.0-local-strict/podspec-v1.json | 376 + .../v1.31.0-local-strict/podstatus-v1.json | 163 + .../v1.31.0-local-strict/podtemplate-v1.json | 44 + .../podtemplatelist-v1.json | 53 + .../podtemplatespec-v1.json | 17 + .../policyrule-rbac-v1.json | 82 + ...olicyruleswithsubjects-flowcontrol-v1.json | 45 + ...ruleswithsubjects-flowcontrol-v1beta3.json | 45 + .../v1.31.0-local-strict/portstatus-v1.json | 34 + .../portworxvolumesource-v1.json | 33 + .../preconditions-meta-v1.json | 23 + .../preferredschedulingterm-v1.json | 25 + .../priorityclass-scheduling-v1.json | 72 + .../priorityclasslist-scheduling-v1.json | 53 + ...ritylevelconfiguration-flowcontrol-v1.json | 48 + ...evelconfiguration-flowcontrol-v1beta3.json | 48 + ...configurationcondition-flowcontrol-v1.json | 41 + ...gurationcondition-flowcontrol-v1beta3.json | 41 + ...levelconfigurationlist-flowcontrol-v1.json | 53 + ...configurationlist-flowcontrol-v1beta3.json | 53 + ...configurationreference-flowcontrol-v1.json | 19 + ...gurationreference-flowcontrol-v1beta3.json | 19 + ...levelconfigurationspec-flowcontrol-v1.json | 36 + ...configurationspec-flowcontrol-v1beta3.json | 36 + ...velconfigurationstatus-flowcontrol-v1.json | 25 + ...nfigurationstatus-flowcontrol-v1beta3.json | 25 + .../v1.31.0-local-strict/probe-v1.json | 73 + .../projectedvolumesource-v1.json | 28 + .../quantity-resource.json | 14 + .../queuingconfiguration-flowcontrol-v1.json | 33 + ...uingconfiguration-flowcontrol-v1beta3.json | 33 + .../quobytevolumesource-v1.json | 55 + .../rawextension-pkg-runtime.json | 7 + .../rbdpersistentvolumesource-v1.json | 73 + .../rbdvolumesource-v1.json | 73 + .../replicaset-apps-v1.json | 48 + .../replicasetcondition-apps-v1.json | 45 + .../replicasetlist-apps-v1.json | 53 + .../replicasetspec-apps-v1.json | 36 + .../replicasetstatus-apps-v1.json | 68 + .../replicationcontroller-v1.json | 48 + .../replicationcontrollercondition-v1.json | 45 + .../replicationcontrollerlist-v1.json | 53 + .../replicationcontrollerspec-v1.json | 43 + .../replicationcontrollerstatus-v1.json | 68 + .../resourceattributes-authorization-v1.json | 66 + .../resourceclaim-resource-v1alpha3.json | 51 + .../resourceclaim-v1.json | 26 + ...imconsumerreference-resource-v1alpha3.json | 42 + .../resourceclaimlist-resource-v1alpha3.json | 53 + ...aimschedulingstatus-resource-v1alpha3.json | 33 + .../resourceclaimspec-resource-v1alpha3.json | 20 + ...resourceclaimstatus-resource-v1alpha3.json | 36 + ...sourceclaimtemplate-resource-v1alpha3.json | 47 + ...ceclaimtemplatelist-resource-v1alpha3.json | 53 + ...ceclaimtemplatespec-resource-v1alpha3.json | 20 + .../resourcefieldselector-v1.json | 31 + .../resourcehealth-v1.json | 26 + .../resourcemetricsource-autoscaling-v2.json | 24 + .../resourcemetricstatus-autoscaling-v2.json | 24 + .../resourcepolicyrule-flowcontrol-v1.json | 77 + ...esourcepolicyrule-flowcontrol-v1beta3.json | 77 + .../resourcepool-resource-v1alpha3.json | 37 + .../resourcequota-v1.json | 48 + .../resourcequotalist-v1.json | 53 + .../resourcequotaspec-v1.json | 37 + .../resourcequotastatus-v1.json | 29 + .../resourcerequirements-v1.json | 43 + .../resourcerule-authorization-v1.json | 68 + .../resourceslice-resource-v1alpha3.json | 47 + .../resourceslicelist-resource-v1alpha3.json | 53 + .../resourceslicespec-resource-v1alpha3.json | 53 + .../resourcestatus-v1.json | 32 + .../v1.31.0-local-strict/role-rbac-v1.json | 51 + .../rolebinding-rbac-v1.json | 58 + .../rolebindinglist-rbac-v1.json | 53 + .../rolelist-rbac-v1.json | 53 + .../v1.31.0-local-strict/roleref-rbac-v1.json | 36 + .../rollingupdatedaemonset-apps-v1.json | 17 + .../rollingupdatedeployment-apps-v1.json | 17 + ...lingupdatestatefulsetstrategy-apps-v1.json | 21 + ...thoperations-admissionregistration-v1.json | 72 + .../runtimeclass-node-v1.json | 58 + .../runtimeclasslist-node-v1.json | 53 + .../scale-autoscaling-v1.json | 48 + .../scaleiopersistentvolumesource-v1.json | 81 + .../scaleiovolumesource-v1.json | 81 + .../scalespec-autoscaling-v1.json | 17 + .../scalestatus-autoscaling-v1.json | 27 + .../scheduling-node-v1.json | 34 + .../scopedresourceselectorrequirement-v1.json | 41 + .../scopeselector-v1.json | 21 + .../seccompprofile-v1.json | 34 + .../v1.31.0-local-strict/secret-v1.json | 81 + .../secretenvsource-v1.json | 23 + .../secretkeyselector-v1.json | 34 + .../v1.31.0-local-strict/secretlist-v1.json | 53 + .../secretprojection-v1.json | 34 + .../secretreference-v1.json | 24 + .../secretvolumesource-v1.json | 42 + .../securitycontext-v1.json | 80 + .../selectablefield-apiextensions-v1.json | 19 + ...fsubjectaccessreview-authorization-v1.json | 51 + ...jectaccessreviewspec-authorization-v1.json | 17 + .../selfsubjectreview-authentication-v1.json | 44 + ...subjectreview-authentication-v1alpha1.json | 44 + ...fsubjectreview-authentication-v1beta1.json | 44 + ...subjectreviewstatus-authentication-v1.json | 13 + ...treviewstatus-authentication-v1alpha1.json | 13 + ...ctreviewstatus-authentication-v1beta1.json | 13 + ...lfsubjectrulesreview-authorization-v1.json | 51 + ...bjectrulesreviewspec-authorization-v1.json | 16 + .../selinuxoptions-v1.json | 37 + .../serveraddressbyclientcidr-meta-v1.json | 27 + ...ageversion-apiserverinternal-v1alpha1.json | 51 + .../v1.31.0-local-strict/service-v1.json | 48 + .../serviceaccount-v1.json | 74 + .../serviceaccountlist-v1.json | 53 + .../serviceaccountsubject-flowcontrol-v1.json | 27 + ...iceaccountsubject-flowcontrol-v1beta3.json | 27 + .../serviceaccounttokenprojection-v1.json | 34 + .../servicebackendport-networking-v1.json | 25 + .../servicecidr-networking-v1beta1.json | 48 + .../servicecidrlist-networking-v1beta1.json | 53 + .../servicecidrspec-networking-v1beta1.json | 23 + .../servicecidrstatus-networking-v1beta1.json | 25 + .../v1.31.0-local-strict/servicelist-v1.json | 53 + .../v1.31.0-local-strict/serviceport-v1.json | 53 + ...icereference-admissionregistration-v1.json | 42 + .../servicereference-apiextensions-v1.json | 42 + .../servicereference-apiregistration-v1.json | 31 + .../v1.31.0-local-strict/servicespec-v1.json | 192 + .../servicestatus-v1.json | 29 + .../sessionaffinityconfig-v1.json | 13 + .../v1.31.0-local-strict/sleepaction-v1.json | 20 + .../statefulset-apps-v1.json | 48 + .../statefulsetcondition-apps-v1.json | 45 + .../statefulsetlist-apps-v1.json | 53 + .../statefulsetordinals-apps-v1.json | 17 + ...entvolumeclaimretentionpolicy-apps-v1.json | 23 + .../statefulsetspec-apps-v1.json | 83 + .../statefulsetstatus-apps-v1.json | 98 + .../statefulsetupdatestrategy-apps-v1.json | 20 + .../v1.31.0-local-strict/status-meta-v1.json | 74 + .../statuscause-meta-v1.json | 30 + .../statusdetails-meta-v1.json | 56 + .../storageclass-storage-v1.json | 109 + .../storageclasslist-storage-v1.json | 53 + .../storageospersistentvolumesource-v1.json | 41 + .../storageosvolumesource-v1.json | 41 + ...ageversion-apiserverinternal-v1alpha1.json | 52 + ...ncondition-apiserverinternal-v1alpha1.json | 55 + ...ersionlist-apiserverinternal-v1alpha1.json | 53 + ...onmigration-storagemigration-v1alpha1.json | 48 + ...grationlist-storagemigration-v1alpha1.json | 59 + ...grationspec-storagemigration-v1alpha1.json | 23 + ...ationstatus-storagemigration-v1alpha1.json | 32 + ...ersionspec-apiserverinternal-v1alpha1.json | 7 + ...sionstatus-apiserverinternal-v1alpha1.json | 44 + .../subject-flowcontrol-v1.json | 41 + .../subject-flowcontrol-v1beta3.json | 41 + .../v1.31.0-local-strict/subject-rbac-v1.json | 42 + .../subjectaccessreview-authorization-v1.json | 51 + ...jectaccessreviewspec-authorization-v1.json | 64 + ...ctaccessreviewstatus-authorization-v1.json | 40 + ...ectrulesreviewstatus-authorization-v1.json | 50 + .../successpolicy-batch-v1.json | 23 + .../successpolicyrule-batch-v1.json | 24 + .../v1.31.0-local-strict/sysctl-v1.json | 27 + .../v1.31.0-local-strict/taint-v1.json | 38 + .../tcpsocketaction-v1.json | 23 + .../v1.31.0-local-strict/time-meta-v1.json | 8 + .../tokenrequest-authentication-v1.json | 51 + .../tokenrequest-storage-v1.json | 27 + .../tokenrequestspec-authentication-v1.json | 38 + .../tokenrequeststatus-authentication-v1.json | 24 + .../tokenreview-authentication-v1.json | 51 + .../tokenreviewspec-authentication-v1.json | 30 + .../tokenreviewstatus-authentication-v1.json | 41 + .../v1.31.0-local-strict/toleration-v1.json | 45 + .../topologyselectorlabelrequirement-v1.json | 34 + .../topologyselectorterm-v1.json | 21 + .../topologyspreadconstraint-v1.json | 76 + ...typechecking-admissionregistration-v1.json | 20 + ...ecking-admissionregistration-v1alpha1.json | 20 + ...hecking-admissionregistration-v1beta1.json | 20 + .../typedlocalobjectreference-v1.json | 35 + .../typedobjectreference-v1.json | 40 + .../uncountedterminatedpods-batch-v1.json | 37 + .../userinfo-authentication-v1.json | 56 + .../usersubject-flowcontrol-v1.json | 19 + .../usersubject-flowcontrol-v1beta3.json | 19 + ...issionpolicy-admissionregistration-v1.json | 48 + ...policy-admissionregistration-v1alpha1.json | 48 + ...npolicy-admissionregistration-v1beta1.json | 48 + ...olicybinding-admissionregistration-v1.json | 44 + ...inding-admissionregistration-v1alpha1.json | 44 + ...binding-admissionregistration-v1beta1.json | 44 + ...ybindinglist-admissionregistration-v1.json | 53 + ...nglist-admissionregistration-v1alpha1.json | 53 + ...inglist-admissionregistration-v1beta1.json | 53 + ...ybindingspec-admissionregistration-v1.json | 38 + ...ngspec-admissionregistration-v1alpha1.json | 38 + ...ingspec-admissionregistration-v1beta1.json | 38 + ...onpolicylist-admissionregistration-v1.json | 53 + ...cylist-admissionregistration-v1alpha1.json | 53 + ...icylist-admissionregistration-v1beta1.json | 53 + ...onpolicyspec-admissionregistration-v1.json | 78 + ...cyspec-admissionregistration-v1alpha1.json | 78 + ...icyspec-admissionregistration-v1beta1.json | 78 + ...policystatus-admissionregistration-v1.json | 35 + ...status-admissionregistration-v1alpha1.json | 35 + ...ystatus-admissionregistration-v1beta1.json | 35 + ...atingwebhook-admissionregistration-v1.json | 104 + ...onfiguration-admissionregistration-v1.json | 56 + ...gurationlist-admissionregistration-v1.json | 53 + .../validation-admissionregistration-v1.json | 40 + ...dation-admissionregistration-v1alpha1.json | 40 + ...idation-admissionregistration-v1beta1.json | 40 + .../validationrule-apiextensions-v1.json | 54 + .../variable-admissionregistration-v1.json | 28 + ...riable-admissionregistration-v1alpha1.json | 27 + ...ariable-admissionregistration-v1beta1.json | 28 + .../v1.31.0-local-strict/volume-v1.json | 139 + .../volumeattachment-storage-v1.json | 51 + .../volumeattachmentlist-storage-v1.json | 53 + .../volumeattachmentsource-storage-v1.json | 20 + .../volumeattachmentspec-storage-v1.json | 32 + .../volumeattachmentstatus-storage-v1.json | 40 + ...olumeattributesclass-storage-v1alpha1.json | 63 + ...volumeattributesclass-storage-v1beta1.json | 63 + ...eattributesclasslist-storage-v1alpha1.json | 53 + ...meattributesclasslist-storage-v1beta1.json | 53 + .../v1.31.0-local-strict/volumedevice-v1.json | 27 + .../volumeerror-storage-v1.json | 20 + .../v1.31.0-local-strict/volumemount-v1.json | 62 + .../volumemountstatus-v1.json | 41 + .../volumenodeaffinity-v1.json | 13 + .../volumenoderesources-storage-v1.json | 17 + .../volumeprojection-v1.json | 29 + .../volumeresourcerequirements-v1.json | 29 + .../vspherevirtualdiskvolumesource-v1.json | 40 + .../watchevent-meta-v1.json | 325 + ...clientconfig-admissionregistration-v1.json | 28 + .../webhookclientconfig-apiextensions-v1.json | 28 + .../webhookconversion-apiextensions-v1.json | 30 + .../weightedpodaffinityterm-v1.json | 25 + .../windowssecuritycontextoptions-v1.json | 37 + .../v1.31.0-local/_definitions.json | 26986 +++++++++++++++ .../v1.31.0-local/affinity-v1.json | 20 + .../aggregationrule-rbac-v1.json | 19 + .../v1.31.0-local/all.json | 1909 ++ .../allocationresult-resource-v1alpha3.json | 23 + .../v1.31.0-local/apigroup-meta-v1.json | 72 + .../v1.31.0-local/apigrouplist-meta-v1.json | 49 + .../v1.31.0-local/apiresource-meta-v1.json | 105 + .../apiresourcelist-meta-v1.json | 57 + .../apiservice-apiregistration-v1.json | 47 + ...piservicecondition-apiregistration-v1.json | 44 + .../apiservicelist-apiregistration-v1.json | 52 + .../apiservicespec-apiregistration-v1.json | 62 + .../apiservicestatus-apiregistration-v1.json | 24 + .../v1.31.0-local/apiversions-meta-v1.json | 64 + .../v1.31.0-local/apparmorprofile-v1.json | 33 + .../v1.31.0-local/attachedvolume-v1.json | 26 + ...itannotation-admissionregistration-v1.json | 26 + ...tation-admissionregistration-v1alpha1.json | 26 + ...otation-admissionregistration-v1beta1.json | 26 + .../awselasticblockstorevolumesource-v1.json | 40 + .../azurediskvolumesource-v1.json | 54 + .../azurefilepersistentvolumesource-v1.json | 40 + .../azurefilevolumesource-v1.json | 33 + .../basicdevice-resource-v1alpha3.json | 28 + .../v1.31.0-local/binding-v1.json | 46 + ...oundobjectreference-authentication-v1.json | 36 + .../v1.31.0-local/capabilities-v1.json | 36 + .../celdeviceselector-resource-v1alpha3.json | 18 + .../cephfspersistentvolumesource-v1.json | 57 + .../v1.31.0-local/cephfsvolumesource-v1.json | 57 + ...ificatesigningrequest-certificates-v1.json | 49 + ...gningrequestcondition-certificates-v1.json | 48 + ...atesigningrequestlist-certificates-v1.json | 51 + ...atesigningrequestspec-certificates-v1.json | 97 + ...esigningrequeststatus-certificates-v1.json | 31 + .../cinderpersistentvolumesource-v1.json | 36 + .../v1.31.0-local/cindervolumesource-v1.json | 36 + .../v1.31.0-local/clientipconfig-v1.json | 16 + .../v1.31.0-local/clusterrole-rbac-v1.json | 54 + .../clusterrolebinding-rbac-v1.json | 57 + .../clusterrolebindinglist-rbac-v1.json | 52 + .../clusterrolelist-rbac-v1.json | 52 + ...stertrustbundle-certificates-v1alpha1.json | 46 + ...trustbundlelist-certificates-v1alpha1.json | 52 + .../clustertrustbundleprojection-v1.json | 43 + ...trustbundlespec-certificates-v1alpha1.json | 25 + .../v1.31.0-local/componentcondition-v1.json | 40 + .../v1.31.0-local/componentstatus-v1.json | 55 + .../v1.31.0-local/componentstatuslist-v1.json | 52 + .../v1.31.0-local/condition-meta-v1.json | 55 + .../v1.31.0-local/configmap-v1.json | 73 + .../v1.31.0-local/configmapenvsource-v1.json | 22 + .../configmapkeyselector-v1.json | 33 + .../v1.31.0-local/configmaplist-v1.json | 52 + .../configmapnodeconfigsource-v1.json | 48 + .../v1.31.0-local/configmapprojection-v1.json | 33 + .../configmapvolumesource-v1.json | 41 + .../v1.31.0-local/container-v1.json | 220 + .../v1.31.0-local/containerimage-v1.json | 30 + .../v1.31.0-local/containerport-v1.json | 48 + .../containerresizepolicy-v1.json | 26 + ...erresourcemetricsource-autoscaling-v2.json | 31 + ...erresourcemetricstatus-autoscaling-v2.json | 31 + .../v1.31.0-local/containerstate-v1.json | 20 + .../containerstaterunning-v1.json | 12 + .../containerstateterminated-v1.json | 56 + .../containerstatewaiting-v1.json | 22 + .../v1.31.0-local/containerstatus-v1.json | 123 + .../v1.31.0-local/containeruser-v1.json | 12 + .../controllerrevision-apps-v1.json | 54 + .../controllerrevisionlist-apps-v1.json | 52 + .../v1.31.0-local/cronjob-batch-v1.json | 47 + .../v1.31.0-local/cronjoblist-batch-v1.json | 52 + .../v1.31.0-local/cronjobspec-batch-v1.json | 68 + .../v1.31.0-local/cronjobstatus-batch-v1.json | 27 + ...versionobjectreference-autoscaling-v1.json | 34 + ...versionobjectreference-autoscaling-v2.json | 33 + .../v1.31.0-local/csidriver-storage-v1.json | 46 + .../csidriverlist-storage-v1.json | 52 + .../csidriverspec-storage-v1.json | 75 + .../v1.31.0-local/csinode-storage-v1.json | 46 + .../csinodedriver-storage-v1.json | 44 + .../v1.31.0-local/csinodelist-storage-v1.json | 52 + .../v1.31.0-local/csinodespec-storage-v1.json | 27 + .../csipersistentvolumesource-v1.json | 73 + .../csistoragecapacity-storage-v1.json | 61 + .../csistoragecapacitylist-storage-v1.json | 52 + .../v1.31.0-local/csivolumesource-v1.json | 49 + ...urcecolumndefinition-apiextensions-v1.json | 56 + ...omresourceconversion-apiextensions-v1.json | 22 + ...omresourcedefinition-apiextensions-v1.json | 50 + ...edefinitioncondition-apiextensions-v1.json | 44 + ...sourcedefinitionlist-apiextensions-v1.json | 52 + ...ourcedefinitionnames-apiextensions-v1.json | 68 + ...sourcedefinitionspec-apiextensions-v1.json | 54 + ...urcedefinitionstatus-apiextensions-v1.json | 40 + ...rcedefinitionversion-apiextensions-v1.json | 78 + ...resourcesubresources-apiextensions-v1.json | 16 + ...urcesubresourcescale-apiextensions-v1.json | 33 + ...rcesubresourcestatus-apiextensions-v1.json | 6 + ...omresourcevalidation-apiextensions-v1.json | 12 + .../v1.31.0-local/daemonendpoint-v1.json | 19 + .../v1.31.0-local/daemonset-apps-v1.json | 47 + .../daemonsetcondition-apps-v1.json | 44 + .../v1.31.0-local/daemonsetlist-apps-v1.json | 52 + .../v1.31.0-local/daemonsetspec-apps-v1.json | 40 + .../daemonsetstatus-apps-v1.json | 102 + .../daemonsetupdatestrategy-apps-v1.json | 19 + .../v1.31.0-local/deleteoptions-meta-v1.json | 429 + .../v1.31.0-local/deployment-apps-v1.json | 47 + .../deploymentcondition-apps-v1.json | 48 + .../v1.31.0-local/deploymentlist-apps-v1.json | 52 + .../v1.31.0-local/deploymentspec-apps-v1.json | 64 + .../deploymentstatus-apps-v1.json | 80 + .../deploymentstrategy-apps-v1.json | 19 + .../device-resource-v1alpha3.json | 22 + ...cationconfiguration-resource-v1alpha3.json | 36 + ...iceallocationresult-resource-v1alpha3.json | 30 + .../deviceattribute-resource-v1alpha3.json | 37 + .../deviceclaim-resource-v1alpha3.json | 41 + ...eclaimconfiguration-resource-v1alpha3.json | 26 + .../deviceclass-resource-v1alpha3.json | 46 + ...eclassconfiguration-resource-v1alpha3.json | 12 + .../deviceclasslist-resource-v1alpha3.json | 52 + .../deviceclassspec-resource-v1alpha3.json | 34 + .../deviceconstraint-resource-v1alpha3.json | 29 + .../devicerequest-resource-v1alpha3.json | 59 + ...estallocationresult-resource-v1alpha3.json | 42 + .../deviceselector-resource-v1alpha3.json | 12 + .../downwardapiprojection-v1.json | 19 + .../downwardapivolumefile-v1.json | 34 + .../downwardapivolumesource-v1.json | 27 + .../emptydirvolumesource-v1.json | 19 + .../v1.31.0-local/endpoint-discovery-v1.json | 71 + .../v1.31.0-local/endpointaddress-v1.json | 37 + .../endpointconditions-discovery-v1.json | 29 + .../endpointhints-discovery-v1.json | 19 + .../endpointport-discovery-v1.json | 38 + .../v1.31.0-local/endpointport-v1.json | 41 + .../v1.31.0-local/endpoints-v1.json | 50 + .../endpointslice-discovery-v1.json | 72 + .../endpointslicelist-discovery-v1.json | 52 + .../v1.31.0-local/endpointslist-v1.json | 52 + .../v1.31.0-local/endpointsubset-v1.json | 41 + .../v1.31.0-local/envfromsource-v1.json | 23 + .../v1.31.0-local/envvar-v1.json | 29 + .../v1.31.0-local/envvarsource-v1.json | 24 + .../v1.31.0-local/ephemeralcontainer-v1.json | 227 + .../ephemeralvolumesource-v1.json | 12 + .../v1.31.0-local/event-events-v1.json | 120 + .../v1.31.0-local/event-v1.json | 121 + .../v1.31.0-local/eventlist-events-v1.json | 52 + .../v1.31.0-local/eventlist-v1.json | 52 + .../v1.31.0-local/eventseries-events-v1.json | 24 + .../v1.31.0-local/eventseries-v1.json | 20 + .../v1.31.0-local/eventsource-v1.json | 22 + .../v1.31.0-local/eviction-policy-v1.json | 43 + .../v1.31.0-local/execaction-v1.json | 22 + ...ritylevelconfiguration-flowcontrol-v1.json | 24 + ...evelconfiguration-flowcontrol-v1beta3.json | 24 + ...ssionwarning-admissionregistration-v1.json | 26 + ...arning-admissionregistration-v1alpha1.json | 26 + ...warning-admissionregistration-v1beta1.json | 26 + ...xternaldocumentation-apiextensions-v1.json | 20 + .../externalmetricsource-autoscaling-v2.json | 20 + .../externalmetricstatus-autoscaling-v2.json | 20 + .../v1.31.0-local/fcvolumesource-v1.json | 58 + ...ldselectorattributes-authorization-v1.json | 26 + .../fieldselectorrequirement-meta-v1.json | 40 + .../v1.31.0-local/fieldsv1-meta-v1.json | 6 + .../flexpersistentvolumesource-v1.json | 49 + .../v1.31.0-local/flexvolumesource-v1.json | 49 + .../v1.31.0-local/flockervolumesource-v1.json | 22 + ...lowdistinguishermethod-flowcontrol-v1.json | 18 + ...stinguishermethod-flowcontrol-v1beta3.json | 18 + .../flowschema-flowcontrol-v1.json | 47 + .../flowschema-flowcontrol-v1beta3.json | 47 + .../flowschemacondition-flowcontrol-v1.json | 40 + ...owschemacondition-flowcontrol-v1beta3.json | 40 + .../flowschemalist-flowcontrol-v1.json | 52 + .../flowschemalist-flowcontrol-v1beta3.json | 52 + .../flowschemaspec-flowcontrol-v1.json | 38 + .../flowschemaspec-flowcontrol-v1beta3.json | 38 + .../flowschemastatus-flowcontrol-v1.json | 24 + .../flowschemastatus-flowcontrol-v1beta3.json | 24 + .../v1.31.0-local/forzone-discovery-v1.json | 18 + .../gcepersistentdiskvolumesource-v1.json | 40 + .../v1.31.0-local/gitrepovolumesource-v1.json | 32 + .../glusterfspersistentvolumesource-v1.json | 40 + .../glusterfsvolumesource-v1.json | 33 + .../groupsubject-flowcontrol-v1.json | 18 + .../groupsubject-flowcontrol-v1beta3.json | 18 + .../groupversionfordiscovery-meta-v1.json | 26 + ...ionresource-storagemigration-v1alpha1.json | 29 + .../v1.31.0-local/grpcaction-v1.json | 25 + ...orizontalpodautoscaler-autoscaling-v1.json | 47 + ...orizontalpodautoscaler-autoscaling-v2.json | 47 + ...lpodautoscalerbehavior-autoscaling-v2.json | 16 + ...podautoscalercondition-autoscaling-v2.json | 44 + ...ontalpodautoscalerlist-autoscaling-v1.json | 52 + ...ontalpodautoscalerlist-autoscaling-v2.json | 52 + ...ontalpodautoscalerspec-autoscaling-v1.json | 40 + ...ontalpodautoscalerspec-autoscaling-v2.json | 47 + ...talpodautoscalerstatus-autoscaling-v1.json | 48 + ...talpodautoscalerstatus-autoscaling-v2.json | 66 + .../v1.31.0-local/hostalias-v1.json | 32 + .../v1.31.0-local/hostip-v1.json | 18 + .../hostpathvolumesource-v1.json | 25 + .../hpascalingpolicy-autoscaling-v2.json | 36 + .../hpascalingrules-autoscaling-v2.json | 34 + .../v1.31.0-local/httpgetaction-v1.json | 47 + .../v1.31.0-local/httpheader-v1.json | 26 + .../httpingresspath-networking-v1.json | 30 + .../httpingressrulevalue-networking-v1.json | 22 + .../v1.31.0-local/imagevolumesource-v1.json | 22 + .../v1.31.0-local/info-pkg-version.json | 73 + .../v1.31.0-local/ingress-networking-v1.json | 47 + .../ingressbackend-networking-v1.json | 16 + .../ingressclass-networking-v1.json | 43 + .../ingressclasslist-networking-v1.json | 52 + ...lassparametersreference-networking-v1.json | 47 + .../ingressclassspec-networking-v1.json | 19 + .../ingresslist-networking-v1.json | 52 + ...ressloadbalanceringress-networking-v1.json | 33 + ...gressloadbalancerstatus-networking-v1.json | 19 + .../ingressportstatus-networking-v1.json | 34 + .../ingressrule-networking-v1.json | 18 + .../ingressservicebackend-networking-v1.json | 22 + .../ingressspec-networking-v1.json | 41 + .../ingressstatus-networking-v1.json | 12 + .../ingresstls-networking-v1.json | 29 + .../intorstring-util-intstr.json | 13 + .../ipaddress-networking-v1beta1.json | 43 + .../ipaddresslist-networking-v1beta1.json | 52 + .../ipaddressspec-networking-v1beta1.json | 15 + .../v1.31.0-local/ipblock-networking-v1.json | 32 + .../iscsipersistentvolumesource-v1.json | 95 + .../v1.31.0-local/iscsivolumesource-v1.json | 95 + .../v1.31.0-local/job-batch-v1.json | 47 + .../v1.31.0-local/jobcondition-batch-v1.json | 48 + .../v1.31.0-local/joblist-batch-v1.json | 52 + .../v1.31.0-local/jobspec-batch-v1.json | 118 + .../v1.31.0-local/jobstatus-batch-v1.json | 87 + .../jobtemplatespec-batch-v1.json | 16 + .../v1.31.0-local/json-apiextensions-v1.json | 6 + .../jsonschemaprops-apiextensions-v1.json | 314 + ...onschemapropsorarray-apiextensions-v1.json | 6 + ...sonschemapropsorbool-apiextensions-v1.json | 6 + ...mapropsorstringarray-apiextensions-v1.json | 6 + .../v1.31.0-local/keytopath-v1.json | 34 + .../v1.31.0-local/labelselector-meta-v1.json | 33 + ...elselectorattributes-authorization-v1.json | 26 + .../labelselectorrequirement-meta-v1.json | 40 + .../v1.31.0-local/lease-coordination-v1.json | 43 + .../leasecandidate-coordination-v1alpha1.json | 43 + ...secandidatelist-coordination-v1alpha1.json | 52 + ...secandidatespec-coordination-v1alpha1.json | 55 + .../leaselist-coordination-v1.json | 52 + .../leasespec-coordination-v1.json | 53 + .../v1.31.0-local/lifecycle-v1.json | 16 + .../v1.31.0-local/lifecyclehandler-v1.json | 24 + ...ritylevelconfiguration-flowcontrol-v1.json | 36 + ...evelconfiguration-flowcontrol-v1beta3.json | 36 + .../v1.31.0-local/limitrange-v1.json | 43 + .../v1.31.0-local/limitrangeitem-v1.json | 68 + .../v1.31.0-local/limitrangelist-v1.json | 52 + .../v1.31.0-local/limitrangespec-v1.json | 22 + .../limitresponse-flowcontrol-v1.json | 30 + .../limitresponse-flowcontrol-v1beta3.json | 30 + .../v1.31.0-local/linuxcontaineruser-v1.json | 43 + .../v1.31.0-local/listmeta-meta-v1.json | 37 + .../v1.31.0-local/loadbalanceringress-v1.json | 40 + .../v1.31.0-local/loadbalancerstatus-v1.json | 19 + .../localobjectreference-v1.json | 16 + ...lsubjectaccessreview-authorization-v1.json | 50 + .../v1.31.0-local/localvolumesource-v1.json | 25 + .../managedfieldsentry-meta-v1.json | 51 + ...tchcondition-admissionregistration-v1.json | 26 + ...dition-admissionregistration-v1alpha1.json | 25 + ...ndition-admissionregistration-v1beta1.json | 26 + ...tchresources-admissionregistration-v1.json | 46 + ...ources-admissionregistration-v1alpha1.json | 46 + ...sources-admissionregistration-v1beta1.json | 46 + .../metricidentifier-autoscaling-v2.json | 22 + .../metricspec-autoscaling-v2.json | 38 + .../metricstatus-autoscaling-v2.json | 38 + .../metrictarget-autoscaling-v2.json | 34 + .../metricvaluestatus-autoscaling-v2.json | 24 + .../v1.31.0-local/microtime-meta-v1.json | 7 + ...oncondition-storagemigration-v1alpha1.json | 44 + .../v1.31.0-local/modifyvolumestatus-v1.json | 25 + ...atingwebhook-admissionregistration-v1.json | 110 + ...onfiguration-admissionregistration-v1.json | 55 + ...gurationlist-admissionregistration-v1.json | 52 + ...thoperations-admissionregistration-v1.json | 86 + ...ations-admissionregistration-v1alpha1.json | 86 + ...rations-admissionregistration-v1beta1.json | 86 + .../v1.31.0-local/namespace-v1.json | 47 + .../v1.31.0-local/namespacecondition-v1.json | 41 + .../v1.31.0-local/namespacelist-v1.json | 52 + .../v1.31.0-local/namespacespec-v1.json | 22 + .../v1.31.0-local/namespacestatus-v1.json | 31 + .../networkpolicy-networking-v1.json | 43 + ...networkpolicyegressrule-networking-v1.json | 30 + ...etworkpolicyingressrule-networking-v1.json | 30 + .../networkpolicylist-networking-v1.json | 52 + .../networkpolicypeer-networking-v1.json | 20 + .../networkpolicyport-networking-v1.json | 27 + .../networkpolicyspec-networking-v1.json | 51 + .../v1.31.0-local/nfsvolumesource-v1.json | 33 + .../v1.31.0-local/node-v1.json | 47 + .../v1.31.0-local/nodeaddress-v1.json | 26 + .../v1.31.0-local/nodeaffinity-v1.json | 23 + .../v1.31.0-local/nodecondition-v1.json | 48 + .../v1.31.0-local/nodeconfigsource-v1.json | 12 + .../v1.31.0-local/nodeconfigstatus-v1.json | 27 + .../v1.31.0-local/nodedaemonendpoints-v1.json | 12 + .../v1.31.0-local/nodefeatures-v1.json | 15 + .../v1.31.0-local/nodelist-v1.json | 52 + .../v1.31.0-local/noderuntimehandler-v1.json | 19 + .../noderuntimehandlerfeatures-v1.json | 22 + .../v1.31.0-local/nodeselector-v1.json | 23 + .../nodeselectorrequirement-v1.json | 40 + .../v1.31.0-local/nodeselectorterm-v1.json | 31 + .../v1.31.0-local/nodespec-v1.json | 66 + .../v1.31.0-local/nodestatus-v1.json | 130 + .../v1.31.0-local/nodesysteminfo-v1.json | 90 + ...onresourceattributes-authorization-v1.json | 22 + .../nonresourcepolicyrule-flowcontrol-v1.json | 40 + ...esourcepolicyrule-flowcontrol-v1beta3.json | 40 + .../nonresourcerule-authorization-v1.json | 39 + .../v1.31.0-local/objectfieldselector-v1.json | 26 + .../v1.31.0-local/objectmeta-meta-v1.json | 142 + .../objectmetricsource-autoscaling-v2.json | 25 + .../objectmetricstatus-autoscaling-v2.json | 25 + .../v1.31.0-local/objectreference-v1.json | 58 + ...deviceconfiguration-resource-v1alpha3.json | 23 + .../v1.31.0-local/overhead-node-v1.json | 18 + .../v1.31.0-local/ownerreference-meta-v1.json | 57 + .../paramkind-admissionregistration-v1.json | 23 + ...amkind-admissionregistration-v1alpha1.json | 23 + ...ramkind-admissionregistration-v1beta1.json | 23 + .../paramref-admissionregistration-v1.json | 34 + ...ramref-admissionregistration-v1alpha1.json | 34 + ...aramref-admissionregistration-v1beta1.json | 34 + .../parentreference-networking-v1beta1.json | 40 + .../v1.31.0-local/patch-meta-v1.json | 6 + .../v1.31.0-local/persistentvolume-v1.json | 47 + .../persistentvolumeclaim-v1.json | 47 + .../persistentvolumeclaimcondition-v1.json | 46 + .../persistentvolumeclaimlist-v1.json | 52 + .../persistentvolumeclaimspec-v1.json | 66 + .../persistentvolumeclaimstatus-v1.json | 90 + .../persistentvolumeclaimtemplate-v1.json | 19 + .../persistentvolumeclaimvolumesource-v1.json | 25 + .../persistentvolumelist-v1.json | 52 + .../persistentvolumespec-v1.json | 171 + .../persistentvolumestatus-v1.json | 33 + .../photonpersistentdiskvolumesource-v1.json | 25 + .../v1.31.0-local/pod-v1.json | 47 + .../v1.31.0-local/podaffinity-v1.json | 30 + .../v1.31.0-local/podaffinityterm-v1.json | 68 + .../v1.31.0-local/podantiaffinity-v1.json | 30 + .../v1.31.0-local/podcondition-v1.json | 48 + .../poddisruptionbudget-policy-v1.json | 47 + .../poddisruptionbudgetlist-policy-v1.json | 52 + .../poddisruptionbudgetspec-policy-v1.json | 28 + .../poddisruptionbudgetstatus-policy-v1.json | 80 + .../v1.31.0-local/poddnsconfig-v1.json | 47 + .../v1.31.0-local/poddnsconfigoption-v1.json | 21 + .../podfailurepolicy-batch-v1.json | 22 + ...policyonexitcodesrequirement-batch-v1.json | 41 + ...policyonpodconditionspattern-batch-v1.json | 26 + .../podfailurepolicyrule-batch-v1.json | 33 + .../v1.31.0-local/podip-v1.json | 18 + .../v1.31.0-local/podlist-v1.json | 52 + .../v1.31.0-local/podos-v1.json | 18 + .../v1.31.0-local/podreadinessgate-v1.json | 18 + .../v1.31.0-local/podresourceclaim-v1.json | 32 + .../podresourceclaimstatus-v1.json | 25 + ...odschedulingcontext-resource-v1alpha3.json | 50 + ...hedulingcontextlist-resource-v1alpha3.json | 52 + ...hedulingcontextspec-resource-v1alpha3.json | 29 + ...dulingcontextstatus-resource-v1alpha3.json | 22 + .../v1.31.0-local/podschedulinggate-v1.json | 18 + .../v1.31.0-local/podsecuritycontext-v1.json | 95 + .../podsmetricsource-autoscaling-v2.json | 20 + .../podsmetricstatus-autoscaling-v2.json | 20 + .../v1.31.0-local/podspec-v1.json | 375 + .../v1.31.0-local/podstatus-v1.json | 162 + .../v1.31.0-local/podtemplate-v1.json | 43 + .../v1.31.0-local/podtemplatelist-v1.json | 52 + .../v1.31.0-local/podtemplatespec-v1.json | 16 + .../v1.31.0-local/policyrule-rbac-v1.json | 81 + ...olicyruleswithsubjects-flowcontrol-v1.json | 44 + ...ruleswithsubjects-flowcontrol-v1beta3.json | 44 + .../v1.31.0-local/portstatus-v1.json | 33 + .../portworxvolumesource-v1.json | 32 + .../v1.31.0-local/preconditions-meta-v1.json | 22 + .../preferredschedulingterm-v1.json | 24 + .../priorityclass-scheduling-v1.json | 71 + .../priorityclasslist-scheduling-v1.json | 52 + ...ritylevelconfiguration-flowcontrol-v1.json | 47 + ...evelconfiguration-flowcontrol-v1beta3.json | 47 + ...configurationcondition-flowcontrol-v1.json | 40 + ...gurationcondition-flowcontrol-v1beta3.json | 40 + ...levelconfigurationlist-flowcontrol-v1.json | 52 + ...configurationlist-flowcontrol-v1beta3.json | 52 + ...configurationreference-flowcontrol-v1.json | 18 + ...gurationreference-flowcontrol-v1beta3.json | 18 + ...levelconfigurationspec-flowcontrol-v1.json | 35 + ...configurationspec-flowcontrol-v1beta3.json | 35 + ...velconfigurationstatus-flowcontrol-v1.json | 24 + ...nfigurationstatus-flowcontrol-v1beta3.json | 24 + .../v1.31.0-local/probe-v1.json | 72 + .../projectedvolumesource-v1.json | 27 + .../v1.31.0-local/quantity-resource.json | 13 + .../queuingconfiguration-flowcontrol-v1.json | 32 + ...uingconfiguration-flowcontrol-v1beta3.json | 32 + .../v1.31.0-local/quobytevolumesource-v1.json | 54 + .../rawextension-pkg-runtime.json | 6 + .../rbdpersistentvolumesource-v1.json | 72 + .../v1.31.0-local/rbdvolumesource-v1.json | 72 + .../v1.31.0-local/replicaset-apps-v1.json | 47 + .../replicasetcondition-apps-v1.json | 44 + .../v1.31.0-local/replicasetlist-apps-v1.json | 52 + .../v1.31.0-local/replicasetspec-apps-v1.json | 35 + .../replicasetstatus-apps-v1.json | 67 + .../replicationcontroller-v1.json | 47 + .../replicationcontrollercondition-v1.json | 44 + .../replicationcontrollerlist-v1.json | 52 + .../replicationcontrollerspec-v1.json | 42 + .../replicationcontrollerstatus-v1.json | 67 + .../resourceattributes-authorization-v1.json | 65 + .../resourceclaim-resource-v1alpha3.json | 50 + .../v1.31.0-local/resourceclaim-v1.json | 25 + ...imconsumerreference-resource-v1alpha3.json | 41 + .../resourceclaimlist-resource-v1alpha3.json | 52 + ...aimschedulingstatus-resource-v1alpha3.json | 32 + .../resourceclaimspec-resource-v1alpha3.json | 19 + ...resourceclaimstatus-resource-v1alpha3.json | 35 + ...sourceclaimtemplate-resource-v1alpha3.json | 46 + ...ceclaimtemplatelist-resource-v1alpha3.json | 52 + ...ceclaimtemplatespec-resource-v1alpha3.json | 19 + .../resourcefieldselector-v1.json | 30 + .../v1.31.0-local/resourcehealth-v1.json | 25 + .../resourcemetricsource-autoscaling-v2.json | 23 + .../resourcemetricstatus-autoscaling-v2.json | 23 + .../resourcepolicyrule-flowcontrol-v1.json | 76 + ...esourcepolicyrule-flowcontrol-v1beta3.json | 76 + .../resourcepool-resource-v1alpha3.json | 36 + .../v1.31.0-local/resourcequota-v1.json | 47 + .../v1.31.0-local/resourcequotalist-v1.json | 52 + .../v1.31.0-local/resourcequotaspec-v1.json | 36 + .../v1.31.0-local/resourcequotastatus-v1.json | 28 + .../resourcerequirements-v1.json | 42 + .../resourcerule-authorization-v1.json | 67 + .../resourceslice-resource-v1alpha3.json | 46 + .../resourceslicelist-resource-v1alpha3.json | 52 + .../resourceslicespec-resource-v1alpha3.json | 52 + .../v1.31.0-local/resourcestatus-v1.json | 31 + .../v1.31.0-local/role-rbac-v1.json | 50 + .../v1.31.0-local/rolebinding-rbac-v1.json | 57 + .../rolebindinglist-rbac-v1.json | 52 + .../v1.31.0-local/rolelist-rbac-v1.json | 52 + .../v1.31.0-local/roleref-rbac-v1.json | 35 + .../rollingupdatedaemonset-apps-v1.json | 16 + .../rollingupdatedeployment-apps-v1.json | 16 + ...lingupdatestatefulsetstrategy-apps-v1.json | 20 + ...thoperations-admissionregistration-v1.json | 71 + .../v1.31.0-local/runtimeclass-node-v1.json | 57 + .../runtimeclasslist-node-v1.json | 52 + .../v1.31.0-local/scale-autoscaling-v1.json | 47 + .../scaleiopersistentvolumesource-v1.json | 80 + .../v1.31.0-local/scaleiovolumesource-v1.json | 80 + .../scalespec-autoscaling-v1.json | 16 + .../scalestatus-autoscaling-v1.json | 26 + .../v1.31.0-local/scheduling-node-v1.json | 33 + .../scopedresourceselectorrequirement-v1.json | 40 + .../v1.31.0-local/scopeselector-v1.json | 20 + .../v1.31.0-local/seccompprofile-v1.json | 33 + .../v1.31.0-local/secret-v1.json | 80 + .../v1.31.0-local/secretenvsource-v1.json | 22 + .../v1.31.0-local/secretkeyselector-v1.json | 33 + .../v1.31.0-local/secretlist-v1.json | 52 + .../v1.31.0-local/secretprojection-v1.json | 33 + .../v1.31.0-local/secretreference-v1.json | 23 + .../v1.31.0-local/secretvolumesource-v1.json | 41 + .../v1.31.0-local/securitycontext-v1.json | 79 + .../selectablefield-apiextensions-v1.json | 18 + ...fsubjectaccessreview-authorization-v1.json | 50 + ...jectaccessreviewspec-authorization-v1.json | 16 + .../selfsubjectreview-authentication-v1.json | 43 + ...subjectreview-authentication-v1alpha1.json | 43 + ...fsubjectreview-authentication-v1beta1.json | 43 + ...subjectreviewstatus-authentication-v1.json | 12 + ...treviewstatus-authentication-v1alpha1.json | 12 + ...ctreviewstatus-authentication-v1beta1.json | 12 + ...lfsubjectrulesreview-authorization-v1.json | 50 + ...bjectrulesreviewspec-authorization-v1.json | 15 + .../v1.31.0-local/selinuxoptions-v1.json | 36 + .../serveraddressbyclientcidr-meta-v1.json | 26 + ...ageversion-apiserverinternal-v1alpha1.json | 50 + .../v1.31.0-local/service-v1.json | 47 + .../v1.31.0-local/serviceaccount-v1.json | 73 + .../v1.31.0-local/serviceaccountlist-v1.json | 52 + .../serviceaccountsubject-flowcontrol-v1.json | 26 + ...iceaccountsubject-flowcontrol-v1beta3.json | 26 + .../serviceaccounttokenprojection-v1.json | 33 + .../servicebackendport-networking-v1.json | 24 + .../servicecidr-networking-v1beta1.json | 47 + .../servicecidrlist-networking-v1beta1.json | 52 + .../servicecidrspec-networking-v1beta1.json | 22 + .../servicecidrstatus-networking-v1beta1.json | 24 + .../v1.31.0-local/servicelist-v1.json | 52 + .../v1.31.0-local/serviceport-v1.json | 52 + ...icereference-admissionregistration-v1.json | 41 + .../servicereference-apiextensions-v1.json | 41 + .../servicereference-apiregistration-v1.json | 30 + .../v1.31.0-local/servicespec-v1.json | 191 + .../v1.31.0-local/servicestatus-v1.json | 28 + .../sessionaffinityconfig-v1.json | 12 + .../v1.31.0-local/sleepaction-v1.json | 19 + .../v1.31.0-local/statefulset-apps-v1.json | 47 + .../statefulsetcondition-apps-v1.json | 44 + .../statefulsetlist-apps-v1.json | 52 + .../statefulsetordinals-apps-v1.json | 16 + ...entvolumeclaimretentionpolicy-apps-v1.json | 22 + .../statefulsetspec-apps-v1.json | 82 + .../statefulsetstatus-apps-v1.json | 97 + .../statefulsetupdatestrategy-apps-v1.json | 19 + .../v1.31.0-local/status-meta-v1.json | 73 + .../v1.31.0-local/statuscause-meta-v1.json | 29 + .../v1.31.0-local/statusdetails-meta-v1.json | 55 + .../storageclass-storage-v1.json | 108 + .../storageclasslist-storage-v1.json | 52 + .../storageospersistentvolumesource-v1.json | 40 + .../storageosvolumesource-v1.json | 40 + ...ageversion-apiserverinternal-v1alpha1.json | 51 + ...ncondition-apiserverinternal-v1alpha1.json | 54 + ...ersionlist-apiserverinternal-v1alpha1.json | 52 + ...onmigration-storagemigration-v1alpha1.json | 47 + ...grationlist-storagemigration-v1alpha1.json | 58 + ...grationspec-storagemigration-v1alpha1.json | 22 + ...ationstatus-storagemigration-v1alpha1.json | 31 + ...ersionspec-apiserverinternal-v1alpha1.json | 6 + ...sionstatus-apiserverinternal-v1alpha1.json | 43 + .../v1.31.0-local/subject-flowcontrol-v1.json | 40 + .../subject-flowcontrol-v1beta3.json | 40 + .../v1.31.0-local/subject-rbac-v1.json | 41 + .../subjectaccessreview-authorization-v1.json | 50 + ...jectaccessreviewspec-authorization-v1.json | 63 + ...ctaccessreviewstatus-authorization-v1.json | 39 + ...ectrulesreviewstatus-authorization-v1.json | 49 + .../v1.31.0-local/successpolicy-batch-v1.json | 22 + .../successpolicyrule-batch-v1.json | 23 + .../v1.31.0-local/sysctl-v1.json | 26 + .../v1.31.0-local/taint-v1.json | 37 + .../v1.31.0-local/tcpsocketaction-v1.json | 22 + .../v1.31.0-local/time-meta-v1.json | 7 + .../tokenrequest-authentication-v1.json | 50 + .../tokenrequest-storage-v1.json | 26 + .../tokenrequestspec-authentication-v1.json | 37 + .../tokenrequeststatus-authentication-v1.json | 23 + .../tokenreview-authentication-v1.json | 50 + .../tokenreviewspec-authentication-v1.json | 29 + .../tokenreviewstatus-authentication-v1.json | 40 + .../v1.31.0-local/toleration-v1.json | 44 + .../topologyselectorlabelrequirement-v1.json | 33 + .../topologyselectorterm-v1.json | 20 + .../topologyspreadconstraint-v1.json | 75 + ...typechecking-admissionregistration-v1.json | 19 + ...ecking-admissionregistration-v1alpha1.json | 19 + ...hecking-admissionregistration-v1beta1.json | 19 + .../typedlocalobjectreference-v1.json | 34 + .../typedobjectreference-v1.json | 39 + .../uncountedterminatedpods-batch-v1.json | 36 + .../userinfo-authentication-v1.json | 55 + .../usersubject-flowcontrol-v1.json | 18 + .../usersubject-flowcontrol-v1beta3.json | 18 + ...issionpolicy-admissionregistration-v1.json | 47 + ...policy-admissionregistration-v1alpha1.json | 47 + ...npolicy-admissionregistration-v1beta1.json | 47 + ...olicybinding-admissionregistration-v1.json | 43 + ...inding-admissionregistration-v1alpha1.json | 43 + ...binding-admissionregistration-v1beta1.json | 43 + ...ybindinglist-admissionregistration-v1.json | 52 + ...nglist-admissionregistration-v1alpha1.json | 52 + ...inglist-admissionregistration-v1beta1.json | 52 + ...ybindingspec-admissionregistration-v1.json | 37 + ...ngspec-admissionregistration-v1alpha1.json | 37 + ...ingspec-admissionregistration-v1beta1.json | 37 + ...onpolicylist-admissionregistration-v1.json | 52 + ...cylist-admissionregistration-v1alpha1.json | 52 + ...icylist-admissionregistration-v1beta1.json | 52 + ...onpolicyspec-admissionregistration-v1.json | 77 + ...cyspec-admissionregistration-v1alpha1.json | 77 + ...icyspec-admissionregistration-v1beta1.json | 77 + ...policystatus-admissionregistration-v1.json | 34 + ...status-admissionregistration-v1alpha1.json | 34 + ...ystatus-admissionregistration-v1beta1.json | 34 + ...atingwebhook-admissionregistration-v1.json | 103 + ...onfiguration-admissionregistration-v1.json | 55 + ...gurationlist-admissionregistration-v1.json | 52 + .../validation-admissionregistration-v1.json | 39 + ...dation-admissionregistration-v1alpha1.json | 39 + ...idation-admissionregistration-v1beta1.json | 39 + .../validationrule-apiextensions-v1.json | 53 + .../variable-admissionregistration-v1.json | 27 + ...riable-admissionregistration-v1alpha1.json | 26 + ...ariable-admissionregistration-v1beta1.json | 27 + .../v1.31.0-local/volume-v1.json | 138 + .../volumeattachment-storage-v1.json | 50 + .../volumeattachmentlist-storage-v1.json | 52 + .../volumeattachmentsource-storage-v1.json | 19 + .../volumeattachmentspec-storage-v1.json | 31 + .../volumeattachmentstatus-storage-v1.json | 39 + ...olumeattributesclass-storage-v1alpha1.json | 62 + ...volumeattributesclass-storage-v1beta1.json | 62 + ...eattributesclasslist-storage-v1alpha1.json | 52 + ...meattributesclasslist-storage-v1beta1.json | 52 + .../v1.31.0-local/volumedevice-v1.json | 26 + .../v1.31.0-local/volumeerror-storage-v1.json | 19 + .../v1.31.0-local/volumemount-v1.json | 61 + .../v1.31.0-local/volumemountstatus-v1.json | 40 + .../v1.31.0-local/volumenodeaffinity-v1.json | 12 + .../volumenoderesources-storage-v1.json | 16 + .../v1.31.0-local/volumeprojection-v1.json | 28 + .../volumeresourcerequirements-v1.json | 28 + .../vspherevirtualdiskvolumesource-v1.json | 39 + .../v1.31.0-local/watchevent-meta-v1.json | 324 + ...clientconfig-admissionregistration-v1.json | 27 + .../webhookclientconfig-apiextensions-v1.json | 27 + .../webhookconversion-apiextensions-v1.json | 29 + .../weightedpodaffinityterm-v1.json | 24 + .../windowssecuritycontextoptions-v1.json | 36 + src/kubernetes_validate/version.py | 2 +- 1276 files changed, 120745 insertions(+), 1 deletion(-) create mode 100644 src/kubernetes_validate/crds/crd-alertmanagers.yaml create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/_definitions.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/affinity-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/aggregationrule-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/all.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/allocationresult-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apigroup-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apigrouplist-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiresource-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiresourcelist-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservice-apiregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicecondition-apiregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicelist-apiregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicespec-apiregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicestatus-apiregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiversions-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apparmorprofile-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/attachedvolume-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/auditannotation-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/auditannotation-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/auditannotation-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/awselasticblockstorevolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/azurediskvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/azurefilepersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/azurefilevolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/basicdevice-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/binding-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/boundobjectreference-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/capabilities-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/celdeviceselector-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cephfspersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cephfsvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequest-certificates-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequestcondition-certificates-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequestlist-certificates-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequestspec-certificates-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequeststatus-certificates-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cinderpersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cindervolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clientipconfig-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrole-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrolebinding-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrolebindinglist-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrolelist-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundle-certificates-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundlelist-certificates-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundleprojection-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundlespec-certificates-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/componentcondition-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/componentstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/componentstatuslist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/condition-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmap-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapenvsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapkeyselector-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmaplist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapnodeconfigsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapprojection-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/container-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerimage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerport-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerresizepolicy-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerresourcemetricsource-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerresourcemetricstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstate-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstaterunning-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstateterminated-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstatewaiting-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containeruser-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/controllerrevision-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/controllerrevisionlist-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjob-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjoblist-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjobspec-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjobstatus-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/crossversionobjectreference-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/crossversionobjectreference-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csidriver-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csidriverlist-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csidriverspec-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinode-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinodedriver-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinodelist-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinodespec-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csipersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csistoragecapacity-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csistoragecapacitylist-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csivolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcecolumndefinition-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourceconversion-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinition-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitioncondition-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionlist-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionnames-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionspec-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionstatus-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionversion-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcesubresources-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcesubresourcescale-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcesubresourcestatus-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcevalidation-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonendpoint-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonset-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetcondition-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetlist-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetspec-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetstatus-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetupdatestrategy-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deleteoptions-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deployment-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentcondition-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentlist-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentspec-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentstatus-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentstrategy-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/device-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceallocationconfiguration-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceallocationresult-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceattribute-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclaim-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclaimconfiguration-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclass-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclassconfiguration-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclasslist-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclassspec-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceconstraint-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/devicerequest-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/devicerequestallocationresult-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceselector-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/downwardapiprojection-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/downwardapivolumefile-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/downwardapivolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/emptydirvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpoint-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointaddress-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointconditions-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointhints-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointport-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointport-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpoints-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointslice-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointslicelist-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointslist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointsubset-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/envfromsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/envvar-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/envvarsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ephemeralcontainer-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ephemeralvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/event-events-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/event-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventlist-events-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventlist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventseries-events-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventseries-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eviction-policy-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/execaction-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/exemptprioritylevelconfiguration-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/exemptprioritylevelconfiguration-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/expressionwarning-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/expressionwarning-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/expressionwarning-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/externaldocumentation-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/externalmetricsource-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/externalmetricstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fcvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fieldselectorattributes-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fieldselectorrequirement-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fieldsv1-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flexpersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flexvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flockervolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowdistinguishermethod-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowdistinguishermethod-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschema-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschema-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemacondition-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemacondition-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemalist-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemalist-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemaspec-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemaspec-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemastatus-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemastatus-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/forzone-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/gcepersistentdiskvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/gitrepovolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/glusterfspersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/glusterfsvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupsubject-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupsubject-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupversionfordiscovery-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupversionresource-storagemigration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/grpcaction-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscaler-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscaler-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerbehavior-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalercondition-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerlist-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerlist-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerspec-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerspec-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerstatus-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hostalias-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hostip-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hostpathvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hpascalingpolicy-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hpascalingrules-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpgetaction-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpheader-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpingresspath-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpingressrulevalue-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/imagevolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/info-pkg-version.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingress-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressbackend-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclass-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclasslist-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclassparametersreference-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclassspec-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingresslist-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressloadbalanceringress-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressloadbalancerstatus-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressportstatus-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressrule-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressservicebackend-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressspec-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressstatus-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingresstls-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/intorstring-util-intstr.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipaddress-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipaddresslist-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipaddressspec-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipblock-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/iscsipersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/iscsivolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/job-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobcondition-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/joblist-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobspec-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobstatus-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobtemplatespec-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/json-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemaprops-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemapropsorarray-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemapropsorbool-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemapropsorstringarray-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/keytopath-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/labelselector-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/labelselectorattributes-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/labelselectorrequirement-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/lease-coordination-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasecandidate-coordination-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasecandidatelist-coordination-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasecandidatespec-coordination-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leaselist-coordination-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasespec-coordination-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/lifecycle-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/lifecyclehandler-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitedprioritylevelconfiguration-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitedprioritylevelconfiguration-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrange-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrangeitem-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrangelist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrangespec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitresponse-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitresponse-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/linuxcontaineruser-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/listmeta-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/loadbalanceringress-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/loadbalancerstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/localobjectreference-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/localsubjectaccessreview-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/localvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/managedfieldsentry-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchcondition-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchcondition-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchcondition-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchresources-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchresources-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchresources-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricidentifier-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricspec-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metrictarget-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricvaluestatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/microtime-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/migrationcondition-storagemigration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/modifyvolumestatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/mutatingwebhook-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/mutatingwebhookconfiguration-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/mutatingwebhookconfigurationlist-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namedrulewithoperations-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namedrulewithoperations-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namedrulewithoperations-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespace-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacecondition-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacelist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacespec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacestatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicy-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyegressrule-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyingressrule-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicylist-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicypeer-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyport-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyspec-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nfsvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/node-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeaddress-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeaffinity-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodecondition-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeconfigsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeconfigstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodedaemonendpoints-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodefeatures-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodelist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/noderuntimehandler-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/noderuntimehandlerfeatures-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeselector-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeselectorrequirement-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeselectorterm-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodespec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodestatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodesysteminfo-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourceattributes-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourcepolicyrule-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourcepolicyrule-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourcerule-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectfieldselector-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectmeta-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectmetricsource-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectmetricstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectreference-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/opaquedeviceconfiguration-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/overhead-node-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ownerreference-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramkind-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramkind-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramkind-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramref-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramref-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramref-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/parentreference-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/patch-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolume-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaim-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimcondition-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimlist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimspec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimtemplate-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumelist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumespec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumestatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/photonpersistentdiskvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/pod-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podaffinity-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podaffinityterm-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podantiaffinity-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podcondition-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudget-policy-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudgetlist-policy-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudgetspec-policy-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudgetstatus-policy-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddnsconfig-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddnsconfigoption-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicy-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicyonexitcodesrequirement-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicyonpodconditionspattern-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicyrule-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podip-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podlist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podos-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podreadinessgate-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podresourceclaim-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podresourceclaimstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontext-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontextlist-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontextspec-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontextstatus-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulinggate-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podsecuritycontext-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podsmetricsource-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podsmetricstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podspec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podtemplate-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podtemplatelist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podtemplatespec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/policyrule-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/policyruleswithsubjects-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/policyruleswithsubjects-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/portstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/portworxvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/preconditions-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/preferredschedulingterm-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/priorityclass-scheduling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/priorityclasslist-scheduling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfiguration-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfiguration-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationcondition-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationcondition-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationlist-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationlist-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationreference-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationreference-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationspec-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationspec-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationstatus-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationstatus-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/probe-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/projectedvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/quantity-resource.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/queuingconfiguration-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/queuingconfiguration-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/quobytevolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rawextension-pkg-runtime.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rbdpersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rbdvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicaset-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetcondition-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetlist-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetspec-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetstatus-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontroller-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollercondition-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollerlist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollerspec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollerstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceattributes-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaim-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaim-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimconsumerreference-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimlist-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimschedulingstatus-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimspec-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimstatus-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimtemplate-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimtemplatelist-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimtemplatespec-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcefieldselector-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcehealth-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcemetricsource-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcemetricstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcepolicyrule-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcepolicyrule-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcepool-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequota-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequotalist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequotaspec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequotastatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcerequirements-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcerule-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceslice-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceslicelist-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceslicespec-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcestatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/role-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rolebinding-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rolebindinglist-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rolelist-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/roleref-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rollingupdatedaemonset-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rollingupdatedeployment-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rollingupdatestatefulsetstrategy-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rulewithoperations-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/runtimeclass-node-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/runtimeclasslist-node-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scale-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scaleiopersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scaleiovolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scalespec-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scalestatus-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scheduling-node-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scopedresourceselectorrequirement-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scopeselector-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/seccompprofile-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secret-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretenvsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretkeyselector-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretlist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretprojection-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretreference-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/securitycontext-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selectablefield-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectaccessreview-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectaccessreviewspec-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreview-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreview-authentication-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreview-authentication-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreviewstatus-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreviewstatus-authentication-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreviewstatus-authentication-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectrulesreview-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectrulesreviewspec-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selinuxoptions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serveraddressbyclientcidr-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serverstorageversion-apiserverinternal-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/service-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccount-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccountlist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccountsubject-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccountsubject-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccounttokenprojection-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicebackendport-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidr-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidrlist-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidrspec-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidrstatus-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicelist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceport-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicereference-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicereference-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicereference-apiregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicespec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicestatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/sessionaffinityconfig-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/sleepaction-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulset-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetcondition-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetlist-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetordinals-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetpersistentvolumeclaimretentionpolicy-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetspec-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetstatus-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetupdatestrategy-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/status-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statuscause-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statusdetails-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageclass-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageclasslist-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageospersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageosvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversion-apiserverinternal-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversioncondition-apiserverinternal-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionlist-apiserverinternal-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigration-storagemigration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigrationlist-storagemigration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigrationspec-storagemigration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigrationstatus-storagemigration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionspec-apiserverinternal-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionstatus-apiserverinternal-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subject-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subject-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subject-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectaccessreview-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectaccessreviewspec-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectaccessreviewstatus-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectrulesreviewstatus-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/successpolicy-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/successpolicyrule-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/sysctl-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/taint-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tcpsocketaction-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/time-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequest-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequest-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequestspec-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequeststatus-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenreview-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenreviewspec-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenreviewstatus-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/toleration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/topologyselectorlabelrequirement-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/topologyselectorterm-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/topologyspreadconstraint-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typechecking-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typechecking-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typechecking-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typedlocalobjectreference-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typedobjectreference-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/uncountedterminatedpods-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/userinfo-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/usersubject-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/usersubject-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicy-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicy-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicy-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybinding-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybinding-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybinding-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindinglist-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindinglist-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindinglist-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindingspec-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindingspec-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindingspec-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicylist-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicylist-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicylist-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicyspec-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicyspec-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicyspec-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicystatus-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicystatus-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicystatus-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingwebhook-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingwebhookconfiguration-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingwebhookconfigurationlist-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validation-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validation-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validation-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validationrule-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/variable-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/variable-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/variable-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volume-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachment-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentlist-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentsource-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentspec-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentstatus-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclass-storage-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclass-storage-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclasslist-storage-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclasslist-storage-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumedevice-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeerror-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumemount-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumemountstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumenodeaffinity-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumenoderesources-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeprojection-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeresourcerequirements-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/vspherevirtualdiskvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/watchevent-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/webhookclientconfig-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/webhookclientconfig-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/webhookconversion-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/weightedpodaffinityterm-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/windowssecuritycontextoptions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/_definitions.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/affinity-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/aggregationrule-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/all.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/allocationresult-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apigroup-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apigrouplist-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiresource-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiresourcelist-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservice-apiregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicecondition-apiregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicelist-apiregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicespec-apiregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicestatus-apiregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiversions-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apparmorprofile-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/attachedvolume-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/auditannotation-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/auditannotation-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/auditannotation-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/awselasticblockstorevolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/azurediskvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/azurefilepersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/azurefilevolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/basicdevice-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/binding-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/boundobjectreference-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/capabilities-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/celdeviceselector-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cephfspersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cephfsvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequest-certificates-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequestcondition-certificates-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequestlist-certificates-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequestspec-certificates-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequeststatus-certificates-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cinderpersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cindervolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clientipconfig-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrole-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrolebinding-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrolebindinglist-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrolelist-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundle-certificates-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundlelist-certificates-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundleprojection-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundlespec-certificates-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/componentcondition-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/componentstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/componentstatuslist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/condition-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmap-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapenvsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapkeyselector-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmaplist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapnodeconfigsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapprojection-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/container-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerimage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerport-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerresizepolicy-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerresourcemetricsource-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerresourcemetricstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstate-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstaterunning-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstateterminated-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstatewaiting-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containeruser-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/controllerrevision-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/controllerrevisionlist-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjob-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjoblist-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjobspec-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjobstatus-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/crossversionobjectreference-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/crossversionobjectreference-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csidriver-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csidriverlist-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csidriverspec-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinode-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinodedriver-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinodelist-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinodespec-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csipersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csistoragecapacity-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csistoragecapacitylist-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csivolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcecolumndefinition-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourceconversion-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinition-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitioncondition-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionlist-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionnames-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionspec-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionstatus-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionversion-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcesubresources-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcesubresourcescale-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcesubresourcestatus-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcevalidation-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonendpoint-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonset-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetcondition-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetlist-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetspec-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetstatus-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetupdatestrategy-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deleteoptions-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deployment-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentcondition-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentlist-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentspec-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentstatus-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentstrategy-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/device-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceallocationconfiguration-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceallocationresult-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceattribute-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclaim-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclaimconfiguration-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclass-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclassconfiguration-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclasslist-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclassspec-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceconstraint-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/devicerequest-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/devicerequestallocationresult-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceselector-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/downwardapiprojection-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/downwardapivolumefile-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/downwardapivolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/emptydirvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpoint-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointaddress-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointconditions-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointhints-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointport-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointport-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpoints-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointslice-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointslicelist-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointslist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointsubset-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/envfromsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/envvar-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/envvarsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ephemeralcontainer-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ephemeralvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/event-events-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/event-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventlist-events-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventlist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventseries-events-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventseries-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eviction-policy-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/execaction-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/exemptprioritylevelconfiguration-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/exemptprioritylevelconfiguration-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/expressionwarning-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/expressionwarning-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/expressionwarning-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/externaldocumentation-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/externalmetricsource-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/externalmetricstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fcvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fieldselectorattributes-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fieldselectorrequirement-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fieldsv1-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flexpersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flexvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flockervolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowdistinguishermethod-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowdistinguishermethod-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschema-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschema-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemacondition-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemacondition-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemalist-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemalist-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemaspec-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemaspec-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemastatus-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemastatus-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/forzone-discovery-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/gcepersistentdiskvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/gitrepovolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/glusterfspersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/glusterfsvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupsubject-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupsubject-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupversionfordiscovery-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupversionresource-storagemigration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/grpcaction-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscaler-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscaler-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerbehavior-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalercondition-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerlist-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerlist-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerspec-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerspec-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerstatus-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hostalias-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hostip-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hostpathvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hpascalingpolicy-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hpascalingrules-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpgetaction-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpheader-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpingresspath-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpingressrulevalue-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/imagevolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/info-pkg-version.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingress-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressbackend-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclass-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclasslist-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclassparametersreference-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclassspec-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingresslist-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressloadbalanceringress-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressloadbalancerstatus-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressportstatus-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressrule-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressservicebackend-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressspec-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressstatus-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingresstls-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/intorstring-util-intstr.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipaddress-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipaddresslist-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipaddressspec-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipblock-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/iscsipersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/iscsivolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/job-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobcondition-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/joblist-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobspec-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobstatus-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobtemplatespec-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/json-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemaprops-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemapropsorarray-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemapropsorbool-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemapropsorstringarray-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/keytopath-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/labelselector-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/labelselectorattributes-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/labelselectorrequirement-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/lease-coordination-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasecandidate-coordination-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasecandidatelist-coordination-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasecandidatespec-coordination-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leaselist-coordination-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasespec-coordination-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/lifecycle-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/lifecyclehandler-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitedprioritylevelconfiguration-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitedprioritylevelconfiguration-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrange-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrangeitem-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrangelist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrangespec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitresponse-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitresponse-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/linuxcontaineruser-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/listmeta-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/loadbalanceringress-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/loadbalancerstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/localobjectreference-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/localsubjectaccessreview-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/localvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/managedfieldsentry-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchcondition-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchcondition-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchcondition-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchresources-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchresources-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchresources-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricidentifier-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricspec-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metrictarget-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricvaluestatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/microtime-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/migrationcondition-storagemigration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/modifyvolumestatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/mutatingwebhook-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/mutatingwebhookconfiguration-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/mutatingwebhookconfigurationlist-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namedrulewithoperations-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namedrulewithoperations-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namedrulewithoperations-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespace-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacecondition-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacelist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacespec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacestatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicy-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyegressrule-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyingressrule-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicylist-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicypeer-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyport-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyspec-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nfsvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/node-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeaddress-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeaffinity-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodecondition-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeconfigsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeconfigstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodedaemonendpoints-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodefeatures-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodelist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/noderuntimehandler-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/noderuntimehandlerfeatures-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeselector-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeselectorrequirement-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeselectorterm-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodespec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodestatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodesysteminfo-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourceattributes-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourcepolicyrule-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourcepolicyrule-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourcerule-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectfieldselector-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectmeta-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectmetricsource-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectmetricstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectreference-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/opaquedeviceconfiguration-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/overhead-node-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ownerreference-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramkind-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramkind-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramkind-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramref-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramref-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramref-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/parentreference-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/patch-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolume-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaim-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimcondition-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimlist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimspec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimtemplate-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumelist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumespec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumestatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/photonpersistentdiskvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/pod-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podaffinity-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podaffinityterm-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podantiaffinity-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podcondition-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudget-policy-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudgetlist-policy-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudgetspec-policy-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudgetstatus-policy-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddnsconfig-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddnsconfigoption-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicy-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicyonexitcodesrequirement-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicyonpodconditionspattern-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicyrule-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podip-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podlist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podos-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podreadinessgate-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podresourceclaim-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podresourceclaimstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontext-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontextlist-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontextspec-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontextstatus-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulinggate-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podsecuritycontext-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podsmetricsource-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podsmetricstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podspec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podtemplate-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podtemplatelist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podtemplatespec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/policyrule-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/policyruleswithsubjects-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/policyruleswithsubjects-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/portstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/portworxvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/preconditions-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/preferredschedulingterm-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/priorityclass-scheduling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/priorityclasslist-scheduling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfiguration-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfiguration-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationcondition-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationcondition-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationlist-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationlist-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationreference-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationreference-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationspec-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationspec-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationstatus-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationstatus-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/probe-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/projectedvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/quantity-resource.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/queuingconfiguration-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/queuingconfiguration-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/quobytevolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rawextension-pkg-runtime.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rbdpersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rbdvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicaset-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetcondition-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetlist-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetspec-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetstatus-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontroller-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollercondition-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollerlist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollerspec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollerstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceattributes-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaim-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaim-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimconsumerreference-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimlist-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimschedulingstatus-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimspec-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimstatus-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimtemplate-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimtemplatelist-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimtemplatespec-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcefieldselector-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcehealth-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcemetricsource-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcemetricstatus-autoscaling-v2.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcepolicyrule-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcepolicyrule-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcepool-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequota-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequotalist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequotaspec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequotastatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcerequirements-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcerule-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceslice-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceslicelist-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceslicespec-resource-v1alpha3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcestatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/role-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rolebinding-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rolebindinglist-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rolelist-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/roleref-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rollingupdatedaemonset-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rollingupdatedeployment-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rollingupdatestatefulsetstrategy-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rulewithoperations-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/runtimeclass-node-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/runtimeclasslist-node-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scale-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scaleiopersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scaleiovolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scalespec-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scalestatus-autoscaling-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scheduling-node-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scopedresourceselectorrequirement-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scopeselector-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/seccompprofile-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secret-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretenvsource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretkeyselector-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretlist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretprojection-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretreference-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/securitycontext-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selectablefield-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectaccessreview-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectaccessreviewspec-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreview-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreview-authentication-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreview-authentication-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreviewstatus-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreviewstatus-authentication-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreviewstatus-authentication-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectrulesreview-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectrulesreviewspec-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selinuxoptions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serveraddressbyclientcidr-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serverstorageversion-apiserverinternal-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/service-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccount-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccountlist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccountsubject-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccountsubject-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccounttokenprojection-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicebackendport-networking-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidr-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidrlist-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidrspec-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidrstatus-networking-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicelist-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceport-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicereference-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicereference-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicereference-apiregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicespec-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicestatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/sessionaffinityconfig-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/sleepaction-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulset-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetcondition-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetlist-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetordinals-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetpersistentvolumeclaimretentionpolicy-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetspec-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetstatus-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetupdatestrategy-apps-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/status-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statuscause-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statusdetails-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageclass-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageclasslist-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageospersistentvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageosvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversion-apiserverinternal-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversioncondition-apiserverinternal-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionlist-apiserverinternal-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigration-storagemigration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigrationlist-storagemigration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigrationspec-storagemigration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigrationstatus-storagemigration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionspec-apiserverinternal-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionstatus-apiserverinternal-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subject-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subject-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subject-rbac-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectaccessreview-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectaccessreviewspec-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectaccessreviewstatus-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectrulesreviewstatus-authorization-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/successpolicy-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/successpolicyrule-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/sysctl-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/taint-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tcpsocketaction-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/time-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequest-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequest-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequestspec-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequeststatus-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenreview-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenreviewspec-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenreviewstatus-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/toleration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/topologyselectorlabelrequirement-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/topologyselectorterm-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/topologyspreadconstraint-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typechecking-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typechecking-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typechecking-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typedlocalobjectreference-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typedobjectreference-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/uncountedterminatedpods-batch-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/userinfo-authentication-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/usersubject-flowcontrol-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/usersubject-flowcontrol-v1beta3.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicy-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicy-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicy-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybinding-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybinding-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybinding-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindinglist-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindinglist-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindinglist-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindingspec-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindingspec-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindingspec-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicylist-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicylist-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicylist-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicyspec-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicyspec-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicyspec-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicystatus-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicystatus-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicystatus-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingwebhook-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingwebhookconfiguration-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingwebhookconfigurationlist-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validation-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validation-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validation-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validationrule-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/variable-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/variable-admissionregistration-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/variable-admissionregistration-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volume-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachment-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentlist-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentsource-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentspec-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentstatus-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclass-storage-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclass-storage-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclasslist-storage-v1alpha1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclasslist-storage-v1beta1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumedevice-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeerror-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumemount-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumemountstatus-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumenodeaffinity-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumenoderesources-storage-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeprojection-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeresourcerequirements-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/vspherevirtualdiskvolumesource-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/watchevent-meta-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/webhookclientconfig-admissionregistration-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/webhookclientconfig-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/webhookconversion-apiextensions-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/weightedpodaffinityterm-v1.json create mode 100644 src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/windowssecuritycontextoptions-v1.json diff --git a/src/kubernetes_validate/crds/crd-alertmanagers.yaml b/src/kubernetes_validate/crds/crd-alertmanagers.yaml new file mode 100644 index 00000000..e9736791 --- /dev/null +++ b/src/kubernetes_validate/crds/crd-alertmanagers.yaml @@ -0,0 +1,6097 @@ +# https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.57.0/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.8.0 + creationTimestamp: null + name: alertmanagers.monitoring.coreos.com +spec: + group: monitoring.coreos.com + names: + categories: + - prometheus-operator + kind: Alertmanager + listKind: AlertmanagerList + plural: alertmanagers + shortNames: + - am + singular: alertmanager + scope: Namespaced + versions: + - additionalPrinterColumns: + - description: The version of Alertmanager + jsonPath: .spec.version + name: Version + type: string + - description: The desired replicas number of Alertmanagers + jsonPath: .spec.replicas + name: Replicas + type: integer + - jsonPath: .metadata.creationTimestamp + name: Age + type: date + name: v1 + schema: + openAPIV3Schema: + description: Alertmanager describes an Alertmanager cluster. + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: 'Specification of the desired behavior of the Alertmanager + cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status' + properties: + additionalPeers: + description: AdditionalPeers allows injecting a set of additional + Alertmanagers to peer with to form a highly available cluster. + items: + type: string + type: array + affinity: + description: If specified, the pod's scheduling constraints. + properties: + nodeAffinity: + description: Describes node affinity scheduling rules for the + pod. + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: The scheduler will prefer to schedule pods to + nodes that satisfy the affinity expressions specified by + this field, but it may choose a node that violates one or + more of the expressions. The node that is most preferred + is the one with the greatest sum of weights, i.e. for each + node that meets all of the scheduling requirements (resource + request, requiredDuringScheduling affinity expressions, + etc.), compute a sum by iterating through the elements of + this field and adding "weight" to the sum if the node matches + the corresponding matchExpressions; the node(s) with the + highest sum are the most preferred. + items: + description: An empty preferred scheduling term matches + all objects with implicit weight 0 (i.e. it's a no-op). + A null preferred scheduling term matches no objects (i.e. + is also a no-op). + properties: + preference: + description: A node selector term, associated with the + corresponding weight. + properties: + matchExpressions: + description: A list of node selector requirements + by node's labels. + items: + description: A node selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: The label key that the selector + applies to. + type: string + operator: + description: Represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists, DoesNotExist. Gt, and + Lt. + type: string + values: + description: An array of string values. If + the operator is In or NotIn, the values + array must be non-empty. If the operator + is Exists or DoesNotExist, the values array + must be empty. If the operator is Gt or + Lt, the values array must have a single + element, which will be interpreted as an + integer. This array is replaced during a + strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchFields: + description: A list of node selector requirements + by node's fields. + items: + description: A node selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: The label key that the selector + applies to. + type: string + operator: + description: Represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists, DoesNotExist. Gt, and + Lt. + type: string + values: + description: An array of string values. If + the operator is In or NotIn, the values + array must be non-empty. If the operator + is Exists or DoesNotExist, the values array + must be empty. If the operator is Gt or + Lt, the values array must have a single + element, which will be interpreted as an + integer. This array is replaced during a + strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + type: object + weight: + description: Weight associated with matching the corresponding + nodeSelectorTerm, in the range 1-100. + format: int32 + type: integer + required: + - preference + - weight + type: object + type: array + requiredDuringSchedulingIgnoredDuringExecution: + description: If the affinity requirements specified by this + field are not met at scheduling time, the pod will not be + scheduled onto the node. If the affinity requirements specified + by this field cease to be met at some point during pod execution + (e.g. due to an update), the system may or may not try to + eventually evict the pod from its node. + properties: + nodeSelectorTerms: + description: Required. A list of node selector terms. + The terms are ORed. + items: + description: A null or empty node selector term matches + no objects. The requirements of them are ANDed. The + TopologySelectorTerm type implements a subset of the + NodeSelectorTerm. + properties: + matchExpressions: + description: A list of node selector requirements + by node's labels. + items: + description: A node selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: The label key that the selector + applies to. + type: string + operator: + description: Represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists, DoesNotExist. Gt, and + Lt. + type: string + values: + description: An array of string values. If + the operator is In or NotIn, the values + array must be non-empty. If the operator + is Exists or DoesNotExist, the values array + must be empty. If the operator is Gt or + Lt, the values array must have a single + element, which will be interpreted as an + integer. This array is replaced during a + strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchFields: + description: A list of node selector requirements + by node's fields. + items: + description: A node selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: The label key that the selector + applies to. + type: string + operator: + description: Represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists, DoesNotExist. Gt, and + Lt. + type: string + values: + description: An array of string values. If + the operator is In or NotIn, the values + array must be non-empty. If the operator + is Exists or DoesNotExist, the values array + must be empty. If the operator is Gt or + Lt, the values array must have a single + element, which will be interpreted as an + integer. This array is replaced during a + strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + type: object + type: array + required: + - nodeSelectorTerms + type: object + type: object + podAffinity: + description: Describes pod affinity scheduling rules (e.g. co-locate + this pod in the same node, zone, etc. as some other pod(s)). + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: The scheduler will prefer to schedule pods to + nodes that satisfy the affinity expressions specified by + this field, but it may choose a node that violates one or + more of the expressions. The node that is most preferred + is the one with the greatest sum of weights, i.e. for each + node that meets all of the scheduling requirements (resource + request, requiredDuringScheduling affinity expressions, + etc.), compute a sum by iterating through the elements of + this field and adding "weight" to the sum if the node has + pods which matches the corresponding podAffinityTerm; the + node(s) with the highest sum are the most preferred. + items: + description: The weights of all of the matched WeightedPodAffinityTerm + fields are added per-node to find the most preferred node(s) + properties: + podAffinityTerm: + description: Required. A pod affinity term, associated + with the corresponding weight. + properties: + labelSelector: + description: A label query over a set of resources, + in this case pods. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are + ANDed. + items: + description: A label selector requirement + is a selector that contains values, a key, + and an operator that relates the key and + values. + properties: + key: + description: key is the label key that + the selector applies to. + type: string + operator: + description: operator represents a key's + relationship to a set of values. Valid + operators are In, NotIn, Exists and + DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. + If the operator is Exists or DoesNotExist, + the values array must be empty. This + array is replaced during a strategic + merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is + "In", and the values array contains only "value". + The requirements are ANDed. + type: object + type: object + namespaceSelector: + description: A label query over the set of namespaces + that the term applies to. The term is applied + to the union of the namespaces selected by this + field and the ones listed in the namespaces field. + null selector and null or empty namespaces list + means "this pod's namespace". An empty selector + ({}) matches all namespaces. This field is beta-level + and is only honored when PodAffinityNamespaceSelector + feature is enabled. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are + ANDed. + items: + description: A label selector requirement + is a selector that contains values, a key, + and an operator that relates the key and + values. + properties: + key: + description: key is the label key that + the selector applies to. + type: string + operator: + description: operator represents a key's + relationship to a set of values. Valid + operators are In, NotIn, Exists and + DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. + If the operator is Exists or DoesNotExist, + the values array must be empty. This + array is replaced during a strategic + merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is + "In", and the values array contains only "value". + The requirements are ANDed. + type: object + type: object + namespaces: + description: namespaces specifies a static list + of namespace names that the term applies to. The + term is applied to the union of the namespaces + listed in this field and the ones selected by + namespaceSelector. null or empty namespaces list + and null namespaceSelector means "this pod's namespace" + items: + type: string + type: array + topologyKey: + description: This pod should be co-located (affinity) + or not co-located (anti-affinity) with the pods + matching the labelSelector in the specified namespaces, + where co-located is defined as running on a node + whose value of the label with key topologyKey + matches that of any node on which any of the selected + pods is running. Empty topologyKey is not allowed. + type: string + required: + - topologyKey + type: object + weight: + description: weight associated with matching the corresponding + podAffinityTerm, in the range 1-100. + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + type: array + requiredDuringSchedulingIgnoredDuringExecution: + description: If the affinity requirements specified by this + field are not met at scheduling time, the pod will not be + scheduled onto the node. If the affinity requirements specified + by this field cease to be met at some point during pod execution + (e.g. due to a pod label update), the system may or may + not try to eventually evict the pod from its node. When + there are multiple elements, the lists of nodes corresponding + to each podAffinityTerm are intersected, i.e. all terms + must be satisfied. + items: + description: Defines a set of pods (namely those matching + the labelSelector relative to the given namespace(s)) + that this pod should be co-located (affinity) or not co-located + (anti-affinity) with, where co-located is defined as running + on a node whose value of the label with key + matches that of any node on which a pod of the set of + pods is running + properties: + labelSelector: + description: A label query over a set of resources, + in this case pods. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are ANDed. + items: + description: A label selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: key is the label key that the + selector applies to. + type: string + operator: + description: operator represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. If the + operator is Exists or DoesNotExist, the + values array must be empty. This array is + replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is "In", + and the values array contains only "value". The + requirements are ANDed. + type: object + type: object + namespaceSelector: + description: A label query over the set of namespaces + that the term applies to. The term is applied to the + union of the namespaces selected by this field and + the ones listed in the namespaces field. null selector + and null or empty namespaces list means "this pod's + namespace". An empty selector ({}) matches all namespaces. + This field is beta-level and is only honored when + PodAffinityNamespaceSelector feature is enabled. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are ANDed. + items: + description: A label selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: key is the label key that the + selector applies to. + type: string + operator: + description: operator represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. If the + operator is Exists or DoesNotExist, the + values array must be empty. This array is + replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is "In", + and the values array contains only "value". The + requirements are ANDed. + type: object + type: object + namespaces: + description: namespaces specifies a static list of namespace + names that the term applies to. The term is applied + to the union of the namespaces listed in this field + and the ones selected by namespaceSelector. null or + empty namespaces list and null namespaceSelector means + "this pod's namespace" + items: + type: string + type: array + topologyKey: + description: This pod should be co-located (affinity) + or not co-located (anti-affinity) with the pods matching + the labelSelector in the specified namespaces, where + co-located is defined as running on a node whose value + of the label with key topologyKey matches that of + any node on which any of the selected pods is running. + Empty topologyKey is not allowed. + type: string + required: + - topologyKey + type: object + type: array + type: object + podAntiAffinity: + description: Describes pod anti-affinity scheduling rules (e.g. + avoid putting this pod in the same node, zone, etc. as some + other pod(s)). + properties: + preferredDuringSchedulingIgnoredDuringExecution: + description: The scheduler will prefer to schedule pods to + nodes that satisfy the anti-affinity expressions specified + by this field, but it may choose a node that violates one + or more of the expressions. The node that is most preferred + is the one with the greatest sum of weights, i.e. for each + node that meets all of the scheduling requirements (resource + request, requiredDuringScheduling anti-affinity expressions, + etc.), compute a sum by iterating through the elements of + this field and adding "weight" to the sum if the node has + pods which matches the corresponding podAffinityTerm; the + node(s) with the highest sum are the most preferred. + items: + description: The weights of all of the matched WeightedPodAffinityTerm + fields are added per-node to find the most preferred node(s) + properties: + podAffinityTerm: + description: Required. A pod affinity term, associated + with the corresponding weight. + properties: + labelSelector: + description: A label query over a set of resources, + in this case pods. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are + ANDed. + items: + description: A label selector requirement + is a selector that contains values, a key, + and an operator that relates the key and + values. + properties: + key: + description: key is the label key that + the selector applies to. + type: string + operator: + description: operator represents a key's + relationship to a set of values. Valid + operators are In, NotIn, Exists and + DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. + If the operator is Exists or DoesNotExist, + the values array must be empty. This + array is replaced during a strategic + merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is + "In", and the values array contains only "value". + The requirements are ANDed. + type: object + type: object + namespaceSelector: + description: A label query over the set of namespaces + that the term applies to. The term is applied + to the union of the namespaces selected by this + field and the ones listed in the namespaces field. + null selector and null or empty namespaces list + means "this pod's namespace". An empty selector + ({}) matches all namespaces. This field is beta-level + and is only honored when PodAffinityNamespaceSelector + feature is enabled. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are + ANDed. + items: + description: A label selector requirement + is a selector that contains values, a key, + and an operator that relates the key and + values. + properties: + key: + description: key is the label key that + the selector applies to. + type: string + operator: + description: operator represents a key's + relationship to a set of values. Valid + operators are In, NotIn, Exists and + DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. + If the operator is Exists or DoesNotExist, + the values array must be empty. This + array is replaced during a strategic + merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is + "In", and the values array contains only "value". + The requirements are ANDed. + type: object + type: object + namespaces: + description: namespaces specifies a static list + of namespace names that the term applies to. The + term is applied to the union of the namespaces + listed in this field and the ones selected by + namespaceSelector. null or empty namespaces list + and null namespaceSelector means "this pod's namespace" + items: + type: string + type: array + topologyKey: + description: This pod should be co-located (affinity) + or not co-located (anti-affinity) with the pods + matching the labelSelector in the specified namespaces, + where co-located is defined as running on a node + whose value of the label with key topologyKey + matches that of any node on which any of the selected + pods is running. Empty topologyKey is not allowed. + type: string + required: + - topologyKey + type: object + weight: + description: weight associated with matching the corresponding + podAffinityTerm, in the range 1-100. + format: int32 + type: integer + required: + - podAffinityTerm + - weight + type: object + type: array + requiredDuringSchedulingIgnoredDuringExecution: + description: If the anti-affinity requirements specified by + this field are not met at scheduling time, the pod will + not be scheduled onto the node. If the anti-affinity requirements + specified by this field cease to be met at some point during + pod execution (e.g. due to a pod label update), the system + may or may not try to eventually evict the pod from its + node. When there are multiple elements, the lists of nodes + corresponding to each podAffinityTerm are intersected, i.e. + all terms must be satisfied. + items: + description: Defines a set of pods (namely those matching + the labelSelector relative to the given namespace(s)) + that this pod should be co-located (affinity) or not co-located + (anti-affinity) with, where co-located is defined as running + on a node whose value of the label with key + matches that of any node on which a pod of the set of + pods is running + properties: + labelSelector: + description: A label query over a set of resources, + in this case pods. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are ANDed. + items: + description: A label selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: key is the label key that the + selector applies to. + type: string + operator: + description: operator represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. If the + operator is Exists or DoesNotExist, the + values array must be empty. This array is + replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is "In", + and the values array contains only "value". The + requirements are ANDed. + type: object + type: object + namespaceSelector: + description: A label query over the set of namespaces + that the term applies to. The term is applied to the + union of the namespaces selected by this field and + the ones listed in the namespaces field. null selector + and null or empty namespaces list means "this pod's + namespace". An empty selector ({}) matches all namespaces. + This field is beta-level and is only honored when + PodAffinityNamespaceSelector feature is enabled. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are ANDed. + items: + description: A label selector requirement is a + selector that contains values, a key, and an + operator that relates the key and values. + properties: + key: + description: key is the label key that the + selector applies to. + type: string + operator: + description: operator represents a key's relationship + to a set of values. Valid operators are + In, NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. If the + operator is Exists or DoesNotExist, the + values array must be empty. This array is + replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is "In", + and the values array contains only "value". The + requirements are ANDed. + type: object + type: object + namespaces: + description: namespaces specifies a static list of namespace + names that the term applies to. The term is applied + to the union of the namespaces listed in this field + and the ones selected by namespaceSelector. null or + empty namespaces list and null namespaceSelector means + "this pod's namespace" + items: + type: string + type: array + topologyKey: + description: This pod should be co-located (affinity) + or not co-located (anti-affinity) with the pods matching + the labelSelector in the specified namespaces, where + co-located is defined as running on a node whose value + of the label with key topologyKey matches that of + any node on which any of the selected pods is running. + Empty topologyKey is not allowed. + type: string + required: + - topologyKey + type: object + type: array + type: object + type: object + alertmanagerConfigNamespaceSelector: + description: Namespaces to be selected for AlertmanagerConfig discovery. + If nil, only check own namespace. + properties: + matchExpressions: + description: matchExpressions is a list of label selector requirements. + The requirements are ANDed. + items: + description: A label selector requirement is a selector that + contains values, a key, and an operator that relates the key + and values. + properties: + key: + description: key is the label key that the selector applies + to. + type: string + operator: + description: operator represents a key's relationship to + a set of values. Valid operators are In, NotIn, Exists + and DoesNotExist. + type: string + values: + description: values is an array of string values. If the + operator is In or NotIn, the values array must be non-empty. + If the operator is Exists or DoesNotExist, the values + array must be empty. This array is replaced during a strategic + merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} pairs. A single + {key,value} in the matchLabels map is equivalent to an element + of matchExpressions, whose key field is "key", the operator + is "In", and the values array contains only "value". The requirements + are ANDed. + type: object + type: object + alertmanagerConfigSelector: + description: AlertmanagerConfigs to be selected for to merge and configure + Alertmanager with. + properties: + matchExpressions: + description: matchExpressions is a list of label selector requirements. + The requirements are ANDed. + items: + description: A label selector requirement is a selector that + contains values, a key, and an operator that relates the key + and values. + properties: + key: + description: key is the label key that the selector applies + to. + type: string + operator: + description: operator represents a key's relationship to + a set of values. Valid operators are In, NotIn, Exists + and DoesNotExist. + type: string + values: + description: values is an array of string values. If the + operator is In or NotIn, the values array must be non-empty. + If the operator is Exists or DoesNotExist, the values + array must be empty. This array is replaced during a strategic + merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} pairs. A single + {key,value} in the matchLabels map is equivalent to an element + of matchExpressions, whose key field is "key", the operator + is "In", and the values array contains only "value". The requirements + are ANDed. + type: object + type: object + alertmanagerConfiguration: + description: 'EXPERIMENTAL: alertmanagerConfiguration specifies the + global Alertmanager configuration. If defined, it takes precedence + over the `configSecret` field. This field may change in future releases.' + properties: + name: + description: The name of the AlertmanagerConfig resource which + is used to generate the global configuration. It must be defined + in the same namespace as the Alertmanager object. The operator + will not enforce a `namespace` label for routes and inhibition + rules. + minLength: 1 + type: string + type: object + baseImage: + description: 'Base image that is used to deploy pods, without tag. + Deprecated: use ''image'' instead' + type: string + clusterAdvertiseAddress: + description: 'ClusterAdvertiseAddress is the explicit address to advertise + in cluster. Needs to be provided for non RFC1918 [1] (public) addresses. + [1] RFC1918: https://tools.ietf.org/html/rfc1918' + type: string + clusterGossipInterval: + description: Interval between gossip attempts. + type: string + clusterPeerTimeout: + description: Timeout for cluster peering. + type: string + clusterPushpullInterval: + description: Interval between pushpull attempts. + type: string + configMaps: + description: ConfigMaps is a list of ConfigMaps in the same namespace + as the Alertmanager object, which shall be mounted into the Alertmanager + Pods. The ConfigMaps are mounted into /etc/alertmanager/configmaps/. + items: + type: string + type: array + configSecret: + description: "ConfigSecret is the name of a Kubernetes Secret in the + same namespace as the Alertmanager object, which contains the configuration + for this Alertmanager instance. If empty, it defaults to 'alertmanager-'. + \n The Alertmanager configuration should be available under the + `alertmanager.yaml` key. Additional keys from the original secret + are copied to the generated secret. \n If either the secret or the + `alertmanager.yaml` key is missing, the operator provisions an Alertmanager + configuration with one empty receiver (effectively dropping alert + notifications)." + type: string + containers: + description: 'Containers allows injecting additional containers. This + is meant to allow adding an authentication proxy to an Alertmanager + pod. Containers described here modify an operator generated container + if they share the same name and modifications are done via a strategic + merge patch. The current container names are: `alertmanager` and + `config-reloader`. Overriding containers is entirely outside the + scope of what the maintainers will support and by doing so, you + accept that this behaviour may break at any time without notice.' + items: + description: A single application container that you want to run + within a pod. + properties: + args: + description: 'Arguments to the entrypoint. The docker image''s + CMD is used if this is not provided. Variable references $(VAR_NAME) + are expanded using the container''s environment. If a variable + cannot be resolved, the reference in the input string will + be unchanged. Double $$ are reduced to a single $, which allows + for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will + produce the string literal "$(VAR_NAME)". Escaped references + will never be expanded, regardless of whether the variable + exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell' + items: + type: string + type: array + command: + description: 'Entrypoint array. Not executed within a shell. + The docker image''s ENTRYPOINT is used if this is not provided. + Variable references $(VAR_NAME) are expanded using the container''s + environment. If a variable cannot be resolved, the reference + in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: + i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". + Escaped references will never be expanded, regardless of whether + the variable exists or not. Cannot be updated. More info: + https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell' + items: + type: string + type: array + env: + description: List of environment variables to set in the container. + Cannot be updated. + items: + description: EnvVar represents an environment variable present + in a Container. + properties: + name: + description: Name of the environment variable. Must be + a C_IDENTIFIER. + type: string + value: + description: 'Variable references $(VAR_NAME) are expanded + using the previously defined environment variables in + the container and any service environment variables. + If a variable cannot be resolved, the reference in the + input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) + syntax: i.e. "$$(VAR_NAME)" will produce the string + literal "$(VAR_NAME)". Escaped references will never + be expanded, regardless of whether the variable exists + or not. Defaults to "".' + type: string + valueFrom: + description: Source for the environment variable's value. + Cannot be used if value is not empty. + properties: + configMapKeyRef: + description: Selects a key of a ConfigMap. + properties: + key: + description: The key to select. + type: string + name: + description: 'Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, + uid?' + type: string + optional: + description: Specify whether the ConfigMap or + its key must be defined + type: boolean + required: + - key + type: object + fieldRef: + description: 'Selects a field of the pod: supports + metadata.name, metadata.namespace, `metadata.labels['''']`, + `metadata.annotations['''']`, spec.nodeName, + spec.serviceAccountName, status.hostIP, status.podIP, + status.podIPs.' + properties: + apiVersion: + description: Version of the schema the FieldPath + is written in terms of, defaults to "v1". + type: string + fieldPath: + description: Path of the field to select in the + specified API version. + type: string + required: + - fieldPath + type: object + resourceFieldRef: + description: 'Selects a resource of the container: + only resources limits and requests (limits.cpu, + limits.memory, limits.ephemeral-storage, requests.cpu, + requests.memory and requests.ephemeral-storage) + are currently supported.' + properties: + containerName: + description: 'Container name: required for volumes, + optional for env vars' + type: string + divisor: + anyOf: + - type: integer + - type: string + description: Specifies the output format of the + exposed resources, defaults to "1" + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + description: 'Required: resource to select' + type: string + required: + - resource + type: object + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + description: 'Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, + uid?' + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + type: object + required: + - name + type: object + type: array + envFrom: + description: List of sources to populate environment variables + in the container. The keys defined within a source must be + a C_IDENTIFIER. All invalid keys will be reported as an event + when the container is starting. When a key exists in multiple + sources, the value associated with the last source will take + precedence. Values defined by an Env with a duplicate key + will take precedence. Cannot be updated. + items: + description: EnvFromSource represents the source of a set + of ConfigMaps + properties: + configMapRef: + description: The ConfigMap to select from + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, + uid?' + type: string + optional: + description: Specify whether the ConfigMap must be + defined + type: boolean + type: object + prefix: + description: An optional identifier to prepend to each + key in the ConfigMap. Must be a C_IDENTIFIER. + type: string + secretRef: + description: The Secret to select from + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, + uid?' + type: string + optional: + description: Specify whether the Secret must be defined + type: boolean + type: object + type: object + type: array + image: + description: 'Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + This field is optional to allow higher level config management + to default or override container images in workload controllers + like Deployments and StatefulSets.' + type: string + imagePullPolicy: + description: 'Image pull policy. One of Always, Never, IfNotPresent. + Defaults to Always if :latest tag is specified, or IfNotPresent + otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images' + type: string + lifecycle: + description: Actions that the management system should take + in response to container lifecycle events. Cannot be updated. + properties: + postStart: + description: 'PostStart is called immediately after a container + is created. If the handler fails, the container is terminated + and restarted according to its restart policy. Other management + of the container blocks until the hook completes. More + info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks' + properties: + exec: + description: Exec specifies the action to take. + properties: + command: + description: Command is the command line to execute + inside the container, the working directory for + the command is root ('/') in the container's + filesystem. The command is simply exec'd, it is + not run inside a shell, so traditional shell instructions + ('|', etc) won't work. To use a shell, you need + to explicitly call out to that shell. Exit status + of 0 is treated as live/healthy and non-zero is + unhealthy. + items: + type: string + type: array + type: object + httpGet: + description: HTTPGet specifies the http request to perform. + properties: + host: + description: Host name to connect to, defaults to + the pod IP. You probably want to set "Host" in + httpHeaders instead. + type: string + httpHeaders: + description: Custom headers to set in the request. + HTTP allows repeated headers. + items: + description: HTTPHeader describes a custom header + to be used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: integer + - type: string + description: Name or number of the port to access + on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + scheme: + description: Scheme to use for connecting to the + host. Defaults to HTTP. + type: string + required: + - port + type: object + tcpSocket: + description: Deprecated. TCPSocket is NOT supported + as a LifecycleHandler and kept for the backward compatibility. + There are no validation of this field and lifecycle + hooks will fail in runtime when tcp handler is specified. + properties: + host: + description: 'Optional: Host name to connect to, + defaults to the pod IP.' + type: string + port: + anyOf: + - type: integer + - type: string + description: Number or name of the port to access + on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + preStop: + description: 'PreStop is called immediately before a container + is terminated due to an API request or management event + such as liveness/startup probe failure, preemption, resource + contention, etc. The handler is not called if the container + crashes or exits. The Pod''s termination grace period + countdown begins before the PreStop hook is executed. + Regardless of the outcome of the handler, the container + will eventually terminate within the Pod''s termination + grace period (unless delayed by finalizers). Other management + of the container blocks until the hook completes or until + the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks' + properties: + exec: + description: Exec specifies the action to take. + properties: + command: + description: Command is the command line to execute + inside the container, the working directory for + the command is root ('/') in the container's + filesystem. The command is simply exec'd, it is + not run inside a shell, so traditional shell instructions + ('|', etc) won't work. To use a shell, you need + to explicitly call out to that shell. Exit status + of 0 is treated as live/healthy and non-zero is + unhealthy. + items: + type: string + type: array + type: object + httpGet: + description: HTTPGet specifies the http request to perform. + properties: + host: + description: Host name to connect to, defaults to + the pod IP. You probably want to set "Host" in + httpHeaders instead. + type: string + httpHeaders: + description: Custom headers to set in the request. + HTTP allows repeated headers. + items: + description: HTTPHeader describes a custom header + to be used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: integer + - type: string + description: Name or number of the port to access + on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + scheme: + description: Scheme to use for connecting to the + host. Defaults to HTTP. + type: string + required: + - port + type: object + tcpSocket: + description: Deprecated. TCPSocket is NOT supported + as a LifecycleHandler and kept for the backward compatibility. + There are no validation of this field and lifecycle + hooks will fail in runtime when tcp handler is specified. + properties: + host: + description: 'Optional: Host name to connect to, + defaults to the pod IP.' + type: string + port: + anyOf: + - type: integer + - type: string + description: Number or name of the port to access + on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + type: object + livenessProbe: + description: 'Periodic probe of container liveness. Container + will be restarted if the probe fails. Cannot be updated. More + info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + properties: + exec: + description: Exec specifies the action to take. + properties: + command: + description: Command is the command line to execute + inside the container, the working directory for the + command is root ('/') in the container's filesystem. + The command is simply exec'd, it is not run inside + a shell, so traditional shell instructions ('|', etc) + won't work. To use a shell, you need to explicitly + call out to that shell. Exit status of 0 is treated + as live/healthy and non-zero is unhealthy. + items: + type: string + type: array + type: object + failureThreshold: + description: Minimum consecutive failures for the probe + to be considered failed after having succeeded. Defaults + to 3. Minimum value is 1. + format: int32 + type: integer + grpc: + description: GRPC specifies an action involving a GRPC port. + This is an alpha field and requires enabling GRPCContainerProbe + feature gate. + properties: + port: + description: Port number of the gRPC service. Number + must be in the range 1 to 65535. + format: int32 + type: integer + service: + description: "Service is the name of the service to + place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). + \n If this is not specified, the default behavior + is defined by gRPC." + type: string + required: + - port + type: object + httpGet: + description: HTTPGet specifies the http request to perform. + properties: + host: + description: Host name to connect to, defaults to the + pod IP. You probably want to set "Host" in httpHeaders + instead. + type: string + httpHeaders: + description: Custom headers to set in the request. HTTP + allows repeated headers. + items: + description: HTTPHeader describes a custom header + to be used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: integer + - type: string + description: Name or number of the port to access on + the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + scheme: + description: Scheme to use for connecting to the host. + Defaults to HTTP. + type: string + required: + - port + type: object + initialDelaySeconds: + description: 'Number of seconds after the container has + started before liveness probes are initiated. More info: + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + format: int32 + type: integer + periodSeconds: + description: How often (in seconds) to perform the probe. + Default to 10 seconds. Minimum value is 1. + format: int32 + type: integer + successThreshold: + description: Minimum consecutive successes for the probe + to be considered successful after having failed. Defaults + to 1. Must be 1 for liveness and startup. Minimum value + is 1. + format: int32 + type: integer + tcpSocket: + description: TCPSocket specifies an action involving a TCP + port. + properties: + host: + description: 'Optional: Host name to connect to, defaults + to the pod IP.' + type: string + port: + anyOf: + - type: integer + - type: string + description: Number or name of the port to access on + the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + description: Optional duration in seconds the pod needs + to terminate gracefully upon probe failure. The grace + period is the duration in seconds after the processes + running in the pod are sent a termination signal and the + time when the processes are forcibly halted with a kill + signal. Set this value longer than the expected cleanup + time for your process. If this value is nil, the pod's + terminationGracePeriodSeconds will be used. Otherwise, + this value overrides the value provided by the pod spec. + Value must be non-negative integer. The value zero indicates + stop immediately via the kill signal (no opportunity to + shut down). This is a beta field and requires enabling + ProbeTerminationGracePeriod feature gate. Minimum value + is 1. spec.terminationGracePeriodSeconds is used if unset. + format: int64 + type: integer + timeoutSeconds: + description: 'Number of seconds after which the probe times + out. Defaults to 1 second. Minimum value is 1. More info: + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + format: int32 + type: integer + type: object + name: + description: Name of the container specified as a DNS_LABEL. + Each container in a pod must have a unique name (DNS_LABEL). + Cannot be updated. + type: string + ports: + description: List of ports to expose from the container. Exposing + a port here gives the system additional information about + the network connections a container uses, but is primarily + informational. Not specifying a port here DOES NOT prevent + that port from being exposed. Any port which is listening + on the default "0.0.0.0" address inside a container will be + accessible from the network. Cannot be updated. + items: + description: ContainerPort represents a network port in a + single container. + properties: + containerPort: + description: Number of port to expose on the pod's IP + address. This must be a valid port number, 0 < x < 65536. + format: int32 + type: integer + hostIP: + description: What host IP to bind the external port to. + type: string + hostPort: + description: Number of port to expose on the host. If + specified, this must be a valid port number, 0 < x < + 65536. If HostNetwork is specified, this must match + ContainerPort. Most containers do not need this. + format: int32 + type: integer + name: + description: If specified, this must be an IANA_SVC_NAME + and unique within the pod. Each named port in a pod + must have a unique name. Name for the port that can + be referred to by services. + type: string + protocol: + default: TCP + description: Protocol for port. Must be UDP, TCP, or SCTP. + Defaults to "TCP". + type: string + required: + - containerPort + type: object + type: array + x-kubernetes-list-map-keys: + - containerPort + - protocol + x-kubernetes-list-type: map + readinessProbe: + description: 'Periodic probe of container service readiness. + Container will be removed from service endpoints if the probe + fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + properties: + exec: + description: Exec specifies the action to take. + properties: + command: + description: Command is the command line to execute + inside the container, the working directory for the + command is root ('/') in the container's filesystem. + The command is simply exec'd, it is not run inside + a shell, so traditional shell instructions ('|', etc) + won't work. To use a shell, you need to explicitly + call out to that shell. Exit status of 0 is treated + as live/healthy and non-zero is unhealthy. + items: + type: string + type: array + type: object + failureThreshold: + description: Minimum consecutive failures for the probe + to be considered failed after having succeeded. Defaults + to 3. Minimum value is 1. + format: int32 + type: integer + grpc: + description: GRPC specifies an action involving a GRPC port. + This is an alpha field and requires enabling GRPCContainerProbe + feature gate. + properties: + port: + description: Port number of the gRPC service. Number + must be in the range 1 to 65535. + format: int32 + type: integer + service: + description: "Service is the name of the service to + place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). + \n If this is not specified, the default behavior + is defined by gRPC." + type: string + required: + - port + type: object + httpGet: + description: HTTPGet specifies the http request to perform. + properties: + host: + description: Host name to connect to, defaults to the + pod IP. You probably want to set "Host" in httpHeaders + instead. + type: string + httpHeaders: + description: Custom headers to set in the request. HTTP + allows repeated headers. + items: + description: HTTPHeader describes a custom header + to be used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: integer + - type: string + description: Name or number of the port to access on + the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + scheme: + description: Scheme to use for connecting to the host. + Defaults to HTTP. + type: string + required: + - port + type: object + initialDelaySeconds: + description: 'Number of seconds after the container has + started before liveness probes are initiated. More info: + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + format: int32 + type: integer + periodSeconds: + description: How often (in seconds) to perform the probe. + Default to 10 seconds. Minimum value is 1. + format: int32 + type: integer + successThreshold: + description: Minimum consecutive successes for the probe + to be considered successful after having failed. Defaults + to 1. Must be 1 for liveness and startup. Minimum value + is 1. + format: int32 + type: integer + tcpSocket: + description: TCPSocket specifies an action involving a TCP + port. + properties: + host: + description: 'Optional: Host name to connect to, defaults + to the pod IP.' + type: string + port: + anyOf: + - type: integer + - type: string + description: Number or name of the port to access on + the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + description: Optional duration in seconds the pod needs + to terminate gracefully upon probe failure. The grace + period is the duration in seconds after the processes + running in the pod are sent a termination signal and the + time when the processes are forcibly halted with a kill + signal. Set this value longer than the expected cleanup + time for your process. If this value is nil, the pod's + terminationGracePeriodSeconds will be used. Otherwise, + this value overrides the value provided by the pod spec. + Value must be non-negative integer. The value zero indicates + stop immediately via the kill signal (no opportunity to + shut down). This is a beta field and requires enabling + ProbeTerminationGracePeriod feature gate. Minimum value + is 1. spec.terminationGracePeriodSeconds is used if unset. + format: int64 + type: integer + timeoutSeconds: + description: 'Number of seconds after which the probe times + out. Defaults to 1 second. Minimum value is 1. More info: + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + format: int32 + type: integer + type: object + resources: + description: 'Compute Resources required by this container. + Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + properties: + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Limits describes the maximum amount of compute + resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Requests describes the minimum amount of compute + resources required. If Requests is omitted for a container, + it defaults to Limits if that is explicitly specified, + otherwise to an implementation-defined value. More info: + https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + type: object + securityContext: + description: 'SecurityContext defines the security options the + container should be run with. If set, the fields of SecurityContext + override the equivalent fields of PodSecurityContext. More + info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/' + properties: + allowPrivilegeEscalation: + description: 'AllowPrivilegeEscalation controls whether + a process can gain more privileges than its parent process. + This bool directly controls if the no_new_privs flag will + be set on the container process. AllowPrivilegeEscalation + is true always when the container is: 1) run as Privileged + 2) has CAP_SYS_ADMIN Note that this field cannot be set + when spec.os.name is windows.' + type: boolean + capabilities: + description: The capabilities to add/drop when running containers. + Defaults to the default set of capabilities granted by + the container runtime. Note that this field cannot be + set when spec.os.name is windows. + properties: + add: + description: Added capabilities + items: + description: Capability represent POSIX capabilities + type + type: string + type: array + drop: + description: Removed capabilities + items: + description: Capability represent POSIX capabilities + type + type: string + type: array + type: object + privileged: + description: Run container in privileged mode. Processes + in privileged containers are essentially equivalent to + root on the host. Defaults to false. Note that this field + cannot be set when spec.os.name is windows. + type: boolean + procMount: + description: procMount denotes the type of proc mount to + use for the containers. The default is DefaultProcMount + which uses the container runtime defaults for readonly + paths and masked paths. This requires the ProcMountType + feature flag to be enabled. Note that this field cannot + be set when spec.os.name is windows. + type: string + readOnlyRootFilesystem: + description: Whether this container has a read-only root + filesystem. Default is false. Note that this field cannot + be set when spec.os.name is windows. + type: boolean + runAsGroup: + description: The GID to run the entrypoint of the container + process. Uses runtime default if unset. May also be set + in PodSecurityContext. If set in both SecurityContext + and PodSecurityContext, the value specified in SecurityContext + takes precedence. Note that this field cannot be set when + spec.os.name is windows. + format: int64 + type: integer + runAsNonRoot: + description: Indicates that the container must run as a + non-root user. If true, the Kubelet will validate the + image at runtime to ensure that it does not run as UID + 0 (root) and fail to start the container if it does. If + unset or false, no such validation will be performed. + May also be set in PodSecurityContext. If set in both + SecurityContext and PodSecurityContext, the value specified + in SecurityContext takes precedence. + type: boolean + runAsUser: + description: The UID to run the entrypoint of the container + process. Defaults to user specified in image metadata + if unspecified. May also be set in PodSecurityContext. If + set in both SecurityContext and PodSecurityContext, the + value specified in SecurityContext takes precedence. Note + that this field cannot be set when spec.os.name is windows. + format: int64 + type: integer + seLinuxOptions: + description: The SELinux context to be applied to the container. + If unspecified, the container runtime will allocate a + random SELinux context for each container. May also be + set in PodSecurityContext. If set in both SecurityContext + and PodSecurityContext, the value specified in SecurityContext + takes precedence. Note that this field cannot be set when + spec.os.name is windows. + properties: + level: + description: Level is SELinux level label that applies + to the container. + type: string + role: + description: Role is a SELinux role label that applies + to the container. + type: string + type: + description: Type is a SELinux type label that applies + to the container. + type: string + user: + description: User is a SELinux user label that applies + to the container. + type: string + type: object + seccompProfile: + description: The seccomp options to use by this container. + If seccomp options are provided at both the pod & container + level, the container options override the pod options. + Note that this field cannot be set when spec.os.name is + windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile defined + in a file on the node should be used. The profile + must be preconfigured on the node to work. Must be + a descending path, relative to the kubelet's configured + seccomp profile location. Must only be set if type + is "Localhost". + type: string + type: + description: "type indicates which kind of seccomp profile + will be applied. Valid options are: \n Localhost - + a profile defined in a file on the node should be + used. RuntimeDefault - the container runtime default + profile should be used. Unconfined - no profile should + be applied." + type: string + required: + - type + type: object + windowsOptions: + description: The Windows specific settings applied to all + containers. If unspecified, the options from the PodSecurityContext + will be used. If set in both SecurityContext and PodSecurityContext, + the value specified in SecurityContext takes precedence. + Note that this field cannot be set when spec.os.name is + linux. + properties: + gmsaCredentialSpec: + description: GMSACredentialSpec is where the GMSA admission + webhook (https://github.com/kubernetes-sigs/windows-gmsa) + inlines the contents of the GMSA credential spec named + by the GMSACredentialSpecName field. + type: string + gmsaCredentialSpecName: + description: GMSACredentialSpecName is the name of the + GMSA credential spec to use. + type: string + hostProcess: + description: HostProcess determines if a container should + be run as a 'Host Process' container. This field is + alpha-level and will only be honored by components + that enable the WindowsHostProcessContainers feature + flag. Setting this field without the feature flag + will result in errors when validating the Pod. All + of a Pod's containers must have the same effective + HostProcess value (it is not allowed to have a mix + of HostProcess containers and non-HostProcess containers). In + addition, if HostProcess is true then HostNetwork + must also be set to true. + type: boolean + runAsUserName: + description: The UserName in Windows to run the entrypoint + of the container process. Defaults to the user specified + in image metadata if unspecified. May also be set + in PodSecurityContext. If set in both SecurityContext + and PodSecurityContext, the value specified in SecurityContext + takes precedence. + type: string + type: object + type: object + startupProbe: + description: 'StartupProbe indicates that the Pod has successfully + initialized. If specified, no other probes are executed until + this completes successfully. If this probe fails, the Pod + will be restarted, just as if the livenessProbe failed. This + can be used to provide different probe parameters at the beginning + of a Pod''s lifecycle, when it might take a long time to load + data or warm a cache, than during steady-state operation. + This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + properties: + exec: + description: Exec specifies the action to take. + properties: + command: + description: Command is the command line to execute + inside the container, the working directory for the + command is root ('/') in the container's filesystem. + The command is simply exec'd, it is not run inside + a shell, so traditional shell instructions ('|', etc) + won't work. To use a shell, you need to explicitly + call out to that shell. Exit status of 0 is treated + as live/healthy and non-zero is unhealthy. + items: + type: string + type: array + type: object + failureThreshold: + description: Minimum consecutive failures for the probe + to be considered failed after having succeeded. Defaults + to 3. Minimum value is 1. + format: int32 + type: integer + grpc: + description: GRPC specifies an action involving a GRPC port. + This is an alpha field and requires enabling GRPCContainerProbe + feature gate. + properties: + port: + description: Port number of the gRPC service. Number + must be in the range 1 to 65535. + format: int32 + type: integer + service: + description: "Service is the name of the service to + place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). + \n If this is not specified, the default behavior + is defined by gRPC." + type: string + required: + - port + type: object + httpGet: + description: HTTPGet specifies the http request to perform. + properties: + host: + description: Host name to connect to, defaults to the + pod IP. You probably want to set "Host" in httpHeaders + instead. + type: string + httpHeaders: + description: Custom headers to set in the request. HTTP + allows repeated headers. + items: + description: HTTPHeader describes a custom header + to be used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: integer + - type: string + description: Name or number of the port to access on + the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + scheme: + description: Scheme to use for connecting to the host. + Defaults to HTTP. + type: string + required: + - port + type: object + initialDelaySeconds: + description: 'Number of seconds after the container has + started before liveness probes are initiated. More info: + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + format: int32 + type: integer + periodSeconds: + description: How often (in seconds) to perform the probe. + Default to 10 seconds. Minimum value is 1. + format: int32 + type: integer + successThreshold: + description: Minimum consecutive successes for the probe + to be considered successful after having failed. Defaults + to 1. Must be 1 for liveness and startup. Minimum value + is 1. + format: int32 + type: integer + tcpSocket: + description: TCPSocket specifies an action involving a TCP + port. + properties: + host: + description: 'Optional: Host name to connect to, defaults + to the pod IP.' + type: string + port: + anyOf: + - type: integer + - type: string + description: Number or name of the port to access on + the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + description: Optional duration in seconds the pod needs + to terminate gracefully upon probe failure. The grace + period is the duration in seconds after the processes + running in the pod are sent a termination signal and the + time when the processes are forcibly halted with a kill + signal. Set this value longer than the expected cleanup + time for your process. If this value is nil, the pod's + terminationGracePeriodSeconds will be used. Otherwise, + this value overrides the value provided by the pod spec. + Value must be non-negative integer. The value zero indicates + stop immediately via the kill signal (no opportunity to + shut down). This is a beta field and requires enabling + ProbeTerminationGracePeriod feature gate. Minimum value + is 1. spec.terminationGracePeriodSeconds is used if unset. + format: int64 + type: integer + timeoutSeconds: + description: 'Number of seconds after which the probe times + out. Defaults to 1 second. Minimum value is 1. More info: + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + format: int32 + type: integer + type: object + stdin: + description: Whether this container should allocate a buffer + for stdin in the container runtime. If this is not set, reads + from stdin in the container will always result in EOF. Default + is false. + type: boolean + stdinOnce: + description: Whether the container runtime should close the + stdin channel after it has been opened by a single attach. + When stdin is true the stdin stream will remain open across + multiple attach sessions. If stdinOnce is set to true, stdin + is opened on container start, is empty until the first client + attaches to stdin, and then remains open and accepts data + until the client disconnects, at which time stdin is closed + and remains closed until the container is restarted. If this + flag is false, a container processes that reads from stdin + will never receive an EOF. Default is false + type: boolean + terminationMessagePath: + description: 'Optional: Path at which the file to which the + container''s termination message will be written is mounted + into the container''s filesystem. Message written is intended + to be brief final status, such as an assertion failure message. + Will be truncated by the node if greater than 4096 bytes. + The total message length across all containers will be limited + to 12kb. Defaults to /dev/termination-log. Cannot be updated.' + type: string + terminationMessagePolicy: + description: Indicate how the termination message should be + populated. File will use the contents of terminationMessagePath + to populate the container status message on both success and + failure. FallbackToLogsOnError will use the last chunk of + container log output if the termination message file is empty + and the container exited with an error. The log output is + limited to 2048 bytes or 80 lines, whichever is smaller. Defaults + to File. Cannot be updated. + type: string + tty: + description: Whether this container should allocate a TTY for + itself, also requires 'stdin' to be true. Default is false. + type: boolean + volumeDevices: + description: volumeDevices is the list of block devices to be + used by the container. + items: + description: volumeDevice describes a mapping of a raw block + device within a container. + properties: + devicePath: + description: devicePath is the path inside of the container + that the device will be mapped to. + type: string + name: + description: name must match the name of a persistentVolumeClaim + in the pod + type: string + required: + - devicePath + - name + type: object + type: array + volumeMounts: + description: Pod volumes to mount into the container's filesystem. + Cannot be updated. + items: + description: VolumeMount describes a mounting of a Volume + within a container. + properties: + mountPath: + description: Path within the container at which the volume + should be mounted. Must not contain ':'. + type: string + mountPropagation: + description: mountPropagation determines how mounts are + propagated from the host to container and the other + way around. When not set, MountPropagationNone is used. + This field is beta in 1.10. + type: string + name: + description: This must match the Name of a Volume. + type: string + readOnly: + description: Mounted read-only if true, read-write otherwise + (false or unspecified). Defaults to false. + type: boolean + subPath: + description: Path within the volume from which the container's + volume should be mounted. Defaults to "" (volume's root). + type: string + subPathExpr: + description: Expanded path within the volume from which + the container's volume should be mounted. Behaves similarly + to SubPath but environment variable references $(VAR_NAME) + are expanded using the container's environment. Defaults + to "" (volume's root). SubPathExpr and SubPath are mutually + exclusive. + type: string + required: + - mountPath + - name + type: object + type: array + workingDir: + description: Container's working directory. If not specified, + the container runtime's default will be used, which might + be configured in the container image. Cannot be updated. + type: string + required: + - name + type: object + type: array + externalUrl: + description: The external URL the Alertmanager instances will be available + under. This is necessary to generate correct URLs. This is necessary + if Alertmanager is not served from root of a DNS name. + type: string + forceEnableClusterMode: + description: ForceEnableClusterMode ensures Alertmanager does not + deactivate the cluster mode when running with a single replica. + Use case is e.g. spanning an Alertmanager cluster across Kubernetes + clusters with a single replica in each. + type: boolean + hostAliases: + description: Pods' hostAliases configuration + items: + description: HostAlias holds the mapping between IP and hostnames + that will be injected as an entry in the pod's hosts file. + properties: + hostnames: + description: Hostnames for the above IP address. + items: + type: string + type: array + ip: + description: IP address of the host file entry. + type: string + required: + - hostnames + - ip + type: object + type: array + x-kubernetes-list-map-keys: + - ip + x-kubernetes-list-type: map + image: + description: Image if specified has precedence over baseImage, tag + and sha combinations. Specifying the version is still necessary + to ensure the Prometheus Operator knows what version of Alertmanager + is being configured. + type: string + imagePullSecrets: + description: An optional list of references to secrets in the same + namespace to use for pulling prometheus and alertmanager images + from registries see http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod + items: + description: LocalObjectReference contains enough information to + let you locate the referenced object inside the same namespace. + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + type: array + initContainers: + description: 'InitContainers allows adding initContainers to the pod + definition. Those can be used to e.g. fetch secrets for injection + into the Alertmanager configuration from external sources. Any errors + during the execution of an initContainer will lead to a restart + of the Pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + Using initContainers for any use case other then secret fetching + is entirely outside the scope of what the maintainers will support + and by doing so, you accept that this behaviour may break at any + time without notice.' + items: + description: A single application container that you want to run + within a pod. + properties: + args: + description: 'Arguments to the entrypoint. The docker image''s + CMD is used if this is not provided. Variable references $(VAR_NAME) + are expanded using the container''s environment. If a variable + cannot be resolved, the reference in the input string will + be unchanged. Double $$ are reduced to a single $, which allows + for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will + produce the string literal "$(VAR_NAME)". Escaped references + will never be expanded, regardless of whether the variable + exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell' + items: + type: string + type: array + command: + description: 'Entrypoint array. Not executed within a shell. + The docker image''s ENTRYPOINT is used if this is not provided. + Variable references $(VAR_NAME) are expanded using the container''s + environment. If a variable cannot be resolved, the reference + in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: + i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". + Escaped references will never be expanded, regardless of whether + the variable exists or not. Cannot be updated. More info: + https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell' + items: + type: string + type: array + env: + description: List of environment variables to set in the container. + Cannot be updated. + items: + description: EnvVar represents an environment variable present + in a Container. + properties: + name: + description: Name of the environment variable. Must be + a C_IDENTIFIER. + type: string + value: + description: 'Variable references $(VAR_NAME) are expanded + using the previously defined environment variables in + the container and any service environment variables. + If a variable cannot be resolved, the reference in the + input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) + syntax: i.e. "$$(VAR_NAME)" will produce the string + literal "$(VAR_NAME)". Escaped references will never + be expanded, regardless of whether the variable exists + or not. Defaults to "".' + type: string + valueFrom: + description: Source for the environment variable's value. + Cannot be used if value is not empty. + properties: + configMapKeyRef: + description: Selects a key of a ConfigMap. + properties: + key: + description: The key to select. + type: string + name: + description: 'Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, + uid?' + type: string + optional: + description: Specify whether the ConfigMap or + its key must be defined + type: boolean + required: + - key + type: object + fieldRef: + description: 'Selects a field of the pod: supports + metadata.name, metadata.namespace, `metadata.labels['''']`, + `metadata.annotations['''']`, spec.nodeName, + spec.serviceAccountName, status.hostIP, status.podIP, + status.podIPs.' + properties: + apiVersion: + description: Version of the schema the FieldPath + is written in terms of, defaults to "v1". + type: string + fieldPath: + description: Path of the field to select in the + specified API version. + type: string + required: + - fieldPath + type: object + resourceFieldRef: + description: 'Selects a resource of the container: + only resources limits and requests (limits.cpu, + limits.memory, limits.ephemeral-storage, requests.cpu, + requests.memory and requests.ephemeral-storage) + are currently supported.' + properties: + containerName: + description: 'Container name: required for volumes, + optional for env vars' + type: string + divisor: + anyOf: + - type: integer + - type: string + description: Specifies the output format of the + exposed resources, defaults to "1" + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + description: 'Required: resource to select' + type: string + required: + - resource + type: object + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select from. Must + be a valid secret key. + type: string + name: + description: 'Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, + uid?' + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + type: object + required: + - name + type: object + type: array + envFrom: + description: List of sources to populate environment variables + in the container. The keys defined within a source must be + a C_IDENTIFIER. All invalid keys will be reported as an event + when the container is starting. When a key exists in multiple + sources, the value associated with the last source will take + precedence. Values defined by an Env with a duplicate key + will take precedence. Cannot be updated. + items: + description: EnvFromSource represents the source of a set + of ConfigMaps + properties: + configMapRef: + description: The ConfigMap to select from + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, + uid?' + type: string + optional: + description: Specify whether the ConfigMap must be + defined + type: boolean + type: object + prefix: + description: An optional identifier to prepend to each + key in the ConfigMap. Must be a C_IDENTIFIER. + type: string + secretRef: + description: The Secret to select from + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, + uid?' + type: string + optional: + description: Specify whether the Secret must be defined + type: boolean + type: object + type: object + type: array + image: + description: 'Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images + This field is optional to allow higher level config management + to default or override container images in workload controllers + like Deployments and StatefulSets.' + type: string + imagePullPolicy: + description: 'Image pull policy. One of Always, Never, IfNotPresent. + Defaults to Always if :latest tag is specified, or IfNotPresent + otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images' + type: string + lifecycle: + description: Actions that the management system should take + in response to container lifecycle events. Cannot be updated. + properties: + postStart: + description: 'PostStart is called immediately after a container + is created. If the handler fails, the container is terminated + and restarted according to its restart policy. Other management + of the container blocks until the hook completes. More + info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks' + properties: + exec: + description: Exec specifies the action to take. + properties: + command: + description: Command is the command line to execute + inside the container, the working directory for + the command is root ('/') in the container's + filesystem. The command is simply exec'd, it is + not run inside a shell, so traditional shell instructions + ('|', etc) won't work. To use a shell, you need + to explicitly call out to that shell. Exit status + of 0 is treated as live/healthy and non-zero is + unhealthy. + items: + type: string + type: array + type: object + httpGet: + description: HTTPGet specifies the http request to perform. + properties: + host: + description: Host name to connect to, defaults to + the pod IP. You probably want to set "Host" in + httpHeaders instead. + type: string + httpHeaders: + description: Custom headers to set in the request. + HTTP allows repeated headers. + items: + description: HTTPHeader describes a custom header + to be used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: integer + - type: string + description: Name or number of the port to access + on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + scheme: + description: Scheme to use for connecting to the + host. Defaults to HTTP. + type: string + required: + - port + type: object + tcpSocket: + description: Deprecated. TCPSocket is NOT supported + as a LifecycleHandler and kept for the backward compatibility. + There are no validation of this field and lifecycle + hooks will fail in runtime when tcp handler is specified. + properties: + host: + description: 'Optional: Host name to connect to, + defaults to the pod IP.' + type: string + port: + anyOf: + - type: integer + - type: string + description: Number or name of the port to access + on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + preStop: + description: 'PreStop is called immediately before a container + is terminated due to an API request or management event + such as liveness/startup probe failure, preemption, resource + contention, etc. The handler is not called if the container + crashes or exits. The Pod''s termination grace period + countdown begins before the PreStop hook is executed. + Regardless of the outcome of the handler, the container + will eventually terminate within the Pod''s termination + grace period (unless delayed by finalizers). Other management + of the container blocks until the hook completes or until + the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks' + properties: + exec: + description: Exec specifies the action to take. + properties: + command: + description: Command is the command line to execute + inside the container, the working directory for + the command is root ('/') in the container's + filesystem. The command is simply exec'd, it is + not run inside a shell, so traditional shell instructions + ('|', etc) won't work. To use a shell, you need + to explicitly call out to that shell. Exit status + of 0 is treated as live/healthy and non-zero is + unhealthy. + items: + type: string + type: array + type: object + httpGet: + description: HTTPGet specifies the http request to perform. + properties: + host: + description: Host name to connect to, defaults to + the pod IP. You probably want to set "Host" in + httpHeaders instead. + type: string + httpHeaders: + description: Custom headers to set in the request. + HTTP allows repeated headers. + items: + description: HTTPHeader describes a custom header + to be used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: integer + - type: string + description: Name or number of the port to access + on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + scheme: + description: Scheme to use for connecting to the + host. Defaults to HTTP. + type: string + required: + - port + type: object + tcpSocket: + description: Deprecated. TCPSocket is NOT supported + as a LifecycleHandler and kept for the backward compatibility. + There are no validation of this field and lifecycle + hooks will fail in runtime when tcp handler is specified. + properties: + host: + description: 'Optional: Host name to connect to, + defaults to the pod IP.' + type: string + port: + anyOf: + - type: integer + - type: string + description: Number or name of the port to access + on the container. Number must be in the range + 1 to 65535. Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + required: + - port + type: object + type: object + type: object + livenessProbe: + description: 'Periodic probe of container liveness. Container + will be restarted if the probe fails. Cannot be updated. More + info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + properties: + exec: + description: Exec specifies the action to take. + properties: + command: + description: Command is the command line to execute + inside the container, the working directory for the + command is root ('/') in the container's filesystem. + The command is simply exec'd, it is not run inside + a shell, so traditional shell instructions ('|', etc) + won't work. To use a shell, you need to explicitly + call out to that shell. Exit status of 0 is treated + as live/healthy and non-zero is unhealthy. + items: + type: string + type: array + type: object + failureThreshold: + description: Minimum consecutive failures for the probe + to be considered failed after having succeeded. Defaults + to 3. Minimum value is 1. + format: int32 + type: integer + grpc: + description: GRPC specifies an action involving a GRPC port. + This is an alpha field and requires enabling GRPCContainerProbe + feature gate. + properties: + port: + description: Port number of the gRPC service. Number + must be in the range 1 to 65535. + format: int32 + type: integer + service: + description: "Service is the name of the service to + place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). + \n If this is not specified, the default behavior + is defined by gRPC." + type: string + required: + - port + type: object + httpGet: + description: HTTPGet specifies the http request to perform. + properties: + host: + description: Host name to connect to, defaults to the + pod IP. You probably want to set "Host" in httpHeaders + instead. + type: string + httpHeaders: + description: Custom headers to set in the request. HTTP + allows repeated headers. + items: + description: HTTPHeader describes a custom header + to be used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: integer + - type: string + description: Name or number of the port to access on + the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + scheme: + description: Scheme to use for connecting to the host. + Defaults to HTTP. + type: string + required: + - port + type: object + initialDelaySeconds: + description: 'Number of seconds after the container has + started before liveness probes are initiated. More info: + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + format: int32 + type: integer + periodSeconds: + description: How often (in seconds) to perform the probe. + Default to 10 seconds. Minimum value is 1. + format: int32 + type: integer + successThreshold: + description: Minimum consecutive successes for the probe + to be considered successful after having failed. Defaults + to 1. Must be 1 for liveness and startup. Minimum value + is 1. + format: int32 + type: integer + tcpSocket: + description: TCPSocket specifies an action involving a TCP + port. + properties: + host: + description: 'Optional: Host name to connect to, defaults + to the pod IP.' + type: string + port: + anyOf: + - type: integer + - type: string + description: Number or name of the port to access on + the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + description: Optional duration in seconds the pod needs + to terminate gracefully upon probe failure. The grace + period is the duration in seconds after the processes + running in the pod are sent a termination signal and the + time when the processes are forcibly halted with a kill + signal. Set this value longer than the expected cleanup + time for your process. If this value is nil, the pod's + terminationGracePeriodSeconds will be used. Otherwise, + this value overrides the value provided by the pod spec. + Value must be non-negative integer. The value zero indicates + stop immediately via the kill signal (no opportunity to + shut down). This is a beta field and requires enabling + ProbeTerminationGracePeriod feature gate. Minimum value + is 1. spec.terminationGracePeriodSeconds is used if unset. + format: int64 + type: integer + timeoutSeconds: + description: 'Number of seconds after which the probe times + out. Defaults to 1 second. Minimum value is 1. More info: + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + format: int32 + type: integer + type: object + name: + description: Name of the container specified as a DNS_LABEL. + Each container in a pod must have a unique name (DNS_LABEL). + Cannot be updated. + type: string + ports: + description: List of ports to expose from the container. Exposing + a port here gives the system additional information about + the network connections a container uses, but is primarily + informational. Not specifying a port here DOES NOT prevent + that port from being exposed. Any port which is listening + on the default "0.0.0.0" address inside a container will be + accessible from the network. Cannot be updated. + items: + description: ContainerPort represents a network port in a + single container. + properties: + containerPort: + description: Number of port to expose on the pod's IP + address. This must be a valid port number, 0 < x < 65536. + format: int32 + type: integer + hostIP: + description: What host IP to bind the external port to. + type: string + hostPort: + description: Number of port to expose on the host. If + specified, this must be a valid port number, 0 < x < + 65536. If HostNetwork is specified, this must match + ContainerPort. Most containers do not need this. + format: int32 + type: integer + name: + description: If specified, this must be an IANA_SVC_NAME + and unique within the pod. Each named port in a pod + must have a unique name. Name for the port that can + be referred to by services. + type: string + protocol: + default: TCP + description: Protocol for port. Must be UDP, TCP, or SCTP. + Defaults to "TCP". + type: string + required: + - containerPort + type: object + type: array + x-kubernetes-list-map-keys: + - containerPort + - protocol + x-kubernetes-list-type: map + readinessProbe: + description: 'Periodic probe of container service readiness. + Container will be removed from service endpoints if the probe + fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + properties: + exec: + description: Exec specifies the action to take. + properties: + command: + description: Command is the command line to execute + inside the container, the working directory for the + command is root ('/') in the container's filesystem. + The command is simply exec'd, it is not run inside + a shell, so traditional shell instructions ('|', etc) + won't work. To use a shell, you need to explicitly + call out to that shell. Exit status of 0 is treated + as live/healthy and non-zero is unhealthy. + items: + type: string + type: array + type: object + failureThreshold: + description: Minimum consecutive failures for the probe + to be considered failed after having succeeded. Defaults + to 3. Minimum value is 1. + format: int32 + type: integer + grpc: + description: GRPC specifies an action involving a GRPC port. + This is an alpha field and requires enabling GRPCContainerProbe + feature gate. + properties: + port: + description: Port number of the gRPC service. Number + must be in the range 1 to 65535. + format: int32 + type: integer + service: + description: "Service is the name of the service to + place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). + \n If this is not specified, the default behavior + is defined by gRPC." + type: string + required: + - port + type: object + httpGet: + description: HTTPGet specifies the http request to perform. + properties: + host: + description: Host name to connect to, defaults to the + pod IP. You probably want to set "Host" in httpHeaders + instead. + type: string + httpHeaders: + description: Custom headers to set in the request. HTTP + allows repeated headers. + items: + description: HTTPHeader describes a custom header + to be used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: integer + - type: string + description: Name or number of the port to access on + the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + scheme: + description: Scheme to use for connecting to the host. + Defaults to HTTP. + type: string + required: + - port + type: object + initialDelaySeconds: + description: 'Number of seconds after the container has + started before liveness probes are initiated. More info: + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + format: int32 + type: integer + periodSeconds: + description: How often (in seconds) to perform the probe. + Default to 10 seconds. Minimum value is 1. + format: int32 + type: integer + successThreshold: + description: Minimum consecutive successes for the probe + to be considered successful after having failed. Defaults + to 1. Must be 1 for liveness and startup. Minimum value + is 1. + format: int32 + type: integer + tcpSocket: + description: TCPSocket specifies an action involving a TCP + port. + properties: + host: + description: 'Optional: Host name to connect to, defaults + to the pod IP.' + type: string + port: + anyOf: + - type: integer + - type: string + description: Number or name of the port to access on + the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + description: Optional duration in seconds the pod needs + to terminate gracefully upon probe failure. The grace + period is the duration in seconds after the processes + running in the pod are sent a termination signal and the + time when the processes are forcibly halted with a kill + signal. Set this value longer than the expected cleanup + time for your process. If this value is nil, the pod's + terminationGracePeriodSeconds will be used. Otherwise, + this value overrides the value provided by the pod spec. + Value must be non-negative integer. The value zero indicates + stop immediately via the kill signal (no opportunity to + shut down). This is a beta field and requires enabling + ProbeTerminationGracePeriod feature gate. Minimum value + is 1. spec.terminationGracePeriodSeconds is used if unset. + format: int64 + type: integer + timeoutSeconds: + description: 'Number of seconds after which the probe times + out. Defaults to 1 second. Minimum value is 1. More info: + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + format: int32 + type: integer + type: object + resources: + description: 'Compute Resources required by this container. + Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + properties: + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Limits describes the maximum amount of compute + resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Requests describes the minimum amount of compute + resources required. If Requests is omitted for a container, + it defaults to Limits if that is explicitly specified, + otherwise to an implementation-defined value. More info: + https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + type: object + securityContext: + description: 'SecurityContext defines the security options the + container should be run with. If set, the fields of SecurityContext + override the equivalent fields of PodSecurityContext. More + info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/' + properties: + allowPrivilegeEscalation: + description: 'AllowPrivilegeEscalation controls whether + a process can gain more privileges than its parent process. + This bool directly controls if the no_new_privs flag will + be set on the container process. AllowPrivilegeEscalation + is true always when the container is: 1) run as Privileged + 2) has CAP_SYS_ADMIN Note that this field cannot be set + when spec.os.name is windows.' + type: boolean + capabilities: + description: The capabilities to add/drop when running containers. + Defaults to the default set of capabilities granted by + the container runtime. Note that this field cannot be + set when spec.os.name is windows. + properties: + add: + description: Added capabilities + items: + description: Capability represent POSIX capabilities + type + type: string + type: array + drop: + description: Removed capabilities + items: + description: Capability represent POSIX capabilities + type + type: string + type: array + type: object + privileged: + description: Run container in privileged mode. Processes + in privileged containers are essentially equivalent to + root on the host. Defaults to false. Note that this field + cannot be set when spec.os.name is windows. + type: boolean + procMount: + description: procMount denotes the type of proc mount to + use for the containers. The default is DefaultProcMount + which uses the container runtime defaults for readonly + paths and masked paths. This requires the ProcMountType + feature flag to be enabled. Note that this field cannot + be set when spec.os.name is windows. + type: string + readOnlyRootFilesystem: + description: Whether this container has a read-only root + filesystem. Default is false. Note that this field cannot + be set when spec.os.name is windows. + type: boolean + runAsGroup: + description: The GID to run the entrypoint of the container + process. Uses runtime default if unset. May also be set + in PodSecurityContext. If set in both SecurityContext + and PodSecurityContext, the value specified in SecurityContext + takes precedence. Note that this field cannot be set when + spec.os.name is windows. + format: int64 + type: integer + runAsNonRoot: + description: Indicates that the container must run as a + non-root user. If true, the Kubelet will validate the + image at runtime to ensure that it does not run as UID + 0 (root) and fail to start the container if it does. If + unset or false, no such validation will be performed. + May also be set in PodSecurityContext. If set in both + SecurityContext and PodSecurityContext, the value specified + in SecurityContext takes precedence. + type: boolean + runAsUser: + description: The UID to run the entrypoint of the container + process. Defaults to user specified in image metadata + if unspecified. May also be set in PodSecurityContext. If + set in both SecurityContext and PodSecurityContext, the + value specified in SecurityContext takes precedence. Note + that this field cannot be set when spec.os.name is windows. + format: int64 + type: integer + seLinuxOptions: + description: The SELinux context to be applied to the container. + If unspecified, the container runtime will allocate a + random SELinux context for each container. May also be + set in PodSecurityContext. If set in both SecurityContext + and PodSecurityContext, the value specified in SecurityContext + takes precedence. Note that this field cannot be set when + spec.os.name is windows. + properties: + level: + description: Level is SELinux level label that applies + to the container. + type: string + role: + description: Role is a SELinux role label that applies + to the container. + type: string + type: + description: Type is a SELinux type label that applies + to the container. + type: string + user: + description: User is a SELinux user label that applies + to the container. + type: string + type: object + seccompProfile: + description: The seccomp options to use by this container. + If seccomp options are provided at both the pod & container + level, the container options override the pod options. + Note that this field cannot be set when spec.os.name is + windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile defined + in a file on the node should be used. The profile + must be preconfigured on the node to work. Must be + a descending path, relative to the kubelet's configured + seccomp profile location. Must only be set if type + is "Localhost". + type: string + type: + description: "type indicates which kind of seccomp profile + will be applied. Valid options are: \n Localhost - + a profile defined in a file on the node should be + used. RuntimeDefault - the container runtime default + profile should be used. Unconfined - no profile should + be applied." + type: string + required: + - type + type: object + windowsOptions: + description: The Windows specific settings applied to all + containers. If unspecified, the options from the PodSecurityContext + will be used. If set in both SecurityContext and PodSecurityContext, + the value specified in SecurityContext takes precedence. + Note that this field cannot be set when spec.os.name is + linux. + properties: + gmsaCredentialSpec: + description: GMSACredentialSpec is where the GMSA admission + webhook (https://github.com/kubernetes-sigs/windows-gmsa) + inlines the contents of the GMSA credential spec named + by the GMSACredentialSpecName field. + type: string + gmsaCredentialSpecName: + description: GMSACredentialSpecName is the name of the + GMSA credential spec to use. + type: string + hostProcess: + description: HostProcess determines if a container should + be run as a 'Host Process' container. This field is + alpha-level and will only be honored by components + that enable the WindowsHostProcessContainers feature + flag. Setting this field without the feature flag + will result in errors when validating the Pod. All + of a Pod's containers must have the same effective + HostProcess value (it is not allowed to have a mix + of HostProcess containers and non-HostProcess containers). In + addition, if HostProcess is true then HostNetwork + must also be set to true. + type: boolean + runAsUserName: + description: The UserName in Windows to run the entrypoint + of the container process. Defaults to the user specified + in image metadata if unspecified. May also be set + in PodSecurityContext. If set in both SecurityContext + and PodSecurityContext, the value specified in SecurityContext + takes precedence. + type: string + type: object + type: object + startupProbe: + description: 'StartupProbe indicates that the Pod has successfully + initialized. If specified, no other probes are executed until + this completes successfully. If this probe fails, the Pod + will be restarted, just as if the livenessProbe failed. This + can be used to provide different probe parameters at the beginning + of a Pod''s lifecycle, when it might take a long time to load + data or warm a cache, than during steady-state operation. + This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + properties: + exec: + description: Exec specifies the action to take. + properties: + command: + description: Command is the command line to execute + inside the container, the working directory for the + command is root ('/') in the container's filesystem. + The command is simply exec'd, it is not run inside + a shell, so traditional shell instructions ('|', etc) + won't work. To use a shell, you need to explicitly + call out to that shell. Exit status of 0 is treated + as live/healthy and non-zero is unhealthy. + items: + type: string + type: array + type: object + failureThreshold: + description: Minimum consecutive failures for the probe + to be considered failed after having succeeded. Defaults + to 3. Minimum value is 1. + format: int32 + type: integer + grpc: + description: GRPC specifies an action involving a GRPC port. + This is an alpha field and requires enabling GRPCContainerProbe + feature gate. + properties: + port: + description: Port number of the gRPC service. Number + must be in the range 1 to 65535. + format: int32 + type: integer + service: + description: "Service is the name of the service to + place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). + \n If this is not specified, the default behavior + is defined by gRPC." + type: string + required: + - port + type: object + httpGet: + description: HTTPGet specifies the http request to perform. + properties: + host: + description: Host name to connect to, defaults to the + pod IP. You probably want to set "Host" in httpHeaders + instead. + type: string + httpHeaders: + description: Custom headers to set in the request. HTTP + allows repeated headers. + items: + description: HTTPHeader describes a custom header + to be used in HTTP probes + properties: + name: + description: The header field name + type: string + value: + description: The header field value + type: string + required: + - name + - value + type: object + type: array + path: + description: Path to access on the HTTP server. + type: string + port: + anyOf: + - type: integer + - type: string + description: Name or number of the port to access on + the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + scheme: + description: Scheme to use for connecting to the host. + Defaults to HTTP. + type: string + required: + - port + type: object + initialDelaySeconds: + description: 'Number of seconds after the container has + started before liveness probes are initiated. More info: + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + format: int32 + type: integer + periodSeconds: + description: How often (in seconds) to perform the probe. + Default to 10 seconds. Minimum value is 1. + format: int32 + type: integer + successThreshold: + description: Minimum consecutive successes for the probe + to be considered successful after having failed. Defaults + to 1. Must be 1 for liveness and startup. Minimum value + is 1. + format: int32 + type: integer + tcpSocket: + description: TCPSocket specifies an action involving a TCP + port. + properties: + host: + description: 'Optional: Host name to connect to, defaults + to the pod IP.' + type: string + port: + anyOf: + - type: integer + - type: string + description: Number or name of the port to access on + the container. Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + x-kubernetes-int-or-string: true + required: + - port + type: object + terminationGracePeriodSeconds: + description: Optional duration in seconds the pod needs + to terminate gracefully upon probe failure. The grace + period is the duration in seconds after the processes + running in the pod are sent a termination signal and the + time when the processes are forcibly halted with a kill + signal. Set this value longer than the expected cleanup + time for your process. If this value is nil, the pod's + terminationGracePeriodSeconds will be used. Otherwise, + this value overrides the value provided by the pod spec. + Value must be non-negative integer. The value zero indicates + stop immediately via the kill signal (no opportunity to + shut down). This is a beta field and requires enabling + ProbeTerminationGracePeriod feature gate. Minimum value + is 1. spec.terminationGracePeriodSeconds is used if unset. + format: int64 + type: integer + timeoutSeconds: + description: 'Number of seconds after which the probe times + out. Defaults to 1 second. Minimum value is 1. More info: + https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes' + format: int32 + type: integer + type: object + stdin: + description: Whether this container should allocate a buffer + for stdin in the container runtime. If this is not set, reads + from stdin in the container will always result in EOF. Default + is false. + type: boolean + stdinOnce: + description: Whether the container runtime should close the + stdin channel after it has been opened by a single attach. + When stdin is true the stdin stream will remain open across + multiple attach sessions. If stdinOnce is set to true, stdin + is opened on container start, is empty until the first client + attaches to stdin, and then remains open and accepts data + until the client disconnects, at which time stdin is closed + and remains closed until the container is restarted. If this + flag is false, a container processes that reads from stdin + will never receive an EOF. Default is false + type: boolean + terminationMessagePath: + description: 'Optional: Path at which the file to which the + container''s termination message will be written is mounted + into the container''s filesystem. Message written is intended + to be brief final status, such as an assertion failure message. + Will be truncated by the node if greater than 4096 bytes. + The total message length across all containers will be limited + to 12kb. Defaults to /dev/termination-log. Cannot be updated.' + type: string + terminationMessagePolicy: + description: Indicate how the termination message should be + populated. File will use the contents of terminationMessagePath + to populate the container status message on both success and + failure. FallbackToLogsOnError will use the last chunk of + container log output if the termination message file is empty + and the container exited with an error. The log output is + limited to 2048 bytes or 80 lines, whichever is smaller. Defaults + to File. Cannot be updated. + type: string + tty: + description: Whether this container should allocate a TTY for + itself, also requires 'stdin' to be true. Default is false. + type: boolean + volumeDevices: + description: volumeDevices is the list of block devices to be + used by the container. + items: + description: volumeDevice describes a mapping of a raw block + device within a container. + properties: + devicePath: + description: devicePath is the path inside of the container + that the device will be mapped to. + type: string + name: + description: name must match the name of a persistentVolumeClaim + in the pod + type: string + required: + - devicePath + - name + type: object + type: array + volumeMounts: + description: Pod volumes to mount into the container's filesystem. + Cannot be updated. + items: + description: VolumeMount describes a mounting of a Volume + within a container. + properties: + mountPath: + description: Path within the container at which the volume + should be mounted. Must not contain ':'. + type: string + mountPropagation: + description: mountPropagation determines how mounts are + propagated from the host to container and the other + way around. When not set, MountPropagationNone is used. + This field is beta in 1.10. + type: string + name: + description: This must match the Name of a Volume. + type: string + readOnly: + description: Mounted read-only if true, read-write otherwise + (false or unspecified). Defaults to false. + type: boolean + subPath: + description: Path within the volume from which the container's + volume should be mounted. Defaults to "" (volume's root). + type: string + subPathExpr: + description: Expanded path within the volume from which + the container's volume should be mounted. Behaves similarly + to SubPath but environment variable references $(VAR_NAME) + are expanded using the container's environment. Defaults + to "" (volume's root). SubPathExpr and SubPath are mutually + exclusive. + type: string + required: + - mountPath + - name + type: object + type: array + workingDir: + description: Container's working directory. If not specified, + the container runtime's default will be used, which might + be configured in the container image. Cannot be updated. + type: string + required: + - name + type: object + type: array + listenLocal: + description: ListenLocal makes the Alertmanager server listen on loopback, + so that it does not bind against the Pod IP. Note this is only for + the Alertmanager UI, not the gossip communication. + type: boolean + logFormat: + description: Log format for Alertmanager to be configured with. + enum: + - "" + - logfmt + - json + type: string + logLevel: + description: Log level for Alertmanager to be configured with. + enum: + - "" + - debug + - info + - warn + - error + type: string + minReadySeconds: + description: Minimum number of seconds for which a newly created pod + should be ready without any of its container crashing for it to + be considered available. Defaults to 0 (pod will be considered available + as soon as it is ready) This is an alpha field and requires enabling + StatefulSetMinReadySeconds feature gate. + format: int32 + type: integer + nodeSelector: + additionalProperties: + type: string + description: Define which Nodes the Pods are scheduled on. + type: object + paused: + description: If set to true all actions on the underlying managed + objects are not goint to be performed, except for delete actions. + type: boolean + podMetadata: + description: PodMetadata configures Labels and Annotations which are + propagated to the alertmanager pods. + properties: + annotations: + additionalProperties: + type: string + description: 'Annotations is an unstructured key value map stored + with a resource that may be set by external tools to store and + retrieve arbitrary metadata. They are not queryable and should + be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations' + type: object + labels: + additionalProperties: + type: string + description: 'Map of string keys and values that can be used to + organize and categorize (scope and select) objects. May match + selectors of replication controllers and services. More info: + http://kubernetes.io/docs/user-guide/labels' + type: object + name: + description: 'Name must be unique within a namespace. Is required + when creating resources, although some resources may allow a + client to request the generation of an appropriate name automatically. + Name is primarily intended for creation idempotence and configuration + definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + type: object + portName: + description: Port name used for the pods and governing service. This + defaults to web + type: string + priorityClassName: + description: Priority class assigned to the Pods + type: string + replicas: + description: Size is the expected size of the alertmanager cluster. + The controller will eventually make the size of the running cluster + equal to the expected size. + format: int32 + type: integer + resources: + description: Define resources requests and limits for single Pods. + properties: + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Limits describes the maximum amount of compute resources + allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Requests describes the minimum amount of compute + resources required. If Requests is omitted for a container, + it defaults to Limits if that is explicitly specified, otherwise + to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + type: object + retention: + description: Time duration Alertmanager shall retain data for. Default + is '120h', and must match the regular expression `[0-9]+(ms|s|m|h)` + (milliseconds seconds minutes hours). + type: string + routePrefix: + description: The route prefix Alertmanager registers HTTP handlers + for. This is useful, if using ExternalURL and a proxy is rewriting + HTTP routes of a request, and the actual ExternalURL is still true, + but the server serves requests under a different route prefix. For + example for use with `kubectl proxy`. + type: string + secrets: + description: Secrets is a list of Secrets in the same namespace as + the Alertmanager object, which shall be mounted into the Alertmanager + Pods. The Secrets are mounted into /etc/alertmanager/secrets/. + items: + type: string + type: array + securityContext: + description: SecurityContext holds pod-level security attributes and + common container settings. This defaults to the default PodSecurityContext. + properties: + fsGroup: + description: "A special supplemental group that applies to all + containers in a pod. Some volume types allow the Kubelet to + change the ownership of that volume to be owned by the pod: + \n 1. The owning GID will be the FSGroup 2. The setgid bit is + set (new files created in the volume will be owned by FSGroup) + 3. The permission bits are OR'd with rw-rw---- \n If unset, + the Kubelet will not modify the ownership and permissions of + any volume. Note that this field cannot be set when spec.os.name + is windows." + format: int64 + type: integer + fsGroupChangePolicy: + description: 'fsGroupChangePolicy defines behavior of changing + ownership and permission of the volume before being exposed + inside Pod. This field will only apply to volume types which + support fsGroup based ownership(and permissions). It will have + no effect on ephemeral volume types such as: secret, configmaps + and emptydir. Valid values are "OnRootMismatch" and "Always". + If not specified, "Always" is used. Note that this field cannot + be set when spec.os.name is windows.' + type: string + runAsGroup: + description: The GID to run the entrypoint of the container process. + Uses runtime default if unset. May also be set in SecurityContext. If + set in both SecurityContext and PodSecurityContext, the value + specified in SecurityContext takes precedence for that container. + Note that this field cannot be set when spec.os.name is windows. + format: int64 + type: integer + runAsNonRoot: + description: Indicates that the container must run as a non-root + user. If true, the Kubelet will validate the image at runtime + to ensure that it does not run as UID 0 (root) and fail to start + the container if it does. If unset or false, no such validation + will be performed. May also be set in SecurityContext. If set + in both SecurityContext and PodSecurityContext, the value specified + in SecurityContext takes precedence. + type: boolean + runAsUser: + description: The UID to run the entrypoint of the container process. + Defaults to user specified in image metadata if unspecified. + May also be set in SecurityContext. If set in both SecurityContext + and PodSecurityContext, the value specified in SecurityContext + takes precedence for that container. Note that this field cannot + be set when spec.os.name is windows. + format: int64 + type: integer + seLinuxOptions: + description: The SELinux context to be applied to all containers. + If unspecified, the container runtime will allocate a random + SELinux context for each container. May also be set in SecurityContext. If + set in both SecurityContext and PodSecurityContext, the value + specified in SecurityContext takes precedence for that container. + Note that this field cannot be set when spec.os.name is windows. + properties: + level: + description: Level is SELinux level label that applies to + the container. + type: string + role: + description: Role is a SELinux role label that applies to + the container. + type: string + type: + description: Type is a SELinux type label that applies to + the container. + type: string + user: + description: User is a SELinux user label that applies to + the container. + type: string + type: object + seccompProfile: + description: The seccomp options to use by the containers in this + pod. Note that this field cannot be set when spec.os.name is + windows. + properties: + localhostProfile: + description: localhostProfile indicates a profile defined + in a file on the node should be used. The profile must be + preconfigured on the node to work. Must be a descending + path, relative to the kubelet's configured seccomp profile + location. Must only be set if type is "Localhost". + type: string + type: + description: "type indicates which kind of seccomp profile + will be applied. Valid options are: \n Localhost - a profile + defined in a file on the node should be used. RuntimeDefault + - the container runtime default profile should be used. + Unconfined - no profile should be applied." + type: string + required: + - type + type: object + supplementalGroups: + description: A list of groups applied to the first process run + in each container, in addition to the container's primary GID. If + unspecified, no groups will be added to any container. Note + that this field cannot be set when spec.os.name is windows. + items: + format: int64 + type: integer + type: array + sysctls: + description: Sysctls hold a list of namespaced sysctls used for + the pod. Pods with unsupported sysctls (by the container runtime) + might fail to launch. Note that this field cannot be set when + spec.os.name is windows. + items: + description: Sysctl defines a kernel parameter to be set + properties: + name: + description: Name of a property to set + type: string + value: + description: Value of a property to set + type: string + required: + - name + - value + type: object + type: array + windowsOptions: + description: The Windows specific settings applied to all containers. + If unspecified, the options within a container's SecurityContext + will be used. If set in both SecurityContext and PodSecurityContext, + the value specified in SecurityContext takes precedence. Note + that this field cannot be set when spec.os.name is linux. + properties: + gmsaCredentialSpec: + description: GMSACredentialSpec is where the GMSA admission + webhook (https://github.com/kubernetes-sigs/windows-gmsa) + inlines the contents of the GMSA credential spec named by + the GMSACredentialSpecName field. + type: string + gmsaCredentialSpecName: + description: GMSACredentialSpecName is the name of the GMSA + credential spec to use. + type: string + hostProcess: + description: HostProcess determines if a container should + be run as a 'Host Process' container. This field is alpha-level + and will only be honored by components that enable the WindowsHostProcessContainers + feature flag. Setting this field without the feature flag + will result in errors when validating the Pod. All of a + Pod's containers must have the same effective HostProcess + value (it is not allowed to have a mix of HostProcess containers + and non-HostProcess containers). In addition, if HostProcess + is true then HostNetwork must also be set to true. + type: boolean + runAsUserName: + description: The UserName in Windows to run the entrypoint + of the container process. Defaults to the user specified + in image metadata if unspecified. May also be set in PodSecurityContext. + If set in both SecurityContext and PodSecurityContext, the + value specified in SecurityContext takes precedence. + type: string + type: object + type: object + serviceAccountName: + description: ServiceAccountName is the name of the ServiceAccount + to use to run the Prometheus Pods. + type: string + sha: + description: 'SHA of Alertmanager container image to be deployed. + Defaults to the value of `version`. Similar to a tag, but the SHA + explicitly deploys an immutable container image. Version and Tag + are ignored if SHA is set. Deprecated: use ''image'' instead. The + image digest can be specified as part of the image URL.' + type: string + storage: + description: Storage is the definition of how storage will be used + by the Alertmanager instances. + properties: + disableMountSubPath: + description: 'Deprecated: subPath usage will be disabled by default + in a future release, this option will become unnecessary. DisableMountSubPath + allows to remove any subPath usage in volume mounts.' + type: boolean + emptyDir: + description: 'EmptyDirVolumeSource to be used by the Prometheus + StatefulSets. If specified, used in place of any volumeClaimTemplate. + More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir' + properties: + medium: + description: 'What type of storage medium should back this + directory. The default is "" which means to use the node''s + default medium. Must be an empty string (default) or Memory. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir' + type: string + sizeLimit: + anyOf: + - type: integer + - type: string + description: 'Total amount of local storage required for this + EmptyDir volume. The size limit is also applicable for memory + medium. The maximum usage on memory medium EmptyDir would + be the minimum value between the SizeLimit specified here + and the sum of memory limits of all containers in a pod. + The default is nil which means that the limit is undefined. + More info: http://kubernetes.io/docs/user-guide/volumes#emptydir' + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + ephemeral: + description: 'EphemeralVolumeSource to be used by the Prometheus + StatefulSets. This is a beta field in k8s 1.21, for lower versions, + starting with k8s 1.19, it requires enabling the GenericEphemeralVolume + feature gate. More info: https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes' + properties: + volumeClaimTemplate: + description: "Will be used to create a stand-alone PVC to + provision the volume. The pod in which this EphemeralVolumeSource + is embedded will be the owner of the PVC, i.e. the PVC will + be deleted together with the pod. The name of the PVC will + be `-` where `` is the + name from the `PodSpec.Volumes` array entry. Pod validation + will reject the pod if the concatenated name is not valid + for a PVC (for example, too long). \n An existing PVC with + that name that is not owned by the pod will *not* be used + for the pod to avoid using an unrelated volume by mistake. + Starting the pod is then blocked until the unrelated PVC + is removed. If such a pre-created PVC is meant to be used + by the pod, the PVC has to updated with an owner reference + to the pod once the pod exists. Normally this should not + be necessary, but it may be useful when manually reconstructing + a broken cluster. \n This field is read-only and no changes + will be made by Kubernetes to the PVC after it has been + created. \n Required, must not be nil." + properties: + metadata: + description: May contain labels and annotations that will + be copied into the PVC when creating it. No other fields + are allowed and will be rejected during validation. + type: object + spec: + description: The specification for the PersistentVolumeClaim. + The entire content is copied unchanged into the PVC + that gets created from this template. The same fields + as in a PersistentVolumeClaim are also valid here. + properties: + accessModes: + description: 'AccessModes contains the desired access + modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1' + items: + type: string + type: array + dataSource: + description: 'This field can be used to specify either: + * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) + * An existing PVC (PersistentVolumeClaim) If the + provisioner or an external controller can support + the specified data source, it will create a new + volume based on the contents of the specified data + source. If the AnyVolumeDataSource feature gate + is enabled, this field will always have the same + contents as the DataSourceRef field.' + properties: + apiGroup: + description: APIGroup is the group for the resource + being referenced. If APIGroup is not specified, + the specified Kind must be in the core API group. + For any other third-party types, APIGroup is + required. + type: string + kind: + description: Kind is the type of resource being + referenced + type: string + name: + description: Name is the name of resource being + referenced + type: string + required: + - kind + - name + type: object + dataSourceRef: + description: 'Specifies the object from which to populate + the volume with data, if a non-empty volume is desired. + This may be any local object from a non-empty API + group (non core object) or a PersistentVolumeClaim + object. When this field is specified, volume binding + will only succeed if the type of the specified object + matches some installed volume populator or dynamic + provisioner. This field will replace the functionality + of the DataSource field and as such if both fields + are non-empty, they must have the same value. For + backwards compatibility, both fields (DataSource + and DataSourceRef) will be set to the same value + automatically if one of them is empty and the other + is non-empty. There are two important differences + between DataSource and DataSourceRef: * While DataSource + only allows two specific types of objects, DataSourceRef + allows any non-core object, as well as PersistentVolumeClaim + objects. * While DataSource ignores disallowed values + (dropping them), DataSourceRef preserves all values, + and generates an error if a disallowed value is + specified. (Alpha) Using this field requires the + AnyVolumeDataSource feature gate to be enabled.' + properties: + apiGroup: + description: APIGroup is the group for the resource + being referenced. If APIGroup is not specified, + the specified Kind must be in the core API group. + For any other third-party types, APIGroup is + required. + type: string + kind: + description: Kind is the type of resource being + referenced + type: string + name: + description: Name is the name of resource being + referenced + type: string + required: + - kind + - name + type: object + resources: + description: 'Resources represents the minimum resources + the volume should have. If RecoverVolumeExpansionFailure + feature is enabled users are allowed to specify + resource requirements that are lower than previous + value but must still be higher than capacity recorded + in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources' + properties: + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Limits describes the maximum amount + of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Requests describes the minimum amount + of compute resources required. If Requests is + omitted for a container, it defaults to Limits + if that is explicitly specified, otherwise to + an implementation-defined value. More info: + https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + type: object + selector: + description: A label query over volumes to consider + for binding. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are + ANDed. + items: + description: A label selector requirement is + a selector that contains values, a key, and + an operator that relates the key and values. + properties: + key: + description: key is the label key that the + selector applies to. + type: string + operator: + description: operator represents a key's + relationship to a set of values. Valid + operators are In, NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. If + the operator is Exists or DoesNotExist, + the values array must be empty. This array + is replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is "In", + and the values array contains only "value". + The requirements are ANDed. + type: object + type: object + storageClassName: + description: 'Name of the StorageClass required by + the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1' + type: string + volumeMode: + description: volumeMode defines what type of volume + is required by the claim. Value of Filesystem is + implied when not included in claim spec. + type: string + volumeName: + description: VolumeName is the binding reference to + the PersistentVolume backing this claim. + type: string + type: object + required: + - spec + type: object + type: object + volumeClaimTemplate: + description: A PVC spec to be used by the Prometheus StatefulSets. + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this + representation of an object. Servers should convert recognized + schemas to the latest internal value, and may reject unrecognized + values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST + resource this object represents. Servers may infer this + from the endpoint the client submits requests to. Cannot + be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + description: EmbeddedMetadata contains metadata relevant to + an EmbeddedResource. + properties: + annotations: + additionalProperties: + type: string + description: 'Annotations is an unstructured key value + map stored with a resource that may be set by external + tools to store and retrieve arbitrary metadata. They + are not queryable and should be preserved when modifying + objects. More info: http://kubernetes.io/docs/user-guide/annotations' + type: object + labels: + additionalProperties: + type: string + description: 'Map of string keys and values that can be + used to organize and categorize (scope and select) objects. + May match selectors of replication controllers and services. + More info: http://kubernetes.io/docs/user-guide/labels' + type: object + name: + description: 'Name must be unique within a namespace. + Is required when creating resources, although some resources + may allow a client to request the generation of an appropriate + name automatically. Name is primarily intended for creation + idempotence and configuration definition. Cannot be + updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names' + type: string + type: object + spec: + description: 'Spec defines the desired characteristics of + a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims' + properties: + accessModes: + description: 'AccessModes contains the desired access + modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1' + items: + type: string + type: array + dataSource: + description: 'This field can be used to specify either: + * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) + * An existing PVC (PersistentVolumeClaim) If the provisioner + or an external controller can support the specified + data source, it will create a new volume based on the + contents of the specified data source. If the AnyVolumeDataSource + feature gate is enabled, this field will always have + the same contents as the DataSourceRef field.' + properties: + apiGroup: + description: APIGroup is the group for the resource + being referenced. If APIGroup is not specified, + the specified Kind must be in the core API group. + For any other third-party types, APIGroup is required. + type: string + kind: + description: Kind is the type of resource being referenced + type: string + name: + description: Name is the name of resource being referenced + type: string + required: + - kind + - name + type: object + dataSourceRef: + description: 'Specifies the object from which to populate + the volume with data, if a non-empty volume is desired. + This may be any local object from a non-empty API group + (non core object) or a PersistentVolumeClaim object. + When this field is specified, volume binding will only + succeed if the type of the specified object matches + some installed volume populator or dynamic provisioner. + This field will replace the functionality of the DataSource + field and as such if both fields are non-empty, they + must have the same value. For backwards compatibility, + both fields (DataSource and DataSourceRef) will be set + to the same value automatically if one of them is empty + and the other is non-empty. There are two important + differences between DataSource and DataSourceRef: * + While DataSource only allows two specific types of objects, + DataSourceRef allows any non-core object, as well as + PersistentVolumeClaim objects. * While DataSource ignores + disallowed values (dropping them), DataSourceRef preserves + all values, and generates an error if a disallowed value + is specified. (Alpha) Using this field requires the + AnyVolumeDataSource feature gate to be enabled.' + properties: + apiGroup: + description: APIGroup is the group for the resource + being referenced. If APIGroup is not specified, + the specified Kind must be in the core API group. + For any other third-party types, APIGroup is required. + type: string + kind: + description: Kind is the type of resource being referenced + type: string + name: + description: Name is the name of resource being referenced + type: string + required: + - kind + - name + type: object + resources: + description: 'Resources represents the minimum resources + the volume should have. If RecoverVolumeExpansionFailure + feature is enabled users are allowed to specify resource + requirements that are lower than previous value but + must still be higher than capacity recorded in the status + field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources' + properties: + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Limits describes the maximum amount + of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Requests describes the minimum amount + of compute resources required. If Requests is omitted + for a container, it defaults to Limits if that is + explicitly specified, otherwise to an implementation-defined + value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + type: object + selector: + description: A label query over volumes to consider for + binding. + properties: + matchExpressions: + description: matchExpressions is a list of label selector + requirements. The requirements are ANDed. + items: + description: A label selector requirement is a selector + that contains values, a key, and an operator that + relates the key and values. + properties: + key: + description: key is the label key that the selector + applies to. + type: string + operator: + description: operator represents a key's relationship + to a set of values. Valid operators are In, + NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string values. + If the operator is In or NotIn, the values + array must be non-empty. If the operator is + Exists or DoesNotExist, the values array must + be empty. This array is replaced during a + strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} pairs. + A single {key,value} in the matchLabels map is equivalent + to an element of matchExpressions, whose key field + is "key", the operator is "In", and the values array + contains only "value". The requirements are ANDed. + type: object + type: object + storageClassName: + description: 'Name of the StorageClass required by the + claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1' + type: string + volumeMode: + description: volumeMode defines what type of volume is + required by the claim. Value of Filesystem is implied + when not included in claim spec. + type: string + volumeName: + description: VolumeName is the binding reference to the + PersistentVolume backing this claim. + type: string + type: object + status: + description: 'Status represents the current information/status + of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims' + properties: + accessModes: + description: 'AccessModes contains the actual access modes + the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1' + items: + type: string + type: array + allocatedResources: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: The storage resource within AllocatedResources + tracks the capacity allocated to a PVC. It may be larger + than the actual capacity when a volume expansion operation + is requested. For storage quota, the larger value from + allocatedResources and PVC.spec.resources is used. If + allocatedResources is not set, PVC.spec.resources alone + is used for quota calculation. If a volume expansion + capacity request is lowered, allocatedResources is only + lowered if there are no expansion operations in progress + and if the actual volume capacity is equal or lower + than the requested capacity. This is an alpha field + and requires enabling RecoverVolumeExpansionFailure + feature. + type: object + capacity: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: Represents the actual resources of the underlying + volume. + type: object + conditions: + description: Current Condition of persistent volume claim. + If underlying persistent volume is being resized then + the Condition will be set to 'ResizeStarted'. + items: + description: PersistentVolumeClaimCondition contails + details about state of pvc + properties: + lastProbeTime: + description: Last time we probed the condition. + format: date-time + type: string + lastTransitionTime: + description: Last time the condition transitioned + from one status to another. + format: date-time + type: string + message: + description: Human-readable message indicating details + about last transition. + type: string + reason: + description: Unique, this should be a short, machine + understandable string that gives the reason for + condition's last transition. If it reports "ResizeStarted" + that means the underlying persistent volume is + being resized. + type: string + status: + type: string + type: + description: PersistentVolumeClaimConditionType + is a valid value of PersistentVolumeClaimCondition.Type + type: string + required: + - status + - type + type: object + type: array + phase: + description: Phase represents the current phase of PersistentVolumeClaim. + type: string + resizeStatus: + description: ResizeStatus stores status of resize operation. + ResizeStatus is not set by default but when expansion + is complete resizeStatus is set to empty string by resize + controller or kubelet. This is an alpha field and requires + enabling RecoverVolumeExpansionFailure feature. + type: string + type: object + type: object + type: object + tag: + description: 'Tag of Alertmanager container image to be deployed. + Defaults to the value of `version`. Version is ignored if Tag is + set. Deprecated: use ''image'' instead. The image tag can be specified + as part of the image URL.' + type: string + tolerations: + description: If specified, the pod's tolerations. + items: + description: The pod this Toleration is attached to tolerates any + taint that matches the triple using the matching + operator . + properties: + effect: + description: Effect indicates the taint effect to match. Empty + means match all taint effects. When specified, allowed values + are NoSchedule, PreferNoSchedule and NoExecute. + type: string + key: + description: Key is the taint key that the toleration applies + to. Empty means match all taint keys. If the key is empty, + operator must be Exists; this combination means to match all + values and all keys. + type: string + operator: + description: Operator represents a key's relationship to the + value. Valid operators are Exists and Equal. Defaults to Equal. + Exists is equivalent to wildcard for value, so that a pod + can tolerate all taints of a particular category. + type: string + tolerationSeconds: + description: TolerationSeconds represents the period of time + the toleration (which must be of effect NoExecute, otherwise + this field is ignored) tolerates the taint. By default, it + is not set, which means tolerate the taint forever (do not + evict). Zero and negative values will be treated as 0 (evict + immediately) by the system. + format: int64 + type: integer + value: + description: Value is the taint value the toleration matches + to. If the operator is Exists, the value should be empty, + otherwise just a regular string. + type: string + type: object + type: array + topologySpreadConstraints: + description: If specified, the pod's topology spread constraints. + items: + description: TopologySpreadConstraint specifies how to spread matching + pods among the given topology. + properties: + labelSelector: + description: LabelSelector is used to find matching pods. Pods + that match this label selector are counted to determine the + number of pods in their corresponding topology domain. + properties: + matchExpressions: + description: matchExpressions is a list of label selector + requirements. The requirements are ANDed. + items: + description: A label selector requirement is a selector + that contains values, a key, and an operator that relates + the key and values. + properties: + key: + description: key is the label key that the selector + applies to. + type: string + operator: + description: operator represents a key's relationship + to a set of values. Valid operators are In, NotIn, + Exists and DoesNotExist. + type: string + values: + description: values is an array of string values. + If the operator is In or NotIn, the values array + must be non-empty. If the operator is Exists or + DoesNotExist, the values array must be empty. This + array is replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} pairs. + A single {key,value} in the matchLabels map is equivalent + to an element of matchExpressions, whose key field is + "key", the operator is "In", and the values array contains + only "value". The requirements are ANDed. + type: object + type: object + maxSkew: + description: 'MaxSkew describes the degree to which pods may + be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, + it is the maximum permitted difference between the number + of matching pods in the target topology and the global minimum. + For example, in a 3-zone cluster, MaxSkew is set to 1, and + pods with the same labelSelector spread as 1/1/0: | zone1 + | zone2 | zone3 | | P | P | | - if MaxSkew is + 1, incoming pod can only be scheduled to zone3 to become 1/1/1; + scheduling it onto zone1(zone2) would make the ActualSkew(2-0) + on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming + pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, + it is used to give higher precedence to topologies that satisfy + it. It''s a required field. Default value is 1 and 0 is not + allowed.' + format: int32 + type: integer + topologyKey: + description: TopologyKey is the key of node labels. Nodes that + have a label with this key and identical values are considered + to be in the same topology. We consider each + as a "bucket", and try to put balanced number of pods into + each bucket. It's a required field. + type: string + whenUnsatisfiable: + description: 'WhenUnsatisfiable indicates how to deal with a + pod if it doesn''t satisfy the spread constraint. - DoNotSchedule + (default) tells the scheduler not to schedule it. - ScheduleAnyway + tells the scheduler to schedule the pod in any location, but + giving higher precedence to topologies that would help reduce + the skew. A constraint is considered "Unsatisfiable" for an + incoming pod if and only if every possible node assignment + for that pod would violate "MaxSkew" on some topology. For + example, in a 3-zone cluster, MaxSkew is set to 1, and pods + with the same labelSelector spread as 3/1/1: | zone1 | zone2 + | zone3 | | P P P | P | P | If WhenUnsatisfiable is + set to DoNotSchedule, incoming pod can only be scheduled to + zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on + zone2(zone3) satisfies MaxSkew(1). In other words, the cluster + can still be imbalanced, but scheduler won''t make it *more* + imbalanced. It''s a required field.' + type: string + required: + - maxSkew + - topologyKey + - whenUnsatisfiable + type: object + type: array + version: + description: Version the cluster should be on. + type: string + volumeMounts: + description: VolumeMounts allows configuration of additional VolumeMounts + on the output StatefulSet definition. VolumeMounts specified will + be appended to other VolumeMounts in the alertmanager container, + that are generated as a result of StorageSpec objects. + items: + description: VolumeMount describes a mounting of a Volume within + a container. + properties: + mountPath: + description: Path within the container at which the volume should + be mounted. Must not contain ':'. + type: string + mountPropagation: + description: mountPropagation determines how mounts are propagated + from the host to container and the other way around. When + not set, MountPropagationNone is used. This field is beta + in 1.10. + type: string + name: + description: This must match the Name of a Volume. + type: string + readOnly: + description: Mounted read-only if true, read-write otherwise + (false or unspecified). Defaults to false. + type: boolean + subPath: + description: Path within the volume from which the container's + volume should be mounted. Defaults to "" (volume's root). + type: string + subPathExpr: + description: Expanded path within the volume from which the + container's volume should be mounted. Behaves similarly to + SubPath but environment variable references $(VAR_NAME) are + expanded using the container's environment. Defaults to "" + (volume's root). SubPathExpr and SubPath are mutually exclusive. + type: string + required: + - mountPath + - name + type: object + type: array + volumes: + description: Volumes allows configuration of additional volumes on + the output StatefulSet definition. Volumes specified will be appended + to other volumes that are generated as a result of StorageSpec objects. + items: + description: Volume represents a named volume in a pod that may + be accessed by any container in the pod. + properties: + awsElasticBlockStore: + description: 'AWSElasticBlockStore represents an AWS Disk resource + that is attached to a kubelet''s host machine and then exposed + to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore' + properties: + fsType: + description: 'Filesystem type of the volume that you want + to mount. Tip: Ensure that the filesystem type is supported + by the host operating system. Examples: "ext4", "xfs", + "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + TODO: how do we prevent errors in the filesystem from + compromising the machine' + type: string + partition: + description: 'The partition in the volume that you want + to mount. If omitted, the default is to mount by volume + name. Examples: For volume /dev/sda1, you specify the + partition as "1". Similarly, the volume partition for + /dev/sda is "0" (or you can leave the property empty).' + format: int32 + type: integer + readOnly: + description: 'Specify "true" to force and set the ReadOnly + property in VolumeMounts to "true". If omitted, the default + is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore' + type: boolean + volumeID: + description: 'Unique ID of the persistent disk resource + in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore' + type: string + required: + - volumeID + type: object + azureDisk: + description: AzureDisk represents an Azure Data Disk mount on + the host and bind mount to the pod. + properties: + cachingMode: + description: 'Host Caching mode: None, Read Only, Read Write.' + type: string + diskName: + description: The Name of the data disk in the blob storage + type: string + diskURI: + description: The URI the data disk in the blob storage + type: string + fsType: + description: Filesystem type to mount. Must be a filesystem + type supported by the host operating system. Ex. "ext4", + "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + type: string + kind: + description: 'Expected values Shared: multiple blob disks + per storage account Dedicated: single blob disk per storage + account Managed: azure managed data disk (only in managed + availability set). defaults to shared' + type: string + readOnly: + description: Defaults to false (read/write). ReadOnly here + will force the ReadOnly setting in VolumeMounts. + type: boolean + required: + - diskName + - diskURI + type: object + azureFile: + description: AzureFile represents an Azure File Service mount + on the host and bind mount to the pod. + properties: + readOnly: + description: Defaults to false (read/write). ReadOnly here + will force the ReadOnly setting in VolumeMounts. + type: boolean + secretName: + description: the name of secret that contains Azure Storage + Account Name and Key + type: string + shareName: + description: Share Name + type: string + required: + - secretName + - shareName + type: object + cephfs: + description: CephFS represents a Ceph FS mount on the host that + shares a pod's lifetime + properties: + monitors: + description: 'Required: Monitors is a collection of Ceph + monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' + items: + type: string + type: array + path: + description: 'Optional: Used as the mounted root, rather + than the full Ceph tree, default is /' + type: string + readOnly: + description: 'Optional: Defaults to false (read/write). + ReadOnly here will force the ReadOnly setting in VolumeMounts. + More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' + type: boolean + secretFile: + description: 'Optional: SecretFile is the path to key ring + for User, default is /etc/ceph/user.secret More info: + https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' + type: string + secretRef: + description: 'Optional: SecretRef is reference to the authentication + secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + user: + description: 'Optional: User is the rados user name, default + is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it' + type: string + required: + - monitors + type: object + cinder: + description: 'Cinder represents a cinder volume attached and + mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md' + properties: + fsType: + description: 'Filesystem type to mount. Must be a filesystem + type supported by the host operating system. Examples: + "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" + if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md' + type: string + readOnly: + description: 'Optional: Defaults to false (read/write). + ReadOnly here will force the ReadOnly setting in VolumeMounts. + More info: https://examples.k8s.io/mysql-cinder-pd/README.md' + type: boolean + secretRef: + description: 'Optional: points to a secret object containing + parameters used to connect to OpenStack.' + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + volumeID: + description: 'volume id used to identify the volume in cinder. + More info: https://examples.k8s.io/mysql-cinder-pd/README.md' + type: string + required: + - volumeID + type: object + configMap: + description: ConfigMap represents a configMap that should populate + this volume + properties: + defaultMode: + description: 'Optional: mode bits used to set permissions + on created files by default. Must be an octal value between + 0000 and 0777 or a decimal value between 0 and 511. YAML + accepts both octal and decimal values, JSON requires decimal + values for mode bits. Defaults to 0644. Directories within + the path are not affected by this setting. This might + be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits + set.' + format: int32 + type: integer + items: + description: If unspecified, each key-value pair in the + Data field of the referenced ConfigMap will be projected + into the volume as a file whose name is the key and content + is the value. If specified, the listed keys will be projected + into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in + the ConfigMap, the volume setup will error unless it is + marked optional. Paths must be relative and may not contain + the '..' path or start with '..'. + items: + description: Maps a string key to a path within a volume. + properties: + key: + description: The key to project. + type: string + mode: + description: 'Optional: mode bits used to set permissions + on this file. Must be an octal value between 0000 + and 0777 or a decimal value between 0 and 511. YAML + accepts both octal and decimal values, JSON requires + decimal values for mode bits. If not specified, + the volume defaultMode will be used. This might + be in conflict with other options that affect the + file mode, like fsGroup, and the result can be other + mode bits set.' + format: int32 + type: integer + path: + description: The relative path of the file to map + the key to. May not be an absolute path. May not + contain the path element '..'. May not start with + the string '..'. + type: string + required: + - key + - path + type: object + type: array + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + optional: + description: Specify whether the ConfigMap or its keys must + be defined + type: boolean + type: object + csi: + description: CSI (Container Storage Interface) represents ephemeral + storage that is handled by certain external CSI drivers (Beta + feature). + properties: + driver: + description: Driver is the name of the CSI driver that handles + this volume. Consult with your admin for the correct name + as registered in the cluster. + type: string + fsType: + description: Filesystem type to mount. Ex. "ext4", "xfs", + "ntfs". If not provided, the empty value is passed to + the associated CSI driver which will determine the default + filesystem to apply. + type: string + nodePublishSecretRef: + description: NodePublishSecretRef is a reference to the + secret object containing sensitive information to pass + to the CSI driver to complete the CSI NodePublishVolume + and NodeUnpublishVolume calls. This field is optional, + and may be empty if no secret is required. If the secret + object contains more than one secret, all secret references + are passed. + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + readOnly: + description: Specifies a read-only configuration for the + volume. Defaults to false (read/write). + type: boolean + volumeAttributes: + additionalProperties: + type: string + description: VolumeAttributes stores driver-specific properties + that are passed to the CSI driver. Consult your driver's + documentation for supported values. + type: object + required: + - driver + type: object + downwardAPI: + description: DownwardAPI represents downward API about the pod + that should populate this volume + properties: + defaultMode: + description: 'Optional: mode bits to use on created files + by default. Must be a Optional: mode bits used to set + permissions on created files by default. Must be an octal + value between 0000 and 0777 or a decimal value between + 0 and 511. YAML accepts both octal and decimal values, + JSON requires decimal values for mode bits. Defaults to + 0644. Directories within the path are not affected by + this setting. This might be in conflict with other options + that affect the file mode, like fsGroup, and the result + can be other mode bits set.' + format: int32 + type: integer + items: + description: Items is a list of downward API volume file + items: + description: DownwardAPIVolumeFile represents information + to create the file containing the pod field + properties: + fieldRef: + description: 'Required: Selects a field of the pod: + only annotations, labels, name and namespace are + supported.' + properties: + apiVersion: + description: Version of the schema the FieldPath + is written in terms of, defaults to "v1". + type: string + fieldPath: + description: Path of the field to select in the + specified API version. + type: string + required: + - fieldPath + type: object + mode: + description: 'Optional: mode bits used to set permissions + on this file, must be an octal value between 0000 + and 0777 or a decimal value between 0 and 511. YAML + accepts both octal and decimal values, JSON requires + decimal values for mode bits. If not specified, + the volume defaultMode will be used. This might + be in conflict with other options that affect the + file mode, like fsGroup, and the result can be other + mode bits set.' + format: int32 + type: integer + path: + description: 'Required: Path is the relative path + name of the file to be created. Must not be absolute + or contain the ''..'' path. Must be utf-8 encoded. + The first item of the relative path must not start + with ''..''' + type: string + resourceFieldRef: + description: 'Selects a resource of the container: + only resources limits and requests (limits.cpu, + limits.memory, requests.cpu and requests.memory) + are currently supported.' + properties: + containerName: + description: 'Container name: required for volumes, + optional for env vars' + type: string + divisor: + anyOf: + - type: integer + - type: string + description: Specifies the output format of the + exposed resources, defaults to "1" + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + description: 'Required: resource to select' + type: string + required: + - resource + type: object + required: + - path + type: object + type: array + type: object + emptyDir: + description: 'EmptyDir represents a temporary directory that + shares a pod''s lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir' + properties: + medium: + description: 'What type of storage medium should back this + directory. The default is "" which means to use the node''s + default medium. Must be an empty string (default) or Memory. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir' + type: string + sizeLimit: + anyOf: + - type: integer + - type: string + description: 'Total amount of local storage required for + this EmptyDir volume. The size limit is also applicable + for memory medium. The maximum usage on memory medium + EmptyDir would be the minimum value between the SizeLimit + specified here and the sum of memory limits of all containers + in a pod. The default is nil which means that the limit + is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir' + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + type: object + ephemeral: + description: "Ephemeral represents a volume that is handled + by a cluster storage driver. The volume's lifecycle is tied + to the pod that defines it - it will be created before the + pod starts, and deleted when the pod is removed. \n Use this + if: a) the volume is only needed while the pod runs, b) features + of normal volumes like restoring from snapshot or capacity + tracking are needed, c) the storage driver is specified through + a storage class, and d) the storage driver supports dynamic + volume provisioning through a PersistentVolumeClaim (see EphemeralVolumeSource + for more information on the connection between this volume + type and PersistentVolumeClaim). \n Use PersistentVolumeClaim + or one of the vendor-specific APIs for volumes that persist + for longer than the lifecycle of an individual pod. \n Use + CSI for light-weight local ephemeral volumes if the CSI driver + is meant to be used that way - see the documentation of the + driver for more information. \n A pod can use both types of + ephemeral volumes and persistent volumes at the same time." + properties: + volumeClaimTemplate: + description: "Will be used to create a stand-alone PVC to + provision the volume. The pod in which this EphemeralVolumeSource + is embedded will be the owner of the PVC, i.e. the PVC + will be deleted together with the pod. The name of the + PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. + Pod validation will reject the pod if the concatenated + name is not valid for a PVC (for example, too long). \n + An existing PVC with that name that is not owned by the + pod will *not* be used for the pod to avoid using an unrelated + volume by mistake. Starting the pod is then blocked until + the unrelated PVC is removed. If such a pre-created PVC + is meant to be used by the pod, the PVC has to updated + with an owner reference to the pod once the pod exists. + Normally this should not be necessary, but it may be useful + when manually reconstructing a broken cluster. \n This + field is read-only and no changes will be made by Kubernetes + to the PVC after it has been created. \n Required, must + not be nil." + properties: + metadata: + description: May contain labels and annotations that + will be copied into the PVC when creating it. No other + fields are allowed and will be rejected during validation. + type: object + spec: + description: The specification for the PersistentVolumeClaim. + The entire content is copied unchanged into the PVC + that gets created from this template. The same fields + as in a PersistentVolumeClaim are also valid here. + properties: + accessModes: + description: 'AccessModes contains the desired access + modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1' + items: + type: string + type: array + dataSource: + description: 'This field can be used to specify + either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) + * An existing PVC (PersistentVolumeClaim) If the + provisioner or an external controller can support + the specified data source, it will create a new + volume based on the contents of the specified + data source. If the AnyVolumeDataSource feature + gate is enabled, this field will always have the + same contents as the DataSourceRef field.' + properties: + apiGroup: + description: APIGroup is the group for the resource + being referenced. If APIGroup is not specified, + the specified Kind must be in the core API + group. For any other third-party types, APIGroup + is required. + type: string + kind: + description: Kind is the type of resource being + referenced + type: string + name: + description: Name is the name of resource being + referenced + type: string + required: + - kind + - name + type: object + dataSourceRef: + description: 'Specifies the object from which to + populate the volume with data, if a non-empty + volume is desired. This may be any local object + from a non-empty API group (non core object) or + a PersistentVolumeClaim object. When this field + is specified, volume binding will only succeed + if the type of the specified object matches some + installed volume populator or dynamic provisioner. + This field will replace the functionality of the + DataSource field and as such if both fields are + non-empty, they must have the same value. For + backwards compatibility, both fields (DataSource + and DataSourceRef) will be set to the same value + automatically if one of them is empty and the + other is non-empty. There are two important differences + between DataSource and DataSourceRef: * While + DataSource only allows two specific types of objects, + DataSourceRef allows any non-core object, as well + as PersistentVolumeClaim objects. * While DataSource + ignores disallowed values (dropping them), DataSourceRef + preserves all values, and generates an error if + a disallowed value is specified. (Alpha) Using + this field requires the AnyVolumeDataSource feature + gate to be enabled.' + properties: + apiGroup: + description: APIGroup is the group for the resource + being referenced. If APIGroup is not specified, + the specified Kind must be in the core API + group. For any other third-party types, APIGroup + is required. + type: string + kind: + description: Kind is the type of resource being + referenced + type: string + name: + description: Name is the name of resource being + referenced + type: string + required: + - kind + - name + type: object + resources: + description: 'Resources represents the minimum resources + the volume should have. If RecoverVolumeExpansionFailure + feature is enabled users are allowed to specify + resource requirements that are lower than previous + value but must still be higher than capacity recorded + in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources' + properties: + limits: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Limits describes the maximum amount + of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + requests: + additionalProperties: + anyOf: + - type: integer + - type: string + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + description: 'Requests describes the minimum + amount of compute resources required. If Requests + is omitted for a container, it defaults to + Limits if that is explicitly specified, otherwise + to an implementation-defined value. More info: + https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/' + type: object + type: object + selector: + description: A label query over volumes to consider + for binding. + properties: + matchExpressions: + description: matchExpressions is a list of label + selector requirements. The requirements are + ANDed. + items: + description: A label selector requirement + is a selector that contains values, a key, + and an operator that relates the key and + values. + properties: + key: + description: key is the label key that + the selector applies to. + type: string + operator: + description: operator represents a key's + relationship to a set of values. Valid + operators are In, NotIn, Exists and + DoesNotExist. + type: string + values: + description: values is an array of string + values. If the operator is In or NotIn, + the values array must be non-empty. + If the operator is Exists or DoesNotExist, + the values array must be empty. This + array is replaced during a strategic + merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} + pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, + whose key field is "key", the operator is + "In", and the values array contains only "value". + The requirements are ANDed. + type: object + type: object + storageClassName: + description: 'Name of the StorageClass required + by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1' + type: string + volumeMode: + description: volumeMode defines what type of volume + is required by the claim. Value of Filesystem + is implied when not included in claim spec. + type: string + volumeName: + description: VolumeName is the binding reference + to the PersistentVolume backing this claim. + type: string + type: object + required: + - spec + type: object + type: object + fc: + description: FC represents a Fibre Channel resource that is + attached to a kubelet's host machine and then exposed to the + pod. + properties: + fsType: + description: 'Filesystem type to mount. Must be a filesystem + type supported by the host operating system. Ex. "ext4", + "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + TODO: how do we prevent errors in the filesystem from + compromising the machine' + type: string + lun: + description: 'Optional: FC target lun number' + format: int32 + type: integer + readOnly: + description: 'Optional: Defaults to false (read/write). + ReadOnly here will force the ReadOnly setting in VolumeMounts.' + type: boolean + targetWWNs: + description: 'Optional: FC target worldwide names (WWNs)' + items: + type: string + type: array + wwids: + description: 'Optional: FC volume world wide identifiers + (wwids) Either wwids or combination of targetWWNs and + lun must be set, but not both simultaneously.' + items: + type: string + type: array + type: object + flexVolume: + description: FlexVolume represents a generic volume resource + that is provisioned/attached using an exec based plugin. + properties: + driver: + description: Driver is the name of the driver to use for + this volume. + type: string + fsType: + description: Filesystem type to mount. Must be a filesystem + type supported by the host operating system. Ex. "ext4", + "xfs", "ntfs". The default filesystem depends on FlexVolume + script. + type: string + options: + additionalProperties: + type: string + description: 'Optional: Extra command options if any.' + type: object + readOnly: + description: 'Optional: Defaults to false (read/write). + ReadOnly here will force the ReadOnly setting in VolumeMounts.' + type: boolean + secretRef: + description: 'Optional: SecretRef is reference to the secret + object containing sensitive information to pass to the + plugin scripts. This may be empty if no secret object + is specified. If the secret object contains more than + one secret, all secrets are passed to the plugin scripts.' + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + required: + - driver + type: object + flocker: + description: Flocker represents a Flocker volume attached to + a kubelet's host machine. This depends on the Flocker control + service being running + properties: + datasetName: + description: Name of the dataset stored as metadata -> name + on the dataset for Flocker should be considered as deprecated + type: string + datasetUUID: + description: UUID of the dataset. This is unique identifier + of a Flocker dataset + type: string + type: object + gcePersistentDisk: + description: 'GCEPersistentDisk represents a GCE Disk resource + that is attached to a kubelet''s host machine and then exposed + to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk' + properties: + fsType: + description: 'Filesystem type of the volume that you want + to mount. Tip: Ensure that the filesystem type is supported + by the host operating system. Examples: "ext4", "xfs", + "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + TODO: how do we prevent errors in the filesystem from + compromising the machine' + type: string + partition: + description: 'The partition in the volume that you want + to mount. If omitted, the default is to mount by volume + name. Examples: For volume /dev/sda1, you specify the + partition as "1". Similarly, the volume partition for + /dev/sda is "0" (or you can leave the property empty). + More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk' + format: int32 + type: integer + pdName: + description: 'Unique name of the PD resource in GCE. Used + to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk' + type: string + readOnly: + description: 'ReadOnly here will force the ReadOnly setting + in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk' + type: boolean + required: + - pdName + type: object + gitRepo: + description: 'GitRepo represents a git repository at a particular + revision. DEPRECATED: GitRepo is deprecated. To provision + a container with a git repo, mount an EmptyDir into an InitContainer + that clones the repo using git, then mount the EmptyDir into + the Pod''s container.' + properties: + directory: + description: Target directory name. Must not contain or + start with '..'. If '.' is supplied, the volume directory + will be the git repository. Otherwise, if specified, + the volume will contain the git repository in the subdirectory + with the given name. + type: string + repository: + description: Repository URL + type: string + revision: + description: Commit hash for the specified revision. + type: string + required: + - repository + type: object + glusterfs: + description: 'Glusterfs represents a Glusterfs mount on the + host that shares a pod''s lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md' + properties: + endpoints: + description: 'EndpointsName is the endpoint name that details + Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod' + type: string + path: + description: 'Path is the Glusterfs volume path. More info: + https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod' + type: string + readOnly: + description: 'ReadOnly here will force the Glusterfs volume + to be mounted with read-only permissions. Defaults to + false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod' + type: boolean + required: + - endpoints + - path + type: object + hostPath: + description: 'HostPath represents a pre-existing file or directory + on the host machine that is directly exposed to the container. + This is generally used for system agents or other privileged + things that are allowed to see the host machine. Most containers + will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + --- TODO(jonesdl) We need to restrict who can use host directory + mounts and who can/can not mount host directories as read/write.' + properties: + path: + description: 'Path of the directory on the host. If the + path is a symlink, it will follow the link to the real + path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath' + type: string + type: + description: 'Type for HostPath Volume Defaults to "" More + info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath' + type: string + required: + - path + type: object + iscsi: + description: 'ISCSI represents an ISCSI Disk resource that is + attached to a kubelet''s host machine and then exposed to + the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md' + properties: + chapAuthDiscovery: + description: whether support iSCSI Discovery CHAP authentication + type: boolean + chapAuthSession: + description: whether support iSCSI Session CHAP authentication + type: boolean + fsType: + description: 'Filesystem type of the volume that you want + to mount. Tip: Ensure that the filesystem type is supported + by the host operating system. Examples: "ext4", "xfs", + "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + TODO: how do we prevent errors in the filesystem from + compromising the machine' + type: string + initiatorName: + description: Custom iSCSI Initiator Name. If initiatorName + is specified with iscsiInterface simultaneously, new iSCSI + interface : will be created + for the connection. + type: string + iqn: + description: Target iSCSI Qualified Name. + type: string + iscsiInterface: + description: iSCSI Interface Name that uses an iSCSI transport. + Defaults to 'default' (tcp). + type: string + lun: + description: iSCSI Target Lun number. + format: int32 + type: integer + portals: + description: iSCSI Target Portal List. The portal is either + an IP or ip_addr:port if the port is other than default + (typically TCP ports 860 and 3260). + items: + type: string + type: array + readOnly: + description: ReadOnly here will force the ReadOnly setting + in VolumeMounts. Defaults to false. + type: boolean + secretRef: + description: CHAP Secret for iSCSI target and initiator + authentication + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + targetPortal: + description: iSCSI Target Portal. The Portal is either an + IP or ip_addr:port if the port is other than default (typically + TCP ports 860 and 3260). + type: string + required: + - iqn + - lun + - targetPortal + type: object + name: + description: 'Volume''s name. Must be a DNS_LABEL and unique + within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' + type: string + nfs: + description: 'NFS represents an NFS mount on the host that shares + a pod''s lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' + properties: + path: + description: 'Path that is exported by the NFS server. More + info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' + type: string + readOnly: + description: 'ReadOnly here will force the NFS export to + be mounted with read-only permissions. Defaults to false. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' + type: boolean + server: + description: 'Server is the hostname or IP address of the + NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs' + type: string + required: + - path + - server + type: object + persistentVolumeClaim: + description: 'PersistentVolumeClaimVolumeSource represents a + reference to a PersistentVolumeClaim in the same namespace. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims' + properties: + claimName: + description: 'ClaimName is the name of a PersistentVolumeClaim + in the same namespace as the pod using this volume. More + info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims' + type: string + readOnly: + description: Will force the ReadOnly setting in VolumeMounts. + Default false. + type: boolean + required: + - claimName + type: object + photonPersistentDisk: + description: PhotonPersistentDisk represents a PhotonController + persistent disk attached and mounted on kubelets host machine + properties: + fsType: + description: Filesystem type to mount. Must be a filesystem + type supported by the host operating system. Ex. "ext4", + "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + type: string + pdID: + description: ID that identifies Photon Controller persistent + disk + type: string + required: + - pdID + type: object + portworxVolume: + description: PortworxVolume represents a portworx volume attached + and mounted on kubelets host machine + properties: + fsType: + description: FSType represents the filesystem type to mount + Must be a filesystem type supported by the host operating + system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" + if unspecified. + type: string + readOnly: + description: Defaults to false (read/write). ReadOnly here + will force the ReadOnly setting in VolumeMounts. + type: boolean + volumeID: + description: VolumeID uniquely identifies a Portworx volume + type: string + required: + - volumeID + type: object + projected: + description: Items for all in one resources secrets, configmaps, + and downward API + properties: + defaultMode: + description: Mode bits used to set permissions on created + files by default. Must be an octal value between 0000 + and 0777 or a decimal value between 0 and 511. YAML accepts + both octal and decimal values, JSON requires decimal values + for mode bits. Directories within the path are not affected + by this setting. This might be in conflict with other + options that affect the file mode, like fsGroup, and the + result can be other mode bits set. + format: int32 + type: integer + sources: + description: list of volume projections + items: + description: Projection that may be projected along with + other supported volume types + properties: + configMap: + description: information about the configMap data + to project + properties: + items: + description: If unspecified, each key-value pair + in the Data field of the referenced ConfigMap + will be projected into the volume as a file + whose name is the key and content is the value. + If specified, the listed keys will be projected + into the specified paths, and unlisted keys + will not be present. If a key is specified which + is not present in the ConfigMap, the volume + setup will error unless it is marked optional. + Paths must be relative and may not contain the + '..' path or start with '..'. + items: + description: Maps a string key to a path within + a volume. + properties: + key: + description: The key to project. + type: string + mode: + description: 'Optional: mode bits used to + set permissions on this file. Must be + an octal value between 0000 and 0777 or + a decimal value between 0 and 511. YAML + accepts both octal and decimal values, + JSON requires decimal values for mode + bits. If not specified, the volume defaultMode + will be used. This might be in conflict + with other options that affect the file + mode, like fsGroup, and the result can + be other mode bits set.' + format: int32 + type: integer + path: + description: The relative path of the file + to map the key to. May not be an absolute + path. May not contain the path element + '..'. May not start with the string '..'. + type: string + required: + - key + - path + type: object + type: array + name: + description: 'Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, + uid?' + type: string + optional: + description: Specify whether the ConfigMap or + its keys must be defined + type: boolean + type: object + downwardAPI: + description: information about the downwardAPI data + to project + properties: + items: + description: Items is a list of DownwardAPIVolume + file + items: + description: DownwardAPIVolumeFile represents + information to create the file containing + the pod field + properties: + fieldRef: + description: 'Required: Selects a field + of the pod: only annotations, labels, + name and namespace are supported.' + properties: + apiVersion: + description: Version of the schema the + FieldPath is written in terms of, + defaults to "v1". + type: string + fieldPath: + description: Path of the field to select + in the specified API version. + type: string + required: + - fieldPath + type: object + mode: + description: 'Optional: mode bits used to + set permissions on this file, must be + an octal value between 0000 and 0777 or + a decimal value between 0 and 511. YAML + accepts both octal and decimal values, + JSON requires decimal values for mode + bits. If not specified, the volume defaultMode + will be used. This might be in conflict + with other options that affect the file + mode, like fsGroup, and the result can + be other mode bits set.' + format: int32 + type: integer + path: + description: 'Required: Path is the relative + path name of the file to be created. Must + not be absolute or contain the ''..'' + path. Must be utf-8 encoded. The first + item of the relative path must not start + with ''..''' + type: string + resourceFieldRef: + description: 'Selects a resource of the + container: only resources limits and requests + (limits.cpu, limits.memory, requests.cpu + and requests.memory) are currently supported.' + properties: + containerName: + description: 'Container name: required + for volumes, optional for env vars' + type: string + divisor: + anyOf: + - type: integer + - type: string + description: Specifies the output format + of the exposed resources, defaults + to "1" + pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ + x-kubernetes-int-or-string: true + resource: + description: 'Required: resource to + select' + type: string + required: + - resource + type: object + required: + - path + type: object + type: array + type: object + secret: + description: information about the secret data to + project + properties: + items: + description: If unspecified, each key-value pair + in the Data field of the referenced Secret will + be projected into the volume as a file whose + name is the key and content is the value. If + specified, the listed keys will be projected + into the specified paths, and unlisted keys + will not be present. If a key is specified which + is not present in the Secret, the volume setup + will error unless it is marked optional. Paths + must be relative and may not contain the '..' + path or start with '..'. + items: + description: Maps a string key to a path within + a volume. + properties: + key: + description: The key to project. + type: string + mode: + description: 'Optional: mode bits used to + set permissions on this file. Must be + an octal value between 0000 and 0777 or + a decimal value between 0 and 511. YAML + accepts both octal and decimal values, + JSON requires decimal values for mode + bits. If not specified, the volume defaultMode + will be used. This might be in conflict + with other options that affect the file + mode, like fsGroup, and the result can + be other mode bits set.' + format: int32 + type: integer + path: + description: The relative path of the file + to map the key to. May not be an absolute + path. May not contain the path element + '..'. May not start with the string '..'. + type: string + required: + - key + - path + type: object + type: array + name: + description: 'Name of the referent. More info: + https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, + uid?' + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + type: object + serviceAccountToken: + description: information about the serviceAccountToken + data to project + properties: + audience: + description: Audience is the intended audience + of the token. A recipient of a token must identify + itself with an identifier specified in the audience + of the token, and otherwise should reject the + token. The audience defaults to the identifier + of the apiserver. + type: string + expirationSeconds: + description: ExpirationSeconds is the requested + duration of validity of the service account + token. As the token approaches expiration, the + kubelet volume plugin will proactively rotate + the service account token. The kubelet will + start trying to rotate the token if the token + is older than 80 percent of its time to live + or if the token is older than 24 hours.Defaults + to 1 hour and must be at least 10 minutes. + format: int64 + type: integer + path: + description: Path is the path relative to the + mount point of the file to project the token + into. + type: string + required: + - path + type: object + type: object + type: array + type: object + quobyte: + description: Quobyte represents a Quobyte mount on the host + that shares a pod's lifetime + properties: + group: + description: Group to map volume access to Default is no + group + type: string + readOnly: + description: ReadOnly here will force the Quobyte volume + to be mounted with read-only permissions. Defaults to + false. + type: boolean + registry: + description: Registry represents a single or multiple Quobyte + Registry services specified as a string as host:port pair + (multiple entries are separated with commas) which acts + as the central registry for volumes + type: string + tenant: + description: Tenant owning the given Quobyte volume in the + Backend Used with dynamically provisioned Quobyte volumes, + value is set by the plugin + type: string + user: + description: User to map volume access to Defaults to serivceaccount + user + type: string + volume: + description: Volume is a string that references an already + created Quobyte volume by name. + type: string + required: + - registry + - volume + type: object + rbd: + description: 'RBD represents a Rados Block Device mount on the + host that shares a pod''s lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md' + properties: + fsType: + description: 'Filesystem type of the volume that you want + to mount. Tip: Ensure that the filesystem type is supported + by the host operating system. Examples: "ext4", "xfs", + "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + TODO: how do we prevent errors in the filesystem from + compromising the machine' + type: string + image: + description: 'The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + type: string + keyring: + description: 'Keyring is the path to key ring for RBDUser. + Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + type: string + monitors: + description: 'A collection of Ceph monitors. More info: + https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + items: + type: string + type: array + pool: + description: 'The rados pool name. Default is rbd. More + info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + type: string + readOnly: + description: 'ReadOnly here will force the ReadOnly setting + in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + type: boolean + secretRef: + description: 'SecretRef is name of the authentication secret + for RBDUser. If provided overrides keyring. Default is + nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + user: + description: 'The rados user name. Default is admin. More + info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it' + type: string + required: + - image + - monitors + type: object + scaleIO: + description: ScaleIO represents a ScaleIO persistent volume + attached and mounted on Kubernetes nodes. + properties: + fsType: + description: Filesystem type to mount. Must be a filesystem + type supported by the host operating system. Ex. "ext4", + "xfs", "ntfs". Default is "xfs". + type: string + gateway: + description: The host address of the ScaleIO API Gateway. + type: string + protectionDomain: + description: The name of the ScaleIO Protection Domain for + the configured storage. + type: string + readOnly: + description: Defaults to false (read/write). ReadOnly here + will force the ReadOnly setting in VolumeMounts. + type: boolean + secretRef: + description: SecretRef references to the secret for ScaleIO + user and other sensitive information. If this is not provided, + Login operation will fail. + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + sslEnabled: + description: Flag to enable/disable SSL communication with + Gateway, default false + type: boolean + storageMode: + description: Indicates whether the storage for a volume + should be ThickProvisioned or ThinProvisioned. Default + is ThinProvisioned. + type: string + storagePool: + description: The ScaleIO Storage Pool associated with the + protection domain. + type: string + system: + description: The name of the storage system as configured + in ScaleIO. + type: string + volumeName: + description: The name of a volume already created in the + ScaleIO system that is associated with this volume source. + type: string + required: + - gateway + - secretRef + - system + type: object + secret: + description: 'Secret represents a secret that should populate + this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret' + properties: + defaultMode: + description: 'Optional: mode bits used to set permissions + on created files by default. Must be an octal value between + 0000 and 0777 or a decimal value between 0 and 511. YAML + accepts both octal and decimal values, JSON requires decimal + values for mode bits. Defaults to 0644. Directories within + the path are not affected by this setting. This might + be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits + set.' + format: int32 + type: integer + items: + description: If unspecified, each key-value pair in the + Data field of the referenced Secret will be projected + into the volume as a file whose name is the key and content + is the value. If specified, the listed keys will be projected + into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in + the Secret, the volume setup will error unless it is marked + optional. Paths must be relative and may not contain the + '..' path or start with '..'. + items: + description: Maps a string key to a path within a volume. + properties: + key: + description: The key to project. + type: string + mode: + description: 'Optional: mode bits used to set permissions + on this file. Must be an octal value between 0000 + and 0777 or a decimal value between 0 and 511. YAML + accepts both octal and decimal values, JSON requires + decimal values for mode bits. If not specified, + the volume defaultMode will be used. This might + be in conflict with other options that affect the + file mode, like fsGroup, and the result can be other + mode bits set.' + format: int32 + type: integer + path: + description: The relative path of the file to map + the key to. May not be an absolute path. May not + contain the path element '..'. May not start with + the string '..'. + type: string + required: + - key + - path + type: object + type: array + optional: + description: Specify whether the Secret or its keys must + be defined + type: boolean + secretName: + description: 'Name of the secret in the pod''s namespace + to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret' + type: string + type: object + storageos: + description: StorageOS represents a StorageOS volume attached + and mounted on Kubernetes nodes. + properties: + fsType: + description: Filesystem type to mount. Must be a filesystem + type supported by the host operating system. Ex. "ext4", + "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + type: string + readOnly: + description: Defaults to false (read/write). ReadOnly here + will force the ReadOnly setting in VolumeMounts. + type: boolean + secretRef: + description: SecretRef specifies the secret to use for obtaining + the StorageOS API credentials. If not specified, default + values will be attempted. + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + volumeName: + description: VolumeName is the human-readable name of the + StorageOS volume. Volume names are only unique within + a namespace. + type: string + volumeNamespace: + description: VolumeNamespace specifies the scope of the + volume within StorageOS. If no namespace is specified + then the Pod's namespace will be used. This allows the + Kubernetes name scoping to be mirrored within StorageOS + for tighter integration. Set VolumeName to any name to + override the default behaviour. Set to "default" if you + are not using namespaces within StorageOS. Namespaces + that do not pre-exist within StorageOS will be created. + type: string + type: object + vsphereVolume: + description: VsphereVolume represents a vSphere volume attached + and mounted on kubelets host machine + properties: + fsType: + description: Filesystem type to mount. Must be a filesystem + type supported by the host operating system. Ex. "ext4", + "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + type: string + storagePolicyID: + description: Storage Policy Based Management (SPBM) profile + ID associated with the StoragePolicyName. + type: string + storagePolicyName: + description: Storage Policy Based Management (SPBM) profile + name. + type: string + volumePath: + description: Path that identifies vSphere volume vmdk + type: string + required: + - volumePath + type: object + required: + - name + type: object + type: array + type: object + status: + description: 'Most recent observed status of the Alertmanager cluster. + Read-only. Not included when requesting from the apiserver, only from + the Prometheus Operator API itself. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status' + properties: + availableReplicas: + description: Total number of available pods (ready for at least minReadySeconds) + targeted by this Alertmanager cluster. + format: int32 + type: integer + paused: + description: Represents whether any actions on the underlying managed + objects are being performed. Only delete actions will be performed. + type: boolean + replicas: + description: Total number of non-terminated pods targeted by this + Alertmanager cluster (their labels match the selector). + format: int32 + type: integer + unavailableReplicas: + description: Total number of unavailable pods targeted by this Alertmanager + cluster. + format: int32 + type: integer + updatedReplicas: + description: Total number of non-terminated pods targeted by this + Alertmanager cluster that have the desired version spec. + format: int32 + type: integer + required: + - availableReplicas + - paused + - replicas + - unavailableReplicas + - updatedReplicas + type: object + required: + - spec + type: object + served: true + storage: true + subresources: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/_definitions.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/_definitions.json new file mode 100644 index 00000000..c236e0c6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/_definitions.json @@ -0,0 +1,27608 @@ +{ + "$defs": { + "io.k8s.api.admissionregistration.v1.AuditAnnotation": { + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": "string" + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": "string" + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ExpressionWarning": { + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": "string" + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": "string" + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.MatchCondition": { + "description": "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": "string" + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.MatchResources": { + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.MutatingWebhook": { + "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "clientConfig": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "reinvocationPolicy": { + "description": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", + "type": [ + "string", + "null" + ] + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.RuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "sideEffects": { + "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", + "type": "string" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration": { + "description": "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "MutatingWebhookConfiguration" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "webhooks": { + "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhook" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList": { + "description": "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of MutatingWebhookConfiguration.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "MutatingWebhookConfigurationList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfigurationList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": [ + "string", + "null" + ] + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.RuleWithOperations": { + "description": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "`name` is the name of the service. Required", + "type": "string" + }, + "namespace": { + "description": "`namespace` is the namespace of the service. Required", + "type": "string" + }, + "path": { + "description": "`path` is an optional URL path which will be sent in any request to this service.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "namespace", + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.TypeChecking": { + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ExpressionWarning" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy": { + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicy" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBinding" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBindingList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": [ + "string", + "null" + ] + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.AuditAnnotation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.Validation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.Variable" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyStatus": { + "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "typeChecking": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ValidatingWebhook": { + "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "clientConfig": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.RuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "sideEffects": { + "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", + "type": "string" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration": { + "description": "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingWebhookConfiguration" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "webhooks": { + "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhook" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList": { + "description": "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of ValidatingWebhookConfiguration.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingWebhookConfigurationList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfigurationList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.Variable": { + "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": "string" + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1.WebhookClientConfig": { + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook", + "properties": { + "caBundle": { + "description": "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "service": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ServiceReference", + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + }, + "url": { + "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation": { + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": "string" + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": "string" + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.ExpressionWarning": { + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": "string" + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": "string" + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.MatchCondition": { + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": "string" + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.MatchResources": { + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "`name` is the name of the resource being referenced.\n\n`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": [ + "string", + "null" + ] + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny` Default to `Deny`", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.TypeChecking": { + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ExpressionWarning" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy": { + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicy" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBinding" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBindingList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": [ + "string", + "null" + ] + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.Validation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.Variable" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyStatus": { + "description": "ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "typeChecking": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1alpha1.Variable": { + "description": "Variable is the definition of a variable that is used for composition.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": "string" + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.AuditAnnotation": { + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": "string" + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": "string" + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.ExpressionWarning": { + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": "string" + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": "string" + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.MatchCondition": { + "description": "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": "string" + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.MatchResources": { + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": [ + "string", + "null" + ] + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.TypeChecking": { + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ExpressionWarning" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy": { + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicy" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBinding" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBindingList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1beta1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": [ + "string", + "null" + ] + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1beta1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.AuditAnnotation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.Validation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.Variable" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyStatus": { + "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "typeChecking": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.admissionregistration.v1beta1.Variable": { + "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": "string" + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion": { + "description": "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.", + "properties": { + "apiServerID": { + "description": "The ID of the reporting API server.", + "type": [ + "string", + "null" + ] + }, + "decodableVersions": { + "description": "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "encodingVersion": { + "description": "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).", + "type": [ + "string", + "null" + ] + }, + "servedVersions": { + "description": "The API server can serve these versions. DecodableVersions must include all ServedVersions.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion": { + "description": "Storage version of a specific resource.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "internal.apiserver.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersion" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "The name is .." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionSpec", + "description": "Spec is an empty spec. It is here to comply with Kubernetes API style." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionStatus", + "description": "API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend." + } + }, + "required": [ + "spec", + "status" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionCondition": { + "description": "Describes the state of the storageVersion at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" + }, + "observedGeneration": { + "description": "If set, this represents the .metadata.generation that the condition was set based upon.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of the condition.", + "type": "string" + } + }, + "required": [ + "type", + "status", + "reason", + "message" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList": { + "description": "A list of StorageVersions.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "internal.apiserver.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "Items holds a list of StorageVersion", + "items": { + "$ref": "#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersionList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersionList", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionSpec": { + "description": "StorageVersionSpec is an empty spec.", + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionStatus": { + "description": "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.", + "properties": { + "commonEncodingVersion": { + "description": "If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.", + "type": [ + "string", + "null" + ] + }, + "conditions": { + "description": "The latest available observations of the storageVersion's state.", + "items": { + "$ref": "#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "storageVersions": { + "description": "The reported versions per API server instance.", + "items": { + "$ref": "#/$defs/io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "apiServerID" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.ControllerRevision": { + "description": "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "data": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Data is the serialized representation of the state." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ControllerRevision" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "revision": { + "description": "Revision indicates the revision of the state represented by Data.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "revision" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.ControllerRevisionList": { + "description": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "Items is the list of ControllerRevisions", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.ControllerRevision" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ControllerRevisionList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ControllerRevisionList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.DaemonSet": { + "description": "DaemonSet represents the configuration of a daemon set.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DaemonSet" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DaemonSetSpec", + "description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DaemonSetStatus", + "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.DaemonSetCondition": { + "description": "DaemonSetCondition describes the state of a DaemonSet at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of DaemonSet condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.DaemonSetList": { + "description": "DaemonSetList is a collection of daemon sets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "A list of daemon sets.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DaemonSet" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DaemonSetList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DaemonSetList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.DaemonSetSpec": { + "description": "DaemonSetSpec is the specification of a daemon set.", + "properties": { + "minReadySeconds": { + "description": "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "revisionHistoryLimit": { + "description": "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + }, + "updateStrategy": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DaemonSetUpdateStrategy", + "description": "An update strategy to replace existing DaemonSet pods with new pods." + } + }, + "required": [ + "selector", + "template" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.DaemonSetStatus": { + "description": "DaemonSetStatus represents the current status of a daemon set.", + "properties": { + "collisionCount": { + "description": "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a DaemonSet's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DaemonSetCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentNumberScheduled": { + "description": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": "integer" + }, + "desiredNumberScheduled": { + "description": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": "integer" + }, + "numberAvailable": { + "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "numberMisscheduled": { + "description": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": "integer" + }, + "numberReady": { + "description": "numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.", + "format": "int32", + "type": "integer" + }, + "numberUnavailable": { + "description": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "The most recent generation observed by the daemon set controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "updatedNumberScheduled": { + "description": "The total number of nodes that are running updated daemon pod", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "currentNumberScheduled", + "numberMisscheduled", + "desiredNumberScheduled", + "numberReady" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.DaemonSetUpdateStrategy": { + "description": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", + "properties": { + "rollingUpdate": { + "$ref": "#/$defs/io.k8s.api.apps.v1.RollingUpdateDaemonSet", + "description": "Rolling update config params. Present only if type = \"RollingUpdate\"." + }, + "type": { + "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.Deployment": { + "description": "Deployment enables declarative updates for Pods and ReplicaSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Deployment" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DeploymentSpec", + "description": "Specification of the desired behavior of the Deployment." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DeploymentStatus", + "description": "Most recently observed status of the Deployment." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.DeploymentCondition": { + "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "lastUpdateTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time this condition was updated." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of deployment condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.DeploymentList": { + "description": "DeploymentList is a list of Deployments.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "Items is the list of Deployments.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.Deployment" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeploymentList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DeploymentList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.DeploymentSpec": { + "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "paused": { + "description": "Indicates that the deployment is paused.", + "type": [ + "boolean", + "null" + ] + }, + "progressDeadlineSeconds": { + "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "revisionHistoryLimit": { + "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels." + }, + "strategy": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DeploymentStrategy", + "description": "The deployment strategy to use to replace existing pods with new ones.", + "x-kubernetes-patch-strategy": "retainKeys" + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\"." + } + }, + "required": [ + "selector", + "template" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.DeploymentStatus": { + "description": "DeploymentStatus is the most recently observed status of the Deployment.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "collisionCount": { + "description": "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a deployment's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DeploymentCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "observedGeneration": { + "description": "The generation observed by the deployment controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "unavailableReplicas": { + "description": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "updatedReplicas": { + "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.DeploymentStrategy": { + "description": "DeploymentStrategy describes how to replace existing pods with new ones.", + "properties": { + "rollingUpdate": { + "$ref": "#/$defs/io.k8s.api.apps.v1.RollingUpdateDeployment", + "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate." + }, + "type": { + "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.ReplicaSet": { + "description": "ReplicaSet ensures that a specified number of pod replicas are running at any given time.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicaSet" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.apps.v1.ReplicaSetSpec", + "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.apps.v1.ReplicaSetStatus", + "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.ReplicaSetCondition": { + "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of replica set condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.ReplicaSetList": { + "description": "ReplicaSetList is a collection of ReplicaSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.ReplicaSet" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicaSetList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ReplicaSetList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.ReplicaSetSpec": { + "description": "ReplicaSetSpec is the specification of a ReplicaSet.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + } + }, + "required": [ + "selector" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.ReplicaSetStatus": { + "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", + "properties": { + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a replica set's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.ReplicaSetCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replicaset.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "replicas" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.RollingUpdateDaemonSet": { + "description": "Spec to control the desired behavior of daemon set rolling update.", + "properties": { + "maxSurge": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption." + }, + "maxUnavailable": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.RollingUpdateDeployment": { + "description": "Spec to control the desired behavior of rolling update.", + "properties": { + "maxSurge": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods." + }, + "maxUnavailable": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy": { + "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", + "properties": { + "maxUnavailable": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable." + }, + "partition": { + "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.StatefulSet": { + "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StatefulSet" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSetSpec", + "description": "Spec defines the desired identities of pods in this set." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSetStatus", + "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.StatefulSetCondition": { + "description": "StatefulSetCondition describes the state of a statefulset at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of statefulset condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.StatefulSetList": { + "description": "StatefulSetList is a collection of StatefulSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "Items is the list of stateful sets.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSet" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StatefulSetList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "StatefulSetList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.StatefulSetOrdinals": { + "description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", + "properties": { + "start": { + "description": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy": { + "description": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", + "properties": { + "whenDeleted": { + "description": "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.", + "type": [ + "string", + "null" + ] + }, + "whenScaled": { + "description": "WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.StatefulSetSpec": { + "description": "A StatefulSetSpec is the specification of a StatefulSet.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "ordinals": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSetOrdinals", + "description": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested." + }, + "persistentVolumeClaimRetentionPolicy": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy", + "description": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta." + }, + "podManagementPolicy": { + "description": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.", + "type": [ + "string", + "null" + ] + }, + "replicas": { + "description": "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "revisionHistoryLimit": { + "description": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "serviceName": { + "description": "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.", + "type": "string" + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\". The only allowed template.spec.restartPolicy value is \"Always\"." + }, + "updateStrategy": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSetUpdateStrategy", + "description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template." + }, + "volumeClaimTemplates": { + "description": "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaim" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "selector", + "template", + "serviceName" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.StatefulSetStatus": { + "description": "StatefulSetStatus represents the current state of a StatefulSet.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "collisionCount": { + "description": "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a statefulset's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSetCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentReplicas": { + "description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "currentRevision": { + "description": "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).", + "type": [ + "string", + "null" + ] + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "replicas is the number of Pods created by the StatefulSet controller.", + "format": "int32", + "type": "integer" + }, + "updateRevision": { + "description": "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)", + "type": [ + "string", + "null" + ] + }, + "updatedReplicas": { + "description": "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "replicas" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.apps.v1.StatefulSetUpdateStrategy": { + "description": "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", + "properties": { + "rollingUpdate": { + "$ref": "#/$defs/io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy", + "description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType." + }, + "type": { + "description": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1.BoundObjectReference": { + "description": "BoundObjectReference is a reference to an object that a token is bound to.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID of the referent.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1.TokenRequest": { + "description": "TokenRequest requests a token for a given service account.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "TokenRequest" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.TokenRequestSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.TokenRequestStatus", + "description": "Status is filled in by the server and indicates whether the token can be authenticated." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "TokenRequest", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1.TokenRequestSpec": { + "description": "TokenRequestSpec contains client provided parameters of a token request.", + "properties": { + "audiences": { + "description": "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "boundObjectRef": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.BoundObjectReference", + "description": "BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation." + }, + "expirationSeconds": { + "description": "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "audiences" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1.TokenRequestStatus": { + "description": "TokenRequestStatus is the result of a token request.", + "properties": { + "expirationTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "ExpirationTimestamp is the time of expiration of the returned token." + }, + "token": { + "description": "Token is the opaque bearer token.", + "type": "string" + } + }, + "required": [ + "token", + "expirationTimestamp" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1.TokenReview": { + "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "TokenReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.TokenReviewSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.TokenReviewStatus", + "description": "Status is filled in by the server and indicates whether the request can be authenticated." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "TokenReview", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1.TokenReviewSpec": { + "description": "TokenReviewSpec is a description of the token authentication request.", + "properties": { + "audiences": { + "description": "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "token": { + "description": "Token is the opaque bearer token.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1.TokenReviewStatus": { + "description": "TokenReviewStatus is the result of the token authentication request.", + "properties": { + "audiences": { + "description": "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "authenticated": { + "description": "Authenticated indicates that the token was associated with a known user.", + "type": [ + "boolean", + "null" + ] + }, + "error": { + "description": "Error indicates that the token couldn't be checked", + "type": [ + "string", + "null" + ] + }, + "user": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User is the UserInfo associated with the provided token." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1.UserInfo": { + "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", + "properties": { + "extra": { + "additionalProperties": { + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "description": "Any additional information provided by the authenticator.", + "type": [ + "object", + "null" + ] + }, + "groups": { + "description": "The names of groups this user is a part of.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "uid": { + "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", + "type": [ + "string", + "null" + ] + }, + "username": { + "description": "The name that uniquely identifies this user among all active users.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1alpha1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1beta1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authentication.v1beta1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1beta1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.authentication.v1beta1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.FieldSelectorAttributes": { + "description": "FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.", + "properties": { + "rawSelector": { + "description": "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.", + "type": [ + "string", + "null" + ] + }, + "requirements": { + "description": "requirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.FieldSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.LabelSelectorAttributes": { + "description": "LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.", + "properties": { + "rawSelector": { + "description": "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.", + "type": [ + "string", + "null" + ] + }, + "requirements": { + "description": "requirements is the parsed interpretation of a label selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.LocalSubjectAccessReview": { + "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LocalSubjectAccessReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "LocalSubjectAccessReview", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.NonResourceAttributes": { + "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", + "properties": { + "path": { + "description": "Path is the URL path of the request", + "type": [ + "string", + "null" + ] + }, + "verb": { + "description": "Verb is the standard HTTP verb", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.NonResourceRule": { + "description": "NonResourceRule holds information that describes a rule for the non-resource", + "properties": { + "nonResourceURLs": { + "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.ResourceAttributes": { + "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", + "properties": { + "fieldSelector": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.FieldSelectorAttributes", + "description": "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default)." + }, + "group": { + "description": "Group is the API Group of the Resource. \"*\" means all.", + "type": [ + "string", + "null" + ] + }, + "labelSelector": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.LabelSelectorAttributes", + "description": "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default)." + }, + "name": { + "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "Resource is one of the existing resource types. \"*\" means all.", + "type": [ + "string", + "null" + ] + }, + "subresource": { + "description": "Subresource is one of the existing resource types. \"\" means none.", + "type": [ + "string", + "null" + ] + }, + "verb": { + "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "Version is the API Version of the Resource. \"*\" means all.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.ResourceRule": { + "description": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "properties": { + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.SelfSubjectAccessReview": { + "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectAccessReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated. user and groups must be empty" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectAccessReview", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec": { + "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "nonResourceAttributes": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.NonResourceAttributes", + "description": "NonResourceAttributes describes information for a non-resource access request" + }, + "resourceAttributes": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.ResourceAttributes", + "description": "ResourceAuthorizationAttributes describes information for a resource access request" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.SelfSubjectRulesReview": { + "description": "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectRulesReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec", + "description": "Spec holds information about the request being evaluated." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SubjectRulesReviewStatus", + "description": "Status is filled in by the server and indicates the set of actions a user can perform." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectRulesReview", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec": { + "description": "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.", + "properties": { + "namespace": { + "description": "Namespace to evaluate rules for. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.SubjectAccessReview": { + "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SubjectAccessReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SubjectAccessReview", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.SubjectAccessReviewSpec": { + "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "extra": { + "additionalProperties": { + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", + "type": [ + "object", + "null" + ] + }, + "groups": { + "description": "Groups is the groups you're testing for.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nonResourceAttributes": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.NonResourceAttributes", + "description": "NonResourceAttributes describes information for a non-resource access request" + }, + "resourceAttributes": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.ResourceAttributes", + "description": "ResourceAuthorizationAttributes describes information for a resource access request" + }, + "uid": { + "description": "UID information about the requesting user.", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.SubjectAccessReviewStatus": { + "description": "SubjectAccessReviewStatus", + "properties": { + "allowed": { + "description": "Allowed is required. True if the action would be allowed, false otherwise.", + "type": "boolean" + }, + "denied": { + "description": "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", + "type": [ + "boolean", + "null" + ] + }, + "evaluationError": { + "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason is optional. It indicates why a request was allowed or denied.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "allowed" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.authorization.v1.SubjectRulesReviewStatus": { + "description": "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.", + "properties": { + "evaluationError": { + "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", + "type": [ + "string", + "null" + ] + }, + "incomplete": { + "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", + "type": "boolean" + }, + "nonResourceRules": { + "description": "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.NonResourceRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.ResourceRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "resourceRules", + "nonResourceRules", + "incomplete" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v1.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "properties": { + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler": { + "description": "configuration of a horizontal pod autoscaler.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscaler" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec", + "description": "spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList": { + "description": "list of horizontal pod autoscaler objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v1" + ] + }, + "items": { + "description": "items is the list of horizontal pod autoscaler objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscalerList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec": { + "description": "specification of a horizontal pod autoscaler.", + "properties": { + "maxReplicas": { + "description": "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", + "format": "int32", + "type": "integer" + }, + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "scaleTargetRef": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v1.CrossVersionObjectReference", + "description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource." + }, + "targetCPUUtilizationPercentage": { + "description": "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "scaleTargetRef", + "maxReplicas" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus": { + "description": "current status of a horizontal pod autoscaler", + "properties": { + "currentCPUUtilizationPercentage": { + "description": "currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "currentReplicas": { + "description": "currentReplicas is the current number of replicas of pods managed by this autoscaler.", + "format": "int32", + "type": "integer" + }, + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler.", + "format": "int32", + "type": "integer" + }, + "lastScaleTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed." + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "currentReplicas", + "desiredReplicas" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v1.Scale": { + "description": "Scale represents a scaling request for a resource.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Scale" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v1.ScaleSpec", + "description": "spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v1.ScaleStatus", + "description": "status is the current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v1.ScaleSpec": { + "description": "ScaleSpec describes the attributes of a scale subresource.", + "properties": { + "replicas": { + "description": "replicas is the desired number of instances for the scaled object.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v1.ScaleStatus": { + "description": "ScaleStatus represents the current status of a scale subresource.", + "properties": { + "replicas": { + "description": "replicas is the actual number of observed instances of the scaled object.", + "format": "int32", + "type": "integer" + }, + "selector": { + "description": "selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "replicas" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.ContainerResourceMetricSource": { + "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "properties": { + "container": { + "description": "container is the name of the container in the pods of the scaling target", + "type": "string" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + }, + "target": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "name", + "target", + "container" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus": { + "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "properties": { + "container": { + "description": "container is the name of the container in the pods of the scaling target", + "type": "string" + }, + "current": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + } + }, + "required": [ + "name", + "current", + "container" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "properties": { + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.ExternalMetricSource": { + "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", + "properties": { + "metric": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "metric", + "target" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.ExternalMetricStatus": { + "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", + "properties": { + "current": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "metric": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.HPAScalingPolicy": { + "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", + "properties": { + "periodSeconds": { + "description": "periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "type is used to specify the scaling policy.", + "type": "string" + }, + "value": { + "description": "value contains the amount of change which is permitted by the policy. It must be greater than zero", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "type", + "value", + "periodSeconds" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.HPAScalingRules": { + "description": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.", + "properties": { + "policies": { + "description": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid", + "items": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HPAScalingPolicy" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "selectPolicy": { + "description": "selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.", + "type": [ + "string", + "null" + ] + }, + "stabilizationWindowSeconds": { + "description": "stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler": { + "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v2" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscaler" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec", + "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior": { + "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", + "properties": { + "scaleDown": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HPAScalingRules", + "description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)." + }, + "scaleUp": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HPAScalingRules", + "description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerCondition": { + "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the last time the condition transitioned from one status to another" + }, + "message": { + "description": "message is a human-readable explanation containing details about the transition", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is the reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status is the status of the condition (True, False, Unknown)", + "type": "string" + }, + "type": { + "description": "type describes the current condition", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList": { + "description": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v2" + ] + }, + "items": { + "description": "items is the list of horizontal pod autoscaler objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscalerList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata is the standard list metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", + "version": "v2" + } + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec": { + "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", + "properties": { + "behavior": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior", + "description": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used." + }, + "maxReplicas": { + "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", + "format": "int32", + "type": "integer" + }, + "metrics": { + "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", + "items": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricSpec" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "scaleTargetRef": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." + } + }, + "required": [ + "scaleTargetRef", + "maxReplicas" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerStatus": { + "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", + "properties": { + "conditions": { + "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", + "items": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentMetrics": { + "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", + "items": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "currentReplicas": { + "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", + "format": "int32", + "type": "integer" + }, + "lastScaleTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed." + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "desiredReplicas" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.MetricIdentifier": { + "description": "MetricIdentifier defines the name and optionally selector for a metric", + "properties": { + "name": { + "description": "name is the name of the given metric", + "type": "string" + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.MetricSpec": { + "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", + "properties": { + "containerResource": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ContainerResourceMetricSource", + "description": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." + }, + "external": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ExternalMetricSource", + "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." + }, + "object": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ObjectMetricSource", + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." + }, + "pods": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.PodsMetricSource", + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + }, + "resource": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ResourceMetricSource", + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "type": { + "description": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.MetricStatus": { + "description": "MetricStatus describes the last-read state of a single metric.", + "properties": { + "containerResource": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus", + "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "external": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ExternalMetricStatus", + "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." + }, + "object": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ObjectMetricStatus", + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." + }, + "pods": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.PodsMetricStatus", + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + }, + "resource": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ResourceMetricStatus", + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "type": { + "description": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.MetricTarget": { + "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric", + "properties": { + "averageUtilization": { + "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "averageValue": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)" + }, + "type": { + "description": "type represents whether the metric type is Utilization, Value, or AverageValue", + "type": "string" + }, + "value": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "value is the target value of the metric (as a quantity)." + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.MetricValueStatus": { + "description": "MetricValueStatus holds the current value for a metric", + "properties": { + "averageUtilization": { + "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "averageValue": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" + }, + "value": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "value is the current value of the metric (as a quantity)." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.ObjectMetricSource": { + "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "properties": { + "describedObject": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "describedObject specifies the descriptions of a object,such as kind,name apiVersion" + }, + "metric": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "describedObject", + "target", + "metric" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.ObjectMetricStatus": { + "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "properties": { + "current": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "describedObject": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "DescribedObject specifies the descriptions of a object,such as kind,name apiVersion" + }, + "metric": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current", + "describedObject" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.PodsMetricSource": { + "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", + "properties": { + "metric": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "metric", + "target" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.PodsMetricStatus": { + "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "properties": { + "current": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "metric": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.ResourceMetricSource": { + "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "properties": { + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + }, + "target": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "name", + "target" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.autoscaling.v2.ResourceMetricStatus": { + "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "properties": { + "current": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + } + }, + "required": [ + "name", + "current" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.CronJob": { + "description": "CronJob represents the configuration of a single cron job.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CronJob" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.batch.v1.CronJobSpec", + "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.batch.v1.CronJobStatus", + "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.CronJobList": { + "description": "CronJobList is a collection of cron jobs.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "items": { + "description": "items is the list of CronJobs.", + "items": { + "$ref": "#/$defs/io.k8s.api.batch.v1.CronJob" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CronJobList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJobList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.CronJobSpec": { + "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", + "properties": { + "concurrencyPolicy": { + "description": "Specifies how to treat concurrent executions of a Job. Valid values are:\n\n- \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one", + "type": [ + "string", + "null" + ] + }, + "failedJobsHistoryLimit": { + "description": "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "jobTemplate": { + "$ref": "#/$defs/io.k8s.api.batch.v1.JobTemplateSpec", + "description": "Specifies the job that will be created when executing a CronJob." + }, + "schedule": { + "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + "type": "string" + }, + "startingDeadlineSeconds": { + "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "successfulJobsHistoryLimit": { + "description": "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "suspend": { + "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "timeZone": { + "description": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "schedule", + "jobTemplate" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.CronJobStatus": { + "description": "CronJobStatus represents the current state of a cron job.", + "properties": { + "active": { + "description": "A list of pointers to currently running jobs.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "lastScheduleTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Information when was the last time the job was successfully scheduled." + }, + "lastSuccessfulTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Information when was the last time the job successfully completed." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.Job": { + "description": "Job represents the configuration of a single job.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Job" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.batch.v1.JobSpec", + "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.batch.v1.JobStatus", + "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "Job", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.JobCondition": { + "description": "JobCondition describes current state of a job.", + "properties": { + "lastProbeTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition was checked." + }, + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transit from one status to another." + }, + "message": { + "description": "Human readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of job condition, Complete or Failed.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.JobList": { + "description": "JobList is a collection of jobs.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "items": { + "description": "items is the list of Jobs.", + "items": { + "$ref": "#/$defs/io.k8s.api.batch.v1.Job" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "JobList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "JobList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.JobSpec": { + "description": "JobSpec describes how the job execution will look like.", + "properties": { + "activeDeadlineSeconds": { + "description": "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "backoffLimit": { + "description": "Specifies the number of retries before marking this job failed. Defaults to 6", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "backoffLimitPerIndex": { + "description": "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "completionMode": { + "description": "completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.", + "type": [ + "string", + "null" + ] + }, + "completions": { + "description": "Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "managedBy": { + "description": "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.\n\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).", + "type": [ + "string", + "null" + ] + }, + "manualSelector": { + "description": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector", + "type": [ + "boolean", + "null" + ] + }, + "maxFailedIndexes": { + "description": "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "parallelism": { + "description": "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "podFailurePolicy": { + "$ref": "#/$defs/io.k8s.api.batch.v1.PodFailurePolicy", + "description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure." + }, + "podReplacementPolicy": { + "description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "successPolicy": { + "$ref": "#/$defs/io.k8s.api.batch.v1.SuccessPolicy", + "description": "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.\n\nThis field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default)." + }, + "suspend": { + "description": "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are \"Never\" or \"OnFailure\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/" + }, + "ttlSecondsAfterFinished": { + "description": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "template" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.JobStatus": { + "description": "JobStatus represents the current state of a Job.", + "properties": { + "active": { + "description": "The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "completedIndexes": { + "description": "completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", + "type": [ + "string", + "null" + ] + }, + "completionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field." + }, + "conditions": { + "description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true.\n\nA job is considered finished when it is in a terminal condition, either \"Complete\" or \"Failed\". A Job cannot have both the \"Complete\" and \"Failed\" conditions. Additionally, it cannot be in the \"Complete\" and \"FailureTarget\" conditions. The \"Complete\", \"Failed\" and \"FailureTarget\" conditions cannot be disabled.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "items": { + "$ref": "#/$defs/io.k8s.api.batch.v1.JobCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "failed": { + "description": "The number of pods which reached phase Failed. The value increases monotonically.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "failedIndexes": { + "description": "FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes.\n\nThis field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "type": [ + "string", + "null" + ] + }, + "ready": { + "description": "The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "startTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.\n\nOnce set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished." + }, + "succeeded": { + "description": "The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "terminating": { + "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "uncountedTerminatedPods": { + "$ref": "#/$defs/io.k8s.api.batch.v1.UncountedTerminatedPods", + "description": "uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.JobTemplateSpec": { + "description": "JobTemplateSpec describes the data a Job should have when created from a template", + "properties": { + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.batch.v1.JobSpec", + "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.PodFailurePolicy": { + "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", + "properties": { + "rules": { + "description": "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", + "items": { + "$ref": "#/$defs/io.k8s.api.batch.v1.PodFailurePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement": { + "description": "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", + "properties": { + "containerName": { + "description": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:\n\n- In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.", + "type": "string" + }, + "values": { + "description": "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", + "items": { + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "operator", + "values" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern": { + "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", + "properties": { + "status": { + "description": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", + "type": "string" + }, + "type": { + "description": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.PodFailurePolicyRule": { + "description": "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.", + "properties": { + "action": { + "description": "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:\n\n- FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- FailIndex: indicates that the pod's index is marked as Failed and will\n not be restarted.\n This value is beta-level. It can be used when the\n `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.", + "type": "string" + }, + "onExitCodes": { + "$ref": "#/$defs/io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement", + "description": "Represents the requirement on the container exit codes." + }, + "onPodConditions": { + "description": "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.", + "items": { + "$ref": "#/$defs/io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "action" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.SuccessPolicy": { + "description": "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.", + "properties": { + "rules": { + "description": "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", + "items": { + "$ref": "#/$defs/io.k8s.api.batch.v1.SuccessPolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.SuccessPolicyRule": { + "description": "SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified.", + "properties": { + "succeededCount": { + "description": "succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is \"1-4\", succeededCount is \"3\", and completed indexes are \"1\", \"3\", and \"5\", the Job isn't declared as succeeded because only \"1\" and \"3\" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "succeededIndexes": { + "description": "succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to \".spec.completions-1\" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". When this field is null, this field doesn't default to any value and is never evaluated at any time.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.batch.v1.UncountedTerminatedPods": { + "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", + "properties": { + "failed": { + "description": "failed holds UIDs of failed Pods.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "succeeded": { + "description": "succeeded holds UIDs of succeeded Pods.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.certificates.v1.CertificateSigningRequest": { + "description": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CertificateSigningRequest" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestSpec", + "description": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestStatus", + "description": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.certificates.v1.CertificateSigningRequestCondition": { + "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time." + }, + "lastUpdateTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastUpdateTime is the time of the last update to this condition" + }, + "message": { + "description": "message contains a human readable message with details about the request state", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason indicates a brief reason for the request state", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", + "type": "string" + }, + "type": { + "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.certificates.v1.CertificateSigningRequestList": { + "description": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1" + ] + }, + "items": { + "description": "items is a collection of CertificateSigningRequest objects", + "items": { + "$ref": "#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequest" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CertificateSigningRequestList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequestList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.certificates.v1.CertificateSigningRequestSpec": { + "description": "CertificateSigningRequestSpec contains the certificate request.", + "properties": { + "expirationSeconds": { + "description": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "extra": { + "additionalProperties": { + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "description": "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": [ + "object", + "null" + ] + }, + "groups": { + "description": "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "request": { + "description": "request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.", + "format": "byte", + "type": "string", + "x-kubernetes-list-type": "atomic" + }, + "signerName": { + "description": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 6. Whether or not requests for CA certificates are allowed.", + "type": "string" + }, + "uid": { + "description": "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": [ + "string", + "null" + ] + }, + "usages": { + "description": "usages specifies a set of key usages requested in the issued certificate.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "username": { + "description": "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "request", + "signerName" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.certificates.v1.CertificateSigningRequestStatus": { + "description": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", + "properties": { + "certificate": { + "description": "certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(\n -----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\n )", + "format": "byte", + "type": [ + "string", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "conditions": { + "description": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", + "items": { + "$ref": "#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.certificates.v1alpha1.ClusterTrustBundle": { + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.\n\nIt can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterTrustBundle" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata contains the object metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec", + "description": "spec contains the signer (if any) and trust anchors." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList": { + "description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "items is a collection of ClusterTrustBundle objects", + "items": { + "$ref": "#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterTrustBundleList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata contains the list metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundleList", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec": { + "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", + "properties": { + "signerName": { + "description": "signerName indicates the associated signer, if any.\n\nIn order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest.\n\nIf signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.\n\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\n\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.", + "type": [ + "string", + "null" + ] + }, + "trustBundle": { + "description": "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\n\nThe data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.\n\nUsers of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.", + "type": "string" + } + }, + "required": [ + "trustBundle" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.coordination.v1.Lease": { + "description": "Lease defines a lease concept.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Lease" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.coordination.v1.LeaseSpec", + "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.coordination.v1.LeaseList": { + "description": "LeaseList is a list of Lease objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.coordination.v1.Lease" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LeaseList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.coordination.v1.LeaseSpec": { + "description": "LeaseSpec is a specification of a Lease.", + "properties": { + "acquireTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "acquireTime is a time when the current lease was acquired." + }, + "holderIdentity": { + "description": "holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.", + "type": [ + "string", + "null" + ] + }, + "leaseDurationSeconds": { + "description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "leaseTransitions": { + "description": "leaseTransitions is the number of transitions of a lease between holders.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "preferredHolder": { + "description": "PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.", + "type": [ + "string", + "null" + ] + }, + "renewTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "renewTime is a time when the current holder of a lease has last updated the lease." + }, + "strategy": { + "description": "Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.coordination.v1alpha1.LeaseCandidate": { + "description": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LeaseCandidate" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidateSpec", + "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.coordination.v1alpha1.LeaseCandidateList": { + "description": "LeaseCandidateList is a list of Lease objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidate" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LeaseCandidateList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidateList", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.coordination.v1alpha1.LeaseCandidateSpec": { + "description": "LeaseCandidateSpec is a specification of a Lease.", + "properties": { + "binaryVersion": { + "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is \"OldestEmulationVersion\"", + "type": [ + "string", + "null" + ] + }, + "emulationVersion": { + "description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + "type": [ + "string", + "null" + ] + }, + "leaseName": { + "description": "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.", + "type": "string" + }, + "pingTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime." + }, + "preferredStrategies": { + "description": "PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y\n will be used.\n- If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader\n election will not operate the Lease until resolved.\n(Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "renewTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates." + } + }, + "required": [ + "leaseName", + "preferredStrategies" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource": { + "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": [ + "string", + "null" + ] + }, + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "readOnly": { + "description": "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": [ + "boolean", + "null" + ] + }, + "volumeID": { + "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Affinity": { + "description": "Affinity is a group of affinity scheduling rules.", + "properties": { + "nodeAffinity": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeAffinity", + "description": "Describes node affinity scheduling rules for the pod." + }, + "podAffinity": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodAffinity", + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))." + }, + "podAntiAffinity": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodAntiAffinity", + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.AppArmorProfile": { + "description": "AppArmorProfile defines a pod or container's AppArmor settings.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\".", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type indicates which kind of AppArmor profile will be applied. Valid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.AttachedVolume": { + "description": "AttachedVolume describes a volume attached to a node", + "properties": { + "devicePath": { + "description": "DevicePath represents the device path where the volume should be available", + "type": "string" + }, + "name": { + "description": "Name of the attached volume", + "type": "string" + } + }, + "required": [ + "name", + "devicePath" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.AzureDiskVolumeSource": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "properties": { + "cachingMode": { + "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", + "type": [ + "string", + "null" + ] + }, + "diskName": { + "description": "diskName is the Name of the data disk in the blob storage", + "type": "string" + }, + "diskURI": { + "description": "diskURI is the URI of data disk in the blob storage", + "type": "string" + }, + "fsType": { + "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "diskName", + "diskURI" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.AzureFilePersistentVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": "string" + }, + "secretNamespace": { + "description": "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", + "type": [ + "string", + "null" + ] + }, + "shareName": { + "description": "shareName is the azure Share Name", + "type": "string" + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.AzureFileVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": "string" + }, + "shareName": { + "description": "shareName is the azure share Name", + "type": "string" + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Binding": { + "description": "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Binding" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "target": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "The target object that you want to bind to the standard object." + } + }, + "required": [ + "target" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Binding", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.CSIPersistentVolumeSource": { + "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", + "properties": { + "controllerExpandSecretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "controllerPublishSecretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "driver": { + "description": "driver is the name of the driver to use for this volume. Required.", + "type": "string" + }, + "fsType": { + "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", + "type": [ + "string", + "null" + ] + }, + "nodeExpandSecretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "nodePublishSecretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "nodeStageSecretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "readOnly": { + "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", + "type": [ + "boolean", + "null" + ] + }, + "volumeAttributes": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "volumeAttributes of the volume to publish.", + "type": [ + "object", + "null" + ] + }, + "volumeHandle": { + "description": "volumeHandle is the unique volume name returned by the CSI volume plugin\u2019s CreateVolume to refer to the volume on all subsequent calls. Required.", + "type": "string" + } + }, + "required": [ + "driver", + "volumeHandle" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.CSIVolumeSource": { + "description": "Represents a source location of a volume to mount, managed by an external CSI driver", + "properties": { + "driver": { + "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", + "type": "string" + }, + "fsType": { + "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", + "type": [ + "string", + "null" + ] + }, + "nodePublishSecretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." + }, + "readOnly": { + "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", + "type": [ + "boolean", + "null" + ] + }, + "volumeAttributes": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "driver" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Capabilities": { + "description": "Adds and removes POSIX capabilities from running containers.", + "properties": { + "add": { + "description": "Added capabilities", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "drop": { + "description": "Removed capabilities", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.CephFSPersistentVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.CephFSVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.CinderPersistentVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.CinderVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ClientIPConfig": { + "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", + "properties": { + "timeoutSeconds": { + "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ClusterTrustBundleProjection": { + "description": "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.", + "properties": { + "labelSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as \"match nothing\". If set but empty, interpreted as \"match everything\"." + }, + "name": { + "description": "Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.", + "type": [ + "boolean", + "null" + ] + }, + "path": { + "description": "Relative path from the volume root to write the bundle.", + "type": "string" + }, + "signerName": { + "description": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "path" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ComponentCondition": { + "description": "Information about the condition of a component.", + "properties": { + "error": { + "description": "Condition error code for a component. For example, a health check error code.", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message about the condition for a component. For example, information about a health check.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", + "type": "string" + }, + "type": { + "description": "Type of condition for a component. Valid value: \"Healthy\"", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ComponentStatus": { + "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "conditions": { + "description": "List of component conditions observed", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ComponentCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ComponentStatus" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatus", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ComponentStatusList": { + "description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of ComponentStatus objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ComponentStatus" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ComponentStatusList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatusList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ConfigMap": { + "description": "ConfigMap holds configuration data for pods to consume.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "binaryData": { + "additionalProperties": { + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", + "type": [ + "object", + "null" + ] + }, + "data": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.", + "type": [ + "object", + "null" + ] + }, + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ConfigMap" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ConfigMapEnvSource": { + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ConfigMapKeySelector": { + "description": "Selects a key from a ConfigMap.", + "properties": { + "key": { + "description": "The key to select.", + "type": "string" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "key" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.ConfigMapList": { + "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is the list of ConfigMaps.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ConfigMap" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ConfigMapList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMapList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ConfigMapNodeConfigSource": { + "description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", + "properties": { + "kubeletConfigKey": { + "description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", + "type": "string" + }, + "name": { + "description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", + "type": "string" + }, + "namespace": { + "description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", + "type": "string" + }, + "resourceVersion": { + "description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "namespace", + "name", + "kubeletConfigKey" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ConfigMapProjection": { + "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", + "properties": { + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ConfigMapVolumeSource": { + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Container": { + "description": "A single application container that you want to run within a pod.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EnvVar" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EnvFromSource" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", + "type": [ + "string", + "null" + ] + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "type": [ + "string", + "null" + ] + }, + "lifecycle": { + "$ref": "#/$defs/io.k8s.api.core.v1.Lifecycle", + "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + }, + "livenessProbe": { + "$ref": "#/$defs/io.k8s.api.core.v1.Probe", + "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "name": { + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", + "type": "string" + }, + "ports": { + "description": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "$ref": "#/$defs/io.k8s.api.core.v1.Probe", + "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerResizePolicy" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceRequirements", + "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + }, + "restartPolicy": { + "description": "RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", + "type": [ + "string", + "null" + ] + }, + "securityContext": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecurityContext", + "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" + }, + "startupProbe": { + "$ref": "#/$defs/io.k8s.api.core.v1.Probe", + "description": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": [ + "boolean", + "null" + ] + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeDevice" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "devicePath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeMount" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ContainerImage": { + "description": "Describe a container image", + "properties": { + "names": { + "description": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "sizeBytes": { + "description": "The size of the image in bytes.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ContainerPort": { + "description": "ContainerPort represents a network port in a single container.", + "properties": { + "containerPort": { + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", + "format": "int32", + "type": "integer" + }, + "hostIP": { + "description": "What host IP to bind the external port to.", + "type": [ + "string", + "null" + ] + }, + "hostPort": { + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "name": { + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "type": [ + "string", + "null" + ] + }, + "protocol": { + "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "containerPort" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ContainerResizePolicy": { + "description": "ContainerResizePolicy represents resource resize policy for the container.", + "properties": { + "resourceName": { + "description": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.", + "type": "string" + }, + "restartPolicy": { + "description": "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.", + "type": "string" + } + }, + "required": [ + "resourceName", + "restartPolicy" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ContainerState": { + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", + "properties": { + "running": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerStateRunning", + "description": "Details about a running container" + }, + "terminated": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerStateTerminated", + "description": "Details about a terminated container" + }, + "waiting": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerStateWaiting", + "description": "Details about a waiting container" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ContainerStateRunning": { + "description": "ContainerStateRunning is a running state of a container.", + "properties": { + "startedAt": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container was last (re-)started" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ContainerStateTerminated": { + "description": "ContainerStateTerminated is a terminated state of a container.", + "properties": { + "containerID": { + "description": "Container's ID in the format '://'", + "type": [ + "string", + "null" + ] + }, + "exitCode": { + "description": "Exit status from the last termination of the container", + "format": "int32", + "type": "integer" + }, + "finishedAt": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container last terminated" + }, + "message": { + "description": "Message regarding the last termination of the container", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason from the last termination of the container", + "type": [ + "string", + "null" + ] + }, + "signal": { + "description": "Signal from the last termination of the container", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "startedAt": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which previous execution of the container started" + } + }, + "required": [ + "exitCode" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ContainerStateWaiting": { + "description": "ContainerStateWaiting is a waiting state of a container.", + "properties": { + "message": { + "description": "Message regarding why the container is not yet running.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason the container is not yet running.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ContainerStatus": { + "description": "ContainerStatus contains details for the current status of this container.", + "properties": { + "allocatedResources": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.", + "type": [ + "object", + "null" + ] + }, + "allocatedResourcesStatus": { + "description": "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "containerID": { + "description": "ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.", + "type": "string" + }, + "imageID": { + "description": "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.", + "type": "string" + }, + "lastState": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerState", + "description": "LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0." + }, + "name": { + "description": "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.", + "type": "string" + }, + "ready": { + "description": "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic.", + "type": "boolean" + }, + "resources": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceRequirements", + "description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized." + }, + "restartCount": { + "description": "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.", + "format": "int32", + "type": "integer" + }, + "started": { + "description": "Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.", + "type": [ + "boolean", + "null" + ] + }, + "state": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerState", + "description": "State holds details about the container's current condition." + }, + "user": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerUser", + "description": "User represents user identity information initially attached to the first process of the container" + }, + "volumeMounts": { + "description": "Status of volume mounts.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeMountStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "name", + "ready", + "restartCount", + "image", + "imageID" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ContainerUser": { + "description": "ContainerUser represents user identity information", + "properties": { + "linux": { + "$ref": "#/$defs/io.k8s.api.core.v1.LinuxContainerUser", + "description": "Linux holds user identity information initially attached to the first process of the containers in Linux. Note that the actual running identity can be changed if the process has enough privilege to do so." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.DaemonEndpoint": { + "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "properties": { + "Port": { + "description": "Port number of the given endpoint.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "Port" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.DownwardAPIProjection": { + "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", + "properties": { + "items": { + "description": "Items is a list of DownwardAPIVolume file", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeFile" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.DownwardAPIVolumeFile": { + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "properties": { + "fieldRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectFieldSelector", + "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "path": { + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "type": "string" + }, + "resourceFieldRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." + } + }, + "required": [ + "path" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.DownwardAPIVolumeSource": { + "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "items": { + "description": "Items is a list of downward API volume file", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeFile" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.EmptyDirVolumeSource": { + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", + "properties": { + "medium": { + "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", + "type": [ + "string", + "null" + ] + }, + "sizeLimit": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.EndpointAddress": { + "description": "EndpointAddress is a tuple that describes single IP address.", + "properties": { + "hostname": { + "description": "The Hostname of this endpoint", + "type": [ + "string", + "null" + ] + }, + "ip": { + "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).", + "type": "string" + }, + "nodeName": { + "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "type": [ + "string", + "null" + ] + }, + "targetRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "Reference to object providing the endpoint." + } + }, + "required": [ + "ip" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.EndpointPort": { + "description": "EndpointPort is a tuple that describes a single port.", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "The port number of the endpoint.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.EndpointSubset": { + "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "properties": { + "addresses": { + "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EndpointAddress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "notReadyAddresses": { + "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EndpointAddress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "Port numbers available on the related IP addresses.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EndpointPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Endpoints": { + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Endpoints" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "subsets": { + "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EndpointSubset" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.EndpointsList": { + "description": "EndpointsList is a list of endpoints.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of endpoints.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Endpoints" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EndpointsList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EndpointsList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.EnvFromSource": { + "description": "EnvFromSource represents the source of a set of ConfigMaps", + "properties": { + "configMapRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ConfigMapEnvSource", + "description": "The ConfigMap to select from" + }, + "prefix": { + "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "type": [ + "string", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretEnvSource", + "description": "The Secret to select from" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.EnvVar": { + "description": "EnvVar represents an environment variable present in a Container.", + "properties": { + "name": { + "description": "Name of the environment variable. Must be a C_IDENTIFIER.", + "type": "string" + }, + "value": { + "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "type": [ + "string", + "null" + ] + }, + "valueFrom": { + "$ref": "#/$defs/io.k8s.api.core.v1.EnvVarSource", + "description": "Source for the environment variable's value. Cannot be used if value is not empty." + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.EnvVarSource": { + "description": "EnvVarSource represents a source for the value of an EnvVar.", + "properties": { + "configMapKeyRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ConfigMapKeySelector", + "description": "Selects a key of a ConfigMap." + }, + "fieldRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectFieldSelector", + "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs." + }, + "resourceFieldRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported." + }, + "secretKeyRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretKeySelector", + "description": "Selects a key of a secret in the pod's namespace" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.EphemeralContainer": { + "description": "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EnvVar" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EnvFromSource" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", + "type": [ + "string", + "null" + ] + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "type": [ + "string", + "null" + ] + }, + "lifecycle": { + "$ref": "#/$defs/io.k8s.api.core.v1.Lifecycle", + "description": "Lifecycle is not allowed for ephemeral containers." + }, + "livenessProbe": { + "$ref": "#/$defs/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "name": { + "description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", + "type": "string" + }, + "ports": { + "description": "Ports are not allowed for ephemeral containers.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "$ref": "#/$defs/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerResizePolicy" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceRequirements", + "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." + }, + "restartPolicy": { + "description": "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.", + "type": [ + "string", + "null" + ] + }, + "securityContext": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecurityContext", + "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." + }, + "startupProbe": { + "$ref": "#/$defs/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": [ + "boolean", + "null" + ] + }, + "targetContainerName": { + "description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.", + "type": [ + "string", + "null" + ] + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeDevice" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "devicePath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeMount" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.EphemeralVolumeSource": { + "description": "Represents an ephemeral volume that is handled by a normal storage driver.", + "properties": { + "volumeClaimTemplate": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimTemplate", + "description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Event": { + "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "properties": { + "action": { + "description": "What action was taken/failed regarding to the Regarding object.", + "type": [ + "string", + "null" + ] + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "count": { + "description": "The number of times this event has occurred.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "eventTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "Time when this Event was first observed." + }, + "firstTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)" + }, + "involvedObject": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "The object that this event is about." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Event" + ] + }, + "lastTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The time at which the most recent occurrence of this event was recorded." + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": [ + "string", + "null" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "reason": { + "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + "type": [ + "string", + "null" + ] + }, + "related": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "Optional secondary object for more complex actions." + }, + "reportingComponent": { + "description": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", + "type": [ + "string", + "null" + ] + }, + "reportingInstance": { + "description": "ID of the controller instance, e.g. `kubelet-xyzf`.", + "type": [ + "string", + "null" + ] + }, + "series": { + "$ref": "#/$defs/io.k8s.api.core.v1.EventSeries", + "description": "Data about the Event series this event represents or nil if it's a singleton Event." + }, + "source": { + "$ref": "#/$defs/io.k8s.api.core.v1.EventSource", + "description": "The component reporting this event. Should be a short machine understandable string." + }, + "type": { + "description": "Type of this event (Normal, Warning), new types could be added in the future", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "metadata", + "involvedObject" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Event", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.EventList": { + "description": "EventList is a list of events.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of events", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Event" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EventList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EventList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.EventSeries": { + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", + "properties": { + "count": { + "description": "Number of occurrences in this series up to the last heartbeat time", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lastObservedTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "Time of the last occurrence observed" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.EventSource": { + "description": "EventSource contains information for an event.", + "properties": { + "component": { + "description": "Component from which the event is generated.", + "type": [ + "string", + "null" + ] + }, + "host": { + "description": "Node name on which the event is generated.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ExecAction": { + "description": "ExecAction describes a \"run in container\" action.", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.FCVolumeSource": { + "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "lun": { + "description": "lun is Optional: FC target lun number", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "targetWWNs": { + "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "wwids": { + "description": "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.FlexPersistentVolumeSource": { + "description": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", + "type": "string" + }, + "fsType": { + "description": "fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": [ + "string", + "null" + ] + }, + "options": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": [ + "object", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + } + }, + "required": [ + "driver" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.FlexVolumeSource": { + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", + "type": "string" + }, + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": [ + "string", + "null" + ] + }, + "options": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": [ + "object", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + } + }, + "required": [ + "driver" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.FlockerVolumeSource": { + "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "properties": { + "datasetName": { + "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "type": [ + "string", + "null" + ] + }, + "datasetUUID": { + "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.GCEPersistentDiskVolumeSource": { + "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": [ + "string", + "null" + ] + }, + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "pdName": { + "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "pdName" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.GRPCAction": { + "properties": { + "port": { + "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", + "format": "int32", + "type": "integer" + }, + "service": { + "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.GitRepoVolumeSource": { + "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + "properties": { + "directory": { + "description": "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "type": [ + "string", + "null" + ] + }, + "repository": { + "description": "repository is the URL", + "type": "string" + }, + "revision": { + "description": "revision is the commit hash for the specified revision.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "repository" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.GlusterfsPersistentVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "endpointsNamespace": { + "description": "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "endpoints", + "path" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.GlusterfsVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "endpoints", + "path" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.HTTPGetAction": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": [ + "string", + "null" + ] + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.HTTPHeader" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": [ + "string", + "null" + ] + }, + "port": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.HTTPHeader": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "properties": { + "name": { + "description": "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.HostAlias": { + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "properties": { + "hostnames": { + "description": "Hostnames for the above IP address.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ip": { + "description": "IP address of the host file entry.", + "type": "string" + } + }, + "required": [ + "ip" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.HostIP": { + "description": "HostIP represents a single IP address allocated to the host.", + "properties": { + "ip": { + "description": "IP is the IP address assigned to the host", + "type": "string" + } + }, + "required": [ + "ip" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.HostPathVolumeSource": { + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" + }, + "type": { + "description": "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "path" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ISCSIPersistentVolumeSource": { + "description": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": [ + "string", + "null" + ] + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": [ + "string", + "null" + ] + }, + "iqn": { + "description": "iqn is Target iSCSI Qualified Name.", + "type": "string" + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": [ + "string", + "null" + ] + }, + "lun": { + "description": "lun is iSCSI Target Lun number.", + "format": "int32", + "type": "integer" + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "string" + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ISCSIVolumeSource": { + "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": [ + "string", + "null" + ] + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": [ + "string", + "null" + ] + }, + "iqn": { + "description": "iqn is the target iSCSI Qualified Name.", + "type": "string" + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": [ + "string", + "null" + ] + }, + "lun": { + "description": "lun represents iSCSI Target Lun number.", + "format": "int32", + "type": "integer" + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "string" + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ImageVolumeSource": { + "description": "ImageVolumeSource represents a image volume resource.", + "properties": { + "pullPolicy": { + "description": "Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.", + "type": [ + "string", + "null" + ] + }, + "reference": { + "description": "Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.KeyToPath": { + "description": "Maps a string key to a path within a volume.", + "properties": { + "key": { + "description": "key is the key to project.", + "type": "string" + }, + "mode": { + "description": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "path": { + "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" + } + }, + "required": [ + "key", + "path" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Lifecycle": { + "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "properties": { + "postStart": { + "$ref": "#/$defs/io.k8s.api.core.v1.LifecycleHandler", + "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + }, + "preStop": { + "$ref": "#/$defs/io.k8s.api.core.v1.LifecycleHandler", + "description": "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.LifecycleHandler": { + "description": "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.", + "properties": { + "exec": { + "$ref": "#/$defs/io.k8s.api.core.v1.ExecAction", + "description": "Exec specifies the action to take." + }, + "httpGet": { + "$ref": "#/$defs/io.k8s.api.core.v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." + }, + "sleep": { + "$ref": "#/$defs/io.k8s.api.core.v1.SleepAction", + "description": "Sleep represents the duration that the container should sleep before being terminated." + }, + "tcpSocket": { + "$ref": "#/$defs/io.k8s.api.core.v1.TCPSocketAction", + "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.LimitRange": { + "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LimitRange" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.LimitRangeSpec", + "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.LimitRangeItem": { + "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "properties": { + "default": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Default resource requirement limit value by resource name if resource limit is omitted.", + "type": [ + "object", + "null" + ] + }, + "defaultRequest": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", + "type": [ + "object", + "null" + ] + }, + "max": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Max usage constraints on this kind by resource name.", + "type": [ + "object", + "null" + ] + }, + "maxLimitRequestRatio": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", + "type": [ + "object", + "null" + ] + }, + "min": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Min usage constraints on this kind by resource name.", + "type": [ + "object", + "null" + ] + }, + "type": { + "description": "Type of resource that this limit applies to.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.LimitRangeList": { + "description": "LimitRangeList is a list of LimitRange items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.LimitRange" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LimitRangeList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "LimitRangeList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.LimitRangeSpec": { + "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", + "properties": { + "limits": { + "description": "Limits is the list of LimitRangeItem objects that are enforced.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.LimitRangeItem" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "limits" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.LinuxContainerUser": { + "description": "LinuxContainerUser represents user identity information in Linux containers", + "properties": { + "gid": { + "description": "GID is the primary gid initially attached to the first process in the container", + "format": "int64", + "type": "integer" + }, + "supplementalGroups": { + "description": "SupplementalGroups are the supplemental groups initially attached to the first process in the container", + "items": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "uid": { + "description": "UID is the primary uid initially attached to the first process in the container", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "uid", + "gid" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.LoadBalancerIngress": { + "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", + "properties": { + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", + "type": [ + "string", + "null" + ] + }, + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", + "type": [ + "string", + "null" + ] + }, + "ipMode": { + "description": "IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PortStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.LoadBalancerStatus": { + "description": "LoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.LoadBalancerIngress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.LocalVolumeSource": { + "description": "Local represents directly-attached storage with node affinity (Beta feature)", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ModifyVolumeStatus": { + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation", + "properties": { + "status": { + "description": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.", + "type": "string" + }, + "targetVolumeAttributesClassName": { + "description": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NFSVolumeSource": { + "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": [ + "boolean", + "null" + ] + }, + "server": { + "description": "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": "string" + } + }, + "required": [ + "server", + "path" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Namespace": { + "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Namespace" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.NamespaceSpec", + "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.NamespaceStatus", + "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Namespace", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NamespaceCondition": { + "description": "NamespaceCondition contains details about state of namespace.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": [ + "string", + "null" + ] + }, + "reason": { + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of namespace controller condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NamespaceList": { + "description": "NamespaceList is a list of Namespaces.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Namespace" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NamespaceList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "NamespaceList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NamespaceSpec": { + "description": "NamespaceSpec describes the attributes on a Namespace.", + "properties": { + "finalizers": { + "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NamespaceStatus": { + "description": "NamespaceStatus is information about the current status of a Namespace.", + "properties": { + "conditions": { + "description": "Represents the latest available observations of a namespace's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NamespaceCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "phase": { + "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Node": { + "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Node" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSpec", + "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeStatus", + "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Node", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeAddress": { + "description": "NodeAddress contains information for the node's address.", + "properties": { + "address": { + "description": "The node address.", + "type": "string" + }, + "type": { + "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", + "type": "string" + } + }, + "required": [ + "type", + "address" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeAffinity": { + "description": "Node affinity is a group of node affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PreferredSchedulingTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeCondition": { + "description": "NodeCondition contains condition information for a node.", + "properties": { + "lastHeartbeatTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time we got an update on a given condition." + }, + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transit from one status to another." + }, + "message": { + "description": "Human readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of node condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeConfigSource": { + "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", + "properties": { + "configMap": { + "$ref": "#/$defs/io.k8s.api.core.v1.ConfigMapNodeConfigSource", + "description": "ConfigMap is a reference to a Node's ConfigMap" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeConfigStatus": { + "description": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", + "properties": { + "active": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error." + }, + "assigned": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned." + }, + "error": { + "description": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", + "type": [ + "string", + "null" + ] + }, + "lastKnownGood": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeDaemonEndpoints": { + "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", + "properties": { + "kubeletEndpoint": { + "$ref": "#/$defs/io.k8s.api.core.v1.DaemonEndpoint", + "description": "Endpoint on which Kubelet is listening." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeFeatures": { + "description": "NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.", + "properties": { + "supplementalGroupsPolicy": { + "description": "SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeList": { + "description": "NodeList is the whole list of all Nodes which have been registered with master.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of nodes", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Node" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NodeList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "NodeList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeRuntimeHandler": { + "description": "NodeRuntimeHandler is a set of runtime handler information.", + "properties": { + "features": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeRuntimeHandlerFeatures", + "description": "Supported features." + }, + "name": { + "description": "Runtime handler name. Empty for the default runtime handler.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeRuntimeHandlerFeatures": { + "description": "NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.", + "properties": { + "recursiveReadOnlyMounts": { + "description": "RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.", + "type": [ + "boolean", + "null" + ] + }, + "userNamespaces": { + "description": "UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeSelector": { + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelectorTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "nodeSelectorTerms" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeSelectorRequirement": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeSelectorTerm": { + "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeSpec": { + "description": "NodeSpec describes the attributes that a node is created with.", + "properties": { + "configSource": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed." + }, + "externalID": { + "description": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", + "type": [ + "string", + "null" + ] + }, + "podCIDR": { + "description": "PodCIDR represents the pod IP range assigned to the node.", + "type": [ + "string", + "null" + ] + }, + "podCIDRs": { + "description": "podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" + }, + "providerID": { + "description": "ID of the node assigned by the cloud provider in the format: ://", + "type": [ + "string", + "null" + ] + }, + "taints": { + "description": "If specified, the node's taints.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Taint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "unschedulable": { + "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeStatus": { + "description": "NodeStatus is information about the current status of a node.", + "properties": { + "addresses": { + "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeAddress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "allocatable": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", + "type": [ + "object", + "null" + ] + }, + "capacity": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity", + "type": [ + "object", + "null" + ] + }, + "conditions": { + "description": "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "config": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeConfigStatus", + "description": "Status of the config assigned to the node via the dynamic Kubelet config feature." + }, + "daemonEndpoints": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeDaemonEndpoints", + "description": "Endpoints of daemons running on the Node." + }, + "features": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeFeatures", + "description": "Features describes the set of features implemented by the CRI implementation." + }, + "images": { + "description": "List of container images on this node", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerImage" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nodeInfo": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSystemInfo", + "description": "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info" + }, + "phase": { + "description": "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.", + "type": [ + "string", + "null" + ] + }, + "runtimeHandlers": { + "description": "The available runtime handlers.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeRuntimeHandler" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "volumesAttached": { + "description": "List of volumes that are attached to the node.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.AttachedVolume" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "volumesInUse": { + "description": "List of attachable volumes in use (mounted) by the node.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.NodeSystemInfo": { + "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", + "properties": { + "architecture": { + "description": "The Architecture reported by the node", + "type": "string" + }, + "bootID": { + "description": "Boot ID reported by the node.", + "type": "string" + }, + "containerRuntimeVersion": { + "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).", + "type": "string" + }, + "kernelVersion": { + "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", + "type": "string" + }, + "kubeProxyVersion": { + "description": "Deprecated: KubeProxy Version reported by the node.", + "type": "string" + }, + "kubeletVersion": { + "description": "Kubelet Version reported by the node.", + "type": "string" + }, + "machineID": { + "description": "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", + "type": "string" + }, + "operatingSystem": { + "description": "The Operating System reported by the node", + "type": "string" + }, + "osImage": { + "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", + "type": "string" + }, + "systemUUID": { + "description": "SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid", + "type": "string" + } + }, + "required": [ + "machineID", + "systemUUID", + "bootID", + "kernelVersion", + "osImage", + "containerRuntimeVersion", + "kubeletVersion", + "kubeProxyVersion", + "operatingSystem", + "architecture" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ObjectFieldSelector": { + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": [ + "string", + "null" + ] + }, + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": "string" + } + }, + "required": [ + "fieldPath" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.ObjectReference": { + "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": [ + "string", + "null" + ] + }, + "fieldPath": { + "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "type": [ + "string", + "null" + ] + }, + "resourceVersion": { + "description": "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.PersistentVolume": { + "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolume" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeStatus", + "description": "status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PersistentVolumeClaim": { + "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolumeClaim" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimSpec", + "description": "spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimStatus", + "description": "status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PersistentVolumeClaimCondition": { + "description": "PersistentVolumeClaimCondition contains details about state of pvc", + "properties": { + "lastProbeTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastProbeTime is the time we probed the condition." + }, + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the time the condition transitioned from one status to another." + }, + "message": { + "description": "message is the human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized.", + "type": [ + "string", + "null" + ] + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PersistentVolumeClaimList": { + "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaim" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolumeClaimList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeClaimList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PersistentVolumeClaimSpec": { + "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", + "properties": { + "accessModes": { + "description": "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "dataSource": { + "$ref": "#/$defs/io.k8s.api.core.v1.TypedLocalObjectReference", + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource." + }, + "dataSourceRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.TypedObjectReference", + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." + }, + "resources": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeResourceRequirements", + "description": "resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources" + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is a label query over volumes to consider for binding." + }, + "storageClassName": { + "description": "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", + "type": [ + "string", + "null" + ] + }, + "volumeAttributesClassName": { + "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", + "type": [ + "string", + "null" + ] + }, + "volumeMode": { + "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", + "type": [ + "string", + "null" + ] + }, + "volumeName": { + "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PersistentVolumeClaimStatus": { + "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", + "properties": { + "accessModes": { + "description": "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "allocatedResourceStatuses": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "granular" + }, + "allocatedResources": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": [ + "object", + "null" + ] + }, + "capacity": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "capacity represents the actual resources of the underlying volume.", + "type": [ + "object", + "null" + ] + }, + "conditions": { + "description": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentVolumeAttributesClassName": { + "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + "type": [ + "string", + "null" + ] + }, + "modifyVolumeStatus": { + "$ref": "#/$defs/io.k8s.api.core.v1.ModifyVolumeStatus", + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default)." + }, + "phase": { + "description": "phase represents the current phase of PersistentVolumeClaim.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PersistentVolumeClaimTemplate": { + "description": "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", + "properties": { + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimSpec", + "description": "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource": { + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", + "properties": { + "claimName": { + "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "type": "string" + }, + "readOnly": { + "description": "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "claimName" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PersistentVolumeList": { + "description": "PersistentVolumeList is a list of PersistentVolume items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolume" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolumeList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PersistentVolumeSpec": { + "description": "PersistentVolumeSpec is the specification of a persistent volume.", + "properties": { + "accessModes": { + "description": "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "awsElasticBlockStore": { + "$ref": "#/$defs/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource", + "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore" + }, + "azureDisk": { + "$ref": "#/$defs/io.k8s.api.core.v1.AzureDiskVolumeSource", + "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." + }, + "azureFile": { + "$ref": "#/$defs/io.k8s.api.core.v1.AzureFilePersistentVolumeSource", + "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod." + }, + "capacity": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", + "type": [ + "object", + "null" + ] + }, + "cephfs": { + "$ref": "#/$defs/io.k8s.api.core.v1.CephFSPersistentVolumeSource", + "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "cinder": { + "$ref": "#/$defs/io.k8s.api.core.v1.CinderPersistentVolumeSource", + "description": "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + }, + "claimRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding", + "x-kubernetes-map-type": "granular" + }, + "csi": { + "$ref": "#/$defs/io.k8s.api.core.v1.CSIPersistentVolumeSource", + "description": "csi represents storage that is handled by an external CSI driver (Beta feature)." + }, + "fc": { + "$ref": "#/$defs/io.k8s.api.core.v1.FCVolumeSource", + "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flexVolume": { + "$ref": "#/$defs/io.k8s.api.core.v1.FlexPersistentVolumeSource", + "description": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." + }, + "flocker": { + "$ref": "#/$defs/io.k8s.api.core.v1.FlockerVolumeSource", + "description": "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running" + }, + "gcePersistentDisk": { + "$ref": "#/$defs/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource", + "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + }, + "glusterfs": { + "$ref": "#/$defs/io.k8s.api.core.v1.GlusterfsPersistentVolumeSource", + "description": "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + }, + "hostPath": { + "$ref": "#/$defs/io.k8s.api.core.v1.HostPathVolumeSource", + "description": "hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" + }, + "iscsi": { + "$ref": "#/$defs/io.k8s.api.core.v1.ISCSIPersistentVolumeSource", + "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin." + }, + "local": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalVolumeSource", + "description": "local represents directly-attached storage with node affinity" + }, + "mountOptions": { + "description": "mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nfs": { + "$ref": "#/$defs/io.k8s.api.core.v1.NFSVolumeSource", + "description": "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + }, + "nodeAffinity": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeNodeAffinity", + "description": "nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume." + }, + "persistentVolumeReclaimPolicy": { + "description": "persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming", + "type": [ + "string", + "null" + ] + }, + "photonPersistentDisk": { + "$ref": "#/$defs/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource", + "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" + }, + "portworxVolume": { + "$ref": "#/$defs/io.k8s.api.core.v1.PortworxVolumeSource", + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine" + }, + "quobyte": { + "$ref": "#/$defs/io.k8s.api.core.v1.QuobyteVolumeSource", + "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime" + }, + "rbd": { + "$ref": "#/$defs/io.k8s.api.core.v1.RBDPersistentVolumeSource", + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md" + }, + "scaleIO": { + "$ref": "#/$defs/io.k8s.api.core.v1.ScaleIOPersistentVolumeSource", + "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." + }, + "storageClassName": { + "description": "storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.", + "type": [ + "string", + "null" + ] + }, + "storageos": { + "$ref": "#/$defs/io.k8s.api.core.v1.StorageOSPersistentVolumeSource", + "description": "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md" + }, + "volumeAttributesClassName": { + "description": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + "type": [ + "string", + "null" + ] + }, + "volumeMode": { + "description": "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.", + "type": [ + "string", + "null" + ] + }, + "vsphereVolume": { + "$ref": "#/$defs/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource", + "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PersistentVolumeStatus": { + "description": "PersistentVolumeStatus is the current status of a persistent volume.", + "properties": { + "lastPhaseTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions." + }, + "message": { + "description": "message is a human-readable message indicating details about why the volume is in this state.", + "type": [ + "string", + "null" + ] + }, + "phase": { + "description": "phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource": { + "description": "Represents a Photon Controller persistent disk resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "pdID": { + "description": "pdID is the ID that identifies Photon Controller persistent disk", + "type": "string" + } + }, + "required": [ + "pdID" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Pod": { + "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Pod" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodStatus", + "description": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Pod", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodAffinity": { + "description": "Pod affinity is a group of inter pod affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodAffinityTerm": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running", + "properties": { + "labelSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods." + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces." + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": "string" + } + }, + "required": [ + "topologyKey" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodAntiAffinity": { + "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodCondition": { + "description": "PodCondition contains details for the current condition of this pod.", + "properties": { + "lastProbeTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time we probed the condition." + }, + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": "string" + }, + "type": { + "description": "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodDNSConfig": { + "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", + "properties": { + "nameservers": { + "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "options": { + "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodDNSConfigOption" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "searches": { + "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodDNSConfigOption": { + "description": "PodDNSConfigOption defines DNS resolver options of a pod.", + "properties": { + "name": { + "description": "Required.", + "type": [ + "string", + "null" + ] + }, + "value": { + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodIP": { + "description": "PodIP represents a single IP address allocated to the pod.", + "properties": { + "ip": { + "description": "IP is the IP address assigned to the pod", + "type": "string" + } + }, + "required": [ + "ip" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodList": { + "description": "PodList is a list of Pods.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Pod" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodOS": { + "description": "PodOS defines the OS parameters of a pod.", + "properties": { + "name": { + "description": "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodReadinessGate": { + "description": "PodReadinessGate contains the reference to a pod condition", + "properties": { + "conditionType": { + "description": "ConditionType refers to a condition in the pod's condition list with matching type.", + "type": "string" + } + }, + "required": [ + "conditionType" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodResourceClaim": { + "description": "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod.\n\nIt adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", + "type": "string" + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "type": [ + "string", + "null" + ] + }, + "resourceClaimTemplateName": { + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodResourceClaimStatus": { + "description": "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.", + "type": "string" + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodSchedulingGate": { + "description": "PodSchedulingGate is associated to a Pod to guard its scheduling.", + "properties": { + "name": { + "description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodSecurityContext": { + "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "properties": { + "appArmorProfile": { + "$ref": "#/$defs/io.k8s.api.core.v1.AppArmorProfile", + "description": "appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." + }, + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "string", + "null" + ] + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": [ + "boolean", + "null" + ] + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "seLinuxOptions": { + "$ref": "#/$defs/io.k8s.api.core.v1.SELinuxOptions", + "description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows." + }, + "seccompProfile": { + "$ref": "#/$defs/io.k8s.api.core.v1.SeccompProfile", + "description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.", + "items": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "supplementalGroupsPolicy": { + "description": "Defines how supplemental groups of the first container processes are calculated. Valid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "string", + "null" + ] + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Sysctl" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "windowsOptions": { + "$ref": "#/$defs/io.k8s.api.core.v1.WindowsSecurityContextOptions", + "description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodSpec": { + "description": "PodSpec is a description of a pod.", + "properties": { + "activeDeadlineSeconds": { + "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "affinity": { + "$ref": "#/$defs/io.k8s.api.core.v1.Affinity", + "description": "If specified, the pod's scheduling constraints" + }, + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", + "type": [ + "boolean", + "null" + ] + }, + "containers": { + "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Container" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "dnsConfig": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodDNSConfig", + "description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy." + }, + "dnsPolicy": { + "description": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", + "type": [ + "string", + "null" + ] + }, + "enableServiceLinks": { + "description": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.", + "type": [ + "boolean", + "null" + ] + }, + "ephemeralContainers": { + "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EphemeralContainer" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "hostAliases": { + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.HostAlias" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "ip" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "hostIPC": { + "description": "Use the host's ipc namespace. Optional: Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "hostNetwork": { + "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "hostPID": { + "description": "Use the host's pid namespace. Optional: Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "hostUsers": { + "description": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.", + "type": [ + "boolean", + "null" + ] + }, + "hostname": { + "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", + "type": [ + "string", + "null" + ] + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "initContainers": { + "description": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Container" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "nodeName": { + "description": "NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename", + "type": [ + "string", + "null" + ] + }, + "nodeSelector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "os": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodOS", + "description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup" + }, + "overhead": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md", + "type": [ + "object", + "null" + ] + }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": [ + "string", + "null" + ] + }, + "priority": { + "description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "priorityClassName": { + "description": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.", + "type": [ + "string", + "null" + ] + }, + "readinessGates": { + "description": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodReadinessGate" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodResourceClaim" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "restartPolicy": { + "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy", + "type": [ + "string", + "null" + ] + }, + "runtimeClassName": { + "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", + "type": [ + "string", + "null" + ] + }, + "schedulerName": { + "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", + "type": [ + "string", + "null" + ] + }, + "schedulingGates": { + "description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\n\nSchedulingGates can only be set at pod creation time, and be removed only afterwards.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodSchedulingGate" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "securityContext": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodSecurityContext", + "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." + }, + "serviceAccount": { + "description": "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", + "type": [ + "string", + "null" + ] + }, + "serviceAccountName": { + "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "type": [ + "string", + "null" + ] + }, + "setHostnameAsFQDN": { + "description": "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "shareProcessNamespace": { + "description": "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "subdomain": { + "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", + "type": [ + "string", + "null" + ] + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Toleration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "topologySpreadConstraints": { + "description": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.TopologySpreadConstraint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "topologyKey", + "whenUnsatisfiable" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "topologyKey", + "x-kubernetes-patch-strategy": "merge" + }, + "volumes": { + "description": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Volume" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + } + }, + "required": [ + "containers" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodStatus": { + "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", + "properties": { + "conditions": { + "description": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "containerStatuses": { + "description": "The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ephemeralContainerStatuses": { + "description": "Status for any ephemeral containers that have run in this pod.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "hostIP": { + "description": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod", + "type": [ + "string", + "null" + ] + }, + "hostIPs": { + "description": "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.HostIP" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "initContainerStatuses": { + "description": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "message": { + "description": "A human readable message indicating details about why the pod is in this condition.", + "type": [ + "string", + "null" + ] + }, + "nominatedNodeName": { + "description": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", + "type": [ + "string", + "null" + ] + }, + "phase": { + "description": "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase", + "type": [ + "string", + "null" + ] + }, + "podIP": { + "description": "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", + "type": [ + "string", + "null" + ] + }, + "podIPs": { + "description": "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodIP" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "ip" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "qosClass": { + "description": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", + "type": [ + "string", + "null" + ] + }, + "resize": { + "description": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"", + "type": [ + "string", + "null" + ] + }, + "resourceClaimStatuses": { + "description": "Status of resource claims.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodResourceClaimStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "startTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodTemplate": { + "description": "PodTemplate describes a template for creating copies of a predefined pod.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodTemplate" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodTemplateList": { + "description": "PodTemplateList is a list of PodTemplates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of pod templates", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplate" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodTemplateList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodTemplateList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PodTemplateSpec": { + "description": "PodTemplateSpec describes the data a pod should have when created from a template", + "properties": { + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PortStatus": { + "properties": { + "error": { + "description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "Port is the port number of the service port of which status is recorded here", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PortworxVolumeSource": { + "description": "PortworxVolumeSource represents a Portworx volume resource.", + "properties": { + "fsType": { + "description": "fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "volumeID": { + "description": "volumeID uniquely identifies a Portworx volume", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.PreferredSchedulingTerm": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "properties": { + "preference": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelectorTerm", + "description": "A node selector term, associated with the corresponding weight." + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "weight", + "preference" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Probe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "properties": { + "exec": { + "$ref": "#/$defs/io.k8s.api.core.v1.ExecAction", + "description": "Exec specifies the action to take." + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "grpc": { + "$ref": "#/$defs/io.k8s.api.core.v1.GRPCAction", + "description": "GRPC specifies an action involving a GRPC port." + }, + "httpGet": { + "$ref": "#/$defs/io.k8s.api.core.v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "tcpSocket": { + "$ref": "#/$defs/io.k8s.api.core.v1.TCPSocketAction", + "description": "TCPSocket specifies an action involving a TCP port." + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ProjectedVolumeSource": { + "description": "Represents a projected volume source", + "properties": { + "defaultMode": { + "description": "defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "sources": { + "description": "sources is the list of volume projections. Each entry in this list handles one source.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeProjection" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.QuobyteVolumeSource": { + "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", + "properties": { + "group": { + "description": "group to map volume access to Default is no group", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "registry": { + "description": "registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", + "type": "string" + }, + "tenant": { + "description": "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "user to map volume access to Defaults to serivceaccount user", + "type": [ + "string", + "null" + ] + }, + "volume": { + "description": "volume is a string that references an already created Quobyte volume by name.", + "type": "string" + } + }, + "required": [ + "registry", + "volume" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.RBDPersistentVolumeSource": { + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "keyring": { + "description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "pool": { + "description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + }, + "user": { + "description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors", + "image" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.RBDVolumeSource": { + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "keyring": { + "description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "pool": { + "description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + }, + "user": { + "description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors", + "image" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ReplicationController": { + "description": "ReplicationController represents the configuration of a replication controller.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicationController" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.ReplicationControllerSpec", + "description": "Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.ReplicationControllerStatus", + "description": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ReplicationControllerCondition": { + "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of replication controller condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ReplicationControllerList": { + "description": "ReplicationControllerList is a collection of replication controllers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ReplicationController" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicationControllerList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ReplicationControllerList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ReplicationControllerSpec": { + "description": "ReplicationControllerSpec is the specification of a replication controller.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ReplicationControllerStatus": { + "description": "ReplicationControllerStatus represents the current status of a replication controller.", + "properties": { + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a replication controller's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ReplicationControllerCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "The number of ready replicas for this replication controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "replicas" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ResourceClaim": { + "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", + "properties": { + "name": { + "description": "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.", + "type": "string" + }, + "request": { + "description": "Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ResourceFieldSelector": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "properties": { + "containerName": { + "description": "Container name: required for volumes, optional for env vars", + "type": [ + "string", + "null" + ] + }, + "divisor": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Specifies the output format of the exposed resources, defaults to \"1\"" + }, + "resource": { + "description": "Required: resource to select", + "type": "string" + } + }, + "required": [ + "resource" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.ResourceHealth": { + "description": "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.", + "properties": { + "health": { + "description": "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.", + "type": [ + "string", + "null" + ] + }, + "resourceID": { + "description": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.", + "type": "string" + } + }, + "required": [ + "resourceID" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ResourceQuota": { + "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceQuota" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceQuotaSpec", + "description": "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceQuotaStatus", + "description": "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ResourceQuotaList": { + "description": "ResourceQuotaList is a list of ResourceQuota items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceQuota" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceQuotaList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ResourceQuotaList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ResourceQuotaSpec": { + "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", + "properties": { + "hard": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "type": [ + "object", + "null" + ] + }, + "scopeSelector": { + "$ref": "#/$defs/io.k8s.api.core.v1.ScopeSelector", + "description": "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched." + }, + "scopes": { + "description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ResourceQuotaStatus": { + "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", + "properties": { + "hard": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "type": [ + "object", + "null" + ] + }, + "used": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Used is the current observed total usage of the resource in the namespace.", + "type": [ + "object", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "properties": { + "claims": { + "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceClaim" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "limits": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + }, + "requests": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ResourceStatus": { + "properties": { + "name": { + "description": "Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.", + "type": "string" + }, + "resources": { + "description": "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceHealth" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "resourceID" + ], + "x-kubernetes-list-type": "map" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.SELinuxOptions": { + "description": "SELinuxOptions are the labels to be applied to the container", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": [ + "string", + "null" + ] + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ScaleIOPersistentVolumeSource": { + "description": "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"", + "type": [ + "string", + "null" + ] + }, + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": "string" + }, + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + }, + "sslEnabled": { + "description": "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false", + "type": [ + "boolean", + "null" + ] + }, + "storageMode": { + "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "type": [ + "string", + "null" + ] + }, + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": [ + "string", + "null" + ] + }, + "system": { + "description": "system is the name of the storage system as configured in ScaleIO.", + "type": "string" + }, + "volumeName": { + "description": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ScaleIOVolumeSource": { + "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".", + "type": [ + "string", + "null" + ] + }, + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": "string" + }, + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + }, + "sslEnabled": { + "description": "sslEnabled Flag enable/disable SSL communication with Gateway, default false", + "type": [ + "boolean", + "null" + ] + }, + "storageMode": { + "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "type": [ + "string", + "null" + ] + }, + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": [ + "string", + "null" + ] + }, + "system": { + "description": "system is the name of the storage system as configured in ScaleIO.", + "type": "string" + }, + "volumeName": { + "description": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ScopeSelector": { + "description": "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", + "properties": { + "matchExpressions": { + "description": "A list of scope selector requirements by scope of the resources.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ScopedResourceSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.ScopedResourceSelectorRequirement": { + "description": "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.", + "properties": { + "operator": { + "description": "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.", + "type": "string" + }, + "scopeName": { + "description": "The name of the scope that the selector applies to.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "scopeName", + "operator" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.SeccompProfile": { + "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Secret": { + "description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "data": { + "additionalProperties": { + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "description": "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + "type": [ + "object", + "null" + ] + }, + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Secret" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "stringData": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.", + "type": [ + "object", + "null" + ] + }, + "type": { + "description": "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Secret", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.SecretEnvSource": { + "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the Secret must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.SecretKeySelector": { + "description": "SecretKeySelector selects a key of a Secret.", + "properties": { + "key": { + "description": "The key of the secret to select from. Must be a valid secret key.", + "type": "string" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "key" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.SecretList": { + "description": "SecretList is a list of Secret.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Secret" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SecretList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "SecretList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.SecretProjection": { + "description": "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.", + "properties": { + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "optional field specify whether the Secret or its key must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.SecretReference": { + "description": "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", + "properties": { + "name": { + "description": "name is unique within a namespace to reference a secret resource.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace defines the space within which the secret name must be unique.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.SecretVolumeSource": { + "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "items": { + "description": "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "optional": { + "description": "optional field specify whether the Secret or its keys must be defined", + "type": [ + "boolean", + "null" + ] + }, + "secretName": { + "description": "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.SecurityContext": { + "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", + "properties": { + "allowPrivilegeEscalation": { + "description": "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "boolean", + "null" + ] + }, + "appArmorProfile": { + "$ref": "#/$defs/io.k8s.api.core.v1.AppArmorProfile", + "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows." + }, + "capabilities": { + "$ref": "#/$defs/io.k8s.api.core.v1.Capabilities", + "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows." + }, + "privileged": { + "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "boolean", + "null" + ] + }, + "procMount": { + "description": "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "string", + "null" + ] + }, + "readOnlyRootFilesystem": { + "description": "Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "boolean", + "null" + ] + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": [ + "boolean", + "null" + ] + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "seLinuxOptions": { + "$ref": "#/$defs/io.k8s.api.core.v1.SELinuxOptions", + "description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows." + }, + "seccompProfile": { + "$ref": "#/$defs/io.k8s.api.core.v1.SeccompProfile", + "description": "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows." + }, + "windowsOptions": { + "$ref": "#/$defs/io.k8s.api.core.v1.WindowsSecurityContextOptions", + "description": "The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Service": { + "description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Service" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.ServiceSpec", + "description": "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.ServiceStatus", + "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Service", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ServiceAccount": { + "description": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", + "type": [ + "boolean", + "null" + ] + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceAccount" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "secrets": { + "description": "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ServiceAccountList": { + "description": "ServiceAccountList is a list of ServiceAccount objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ServiceAccount" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceAccountList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceAccountList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ServiceAccountTokenProjection": { + "description": "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).", + "properties": { + "audience": { + "description": "audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.", + "type": [ + "string", + "null" + ] + }, + "expirationSeconds": { + "description": "expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "path": { + "description": "path is the path relative to the mount point of the file to project the token into.", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ServiceList": { + "description": "ServiceList holds a list of services.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of services", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Service" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ServicePort": { + "description": "ServicePort contains information on service's port.", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.", + "type": [ + "string", + "null" + ] + }, + "nodePort": { + "description": "The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "port": { + "description": "The port that will be exposed by this service.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.", + "type": [ + "string", + "null" + ] + }, + "targetPort": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service" + } + }, + "required": [ + "port" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ServiceSpec": { + "description": "ServiceSpec describes the attributes that a user creates on a service.", + "properties": { + "allocateLoadBalancerNodePorts": { + "description": "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.", + "type": [ + "boolean", + "null" + ] + }, + "clusterIP": { + "description": "clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "type": [ + "string", + "null" + ] + }, + "clusterIPs": { + "description": "ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\n\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "externalIPs": { + "description": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "externalName": { + "description": "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".", + "type": [ + "string", + "null" + ] + }, + "externalTrafficPolicy": { + "description": "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.", + "type": [ + "string", + "null" + ] + }, + "healthCheckNodePort": { + "description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "internalTrafficPolicy": { + "description": "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).", + "type": [ + "string", + "null" + ] + }, + "ipFamilies": { + "description": "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ipFamilyPolicy": { + "description": "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.", + "type": [ + "string", + "null" + ] + }, + "loadBalancerClass": { + "description": "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.", + "type": [ + "string", + "null" + ] + }, + "loadBalancerIP": { + "description": "Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available.", + "type": [ + "string", + "null" + ] + }, + "loadBalancerSourceRanges": { + "description": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ServicePort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "port", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "port", + "x-kubernetes-patch-strategy": "merge" + }, + "publishNotReadyAddresses": { + "description": "publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.", + "type": [ + "boolean", + "null" + ] + }, + "selector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "sessionAffinity": { + "description": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "type": [ + "string", + "null" + ] + }, + "sessionAffinityConfig": { + "$ref": "#/$defs/io.k8s.api.core.v1.SessionAffinityConfig", + "description": "sessionAffinityConfig contains the configurations of session affinity." + }, + "trafficDistribution": { + "description": "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.ServiceStatus": { + "description": "ServiceStatus represents the current status of a service.", + "properties": { + "conditions": { + "description": "Current service state", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "loadBalancer": { + "$ref": "#/$defs/io.k8s.api.core.v1.LoadBalancerStatus", + "description": "LoadBalancer contains the current status of the load-balancer, if one is present." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.SessionAffinityConfig": { + "description": "SessionAffinityConfig represents the configurations of session affinity.", + "properties": { + "clientIP": { + "$ref": "#/$defs/io.k8s.api.core.v1.ClientIPConfig", + "description": "clientIP contains the configurations of Client IP based session affinity." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.SleepAction": { + "description": "SleepAction describes a \"sleep\" action.", + "properties": { + "seconds": { + "description": "Seconds is the number of seconds to sleep.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "seconds" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.StorageOSPersistentVolumeSource": { + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." + }, + "volumeName": { + "description": "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + "type": [ + "string", + "null" + ] + }, + "volumeNamespace": { + "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.StorageOSVolumeSource": { + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." + }, + "volumeName": { + "description": "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + "type": [ + "string", + "null" + ] + }, + "volumeNamespace": { + "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Sysctl": { + "description": "Sysctl defines a kernel parameter to be set", + "properties": { + "name": { + "description": "Name of a property to set", + "type": "string" + }, + "value": { + "description": "Value of a property to set", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.TCPSocketAction": { + "description": "TCPSocketAction describes an action based on opening a socket", + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": [ + "string", + "null" + ] + }, + "port": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + } + }, + "required": [ + "port" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Taint": { + "description": "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", + "properties": { + "effect": { + "description": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "Required. The taint key to be applied to a node.", + "type": "string" + }, + "timeAdded": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints." + }, + "value": { + "description": "The taint value corresponding to the taint key.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "key", + "effect" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Toleration": { + "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", + "type": [ + "string", + "null" + ] + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.", + "type": [ + "string", + "null" + ] + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "value": { + "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.TopologySelectorLabelRequirement": { + "description": "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "values": { + "description": "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "values" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.TopologySelectorTerm": { + "description": "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.", + "properties": { + "matchLabelExpressions": { + "description": "A list of topology selector requirements by labels.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.TopologySelectorLabelRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.TopologySpreadConstraint": { + "description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", + "properties": { + "labelSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain." + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "maxSkew": { + "description": "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.", + "format": "int32", + "type": "integer" + }, + "minDomains": { + "description": "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "nodeAffinityPolicy": { + "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "type": [ + "string", + "null" + ] + }, + "nodeTaintsPolicy": { + "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "type": [ + "string", + "null" + ] + }, + "topologyKey": { + "description": "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.", + "type": "string" + }, + "whenUnsatisfiable": { + "description": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.", + "type": "string" + } + }, + "required": [ + "maxSkew", + "topologyKey", + "whenUnsatisfiable" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.TypedLocalObjectReference": { + "description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.core.v1.TypedObjectReference": { + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.Volume": { + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "properties": { + "awsElasticBlockStore": { + "$ref": "#/$defs/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource", + "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore" + }, + "azureDisk": { + "$ref": "#/$defs/io.k8s.api.core.v1.AzureDiskVolumeSource", + "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." + }, + "azureFile": { + "$ref": "#/$defs/io.k8s.api.core.v1.AzureFileVolumeSource", + "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod." + }, + "cephfs": { + "$ref": "#/$defs/io.k8s.api.core.v1.CephFSVolumeSource", + "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "cinder": { + "$ref": "#/$defs/io.k8s.api.core.v1.CinderVolumeSource", + "description": "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + }, + "configMap": { + "$ref": "#/$defs/io.k8s.api.core.v1.ConfigMapVolumeSource", + "description": "configMap represents a configMap that should populate this volume" + }, + "csi": { + "$ref": "#/$defs/io.k8s.api.core.v1.CSIVolumeSource", + "description": "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature)." + }, + "downwardAPI": { + "$ref": "#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeSource", + "description": "downwardAPI represents downward API about the pod that should populate this volume" + }, + "emptyDir": { + "$ref": "#/$defs/io.k8s.api.core.v1.EmptyDirVolumeSource", + "description": "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" + }, + "ephemeral": { + "$ref": "#/$defs/io.k8s.api.core.v1.EphemeralVolumeSource", + "description": "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time." + }, + "fc": { + "$ref": "#/$defs/io.k8s.api.core.v1.FCVolumeSource", + "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flexVolume": { + "$ref": "#/$defs/io.k8s.api.core.v1.FlexVolumeSource", + "description": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." + }, + "flocker": { + "$ref": "#/$defs/io.k8s.api.core.v1.FlockerVolumeSource", + "description": "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running" + }, + "gcePersistentDisk": { + "$ref": "#/$defs/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource", + "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + }, + "gitRepo": { + "$ref": "#/$defs/io.k8s.api.core.v1.GitRepoVolumeSource", + "description": "gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container." + }, + "glusterfs": { + "$ref": "#/$defs/io.k8s.api.core.v1.GlusterfsVolumeSource", + "description": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + }, + "hostPath": { + "$ref": "#/$defs/io.k8s.api.core.v1.HostPathVolumeSource", + "description": "hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" + }, + "image": { + "$ref": "#/$defs/io.k8s.api.core.v1.ImageVolumeSource", + "description": "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type." + }, + "iscsi": { + "$ref": "#/$defs/io.k8s.api.core.v1.ISCSIVolumeSource", + "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md" + }, + "name": { + "description": "name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "nfs": { + "$ref": "#/$defs/io.k8s.api.core.v1.NFSVolumeSource", + "description": "nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + }, + "persistentVolumeClaim": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource", + "description": "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + }, + "photonPersistentDisk": { + "$ref": "#/$defs/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource", + "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" + }, + "portworxVolume": { + "$ref": "#/$defs/io.k8s.api.core.v1.PortworxVolumeSource", + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine" + }, + "projected": { + "$ref": "#/$defs/io.k8s.api.core.v1.ProjectedVolumeSource", + "description": "projected items for all in one resources secrets, configmaps, and downward API" + }, + "quobyte": { + "$ref": "#/$defs/io.k8s.api.core.v1.QuobyteVolumeSource", + "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime" + }, + "rbd": { + "$ref": "#/$defs/io.k8s.api.core.v1.RBDVolumeSource", + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md" + }, + "scaleIO": { + "$ref": "#/$defs/io.k8s.api.core.v1.ScaleIOVolumeSource", + "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." + }, + "secret": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretVolumeSource", + "description": "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret" + }, + "storageos": { + "$ref": "#/$defs/io.k8s.api.core.v1.StorageOSVolumeSource", + "description": "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes." + }, + "vsphereVolume": { + "$ref": "#/$defs/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource", + "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.VolumeDevice": { + "description": "volumeDevice describes a mapping of a raw block device within a container.", + "properties": { + "devicePath": { + "description": "devicePath is the path inside of the container that the device will be mapped to.", + "type": "string" + }, + "name": { + "description": "name must match the name of a persistentVolumeClaim in the pod", + "type": "string" + } + }, + "required": [ + "name", + "devicePath" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.VolumeMount": { + "description": "VolumeMount describes a mounting of a Volume within a container.", + "properties": { + "mountPath": { + "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "type": "string" + }, + "mountPropagation": { + "description": "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "This must match the Name of a Volume.", + "type": "string" + }, + "readOnly": { + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "recursiveReadOnly": { + "description": "RecursiveReadOnly specifies whether read-only mounts should be handled recursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", + "type": [ + "string", + "null" + ] + }, + "subPath": { + "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", + "type": [ + "string", + "null" + ] + }, + "subPathExpr": { + "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "mountPath" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.VolumeMountStatus": { + "description": "VolumeMountStatus shows status of volume mounts.", + "properties": { + "mountPath": { + "description": "MountPath corresponds to the original VolumeMount.", + "type": "string" + }, + "name": { + "description": "Name corresponds to the name of the original VolumeMount.", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly corresponds to the original VolumeMount.", + "type": [ + "boolean", + "null" + ] + }, + "recursiveReadOnly": { + "description": "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "mountPath" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.VolumeNodeAffinity": { + "description": "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", + "properties": { + "required": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "required specifies hard node constraints that must be met." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.VolumeProjection": { + "description": "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.", + "properties": { + "clusterTrustBundle": { + "$ref": "#/$defs/io.k8s.api.core.v1.ClusterTrustBundleProjection", + "description": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time." + }, + "configMap": { + "$ref": "#/$defs/io.k8s.api.core.v1.ConfigMapProjection", + "description": "configMap information about the configMap data to project" + }, + "downwardAPI": { + "$ref": "#/$defs/io.k8s.api.core.v1.DownwardAPIProjection", + "description": "downwardAPI information about the downwardAPI data to project" + }, + "secret": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretProjection", + "description": "secret information about the secret data to project" + }, + "serviceAccountToken": { + "$ref": "#/$defs/io.k8s.api.core.v1.ServiceAccountTokenProjection", + "description": "serviceAccountToken is information about the serviceAccountToken data to project" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.VolumeResourceRequirements": { + "description": "VolumeResourceRequirements describes the storage resource requirements for a volume.", + "properties": { + "limits": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + }, + "requests": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource": { + "description": "Represents a vSphere volume resource.", + "properties": { + "fsType": { + "description": "fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "storagePolicyID": { + "description": "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", + "type": [ + "string", + "null" + ] + }, + "storagePolicyName": { + "description": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", + "type": [ + "string", + "null" + ] + }, + "volumePath": { + "description": "volumePath is the path that identifies vSphere volume vmdk", + "type": "string" + } + }, + "required": [ + "volumePath" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.WeightedPodAffinityTerm": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "properties": { + "podAffinityTerm": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodAffinityTerm", + "description": "Required. A pod affinity term, associated with the corresponding weight." + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "weight", + "podAffinityTerm" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.core.v1.WindowsSecurityContextOptions": { + "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", + "properties": { + "gmsaCredentialSpec": { + "description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.", + "type": [ + "string", + "null" + ] + }, + "gmsaCredentialSpecName": { + "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", + "type": [ + "string", + "null" + ] + }, + "hostProcess": { + "description": "HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.", + "type": [ + "boolean", + "null" + ] + }, + "runAsUserName": { + "description": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.discovery.v1.Endpoint": { + "description": "Endpoint represents a single logical \"backend\" implementing a service.", + "properties": { + "addresses": { + "description": "addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "conditions": { + "$ref": "#/$defs/io.k8s.api.discovery.v1.EndpointConditions", + "description": "conditions contains information about the current status of the endpoint." + }, + "deprecatedTopology": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.", + "type": [ + "object", + "null" + ] + }, + "hints": { + "$ref": "#/$defs/io.k8s.api.discovery.v1.EndpointHints", + "description": "hints contains information associated with how an endpoint should be consumed." + }, + "hostname": { + "description": "hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.", + "type": [ + "string", + "null" + ] + }, + "nodeName": { + "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.", + "type": [ + "string", + "null" + ] + }, + "targetRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." + }, + "zone": { + "description": "zone is the name of the Zone this endpoint exists in.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "addresses" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.discovery.v1.EndpointConditions": { + "description": "EndpointConditions represents the current condition of an endpoint.", + "properties": { + "ready": { + "description": "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.", + "type": [ + "boolean", + "null" + ] + }, + "serving": { + "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.", + "type": [ + "boolean", + "null" + ] + }, + "terminating": { + "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.discovery.v1.EndpointHints": { + "description": "EndpointHints provides hints describing how an endpoint should be consumed.", + "properties": { + "forZones": { + "description": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.", + "items": { + "$ref": "#/$defs/io.k8s.api.discovery.v1.ForZone" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.discovery.v1.EndpointPort": { + "description": "EndpointPort represents a Port used by an EndpointSlice", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "protocol": { + "description": "protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.discovery.v1.EndpointSlice": { + "description": "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.", + "properties": { + "addressType": { + "description": "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.", + "type": "string" + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "discovery.k8s.io/v1" + ] + }, + "endpoints": { + "description": "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.", + "items": { + "$ref": "#/$defs/io.k8s.api.discovery.v1.Endpoint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EndpointSlice" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "ports": { + "description": "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.", + "items": { + "$ref": "#/$defs/io.k8s.api.discovery.v1.EndpointPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "addressType", + "endpoints" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.discovery.v1.EndpointSliceList": { + "description": "EndpointSliceList represents a list of endpoint slices", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "discovery.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of endpoint slices", + "items": { + "$ref": "#/$defs/io.k8s.api.discovery.v1.EndpointSlice" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EndpointSliceList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "discovery.k8s.io", + "kind": "EndpointSliceList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.discovery.v1.ForZone": { + "description": "ForZone provides information about which zones should consume this endpoint.", + "properties": { + "name": { + "description": "name represents the name of the zone.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.events.v1.Event": { + "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "properties": { + "action": { + "description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": [ + "string", + "null" + ] + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "events.k8s.io/v1" + ] + }, + "deprecatedCount": { + "description": "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "deprecatedFirstTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "deprecatedLastTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "deprecatedSource": { + "$ref": "#/$defs/io.k8s.api.core.v1.EventSource", + "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "eventTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "eventTime is the time when this Event was first observed. It is required." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Event" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "note": { + "description": "note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": [ + "string", + "null" + ] + }, + "regarding": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." + }, + "related": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." + }, + "reportingController": { + "description": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.", + "type": [ + "string", + "null" + ] + }, + "reportingInstance": { + "description": "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": [ + "string", + "null" + ] + }, + "series": { + "$ref": "#/$defs/io.k8s.api.events.v1.EventSeries", + "description": "series is data about the Event series this event represents or nil if it's a singleton Event." + }, + "type": { + "description": "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "eventTime" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.events.v1.EventList": { + "description": "EventList is a list of Event objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "events.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.events.v1.Event" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EventList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "events.k8s.io", + "kind": "EventList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.events.v1.EventSeries": { + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations.", + "properties": { + "count": { + "description": "count is the number of occurrences in this series up to the last heartbeat time.", + "format": "int32", + "type": "integer" + }, + "lastObservedTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat." + } + }, + "required": [ + "count", + "lastObservedTime" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration": { + "description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", + "properties": { + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod": { + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", + "properties": { + "type": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.FlowSchema": { + "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchema" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.FlowSchemaCondition": { + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.FlowSchemaList": { + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "items": { + "description": "`items` is a list of FlowSchemas.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.FlowSchema" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchemaList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.FlowSchemaSpec": { + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + }, + "matchingPrecedence": { + "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "priorityLevelConfiguration": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + }, + "rules": { + "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.FlowSchemaStatus": { + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.GroupSubject": { + "description": "GroupSubject holds detailed information for group-kind subject.", + "properties": { + "name": { + "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.LimitResponse": { + "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "properties": { + "queuing": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + }, + "type": { + "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "queuing": "Queuing" + } + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration": { + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "properties": { + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "limitResponse": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level.\n\nIf not specified, this field defaults to a value of 30.\n\nSetting this field to zero supports the construction of a \"jail\" for this priority level that is used to hold some request(s)", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.NonResourcePolicyRule": { + "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", + "properties": { + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "nonResourceURLs" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects": { + "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", + "properties": { + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.NonResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.ResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "subjects": { + "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "subjects" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration": { + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfiguration" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationCondition": { + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList": { + "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "items": { + "description": "`items` is a list of request-priorities.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfigurationList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference": { + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "properties": { + "name": { + "description": "`name` is the name of the priority level configuration being referenced Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec": { + "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", + "properties": { + "exempt": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration", + "description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply." + }, + "limited": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "type": { + "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "exempt": "Exempt", + "limited": "Limited" + } + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationStatus": { + "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.QueuingConfiguration": { + "description": "QueuingConfiguration holds the configuration parameters for queuing", + "properties": { + "handSize": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.ResourcePolicyRule": { + "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", + "properties": { + "apiGroups": { + "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "clusterScope": { + "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", + "type": [ + "boolean", + "null" + ] + }, + "namespaces": { + "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "resources": { + "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "apiGroups", + "resources" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.ServiceAccountSubject": { + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", + "properties": { + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", + "type": "string" + }, + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": "string" + } + }, + "required": [ + "namespace", + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.Subject": { + "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", + "properties": { + "group": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.GroupSubject", + "description": "`group` matches based on user group name." + }, + "kind": { + "description": "`kind` indicates which one of the other fields is non-empty. Required", + "type": "string" + }, + "serviceAccount": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.UserSubject", + "description": "`user` matches based on username." + } + }, + "required": [ + "kind" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1.UserSubject": { + "description": "UserSubject holds detailed information for user-kind subject.", + "properties": { + "name": { + "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration": { + "description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", + "properties": { + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod": { + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", + "properties": { + "type": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchema": { + "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchema" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition": { + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaList": { + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "items": { + "description": "`items` is a list of FlowSchemas.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchemaList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1beta3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec": { + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + }, + "matchingPrecedence": { + "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "priorityLevelConfiguration": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + }, + "rules": { + "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus": { + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.GroupSubject": { + "description": "GroupSubject holds detailed information for group-kind subject.", + "properties": { + "name": { + "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.LimitResponse": { + "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "properties": { + "queuing": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + }, + "type": { + "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "queuing": "Queuing" + } + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration": { + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "properties": { + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "limitResponse": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule": { + "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", + "properties": { + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "nonResourceURLs" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects": { + "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", + "properties": { + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "subjects": { + "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "subjects" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration": { + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfiguration" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition": { + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList": { + "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "items": { + "description": "`items` is a list of request-priorities.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfigurationList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1beta3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference": { + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "properties": { + "name": { + "description": "`name` is the name of the priority level configuration being referenced Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec": { + "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", + "properties": { + "exempt": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration", + "description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply." + }, + "limited": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "type": { + "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "exempt": "Exempt", + "limited": "Limited" + } + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus": { + "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration": { + "description": "QueuingConfiguration holds the configuration parameters for queuing", + "properties": { + "handSize": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule": { + "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", + "properties": { + "apiGroups": { + "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "clusterScope": { + "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", + "type": [ + "boolean", + "null" + ] + }, + "namespaces": { + "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "resources": { + "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "apiGroups", + "resources" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject": { + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", + "properties": { + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", + "type": "string" + }, + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": "string" + } + }, + "required": [ + "namespace", + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.Subject": { + "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", + "properties": { + "group": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.GroupSubject", + "description": "`group` matches based on user group name." + }, + "kind": { + "description": "`kind` indicates which one of the other fields is non-empty. Required", + "type": "string" + }, + "serviceAccount": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.UserSubject", + "description": "`user` matches based on username." + } + }, + "required": [ + "kind" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } + } + ], + "additionalProperties": false + }, + "io.k8s.api.flowcontrol.v1beta3.UserSubject": { + "description": "UserSubject holds detailed information for user-kind subject.", + "properties": { + "name": { + "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.HTTPIngressPath": { + "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", + "properties": { + "backend": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressBackend", + "description": "backend defines the referenced service endpoint to which the traffic will be forwarded to." + }, + "path": { + "description": "path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".", + "type": [ + "string", + "null" + ] + }, + "pathType": { + "description": "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", + "type": "string" + } + }, + "required": [ + "pathType", + "backend" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.HTTPIngressRuleValue": { + "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", + "properties": { + "paths": { + "description": "paths is a collection of paths that map requests to backends.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.HTTPIngressPath" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "paths" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IPBlock": { + "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + "properties": { + "cidr": { + "description": "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", + "type": "string" + }, + "except": { + "description": "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "cidr" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.Ingress": { + "description": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Ingress" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressSpec", + "description": "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressStatus", + "description": "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressBackend": { + "description": "IngressBackend describes all endpoints for a given service and port.", + "properties": { + "resource": { + "$ref": "#/$defs/io.k8s.api.core.v1.TypedLocalObjectReference", + "description": "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\"." + }, + "service": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressServiceBackend", + "description": "service references a service as a backend. This is a mutually exclusive setting with \"Resource\"." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressClass": { + "description": "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IngressClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressClassSpec", + "description": "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressClassList": { + "description": "IngressClassList is a collection of IngressClasses.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of IngressClasses.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IngressClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClassList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressClassParametersReference": { + "description": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", + "properties": { + "apiGroup": { + "description": "apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the type of resource being referenced.", + "type": "string" + }, + "name": { + "description": "name is the name of resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", + "type": [ + "string", + "null" + ] + }, + "scope": { + "description": "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressClassSpec": { + "description": "IngressClassSpec provides information about the class of an Ingress.", + "properties": { + "controller": { + "description": "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "parameters": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressClassParametersReference", + "description": "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressList": { + "description": "IngressList is a collection of Ingress.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of Ingress.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.Ingress" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IngressList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressLoadBalancerIngress": { + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "properties": { + "hostname": { + "description": "hostname is set for load-balancer ingress points that are DNS based.", + "type": [ + "string", + "null" + ] + }, + "ip": { + "description": "ip is set for load-balancer ingress points that are IP based.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "ports provides information about the ports exposed by this LoadBalancer.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressPortStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressLoadBalancerStatus": { + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "ingress is a list containing ingress points for the load-balancer.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressLoadBalancerIngress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressPortStatus": { + "description": "IngressPortStatus represents the error condition of a service port", + "properties": { + "error": { + "description": "error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "port is the port number of the ingress port.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressRule": { + "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", + "properties": { + "host": { + "description": "host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nhost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", + "type": [ + "string", + "null" + ] + }, + "http": { + "$ref": "#/$defs/io.k8s.api.networking.v1.HTTPIngressRuleValue" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressServiceBackend": { + "description": "IngressServiceBackend references a Kubernetes Service as a Backend.", + "properties": { + "name": { + "description": "name is the referenced service. The service must exist in the same namespace as the Ingress object.", + "type": "string" + }, + "port": { + "$ref": "#/$defs/io.k8s.api.networking.v1.ServiceBackendPort", + "description": "port of the referenced service. A port name or port number is required for a IngressServiceBackend." + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressSpec": { + "description": "IngressSpec describes the Ingress the user wishes to exist.", + "properties": { + "defaultBackend": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressBackend", + "description": "defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." + }, + "ingressClassName": { + "description": "ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.", + "type": [ + "string", + "null" + ] + }, + "rules": { + "description": "rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "tls": { + "description": "tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressTLS" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressStatus": { + "description": "IngressStatus describe the current state of the Ingress.", + "properties": { + "loadBalancer": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressLoadBalancerStatus", + "description": "loadBalancer contains the current status of the load-balancer." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.IngressTLS": { + "description": "IngressTLS describes the transport layer security associated with an ingress.", + "properties": { + "hosts": { + "description": "hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "secretName": { + "description": "secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the \"Host\" header is used for routing.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.NetworkPolicy": { + "description": "NetworkPolicy describes what network traffic is allowed for a set of Pods", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NetworkPolicy" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicySpec", + "description": "spec represents the specification of the desired behavior for this NetworkPolicy." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.NetworkPolicyEgressRule": { + "description": "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", + "properties": { + "ports": { + "description": "ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicyPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "to": { + "description": "to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicyPeer" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.NetworkPolicyIngressRule": { + "description": "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.", + "properties": { + "from": { + "description": "from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicyPeer" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicyPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.NetworkPolicyList": { + "description": "NetworkPolicyList is a list of NetworkPolicy objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NetworkPolicyList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "NetworkPolicyList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.NetworkPolicyPeer": { + "description": "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", + "properties": { + "ipBlock": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IPBlock", + "description": "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be." + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector." + }, + "podSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.NetworkPolicyPort": { + "description": "NetworkPolicyPort describes a port to allow traffic on", + "properties": { + "endPort": { + "description": "endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "port": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched." + }, + "protocol": { + "description": "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.NetworkPolicySpec": { + "description": "NetworkPolicySpec provides the specification of a NetworkPolicy", + "properties": { + "egress": { + "description": "egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicyEgressRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ingress": { + "description": "ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicyIngressRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "podSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace." + }, + "policyTypes": { + "description": "policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "podSelector" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1.ServiceBackendPort": { + "description": "ServiceBackendPort is the service port being referenced.", + "properties": { + "name": { + "description": "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", + "type": [ + "string", + "null" + ] + }, + "number": { + "description": "number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.networking.v1beta1.IPAddress": { + "description": "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IPAddress" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.networking.v1beta1.IPAddressSpec", + "description": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1beta1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1beta1.IPAddressList": { + "description": "IPAddressList contains a list of IPAddress.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "items": { + "description": "items is the list of IPAddresses.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1beta1.IPAddress" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IPAddressList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddressList", + "version": "v1beta1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1beta1.IPAddressSpec": { + "description": "IPAddressSpec describe the attributes in an IP Address.", + "properties": { + "parentRef": { + "$ref": "#/$defs/io.k8s.api.networking.v1beta1.ParentReference", + "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." + } + }, + "required": [ + "parentRef" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1beta1.ParentReference": { + "description": "ParentReference describes a reference to a parent object.", + "properties": { + "group": { + "description": "Group is the group of the object being referenced.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of the object being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the object being referenced.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "Resource is the resource of the object being referenced.", + "type": "string" + } + }, + "required": [ + "resource", + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1beta1.ServiceCIDR": { + "description": "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceCIDR" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRSpec", + "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRStatus", + "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1beta1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1beta1.ServiceCIDRList": { + "description": "ServiceCIDRList contains a list of ServiceCIDR objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "items": { + "description": "items is the list of ServiceCIDRs.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDR" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceCIDRList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDRList", + "version": "v1beta1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1beta1.ServiceCIDRSpec": { + "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", + "properties": { + "cidrs": { + "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.networking.v1beta1.ServiceCIDRStatus": { + "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", + "properties": { + "conditions": { + "description": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.node.v1.Overhead": { + "description": "Overhead structure represents the resource overhead associated with running a pod.", + "properties": { + "podFixed": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "podFixed represents the fixed resource overhead associated with running a pod.", + "type": [ + "object", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.node.v1.RuntimeClass": { + "description": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "node.k8s.io/v1" + ] + }, + "handler": { + "description": "handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RuntimeClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "overhead": { + "$ref": "#/$defs/io.k8s.api.node.v1.Overhead", + "description": "overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see\n https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/" + }, + "scheduling": { + "$ref": "#/$defs/io.k8s.api.node.v1.Scheduling", + "description": "scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." + } + }, + "required": [ + "handler" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.node.v1.RuntimeClassList": { + "description": "RuntimeClassList is a list of RuntimeClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "node.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.node.v1.RuntimeClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RuntimeClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "node.k8s.io", + "kind": "RuntimeClassList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.node.v1.Scheduling": { + "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", + "properties": { + "nodeSelector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "tolerations": { + "description": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Toleration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.policy.v1.Eviction": { + "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "policy/v1" + ] + }, + "deleteOptions": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions", + "description": "DeleteOptions may be provided" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Eviction" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "ObjectMeta describes the pod that is being evicted." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "Eviction", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.policy.v1.PodDisruptionBudget": { + "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "policy/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodDisruptionBudget" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetSpec", + "description": "Specification of the desired behavior of the PodDisruptionBudget." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetStatus", + "description": "Most recently observed status of the PodDisruptionBudget." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.policy.v1.PodDisruptionBudgetList": { + "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "policy/v1" + ] + }, + "items": { + "description": "Items is a list of PodDisruptionBudgets", + "items": { + "$ref": "#/$defs/io.k8s.api.policy.v1.PodDisruptionBudget" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodDisruptionBudgetList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "PodDisruptionBudgetList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.policy.v1.PodDisruptionBudgetSpec": { + "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", + "properties": { + "maxUnavailable": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." + }, + "minAvailable": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", + "x-kubernetes-patch-strategy": "replace" + }, + "unhealthyPodEvictionPolicy": { + "description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.policy.v1.PodDisruptionBudgetStatus": { + "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", + "properties": { + "conditions": { + "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentHealthy": { + "description": "current number of healthy pods", + "format": "int32", + "type": "integer" + }, + "desiredHealthy": { + "description": "minimum desired number of healthy pods", + "format": "int32", + "type": "integer" + }, + "disruptedPods": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", + "type": [ + "object", + "null" + ] + }, + "disruptionsAllowed": { + "description": "Number of pod disruptions that are currently allowed.", + "format": "int32", + "type": "integer" + }, + "expectedPods": { + "description": "total number of pods counted by this disruption budget", + "format": "int32", + "type": "integer" + }, + "observedGeneration": { + "description": "Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "disruptionsAllowed", + "currentHealthy", + "desiredHealthy", + "expectedPods" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.rbac.v1.AggregationRule": { + "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", + "properties": { + "clusterRoleSelectors": { + "description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.rbac.v1.ClusterRole": { + "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", + "properties": { + "aggregationRule": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.AggregationRule", + "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRole" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "rules": { + "description": "Rules holds all the PolicyRules for this ClusterRole", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.PolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.rbac.v1.ClusterRoleBinding": { + "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRoleBinding" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "roleRef": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.RoleRef", + "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.Subject" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "roleRef" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.rbac.v1.ClusterRoleBindingList": { + "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of ClusterRoleBindings", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.ClusterRoleBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRoleBindingList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBindingList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.rbac.v1.ClusterRoleList": { + "description": "ClusterRoleList is a collection of ClusterRoles", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of ClusterRoles", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.ClusterRole" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRoleList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.rbac.v1.PolicyRule": { + "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", + "properties": { + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nonResourceURLs": { + "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.rbac.v1.Role": { + "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Role" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "rules": { + "description": "Rules holds all the PolicyRules for this Role", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.PolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.rbac.v1.RoleBinding": { + "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RoleBinding" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "roleRef": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.RoleRef", + "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.Subject" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "roleRef" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.rbac.v1.RoleBindingList": { + "description": "RoleBindingList is a collection of RoleBindings", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of RoleBindings", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.RoleBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RoleBindingList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBindingList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.rbac.v1.RoleList": { + "description": "RoleList is a collection of Roles", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of Roles", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.Role" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RoleList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.rbac.v1.RoleRef": { + "description": "RoleRef contains information that points to the role being used", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + } + }, + "required": [ + "apiGroup", + "kind", + "name" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.rbac.v1.Subject": { + "description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", + "properties": { + "apiGroup": { + "description": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.", + "type": "string" + }, + "name": { + "description": "Name of the object being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.AllocationResult": { + "description": "AllocationResult contains attributes of an allocated resource.", + "properties": { + "controller": { + "description": "Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.\n\nA driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.", + "type": [ + "string", + "null" + ] + }, + "devices": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceAllocationResult", + "description": "Devices is the result of allocating devices." + }, + "nodeSelector": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "NodeSelector defines where the allocated resources are available. If unset, they are available everywhere." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.BasicDevice": { + "description": "BasicDevice defines one device instance.", + "properties": { + "attributes": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceAttribute" + }, + "description": "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.", + "type": [ + "object", + "null" + ] + }, + "capacity": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.", + "type": [ + "object", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.CELDeviceSelector": { + "description": "CELDeviceSelector contains a CEL expression for selecting a device.", + "properties": { + "expression": { + "description": "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n\nExample: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.\n\nThe value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.\n\nIf an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)", + "type": "string" + } + }, + "required": [ + "expression" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.Device": { + "description": "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.", + "properties": { + "basic": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.BasicDevice", + "description": "Basic defines one device instance." + }, + "name": { + "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceAllocationConfiguration": { + "description": "DeviceAllocationConfiguration gets embedded in an AllocationResult.", + "properties": { + "opaque": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + }, + "requests": { + "description": "Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "source": { + "description": "Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.", + "type": "string" + } + }, + "required": [ + "source" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceAllocationResult": { + "description": "DeviceAllocationResult is the result of allocating devices.", + "properties": { + "config": { + "description": "This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.\n\nThis includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceAllocationConfiguration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "results": { + "description": "Results lists all allocated devices.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceRequestAllocationResult" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceAttribute": { + "description": "DeviceAttribute must have exactly one field set.", + "properties": { + "bool": { + "description": "BoolValue is a true/false value.", + "type": [ + "boolean", + "null" + ] + }, + "int": { + "description": "IntValue is a number.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "string": { + "description": "StringValue is a string. Must not be longer than 64 characters.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceClaim": { + "description": "DeviceClaim defines how to request devices with a ResourceClaim.", + "properties": { + "config": { + "description": "This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceClaimConfiguration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "constraints": { + "description": "These constraints must be satisfied by the set of devices that get allocated for the claim.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceConstraint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requests": { + "description": "Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceRequest" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceClaimConfiguration": { + "description": "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.", + "properties": { + "opaque": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + }, + "requests": { + "description": "Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceClass": { + "description": "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeviceClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassSpec", + "description": "Spec defines what can be allocated and how to configure it.\n\nThis is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.\n\nChanging the spec automatically increments the metadata.generation number." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1alpha3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceClassConfiguration": { + "description": "DeviceClassConfiguration is used in DeviceClass.", + "properties": { + "opaque": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceClassList": { + "description": "DeviceClassList is a collection of classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource classes.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeviceClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceClassList", + "version": "v1alpha3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceClassSpec": { + "description": "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.", + "properties": { + "config": { + "description": "Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.\n\nThey are passed to the driver, but are not considered while allocating the claim.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassConfiguration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "selectors": { + "description": "Each selector must be satisfied by a device which is claimed via this class.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceSelector" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "suitableNodes": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet *and* that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation.\n\nSetting this field is optional. If unset, all Nodes are candidates.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceConstraint": { + "description": "DeviceConstraint must have exactly one field set besides Requests.", + "properties": { + "matchAttribute": { + "description": "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.\n\nFor example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.\n\nMust include the domain qualifier.", + "type": [ + "string", + "null" + ] + }, + "requests": { + "description": "Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceRequest": { + "description": "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.\n\nA DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.", + "properties": { + "adminAccess": { + "description": "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.", + "type": [ + "boolean", + "null" + ] + }, + "allocationMode": { + "description": "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:\n\n- ExactCount: This request is for a specific number of devices.\n This is the default. The exact number is provided in the\n count field.\n\n- All: This request is for all of the matching devices in a pool.\n Allocation will fail if some devices are already allocated,\n unless adminAccess is requested.\n\nIf AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.\n\nMore modes may get added in the future. Clients must refuse to handle requests with unknown modes.", + "type": [ + "string", + "null" + ] + }, + "count": { + "description": "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "deviceClassName": { + "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.", + "type": "string" + }, + "name": { + "description": "Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.\n\nMust be a DNS label.", + "type": "string" + }, + "selectors": { + "description": "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceSelector" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "deviceClassName" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceRequestAllocationResult": { + "description": "DeviceRequestAllocationResult contains the allocation result for one request.", + "properties": { + "device": { + "description": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.", + "type": "string" + }, + "driver": { + "description": "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.", + "type": "string" + }, + "pool": { + "description": "This name together with the driver name and the device name field identify which device was allocated (`//`).\n\nMust not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.", + "type": "string" + }, + "request": { + "description": "Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.", + "type": "string" + } + }, + "required": [ + "request", + "driver", + "pool", + "device" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.DeviceSelector": { + "description": "DeviceSelector must have exactly one field set.", + "properties": { + "cel": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.CELDeviceSelector", + "description": "CEL contains a CEL expression for selecting a device." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration": { + "description": "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.", + "properties": { + "driver": { + "description": "Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.\n\nAn admission policy provided by the driver developer could use this to decide whether it needs to validate them.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.", + "type": "string" + }, + "parameters": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version (\"kind\" + \"apiVersion\" for Kubernetes types), with conversion between different versions." + } + }, + "required": [ + "driver", + "parameters" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.PodSchedulingContext": { + "description": "PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DRAControlPlaneController feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodSchedulingContext" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextSpec", + "description": "Spec describes where resources for the Pod are needed." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextStatus", + "description": "Status describes where resources for the Pod can be allocated." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.PodSchedulingContextList": { + "description": "PodSchedulingContextList is a collection of Pod scheduling objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of PodSchedulingContext objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContext" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodSchedulingContextList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodSchedulingContextList", + "version": "v1alpha3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.PodSchedulingContextSpec": { + "description": "PodSchedulingContextSpec describes where resources for the Pod are needed.", + "properties": { + "potentialNodes": { + "description": "PotentialNodes lists nodes where the Pod might be able to run.\n\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "selectedNode": { + "description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.PodSchedulingContextStatus": { + "description": "PodSchedulingContextStatus describes where resources for the Pod can be allocated.", + "properties": { + "resourceClaims": { + "description": "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSchedulingStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourceClaim": { + "description": "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaim" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSpec", + "description": "Spec describes what is being requested and how to configure it. The spec is immutable." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimStatus", + "description": "Status describes whether the claim is ready to use and what has been allocated." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimConsumerReference": { + "description": "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + }, + "resource": { + "description": "Resource is the type of resource being referenced, for example \"pods\".", + "type": "string" + }, + "uid": { + "description": "UID identifies exactly one incarnation of the resource.", + "type": "string" + } + }, + "required": [ + "resource", + "name", + "uid" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimList": { + "description": "ResourceClaimList is a collection of claims.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource claims.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaim" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaimList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimList", + "version": "v1alpha3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimSchedulingStatus": { + "description": "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.", + "properties": { + "name": { + "description": "Name matches the pod.spec.resourceClaims[*].Name field.", + "type": "string" + }, + "unsuitableNodes": { + "description": "UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\n\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimSpec": { + "description": "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.", + "properties": { + "controller": { + "description": "Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.", + "type": [ + "string", + "null" + ] + }, + "devices": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceClaim", + "description": "Devices defines how to request devices." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimStatus": { + "description": "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.", + "properties": { + "allocation": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.AllocationResult", + "description": "Allocation is set once the claim has been allocated successfully." + }, + "deallocationRequested": { + "description": "Indicates that a claim is to be deallocated. While this is set, no new consumers may be added to ReservedFor.\n\nThis is only used if the claim needs to be deallocated by a DRA driver. That driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.", + "type": [ + "boolean", + "null" + ] + }, + "reservedFor": { + "description": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.\n\nIn a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.\n\nBoth schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.\n\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimConsumerReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimTemplate": { + "description": "ResourceClaimTemplate is used to produce ResourceClaim objects.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaimTemplate" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplateSpec", + "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimTemplateList": { + "description": "ResourceClaimTemplateList is a collection of claim templates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource claim templates.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplate" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaimTemplateList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplateList", + "version": "v1alpha3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimTemplateSpec": { + "description": "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.", + "properties": { + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSpec", + "description": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourcePool": { + "description": "ResourcePool describes the pool that ResourceSlices belong to.", + "properties": { + "generation": { + "description": "Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.\n\nCombined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.", + "format": "int64", + "type": "integer" + }, + "name": { + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "type": "string" + }, + "resourceSliceCount": { + "description": "ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.\n\nConsumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "name", + "generation", + "resourceSliceCount" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourceSlice": { + "description": "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.\n\nAt the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , .\n\nWhenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.\n\nWhen allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.\n\nFor resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceSlice" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceSliceSpec", + "description": "Contains the information published by the driver.\n\nChanging the spec automatically increments the metadata.generation number." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1alpha3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourceSliceList": { + "description": "ResourceSliceList is a collection of ResourceSlices.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource ResourceSlices.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceSlice" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceSliceList" + ] + }, + "listMeta": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceSliceList", + "version": "v1alpha3" + } + ], + "additionalProperties": false + }, + "io.k8s.api.resource.v1alpha3.ResourceSliceSpec": { + "description": "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.", + "properties": { + "allNodes": { + "description": "AllNodes indicates that all nodes have access to the resources in the pool.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set.", + "type": [ + "boolean", + "null" + ] + }, + "devices": { + "description": "Devices lists some or all of the devices in this pool.\n\nMust not have more than 128 entries.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.Device" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "driver": { + "description": "Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.", + "type": "string" + }, + "nodeName": { + "description": "NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.\n\nThis field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "nodeSelector": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set." + }, + "pool": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourcePool", + "description": "Pool describes the pool that this ResourceSlice belongs to." + } + }, + "required": [ + "driver", + "pool" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.scheduling.v1.PriorityClass": { + "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "scheduling.k8s.io/v1" + ] + }, + "description": { + "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", + "type": [ + "string", + "null" + ] + }, + "globalDefault": { + "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": [ + "string", + "null" + ] + }, + "value": { + "description": "value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "value" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.scheduling.v1.PriorityClassList": { + "description": "PriorityClassList is a collection of priority classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "scheduling.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of PriorityClasses", + "items": { + "$ref": "#/$defs/io.k8s.api.scheduling.v1.PriorityClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClassList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.CSIDriver": { + "description": "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIDriver" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.storage.v1.CSIDriverSpec", + "description": "spec represents the specification of the CSI Driver." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.CSIDriverList": { + "description": "CSIDriverList is a collection of CSIDriver objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of CSIDriver", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.CSIDriver" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIDriverList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriverList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.CSIDriverSpec": { + "description": "CSIDriverSpec is the specification of a CSIDriver.", + "properties": { + "attachRequired": { + "description": "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", + "type": [ + "boolean", + "null" + ] + }, + "fsGroupPolicy": { + "description": "fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.", + "type": [ + "string", + "null" + ] + }, + "podInfoOnMount": { + "description": "podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.\n\nThe CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.\n\nThe following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.", + "type": [ + "boolean", + "null" + ] + }, + "requiresRepublish": { + "description": "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", + "type": [ + "boolean", + "null" + ] + }, + "seLinuxMount": { + "description": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", + "type": [ + "boolean", + "null" + ] + }, + "storageCapacity": { + "description": "storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", + "type": [ + "boolean", + "null" + ] + }, + "tokenRequests": { + "description": "tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.TokenRequest" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "volumeLifecycleModes": { + "description": "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.\n\nThe other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.\n\nFor more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.\n\nThis field is beta. This field is immutable.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.CSINode": { + "description": "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSINode" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. metadata.name must be the Kubernetes node name." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.storage.v1.CSINodeSpec", + "description": "spec is the specification of CSINode" + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.CSINodeDriver": { + "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", + "properties": { + "allocatable": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeNodeResources", + "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." + }, + "name": { + "description": "name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", + "type": "string" + }, + "nodeID": { + "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", + "type": "string" + }, + "topologyKeys": { + "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "nodeID" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.CSINodeList": { + "description": "CSINodeList is a collection of CSINode objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of CSINode", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.CSINode" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSINodeList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINodeList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.CSINodeSpec": { + "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", + "properties": { + "drivers": { + "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.CSINodeDriver" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "drivers" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.CSIStorageCapacity": { + "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "capacity": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIStorageCapacity" + ] + }, + "maximumVolumeSize": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "nodeTopology": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + }, + "storageClassName": { + "description": "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", + "type": "string" + } + }, + "required": [ + "storageClassName" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.CSIStorageCapacityList": { + "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of CSIStorageCapacity objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.CSIStorageCapacity" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIStorageCapacityList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacityList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.StorageClass": { + "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", + "properties": { + "allowVolumeExpansion": { + "description": "allowVolumeExpansion shows whether the storage class allow volume expand.", + "type": [ + "boolean", + "null" + ] + }, + "allowedTopologies": { + "description": "allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.TopologySelectorTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "mountOptions": { + "description": "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "parameters": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "parameters holds the parameters for the provisioner that should create volumes of this storage class.", + "type": [ + "object", + "null" + ] + }, + "provisioner": { + "description": "provisioner indicates the type of the provisioner.", + "type": "string" + }, + "reclaimPolicy": { + "description": "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.", + "type": [ + "string", + "null" + ] + }, + "volumeBindingMode": { + "description": "volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "provisioner" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.StorageClassList": { + "description": "StorageClassList is a collection of storage classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of StorageClasses", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.StorageClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClassList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.TokenRequest": { + "description": "TokenRequest contains parameters of a service account token.", + "properties": { + "audience": { + "description": "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", + "type": "string" + }, + "expirationSeconds": { + "description": "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "audience" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.VolumeAttachment": { + "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttachment" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeAttachmentSpec", + "description": "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeAttachmentStatus", + "description": "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.VolumeAttachmentList": { + "description": "VolumeAttachmentList is a collection of VolumeAttachment objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of VolumeAttachments", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeAttachment" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttachmentList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachmentList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.VolumeAttachmentSource": { + "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", + "properties": { + "inlineVolumeSpec": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature." + }, + "persistentVolumeName": { + "description": "persistentVolumeName represents the name of the persistent volume to attach.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.VolumeAttachmentSpec": { + "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", + "properties": { + "attacher": { + "description": "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", + "type": "string" + }, + "nodeName": { + "description": "nodeName represents the node that the volume should be attached to.", + "type": "string" + }, + "source": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeAttachmentSource", + "description": "source represents the volume that should be attached." + } + }, + "required": [ + "attacher", + "source", + "nodeName" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.VolumeAttachmentStatus": { + "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", + "properties": { + "attachError": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeError", + "description": "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." + }, + "attached": { + "description": "attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "type": "boolean" + }, + "attachmentMetadata": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "type": [ + "object", + "null" + ] + }, + "detachError": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeError", + "description": "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." + } + }, + "required": [ + "attached" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.VolumeError": { + "description": "VolumeError captures an error encountered during a volume operation.", + "properties": { + "message": { + "description": "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", + "type": [ + "string", + "null" + ] + }, + "time": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "time represents the time the error was encountered." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1.VolumeNodeResources": { + "description": "VolumeNodeResources is a set of resource limits for scheduling of volumes.", + "properties": { + "count": { + "description": "count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1alpha1.VolumeAttributesClass": { + "description": "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1alpha1" + ] + }, + "driverName": { + "description": "Name of the CSI driver This field is immutable.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "parameters": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "driverName" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1alpha1.VolumeAttributesClassList": { + "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "items is the list of VolumeAttributesClass objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClassList", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1beta1.VolumeAttributesClass": { + "description": "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1beta1" + ] + }, + "driverName": { + "description": "Name of the CSI driver This field is immutable.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "parameters": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "driverName" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1beta1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storage.v1beta1.VolumeAttributesClassList": { + "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1beta1" + ] + }, + "items": { + "description": "items is the list of VolumeAttributesClass objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClassList", + "version": "v1beta1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storagemigration.v1alpha1.GroupVersionResource": { + "description": "The names of the group, the version, and the resource.", + "properties": { + "group": { + "description": "The name of the group.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "The name of the resource.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "The name of the version.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.storagemigration.v1alpha1.MigrationCondition": { + "description": "Describes the state of a migration at a certain point.", + "properties": { + "lastUpdateTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time this condition was updated." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of the condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.storagemigration.v1alpha1.StorageVersionMigration": { + "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storagemigration.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersionMigration" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationSpec", + "description": "Specification of the migration." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationStatus", + "description": "Status of the migration." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationList": { + "description": "StorageVersionMigrationList is a collection of storage version migrations.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storagemigration.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "Items is the list of StorageVersionMigration", + "items": { + "$ref": "#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigration" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersionMigrationList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigrationList", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationSpec": { + "description": "Spec of the storage version migration.", + "properties": { + "continueToken": { + "description": "The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is \"Running\", users can use this token to check the progress of the migration.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "$ref": "#/$defs/io.k8s.api.storagemigration.v1alpha1.GroupVersionResource", + "description": "The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable." + } + }, + "required": [ + "resource" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationStatus": { + "description": "Status of the storage version migration.", + "properties": { + "conditions": { + "description": "The latest available observations of the migration's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.storagemigration.v1alpha1.MigrationCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition": { + "description": "CustomResourceColumnDefinition specifies a column for server side printing.", + "properties": { + "description": { + "description": "description is a human readable description of this column.", + "type": [ + "string", + "null" + ] + }, + "format": { + "description": "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "type": [ + "string", + "null" + ] + }, + "jsonPath": { + "description": "jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.", + "type": "string" + }, + "name": { + "description": "name is a human readable name for the column.", + "type": "string" + }, + "priority": { + "description": "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "type": { + "description": "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "type": "string" + } + }, + "required": [ + "name", + "type", + "jsonPath" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion": { + "description": "CustomResourceConversion describes how to convert different versions of a CR.", + "properties": { + "strategy": { + "description": "strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.", + "type": "string" + }, + "webhook": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion", + "description": "webhook describes how to call the conversion webhook. Required when `strategy` is set to `\"Webhook\"`." + } + }, + "required": [ + "strategy" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition": { + "description": "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiextensions.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CustomResourceDefinition" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec", + "description": "spec describes how the user wants the resources to appear" + }, + "status": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionStatus", + "description": "status indicates the actual state of the CustomResourceDefinition" + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionCondition": { + "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime last time the condition transitioned from one status to another." + }, + "message": { + "description": "message is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status is the status of the condition. Can be True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "type is the type of the condition. Types include Established, NamesAccepted and Terminating.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList": { + "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiextensions.k8s.io/v1" + ] + }, + "items": { + "description": "items list individual CustomResourceDefinition objects", + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CustomResourceDefinitionList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinitionList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames": { + "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", + "properties": { + "categories": { + "description": "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.", + "type": "string" + }, + "listKind": { + "description": "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".", + "type": [ + "string", + "null" + ] + }, + "plural": { + "description": "plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.", + "type": "string" + }, + "shortNames": { + "description": "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "singular": { + "description": "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "plural", + "kind" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec": { + "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", + "properties": { + "conversion": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion", + "description": "conversion defines conversion settings for the CRD." + }, + "group": { + "description": "group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`).", + "type": "string" + }, + "names": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames", + "description": "names specify the resource and kind names for the custom resource." + }, + "preserveUnknownFields": { + "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.", + "type": [ + "boolean", + "null" + ] + }, + "scope": { + "description": "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.", + "type": "string" + }, + "versions": { + "description": "versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "group", + "names", + "scope", + "versions" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionStatus": { + "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", + "properties": { + "acceptedNames": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames", + "description": "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec." + }, + "conditions": { + "description": "conditions indicate state for particular aspects of a CustomResourceDefinition", + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "storedVersions": { + "description": "storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion": { + "description": "CustomResourceDefinitionVersion describes a version for CRD.", + "properties": { + "additionalPrinterColumns": { + "description": "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.", + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "deprecated": { + "description": "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "deprecationWarning": { + "description": "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc. The custom resources are served under this version at `/apis///...` if `served` is true.", + "type": "string" + }, + "schema": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation", + "description": "schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource." + }, + "selectableFields": { + "description": "selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors", + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.SelectableField" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "served": { + "description": "served is a flag enabling/disabling this version from being served via REST APIs", + "type": "boolean" + }, + "storage": { + "description": "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.", + "type": "boolean" + }, + "subresources": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources", + "description": "subresources specify what subresources this version of the defined custom resource have." + } + }, + "required": [ + "name", + "served", + "storage" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale": { + "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", + "properties": { + "labelSelectorPath": { + "description": "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.", + "type": [ + "string", + "null" + ] + }, + "specReplicasPath": { + "description": "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.", + "type": "string" + }, + "statusReplicasPath": { + "description": "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.", + "type": "string" + } + }, + "required": [ + "specReplicasPath", + "statusReplicasPath" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus": { + "description": "CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza", + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources": { + "description": "CustomResourceSubresources defines the status and scale subresources for CustomResources.", + "properties": { + "scale": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale", + "description": "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object." + }, + "status": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus", + "description": "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation": { + "description": "CustomResourceValidation is a list of validation methods for CustomResources.", + "properties": { + "openAPIV3Schema": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps", + "description": "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation": { + "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", + "properties": { + "description": { + "type": [ + "string", + "null" + ] + }, + "url": { + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON": { + "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil." + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps": { + "description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).", + "properties": { + "$ref": { + "type": [ + "string", + "null" + ] + }, + "$schema": { + "type": [ + "string", + "null" + ] + }, + "additionalItems": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" + }, + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" + }, + "allOf": { + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "anyOf": { + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "default": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON", + "description": "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false." + }, + "definitions": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "object", + "null" + ] + }, + "dependencies": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrStringArray" + }, + "type": [ + "object", + "null" + ] + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "enum": { + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "example": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" + }, + "exclusiveMaximum": { + "type": [ + "boolean", + "null" + ] + }, + "exclusiveMinimum": { + "type": [ + "boolean", + "null" + ] + }, + "externalDocs": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation" + }, + "format": { + "description": "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like \"0321751043\" or \"978-0321751041\" - isbn10: an ISBN10 number string like \"0321751043\" - isbn13: an ISBN13 number string like \"978-0321751041\" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$ - hexcolor: an hexadecimal color code like \"#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like \"rgb(255,255,2559\" - byte: base64 encoded binary data - password: any kind of string - date: a date string like \"2006-01-02\" as defined by full-date in RFC3339 - duration: a duration string like \"22 ns\" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like \"2014-12-15T19:30:20.000Z\" as defined by date-time in RFC3339.", + "type": [ + "string", + "null" + ] + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrArray" + }, + "maxItems": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "maxLength": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "maxProperties": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "maximum": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "minItems": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "minLength": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "minProperties": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "minimum": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "multipleOf": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "not": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "nullable": { + "type": [ + "boolean", + "null" + ] + }, + "oneOf": { + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "pattern": { + "type": [ + "string", + "null" + ] + }, + "patternProperties": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "object", + "null" + ] + }, + "properties": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "object", + "null" + ] + }, + "required": { + "items": { + "type": "string" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "type": { + "type": [ + "string", + "null" + ] + }, + "uniqueItems": { + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-embedded-resource": { + "description": "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).", + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-int-or-string": { + "description": "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-list-map-keys": { + "description": "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.\n\nThis tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.", + "items": { + "type": "string" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "x-kubernetes-list-type": { + "description": "x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.", + "type": [ + "string", + "null" + ] + }, + "x-kubernetes-map-type": { + "description": "x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.", + "type": [ + "string", + "null" + ] + }, + "x-kubernetes-preserve-unknown-fields": { + "description": "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.", + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-validations": { + "description": "x-kubernetes-validations describes a list of validation rules written in the CEL expression language.", + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "rule" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "rule", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrArray": { + "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes." + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool": { + "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property." + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrStringArray": { + "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array." + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.SelectableField": { + "description": "SelectableField specifies the JSON path of a field that may be used with field selectors.", + "properties": { + "jsonPath": { + "description": "jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.", + "type": "string" + } + }, + "required": [ + "jsonPath" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "name is the name of the service. Required", + "type": "string" + }, + "namespace": { + "description": "namespace is the namespace of the service. Required", + "type": "string" + }, + "path": { + "description": "path is an optional URL path at which the webhook will be contacted.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "namespace", + "name" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule": { + "description": "ValidationRule describes a validation rule written in the CEL expression language.", + "properties": { + "fieldPath": { + "description": "fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']`", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "optionalOldSelf": { + "description": "optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value.\n\nWhen enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created.\n\nYou may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes\n\nMay not be set unless `oldSelf` is used in `rule`.", + "type": [ + "boolean", + "null" + ] + }, + "reason": { + "description": "reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid.", + "type": [ + "string", + "null" + ] + }, + "rule": { + "description": "Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"}\n\nIf the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"}\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible.\n\nUnknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as:\n - A schema with no type and x-kubernetes-preserve-unknown-fields set to true\n - An array where the items schema is of an \"unknown type\"\n - An object where the additionalProperties schema is of an \"unknown type\"\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"}\n - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"}\n - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"}\n\nEquality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\n\nIf `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`.\n\nBy default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional\n variable whose value() is the same type as `self`.\nSee the documentation for the `optionalOldSelf` field for details.\n\nTransition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true.", + "type": "string" + } + }, + "required": [ + "rule" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookClientConfig": { + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook.", + "properties": { + "caBundle": { + "description": "caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "service": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference", + "description": "service is a reference to the service for this webhook. Either service or url must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + }, + "url": { + "description": "url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion": { + "description": "WebhookConversion describes how to call a conversion webhook", + "properties": { + "clientConfig": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookClientConfig", + "description": "clientConfig is the instructions for how to call the webhook if strategy is `Webhook`." + }, + "conversionReviewVersions": { + "description": "conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "conversionReviewVersions" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.api.resource.Quantity": { + "oneOf": [ + { + "type": [ + "string", + "null" + ] + }, + { + "type": [ + "number", + "null" + ] + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup": { + "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIGroup" + ] + }, + "name": { + "description": "name is the name of the group.", + "type": "string" + }, + "preferredVersion": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery", + "description": "preferredVersion is the version preferred by the API server, which probably is the storage version." + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "versions": { + "description": "versions are the versions supported in this group.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "versions" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroup", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIGroupList": { + "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "groups": { + "description": "groups is a list of APIGroup.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIGroupList" + ] + } + }, + "required": [ + "groups" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroupList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIResource": { + "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "properties": { + "categories": { + "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "type": "string" + }, + "name": { + "description": "name is the plural name of the resource.", + "type": "string" + }, + "namespaced": { + "description": "namespaced indicates if a resource is namespaced or not.", + "type": "boolean" + }, + "shortNames": { + "description": "shortNames is a list of suggested short names of the resource.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "singularName": { + "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", + "type": "string" + }, + "storageVersionHash": { + "description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", + "type": [ + "string", + "null" + ] + }, + "verbs": { + "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array" + }, + "version": { + "description": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "singularName", + "namespaced", + "kind", + "verbs" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList": { + "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "groupVersion": { + "description": "groupVersion is the group and version this APIResourceList is for.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIResourceList" + ] + }, + "resources": { + "description": "resources contains the name of the resources and if they are namespaced.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "groupVersion", + "resources" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIResourceList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIVersions": { + "description": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIVersions" + ] + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "versions": { + "description": "versions are the api versions that are available.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "versions", + "serverAddressByClientCIDRs" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIVersions", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Condition": { + "description": "Condition contains details for one aspect of the current state of this API Resource.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable." + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase.", + "type": "string" + } + }, + "required": [ + "type", + "status", + "lastTransitionTime", + "reason", + "message" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions": { + "description": "DeleteOptions may be provided when deleting an API object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1", + "admission.k8s.io/v1", + "admission.k8s.io/v1beta1", + "admissionregistration.k8s.io/v1", + "admissionregistration.k8s.io/v1alpha1", + "admissionregistration.k8s.io/v1beta1", + "apiextensions.k8s.io/v1", + "apiextensions.k8s.io/v1beta1", + "apiregistration.k8s.io/v1", + "apiregistration.k8s.io/v1beta1", + "apps/v1", + "apps/v1beta1", + "apps/v1beta2", + "authentication.k8s.io/v1", + "authentication.k8s.io/v1alpha1", + "authentication.k8s.io/v1beta1", + "authorization.k8s.io/v1", + "authorization.k8s.io/v1beta1", + "autoscaling/v1", + "autoscaling/v2", + "autoscaling/v2beta1", + "autoscaling/v2beta2", + "batch/v1", + "batch/v1beta1", + "certificates.k8s.io/v1", + "certificates.k8s.io/v1alpha1", + "certificates.k8s.io/v1beta1", + "coordination.k8s.io/v1", + "coordination.k8s.io/v1alpha1", + "coordination.k8s.io/v1beta1", + "discovery.k8s.io/v1", + "discovery.k8s.io/v1beta1", + "events.k8s.io/v1", + "events.k8s.io/v1beta1", + "extensions/v1beta1", + "flowcontrol.apiserver.k8s.io/v1", + "flowcontrol.apiserver.k8s.io/v1beta1", + "flowcontrol.apiserver.k8s.io/v1beta2", + "flowcontrol.apiserver.k8s.io/v1beta3", + "imagepolicy.k8s.io/v1alpha1", + "internal.apiserver.k8s.io/v1alpha1", + "networking.k8s.io/v1", + "networking.k8s.io/v1alpha1", + "networking.k8s.io/v1beta1", + "node.k8s.io/v1", + "node.k8s.io/v1alpha1", + "node.k8s.io/v1beta1", + "policy/v1", + "policy/v1beta1", + "rbac.authorization.k8s.io/v1", + "rbac.authorization.k8s.io/v1alpha1", + "rbac.authorization.k8s.io/v1beta1", + "resource.k8s.io/v1alpha3", + "scheduling.k8s.io/v1", + "scheduling.k8s.io/v1alpha1", + "scheduling.k8s.io/v1beta1", + "storage.k8s.io/v1", + "storage.k8s.io/v1alpha1", + "storage.k8s.io/v1beta1", + "storagemigration.k8s.io/v1alpha1" + ] + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "gracePeriodSeconds": { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeleteOptions" + ] + }, + "orphanDependents": { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "type": [ + "boolean", + "null" + ] + }, + "preconditions": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions", + "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned." + }, + "propagationPolicy": { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1beta2" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2beta1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2beta2" + }, + { + "group": "batch", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "batch", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "discovery.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "discovery.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "events.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "events.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "extensions", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta2" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta3" + }, + { + "group": "imagepolicy.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "internal.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "policy", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "policy", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "resource.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha3" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.FieldSelectorRequirement": { + "description": "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the field selector key that the requirement applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1": { + "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery": { + "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "properties": { + "groupVersion": { + "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "type": "string" + }, + "version": { + "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "type": "string" + } + }, + "required": [ + "groupVersion", + "version" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector": { + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": [ + "object", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta": { + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "properties": { + "continue": { + "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", + "type": [ + "string", + "null" + ] + }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "resourceVersion": { + "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": [ + "string", + "null" + ] + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry": { + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", + "type": [ + "string", + "null" + ] + }, + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "type": [ + "string", + "null" + ] + }, + "fieldsV1": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1", + "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type." + }, + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", + "type": [ + "string", + "null" + ] + }, + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "type": [ + "string", + "null" + ] + }, + "subresource": { + "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", + "type": [ + "string", + "null" + ] + }, + "time": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over." + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime": { + "description": "MicroTime is version of Time with microsecond level precision.", + "format": "date-time", + "type": [ + "string", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "properties": { + "annotations": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations", + "type": [ + "object", + "null" + ] + }, + "creationTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "deletionTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" + }, + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "type": [ + "string", + "null" + ] + }, + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "labels": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels", + "type": [ + "object", + "null" + ] + }, + "managedFields": { + "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces", + "type": [ + "string", + "null" + ] + }, + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": [ + "string", + "null" + ] + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference": { + "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string" + }, + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": [ + "boolean", + "null" + ] + }, + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": "string" + } + }, + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic", + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Patch": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions": { + "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "properties": { + "resourceVersion": { + "description": "Specifies the target ResourceVersion", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "Specifies the target UID.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR": { + "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "properties": { + "clientCIDR": { + "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + "type": "string" + }, + "serverAddress": { + "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "type": "string" + } + }, + "required": [ + "clientCIDR", + "serverAddress" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Status": { + "description": "Status is a return value for calls that don't return other objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "code": { + "description": "Suggested HTTP return code for this status, 0 if not set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "details": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails", + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Status" + ] + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": [ + "string", + "null" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + }, + "reason": { + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Status", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause": { + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "properties": { + "field": { + "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails": { + "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "properties": { + "causes": { + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "The group attribute of the resource associated with the status StatusReason.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "type": [ + "string", + "null" + ] + }, + "retryAfterSeconds": { + "description": "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "uid": { + "description": "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Time": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": [ + "string", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent": { + "description": "Event represents a single event to a watched resource.", + "properties": { + "object": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context." + }, + "type": { + "type": "string" + } + }, + "required": [ + "type", + "object" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta2" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2beta1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2beta2" + }, + { + "group": "batch", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "batch", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "extensions", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta2" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta3" + }, + { + "group": "imagepolicy.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "internal.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "policy", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "policy", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha3" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + } + ], + "additionalProperties": false + }, + "io.k8s.apimachinery.pkg.runtime.RawExtension": { + "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.util.intstr.IntOrString": { + "oneOf": [ + { + "type": [ + "string", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + } + ] + }, + "io.k8s.apimachinery.pkg.version.Info": { + "description": "Info contains versioning information. how we'll want to distribute that information.", + "properties": { + "buildDate": { + "type": "string" + }, + "compiler": { + "type": "string" + }, + "gitCommit": { + "type": "string" + }, + "gitTreeState": { + "type": "string" + }, + "gitVersion": { + "type": "string" + }, + "goVersion": { + "type": "string" + }, + "major": { + "type": "string" + }, + "minor": { + "type": "string" + }, + "platform": { + "type": "string" + } + }, + "required": [ + "major", + "minor", + "gitVersion", + "gitCommit", + "gitTreeState", + "buildDate", + "goVersion", + "compiler", + "platform" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService": { + "description": "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIService" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec", + "description": "Spec contains information for locating and communicating with a server" + }, + "status": { + "$ref": "#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceStatus", + "description": "Status contains derived information about an API server" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceCondition": { + "description": "APIServiceCondition describes the state of an APIService at a particular point", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type is the type of the condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList": { + "description": "APIServiceList is a list of APIService objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiregistration.k8s.io/v1" + ] + }, + "items": { + "description": "Items is the list of APIService", + "items": { + "$ref": "#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIServiceList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apiregistration.k8s.io", + "kind": "APIServiceList", + "version": "v1" + } + ], + "additionalProperties": false + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec": { + "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", + "properties": { + "caBundle": { + "description": "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": [ + "string", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "Group is the API group name this server hosts", + "type": [ + "string", + "null" + ] + }, + "groupPriorityMinimum": { + "description": "GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s", + "format": "int32", + "type": "integer" + }, + "insecureSkipTLSVerify": { + "description": "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.", + "type": [ + "boolean", + "null" + ] + }, + "service": { + "$ref": "#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ServiceReference", + "description": "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled." + }, + "version": { + "description": "Version is the API version this server hosts. For example, \"v1\"", + "type": [ + "string", + "null" + ] + }, + "versionPriority": { + "description": "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "groupPriorityMinimum", + "versionPriority" + ], + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceStatus": { + "description": "APIServiceStatus contains derived information about an API server", + "properties": { + "conditions": { + "description": "Current service state of apiService.", + "items": { + "$ref": "#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "Name is the name of the service", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the namespace of the service", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "additionalProperties": false + } + }, + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/_definitions.json" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/affinity-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/affinity-v1.json new file mode 100644 index 00000000..210d47e1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/affinity-v1.json @@ -0,0 +1,21 @@ +{ + "description": "Affinity is a group of affinity scheduling rules.", + "properties": { + "nodeAffinity": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeAffinity", + "description": "Describes node affinity scheduling rules for the pod." + }, + "podAffinity": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinity", + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))." + }, + "podAntiAffinity": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAntiAffinity", + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/affinity/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/aggregationrule-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/aggregationrule-rbac-v1.json new file mode 100644 index 00000000..f91ebdcb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/aggregationrule-rbac-v1.json @@ -0,0 +1,20 @@ +{ + "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", + "properties": { + "clusterRoleSelectors": { + "description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/aggregationrule/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/all.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/all.json new file mode 100644 index 00000000..1f0cb6af --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/all.json @@ -0,0 +1,1909 @@ +{ + "oneOf": [ + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.AuditAnnotation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ExpressionWarning" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchResources" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhook" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ParamKind" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ParamRef" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.RuleWithOperations" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ServiceReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.TypeChecking" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicySpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhook" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.Validation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.Variable" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.WebhookClientConfig" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ExpressionWarning" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchResources" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ParamKind" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ParamRef" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.TypeChecking" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.Validation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.Variable" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.AuditAnnotation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ExpressionWarning" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchResources" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ParamKind" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ParamRef" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.TypeChecking" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.Validation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.Variable" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ControllerRevision" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ControllerRevisionList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSet" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetUpdateStrategy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.Deployment" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentStrategy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSet" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.RollingUpdateDaemonSet" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.RollingUpdateDeployment" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSet" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetOrdinals" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetUpdateStrategy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.BoundObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.SelfSubjectReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.SelfSubjectReviewStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenRequest" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenRequestSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenRequestStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenReviewSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenReviewStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.UserInfo" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1beta1.SelfSubjectReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1beta1.SelfSubjectReviewStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.FieldSelectorAttributes" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.LabelSelectorAttributes" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.LocalSubjectAccessReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.NonResourceAttributes" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.NonResourceRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.ResourceAttributes" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.ResourceRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SelfSubjectAccessReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SelfSubjectRulesReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectRulesReviewStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.CrossVersionObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.Scale" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.ScaleSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.ScaleStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ContainerResourceMetricSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ExternalMetricSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ExternalMetricStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HPAScalingPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HPAScalingRules" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricTarget" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ObjectMetricSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ObjectMetricStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.PodsMetricSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.PodsMetricStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ResourceMetricSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ResourceMetricStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJob" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJobList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJobSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJobStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.Job" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobTemplateSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.SuccessPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.SuccessPolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.UncountedTerminatedPods" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequest" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1.Lease" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1.LeaseList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1.LeaseSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidate" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidateList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidateSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Affinity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AppArmorProfile" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AttachedVolume" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureDiskVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureFilePersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureFileVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Binding" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CSIPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CSIVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Capabilities" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CephFSPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CephFSVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CinderPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CinderVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ClientIPConfig" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ClusterTrustBundleProjection" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ComponentCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ComponentStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ComponentStatusList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMap" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapEnvSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapKeySelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapNodeConfigSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapProjection" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Container" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerImage" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerPort" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerResizePolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerState" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStateRunning" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStateTerminated" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStateWaiting" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerUser" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DaemonEndpoint" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIProjection" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeFile" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EmptyDirVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointAddress" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointPort" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointSubset" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Endpoints" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointsList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvFromSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvVar" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvVarSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EphemeralContainer" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EphemeralVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Event" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EventList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EventSeries" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EventSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ExecAction" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FCVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlexPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlexVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlockerVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GRPCAction" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GitRepoVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GlusterfsPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GlusterfsVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HTTPGetAction" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HTTPHeader" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostAlias" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostIP" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostPathVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ISCSIPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ISCSIVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ImageVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Lifecycle" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LifecycleHandler" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRange" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRangeItem" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRangeList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRangeSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LinuxContainerUser" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LoadBalancerIngress" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LoadBalancerStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ModifyVolumeStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NFSVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Namespace" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Node" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeAddress" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeAffinity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeDaemonEndpoints" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeFeatures" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeRuntimeHandler" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeRuntimeHandlerFeatures" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelectorRequirement" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelectorTerm" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSystemInfo" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectFieldSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolume" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaim" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimTemplate" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Pod" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinityTerm" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAntiAffinity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodDNSConfig" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodDNSConfigOption" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodIP" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodOS" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodReadinessGate" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodResourceClaim" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodResourceClaimStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSchedulingGate" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSecurityContext" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplate" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PortStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PortworxVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PreferredSchedulingTerm" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ProjectedVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.QuobyteVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.RBDPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.RBDVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationController" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceClaim" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceFieldSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceHealth" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuota" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuotaList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuotaSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuotaStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceRequirements" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SELinuxOptions" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScaleIOPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScaleIOVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScopeSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScopedResourceSelectorRequirement" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SeccompProfile" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Secret" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretEnvSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretKeySelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretProjection" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecurityContext" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Service" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceAccount" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceAccountList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceAccountTokenProjection" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServicePort" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SessionAffinityConfig" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SleepAction" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.StorageOSPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.StorageOSVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Sysctl" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TCPSocketAction" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Taint" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Toleration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TopologySelectorLabelRequirement" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TopologySelectorTerm" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TopologySpreadConstraint" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TypedLocalObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TypedObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Volume" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeDevice" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeMount" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeMountStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeNodeAffinity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeProjection" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeResourceRequirements" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.WindowsSecurityContextOptions" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.Endpoint" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointConditions" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointHints" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointPort" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointSlice" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointSliceList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.ForZone" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.events.v1.Event" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.events.v1.EventList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.events.v1.EventSeries" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchema" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.GroupSubject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.LimitResponse" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.NonResourcePolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.QueuingConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.ResourcePolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.ServiceAccountSubject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.Subject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.UserSubject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.GroupSubject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.LimitResponse" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.Subject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.UserSubject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.HTTPIngressPath" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.HTTPIngressRuleValue" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IPBlock" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.Ingress" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressBackend" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClassParametersReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClassSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressLoadBalancerIngress" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressLoadBalancerStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressPortStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressServiceBackend" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressTLS" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyEgressRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyIngressRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyPeer" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyPort" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicySpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.ServiceBackendPort" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.IPAddress" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.IPAddressList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.IPAddressSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ParentReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDR" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.Overhead" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.RuntimeClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.RuntimeClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.Scheduling" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.Eviction" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudget" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.AggregationRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.ClusterRole" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.ClusterRoleBinding" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.ClusterRoleBindingList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.ClusterRoleList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.PolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.Role" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleBinding" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleBindingList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleRef" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.Subject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.AllocationResult" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.BasicDevice" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.CELDeviceSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.Device" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceAllocationConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceAllocationResult" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceAttribute" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClaim" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClaimConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceConstraint" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceRequest" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceRequestAllocationResult" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContext" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaim" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimConsumerReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSchedulingStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplate" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplateList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplateSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourcePool" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceSlice" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceSliceList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceSliceSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.scheduling.v1.PriorityClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.scheduling.v1.PriorityClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIDriver" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIDriverList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIDriverSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINode" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINodeDriver" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINodeList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINodeSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIStorageCapacity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIStorageCapacityList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.StorageClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.StorageClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.TokenRequest" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachment" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeError" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeNodeResources" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1alpha1.VolumeAttributesClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1beta1.VolumeAttributesClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.GroupVersionResource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.MigrationCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrArray" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrStringArray" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.SelectableField" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookClientConfig" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroupList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIVersions" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.FieldSelectorRequirement" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.version.Info" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ServiceReference" + } + ] +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/allocationresult-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/allocationresult-resource-v1alpha3.json new file mode 100644 index 00000000..664cbcf7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/allocationresult-resource-v1alpha3.json @@ -0,0 +1,24 @@ +{ + "description": "AllocationResult contains attributes of an allocated resource.", + "properties": { + "controller": { + "description": "Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.\n\nA driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.", + "type": [ + "string", + "null" + ] + }, + "devices": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceAllocationResult", + "description": "Devices is the result of allocating devices." + }, + "nodeSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "NodeSelector defines where the allocated resources are available. If unset, they are available everywhere." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/allocationresult/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apigroup-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apigroup-meta-v1.json new file mode 100644 index 00000000..905cd7ea --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apigroup-meta-v1.json @@ -0,0 +1,73 @@ +{ + "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIGroup" + ] + }, + "name": { + "description": "name is the name of the group.", + "type": [ + "string", + "null" + ] + }, + "preferredVersion": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery", + "description": "preferredVersion is the version preferred by the API server, which probably is the storage version." + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "versions": { + "description": "versions are the versions supported in this group.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "versions" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroup", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/apigroup/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apigrouplist-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apigrouplist-meta-v1.json new file mode 100644 index 00000000..4c601672 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apigrouplist-meta-v1.json @@ -0,0 +1,50 @@ +{ + "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "groups": { + "description": "groups is a list of APIGroup.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIGroupList" + ] + } + }, + "required": [ + "groups" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroupList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/apigrouplist/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiresource-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiresource-meta-v1.json new file mode 100644 index 00000000..3858e638 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiresource-meta-v1.json @@ -0,0 +1,106 @@ +{ + "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "properties": { + "categories": { + "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the plural name of the resource.", + "type": [ + "string", + "null" + ] + }, + "namespaced": { + "description": "namespaced indicates if a resource is namespaced or not.", + "type": [ + "boolean", + "null" + ] + }, + "shortNames": { + "description": "shortNames is a list of suggested short names of the resource.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "singularName": { + "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", + "type": [ + "string", + "null" + ] + }, + "storageVersionHash": { + "description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", + "type": [ + "string", + "null" + ] + }, + "verbs": { + "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "version": { + "description": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "singularName", + "namespaced", + "kind", + "verbs" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/apiresource/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiresourcelist-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiresourcelist-meta-v1.json new file mode 100644 index 00000000..1aac2c6b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiresourcelist-meta-v1.json @@ -0,0 +1,58 @@ +{ + "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "groupVersion": { + "description": "groupVersion is the group and version this APIResourceList is for.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIResourceList" + ] + }, + "resources": { + "description": "resources contains the name of the resources and if they are namespaced.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "groupVersion", + "resources" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIResourceList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/apiresourcelist/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservice-apiregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservice-apiregistration-v1.json new file mode 100644 index 00000000..68409fb6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservice-apiregistration-v1.json @@ -0,0 +1,48 @@ +{ + "description": "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIService" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec", + "description": "Spec contains information for locating and communicating with a server" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceStatus", + "description": "Status contains derived information about an API server" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/apiservice/apiregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicecondition-apiregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicecondition-apiregistration-v1.json new file mode 100644 index 00000000..7374e49a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicecondition-apiregistration-v1.json @@ -0,0 +1,45 @@ +{ + "description": "APIServiceCondition describes the state of an APIService at a particular point", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type is the type of the condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/apiservicecondition/apiregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicelist-apiregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicelist-apiregistration-v1.json new file mode 100644 index 00000000..804a7d8a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicelist-apiregistration-v1.json @@ -0,0 +1,53 @@ +{ + "description": "APIServiceList is a list of APIService objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiregistration.k8s.io/v1" + ] + }, + "items": { + "description": "Items is the list of APIService", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIServiceList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiregistration.k8s.io", + "kind": "APIServiceList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/apiservicelist/apiregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicespec-apiregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicespec-apiregistration-v1.json new file mode 100644 index 00000000..961987ed --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicespec-apiregistration-v1.json @@ -0,0 +1,63 @@ +{ + "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", + "properties": { + "caBundle": { + "description": "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": [ + "string", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "Group is the API group name this server hosts", + "type": [ + "string", + "null" + ] + }, + "groupPriorityMinimum": { + "description": "GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "insecureSkipTLSVerify": { + "description": "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.", + "type": [ + "boolean", + "null" + ] + }, + "service": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ServiceReference", + "description": "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled." + }, + "version": { + "description": "Version is the API version this server hosts. For example, \"v1\"", + "type": [ + "string", + "null" + ] + }, + "versionPriority": { + "description": "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "groupPriorityMinimum", + "versionPriority" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/apiservicespec/apiregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicestatus-apiregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicestatus-apiregistration-v1.json new file mode 100644 index 00000000..cb0d4df3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiservicestatus-apiregistration-v1.json @@ -0,0 +1,25 @@ +{ + "description": "APIServiceStatus contains derived information about an API server", + "properties": { + "conditions": { + "description": "Current service state of apiService.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/apiservicestatus/apiregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiversions-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiversions-meta-v1.json new file mode 100644 index 00000000..2eaeaf44 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apiversions-meta-v1.json @@ -0,0 +1,65 @@ +{ + "description": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIVersions" + ] + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "versions": { + "description": "versions are the api versions that are available.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "versions", + "serverAddressByClientCIDRs" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIVersions", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/apiversions/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apparmorprofile-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apparmorprofile-v1.json new file mode 100644 index 00000000..137fa18c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/apparmorprofile-v1.json @@ -0,0 +1,34 @@ +{ + "description": "AppArmorProfile defines a pod or container's AppArmor settings.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\".", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type indicates which kind of AppArmor profile will be applied. Valid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/apparmorprofile/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/attachedvolume-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/attachedvolume-v1.json new file mode 100644 index 00000000..569f3567 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/attachedvolume-v1.json @@ -0,0 +1,27 @@ +{ + "description": "AttachedVolume describes a volume attached to a node", + "properties": { + "devicePath": { + "description": "DevicePath represents the device path where the volume should be available", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the attached volume", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "devicePath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/attachedvolume/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/auditannotation-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/auditannotation-admissionregistration-v1.json new file mode 100644 index 00000000..6b95374f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/auditannotation-admissionregistration-v1.json @@ -0,0 +1,27 @@ +{ + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": [ + "string", + "null" + ] + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/auditannotation/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/auditannotation-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/auditannotation-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..e4b9df49 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/auditannotation-admissionregistration-v1alpha1.json @@ -0,0 +1,27 @@ +{ + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": [ + "string", + "null" + ] + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/auditannotation/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/auditannotation-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/auditannotation-admissionregistration-v1beta1.json new file mode 100644 index 00000000..195ac875 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/auditannotation-admissionregistration-v1beta1.json @@ -0,0 +1,27 @@ +{ + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": [ + "string", + "null" + ] + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/auditannotation/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/awselasticblockstorevolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/awselasticblockstorevolumesource-v1.json new file mode 100644 index 00000000..4b0b49ea --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/awselasticblockstorevolumesource-v1.json @@ -0,0 +1,41 @@ +{ + "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": [ + "string", + "null" + ] + }, + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "readOnly": { + "description": "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": [ + "boolean", + "null" + ] + }, + "volumeID": { + "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "volumeID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/awselasticblockstorevolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/azurediskvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/azurediskvolumesource-v1.json new file mode 100644 index 00000000..8a3e0f63 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/azurediskvolumesource-v1.json @@ -0,0 +1,55 @@ +{ + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "properties": { + "cachingMode": { + "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", + "type": [ + "string", + "null" + ] + }, + "diskName": { + "description": "diskName is the Name of the data disk in the blob storage", + "type": [ + "string", + "null" + ] + }, + "diskURI": { + "description": "diskURI is the URI of data disk in the blob storage", + "type": [ + "string", + "null" + ] + }, + "fsType": { + "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "diskName", + "diskURI" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/azurediskvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/azurefilepersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/azurefilepersistentvolumesource-v1.json new file mode 100644 index 00000000..934c5af4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/azurefilepersistentvolumesource-v1.json @@ -0,0 +1,41 @@ +{ + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": [ + "string", + "null" + ] + }, + "secretNamespace": { + "description": "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", + "type": [ + "string", + "null" + ] + }, + "shareName": { + "description": "shareName is the azure Share Name", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/azurefilepersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/azurefilevolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/azurefilevolumesource-v1.json new file mode 100644 index 00000000..26238571 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/azurefilevolumesource-v1.json @@ -0,0 +1,34 @@ +{ + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": [ + "string", + "null" + ] + }, + "shareName": { + "description": "shareName is the azure share Name", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/azurefilevolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/basicdevice-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/basicdevice-resource-v1alpha3.json new file mode 100644 index 00000000..5a1b0a0d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/basicdevice-resource-v1alpha3.json @@ -0,0 +1,29 @@ +{ + "description": "BasicDevice defines one device instance.", + "properties": { + "attributes": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceAttribute" + }, + "description": "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.", + "type": [ + "object", + "null" + ] + }, + "capacity": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.", + "type": [ + "object", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/basicdevice/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/binding-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/binding-v1.json new file mode 100644 index 00000000..8eb101eb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/binding-v1.json @@ -0,0 +1,47 @@ +{ + "description": "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Binding" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "target": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "The target object that you want to bind to the standard object." + } + }, + "required": [ + "target" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Binding", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/binding/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/boundobjectreference-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/boundobjectreference-authentication-v1.json new file mode 100644 index 00000000..e2d5d0f7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/boundobjectreference-authentication-v1.json @@ -0,0 +1,37 @@ +{ + "description": "BoundObjectReference is a reference to an object that a token is bound to.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID of the referent.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/boundobjectreference/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/capabilities-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/capabilities-v1.json new file mode 100644 index 00000000..4cabd70b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/capabilities-v1.json @@ -0,0 +1,37 @@ +{ + "description": "Adds and removes POSIX capabilities from running containers.", + "properties": { + "add": { + "description": "Added capabilities", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "drop": { + "description": "Removed capabilities", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/capabilities/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/celdeviceselector-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/celdeviceselector-resource-v1alpha3.json new file mode 100644 index 00000000..b681747e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/celdeviceselector-resource-v1alpha3.json @@ -0,0 +1,19 @@ +{ + "description": "CELDeviceSelector contains a CEL expression for selecting a device.", + "properties": { + "expression": { + "description": "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n\nExample: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.\n\nThe value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.\n\nIf an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/celdeviceselector/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cephfspersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cephfspersistentvolumesource-v1.json new file mode 100644 index 00000000..a0cc3317 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cephfspersistentvolumesource-v1.json @@ -0,0 +1,58 @@ +{ + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/cephfspersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cephfsvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cephfsvolumesource-v1.json new file mode 100644 index 00000000..fff00deb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cephfsvolumesource-v1.json @@ -0,0 +1,58 @@ +{ + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/cephfsvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequest-certificates-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequest-certificates-v1.json new file mode 100644 index 00000000..6eb03c57 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequest-certificates-v1.json @@ -0,0 +1,50 @@ +{ + "description": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CertificateSigningRequest" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestSpec", + "description": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestStatus", + "description": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/certificatesigningrequest/certificates/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequestcondition-certificates-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequestcondition-certificates-v1.json new file mode 100644 index 00000000..7b1f8ff8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequestcondition-certificates-v1.json @@ -0,0 +1,49 @@ +{ + "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time." + }, + "lastUpdateTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastUpdateTime is the time of the last update to this condition" + }, + "message": { + "description": "message contains a human readable message with details about the request state", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason indicates a brief reason for the request state", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/certificatesigningrequestcondition/certificates/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequestlist-certificates-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequestlist-certificates-v1.json new file mode 100644 index 00000000..c4720d12 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequestlist-certificates-v1.json @@ -0,0 +1,52 @@ +{ + "description": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1" + ] + }, + "items": { + "description": "items is a collection of CertificateSigningRequest objects", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequest" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CertificateSigningRequestList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequestList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/certificatesigningrequestlist/certificates/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequestspec-certificates-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequestspec-certificates-v1.json new file mode 100644 index 00000000..c574d02b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequestspec-certificates-v1.json @@ -0,0 +1,98 @@ +{ + "description": "CertificateSigningRequestSpec contains the certificate request.", + "properties": { + "expirationSeconds": { + "description": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "extra": { + "additionalProperties": { + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "description": "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": [ + "object", + "null" + ] + }, + "groups": { + "description": "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "request": { + "description": "request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.", + "format": "byte", + "type": [ + "string", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "signerName": { + "description": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 6. Whether or not requests for CA certificates are allowed.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": [ + "string", + "null" + ] + }, + "usages": { + "description": "usages specifies a set of key usages requested in the issued certificate.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "username": { + "description": "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "request", + "signerName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/certificatesigningrequestspec/certificates/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequeststatus-certificates-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequeststatus-certificates-v1.json new file mode 100644 index 00000000..f96b7104 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/certificatesigningrequeststatus-certificates-v1.json @@ -0,0 +1,32 @@ +{ + "description": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", + "properties": { + "certificate": { + "description": "certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(\n -----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\n )", + "format": "byte", + "type": [ + "string", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "conditions": { + "description": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/certificatesigningrequeststatus/certificates/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cinderpersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cinderpersistentvolumesource-v1.json new file mode 100644 index 00000000..22c3da45 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cinderpersistentvolumesource-v1.json @@ -0,0 +1,37 @@ +{ + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "volumeID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/cinderpersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cindervolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cindervolumesource-v1.json new file mode 100644 index 00000000..e1f4dda0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cindervolumesource-v1.json @@ -0,0 +1,37 @@ +{ + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "volumeID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/cindervolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clientipconfig-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clientipconfig-v1.json new file mode 100644 index 00000000..e3fd7413 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clientipconfig-v1.json @@ -0,0 +1,17 @@ +{ + "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", + "properties": { + "timeoutSeconds": { + "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/clientipconfig/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrole-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrole-rbac-v1.json new file mode 100644 index 00000000..74aaad88 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrole-rbac-v1.json @@ -0,0 +1,55 @@ +{ + "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", + "properties": { + "aggregationRule": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.AggregationRule", + "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRole" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "rules": { + "description": "Rules holds all the PolicyRules for this ClusterRole", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.PolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/clusterrole/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrolebinding-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrolebinding-rbac-v1.json new file mode 100644 index 00000000..5b8b56f2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrolebinding-rbac-v1.json @@ -0,0 +1,58 @@ +{ + "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRoleBinding" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "roleRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleRef", + "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.Subject" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "roleRef" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/clusterrolebinding/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrolebindinglist-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrolebindinglist-rbac-v1.json new file mode 100644 index 00000000..087a1348 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrolebindinglist-rbac-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of ClusterRoleBindings", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.ClusterRoleBinding" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRoleBindingList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBindingList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/clusterrolebindinglist/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrolelist-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrolelist-rbac-v1.json new file mode 100644 index 00000000..46dc41f3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clusterrolelist-rbac-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ClusterRoleList is a collection of ClusterRoles", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of ClusterRoles", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.ClusterRole" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRoleList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/clusterrolelist/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundle-certificates-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundle-certificates-v1alpha1.json new file mode 100644 index 00000000..4b78ada3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundle-certificates-v1alpha1.json @@ -0,0 +1,47 @@ +{ + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.\n\nIt can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterTrustBundle" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata contains the object metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec", + "description": "spec contains the signer (if any) and trust anchors." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/clustertrustbundle/certificates/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundlelist-certificates-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundlelist-certificates-v1alpha1.json new file mode 100644 index 00000000..3ab8b47b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundlelist-certificates-v1alpha1.json @@ -0,0 +1,53 @@ +{ + "description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "items is a collection of ClusterTrustBundle objects", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterTrustBundleList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata contains the list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundleList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/clustertrustbundlelist/certificates/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundleprojection-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundleprojection-v1.json new file mode 100644 index 00000000..2fb9bcbf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundleprojection-v1.json @@ -0,0 +1,44 @@ +{ + "description": "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.", + "properties": { + "labelSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as \"match nothing\". If set but empty, interpreted as \"match everything\"." + }, + "name": { + "description": "Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.", + "type": [ + "boolean", + "null" + ] + }, + "path": { + "description": "Relative path from the volume root to write the bundle.", + "type": [ + "string", + "null" + ] + }, + "signerName": { + "description": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/clustertrustbundleprojection/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundlespec-certificates-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundlespec-certificates-v1alpha1.json new file mode 100644 index 00000000..6bab127a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/clustertrustbundlespec-certificates-v1alpha1.json @@ -0,0 +1,26 @@ +{ + "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", + "properties": { + "signerName": { + "description": "signerName indicates the associated signer, if any.\n\nIn order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest.\n\nIf signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.\n\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\n\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.", + "type": [ + "string", + "null" + ] + }, + "trustBundle": { + "description": "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\n\nThe data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.\n\nUsers of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "trustBundle" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/clustertrustbundlespec/certificates/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/componentcondition-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/componentcondition-v1.json new file mode 100644 index 00000000..a44b248a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/componentcondition-v1.json @@ -0,0 +1,41 @@ +{ + "description": "Information about the condition of a component.", + "properties": { + "error": { + "description": "Condition error code for a component. For example, a health check error code.", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message about the condition for a component. For example, information about a health check.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of condition for a component. Valid value: \"Healthy\"", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/componentcondition/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/componentstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/componentstatus-v1.json new file mode 100644 index 00000000..ba536cf6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/componentstatus-v1.json @@ -0,0 +1,56 @@ +{ + "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "conditions": { + "description": "List of component conditions observed", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ComponentCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ComponentStatus" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatus", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/componentstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/componentstatuslist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/componentstatuslist-v1.json new file mode 100644 index 00000000..f3fbf428 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/componentstatuslist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of ComponentStatus objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ComponentStatus" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ComponentStatusList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatusList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/componentstatuslist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/condition-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/condition-meta-v1.json new file mode 100644 index 00000000..fbf9ea47 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/condition-meta-v1.json @@ -0,0 +1,56 @@ +{ + "description": "Condition contains details for one aspect of the current state of this API Resource.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable." + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "type": [ + "string", + "null" + ] + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status", + "lastTransitionTime", + "reason", + "message" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/condition/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmap-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmap-v1.json new file mode 100644 index 00000000..b843ff2b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmap-v1.json @@ -0,0 +1,74 @@ +{ + "description": "ConfigMap holds configuration data for pods to consume.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "binaryData": { + "additionalProperties": { + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", + "type": [ + "object", + "null" + ] + }, + "data": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.", + "type": [ + "object", + "null" + ] + }, + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ConfigMap" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/configmap/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapenvsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapenvsource-v1.json new file mode 100644 index 00000000..3cf21989 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapenvsource-v1.json @@ -0,0 +1,23 @@ +{ + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/configmapenvsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapkeyselector-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapkeyselector-v1.json new file mode 100644 index 00000000..a5aadb14 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapkeyselector-v1.json @@ -0,0 +1,34 @@ +{ + "description": "Selects a key from a ConfigMap.", + "properties": { + "key": { + "description": "The key to select.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "key" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/configmapkeyselector/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmaplist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmaplist-v1.json new file mode 100644 index 00000000..41ecd48d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmaplist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is the list of ConfigMaps.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMap" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ConfigMapList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMapList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/configmaplist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapnodeconfigsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapnodeconfigsource-v1.json new file mode 100644 index 00000000..0b8775c6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapnodeconfigsource-v1.json @@ -0,0 +1,49 @@ +{ + "description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", + "properties": { + "kubeletConfigKey": { + "description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", + "type": [ + "string", + "null" + ] + }, + "resourceVersion": { + "description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "namespace", + "name", + "kubeletConfigKey" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/configmapnodeconfigsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapprojection-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapprojection-v1.json new file mode 100644 index 00000000..db5369bf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapprojection-v1.json @@ -0,0 +1,34 @@ +{ + "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", + "properties": { + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/configmapprojection/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapvolumesource-v1.json new file mode 100644 index 00000000..180294ce --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/configmapvolumesource-v1.json @@ -0,0 +1,42 @@ +{ + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/configmapvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/container-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/container-v1.json new file mode 100644 index 00000000..e7e2942b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/container-v1.json @@ -0,0 +1,221 @@ +{ + "description": "A single application container that you want to run within a pod.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvVar" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvFromSource" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", + "type": [ + "string", + "null" + ] + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "type": [ + "string", + "null" + ] + }, + "lifecycle": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Lifecycle", + "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + }, + "livenessProbe": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe", + "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "name": { + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe", + "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerResizePolicy" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceRequirements", + "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + }, + "restartPolicy": { + "description": "RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", + "type": [ + "string", + "null" + ] + }, + "securityContext": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecurityContext", + "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" + }, + "startupProbe": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe", + "description": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": [ + "boolean", + "null" + ] + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeDevice" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "devicePath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeMount" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/container/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerimage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerimage-v1.json new file mode 100644 index 00000000..5e965fcf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerimage-v1.json @@ -0,0 +1,31 @@ +{ + "description": "Describe a container image", + "properties": { + "names": { + "description": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "sizeBytes": { + "description": "The size of the image in bytes.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/containerimage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerport-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerport-v1.json new file mode 100644 index 00000000..69af2d54 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerport-v1.json @@ -0,0 +1,49 @@ +{ + "description": "ContainerPort represents a network port in a single container.", + "properties": { + "containerPort": { + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "hostIP": { + "description": "What host IP to bind the external port to.", + "type": [ + "string", + "null" + ] + }, + "hostPort": { + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "name": { + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "type": [ + "string", + "null" + ] + }, + "protocol": { + "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "containerPort" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/containerport/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerresizepolicy-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerresizepolicy-v1.json new file mode 100644 index 00000000..de20a902 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerresizepolicy-v1.json @@ -0,0 +1,27 @@ +{ + "description": "ContainerResizePolicy represents resource resize policy for the container.", + "properties": { + "resourceName": { + "description": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.", + "type": [ + "string", + "null" + ] + }, + "restartPolicy": { + "description": "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "resourceName", + "restartPolicy" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/containerresizepolicy/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerresourcemetricsource-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerresourcemetricsource-autoscaling-v2.json new file mode 100644 index 00000000..e31fa414 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerresourcemetricsource-autoscaling-v2.json @@ -0,0 +1,32 @@ +{ + "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "properties": { + "container": { + "description": "container is the name of the container in the pods of the scaling target", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the name of the resource in question.", + "type": [ + "string", + "null" + ] + }, + "target": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "name", + "target", + "container" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/containerresourcemetricsource/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerresourcemetricstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerresourcemetricstatus-autoscaling-v2.json new file mode 100644 index 00000000..ecfc07b2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerresourcemetricstatus-autoscaling-v2.json @@ -0,0 +1,32 @@ +{ + "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "properties": { + "container": { + "description": "container is the name of the container in the pods of the scaling target", + "type": [ + "string", + "null" + ] + }, + "current": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "current", + "container" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/containerresourcemetricstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstate-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstate-v1.json new file mode 100644 index 00000000..99ea8ee2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstate-v1.json @@ -0,0 +1,21 @@ +{ + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", + "properties": { + "running": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStateRunning", + "description": "Details about a running container" + }, + "terminated": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStateTerminated", + "description": "Details about a terminated container" + }, + "waiting": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStateWaiting", + "description": "Details about a waiting container" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/containerstate/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstaterunning-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstaterunning-v1.json new file mode 100644 index 00000000..48a9b7c5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstaterunning-v1.json @@ -0,0 +1,13 @@ +{ + "description": "ContainerStateRunning is a running state of a container.", + "properties": { + "startedAt": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container was last (re-)started" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/containerstaterunning/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstateterminated-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstateterminated-v1.json new file mode 100644 index 00000000..487088c9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstateterminated-v1.json @@ -0,0 +1,57 @@ +{ + "description": "ContainerStateTerminated is a terminated state of a container.", + "properties": { + "containerID": { + "description": "Container's ID in the format '://'", + "type": [ + "string", + "null" + ] + }, + "exitCode": { + "description": "Exit status from the last termination of the container", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "finishedAt": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container last terminated" + }, + "message": { + "description": "Message regarding the last termination of the container", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason from the last termination of the container", + "type": [ + "string", + "null" + ] + }, + "signal": { + "description": "Signal from the last termination of the container", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "startedAt": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which previous execution of the container started" + } + }, + "required": [ + "exitCode" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/containerstateterminated/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstatewaiting-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstatewaiting-v1.json new file mode 100644 index 00000000..f64a7feb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstatewaiting-v1.json @@ -0,0 +1,23 @@ +{ + "description": "ContainerStateWaiting is a waiting state of a container.", + "properties": { + "message": { + "description": "Message regarding why the container is not yet running.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason the container is not yet running.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/containerstatewaiting/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstatus-v1.json new file mode 100644 index 00000000..cc22155c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containerstatus-v1.json @@ -0,0 +1,124 @@ +{ + "description": "ContainerStatus contains details for the current status of this container.", + "properties": { + "allocatedResources": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.", + "type": [ + "object", + "null" + ] + }, + "allocatedResourcesStatus": { + "description": "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "containerID": { + "description": "ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.", + "type": [ + "string", + "null" + ] + }, + "imageID": { + "description": "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.", + "type": [ + "string", + "null" + ] + }, + "lastState": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerState", + "description": "LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0." + }, + "name": { + "description": "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "ready": { + "description": "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic.", + "type": [ + "boolean", + "null" + ] + }, + "resources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceRequirements", + "description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized." + }, + "restartCount": { + "description": "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "started": { + "description": "Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.", + "type": [ + "boolean", + "null" + ] + }, + "state": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerState", + "description": "State holds details about the container's current condition." + }, + "user": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerUser", + "description": "User represents user identity information initially attached to the first process of the container" + }, + "volumeMounts": { + "description": "Status of volume mounts.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeMountStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "name", + "ready", + "restartCount", + "image", + "imageID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/containerstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containeruser-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containeruser-v1.json new file mode 100644 index 00000000..78f2c062 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/containeruser-v1.json @@ -0,0 +1,13 @@ +{ + "description": "ContainerUser represents user identity information", + "properties": { + "linux": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LinuxContainerUser", + "description": "Linux holds user identity information initially attached to the first process of the containers in Linux. Note that the actual running identity can be changed if the process has enough privilege to do so." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/containeruser/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/controllerrevision-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/controllerrevision-apps-v1.json new file mode 100644 index 00000000..0a44ed8a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/controllerrevision-apps-v1.json @@ -0,0 +1,55 @@ +{ + "description": "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "data": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Data is the serialized representation of the state." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ControllerRevision" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "revision": { + "description": "Revision indicates the revision of the state represented by Data.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "revision" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/controllerrevision/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/controllerrevisionlist-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/controllerrevisionlist-apps-v1.json new file mode 100644 index 00000000..2ae06bda --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/controllerrevisionlist-apps-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "Items is the list of ControllerRevisions", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ControllerRevision" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ControllerRevisionList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ControllerRevisionList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/controllerrevisionlist/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjob-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjob-batch-v1.json new file mode 100644 index 00000000..e03b0f66 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjob-batch-v1.json @@ -0,0 +1,48 @@ +{ + "description": "CronJob represents the configuration of a single cron job.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CronJob" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJobSpec", + "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJobStatus", + "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/cronjob/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjoblist-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjoblist-batch-v1.json new file mode 100644 index 00000000..af7ff976 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjoblist-batch-v1.json @@ -0,0 +1,53 @@ +{ + "description": "CronJobList is a collection of cron jobs.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "items": { + "description": "items is the list of CronJobs.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJob" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CronJobList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJobList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/cronjoblist/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjobspec-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjobspec-batch-v1.json new file mode 100644 index 00000000..7c530612 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjobspec-batch-v1.json @@ -0,0 +1,69 @@ +{ + "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", + "properties": { + "concurrencyPolicy": { + "description": "Specifies how to treat concurrent executions of a Job. Valid values are:\n\n- \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one", + "type": [ + "string", + "null" + ] + }, + "failedJobsHistoryLimit": { + "description": "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "jobTemplate": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobTemplateSpec", + "description": "Specifies the job that will be created when executing a CronJob." + }, + "schedule": { + "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + "type": [ + "string", + "null" + ] + }, + "startingDeadlineSeconds": { + "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "successfulJobsHistoryLimit": { + "description": "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "suspend": { + "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "timeZone": { + "description": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "schedule", + "jobTemplate" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/cronjobspec/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjobstatus-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjobstatus-batch-v1.json new file mode 100644 index 00000000..ec632dc5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/cronjobstatus-batch-v1.json @@ -0,0 +1,28 @@ +{ + "description": "CronJobStatus represents the current state of a cron job.", + "properties": { + "active": { + "description": "A list of pointers to currently running jobs.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "lastScheduleTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Information when was the last time the job was successfully scheduled." + }, + "lastSuccessfulTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Information when was the last time the job successfully completed." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/cronjobstatus/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/crossversionobjectreference-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/crossversionobjectreference-autoscaling-v1.json new file mode 100644 index 00000000..cab673fc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/crossversionobjectreference-autoscaling-v1.json @@ -0,0 +1,35 @@ +{ + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "properties": { + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/crossversionobjectreference/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/crossversionobjectreference-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/crossversionobjectreference-autoscaling-v2.json new file mode 100644 index 00000000..212b70ed --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/crossversionobjectreference-autoscaling-v2.json @@ -0,0 +1,34 @@ +{ + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "properties": { + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/crossversionobjectreference/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csidriver-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csidriver-storage-v1.json new file mode 100644 index 00000000..fb9129de --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csidriver-storage-v1.json @@ -0,0 +1,47 @@ +{ + "description": "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIDriver" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIDriverSpec", + "description": "spec represents the specification of the CSI Driver." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/csidriver/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csidriverlist-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csidriverlist-storage-v1.json new file mode 100644 index 00000000..723074c3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csidriverlist-storage-v1.json @@ -0,0 +1,53 @@ +{ + "description": "CSIDriverList is a collection of CSIDriver objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of CSIDriver", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIDriver" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIDriverList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriverList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/csidriverlist/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csidriverspec-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csidriverspec-storage-v1.json new file mode 100644 index 00000000..af0ea54f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csidriverspec-storage-v1.json @@ -0,0 +1,76 @@ +{ + "description": "CSIDriverSpec is the specification of a CSIDriver.", + "properties": { + "attachRequired": { + "description": "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", + "type": [ + "boolean", + "null" + ] + }, + "fsGroupPolicy": { + "description": "fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.", + "type": [ + "string", + "null" + ] + }, + "podInfoOnMount": { + "description": "podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.\n\nThe CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.\n\nThe following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.", + "type": [ + "boolean", + "null" + ] + }, + "requiresRepublish": { + "description": "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", + "type": [ + "boolean", + "null" + ] + }, + "seLinuxMount": { + "description": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", + "type": [ + "boolean", + "null" + ] + }, + "storageCapacity": { + "description": "storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", + "type": [ + "boolean", + "null" + ] + }, + "tokenRequests": { + "description": "tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.TokenRequest" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "volumeLifecycleModes": { + "description": "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.\n\nThe other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.\n\nFor more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.\n\nThis field is beta. This field is immutable.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/csidriverspec/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinode-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinode-storage-v1.json new file mode 100644 index 00000000..ed96f910 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinode-storage-v1.json @@ -0,0 +1,47 @@ +{ + "description": "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSINode" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. metadata.name must be the Kubernetes node name." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINodeSpec", + "description": "spec is the specification of CSINode" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/csinode/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinodedriver-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinodedriver-storage-v1.json new file mode 100644 index 00000000..520941ef --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinodedriver-storage-v1.json @@ -0,0 +1,45 @@ +{ + "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", + "properties": { + "allocatable": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeNodeResources", + "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." + }, + "name": { + "description": "name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", + "type": [ + "string", + "null" + ] + }, + "nodeID": { + "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", + "type": [ + "string", + "null" + ] + }, + "topologyKeys": { + "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "nodeID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/csinodedriver/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinodelist-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinodelist-storage-v1.json new file mode 100644 index 00000000..521f74c4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinodelist-storage-v1.json @@ -0,0 +1,53 @@ +{ + "description": "CSINodeList is a collection of CSINode objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of CSINode", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINode" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSINodeList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINodeList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/csinodelist/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinodespec-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinodespec-storage-v1.json new file mode 100644 index 00000000..a9e48af7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csinodespec-storage-v1.json @@ -0,0 +1,28 @@ +{ + "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", + "properties": { + "drivers": { + "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINodeDriver" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "drivers" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/csinodespec/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csipersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csipersistentvolumesource-v1.json new file mode 100644 index 00000000..69202182 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csipersistentvolumesource-v1.json @@ -0,0 +1,74 @@ +{ + "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", + "properties": { + "controllerExpandSecretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "controllerPublishSecretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "driver": { + "description": "driver is the name of the driver to use for this volume. Required.", + "type": [ + "string", + "null" + ] + }, + "fsType": { + "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", + "type": [ + "string", + "null" + ] + }, + "nodeExpandSecretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "nodePublishSecretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "nodeStageSecretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "readOnly": { + "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", + "type": [ + "boolean", + "null" + ] + }, + "volumeAttributes": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "volumeAttributes of the volume to publish.", + "type": [ + "object", + "null" + ] + }, + "volumeHandle": { + "description": "volumeHandle is the unique volume name returned by the CSI volume plugin\u2019s CreateVolume to refer to the volume on all subsequent calls. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "driver", + "volumeHandle" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/csipersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csistoragecapacity-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csistoragecapacity-storage-v1.json new file mode 100644 index 00000000..6cbc6ea7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csistoragecapacity-storage-v1.json @@ -0,0 +1,62 @@ +{ + "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "capacity": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIStorageCapacity" + ] + }, + "maximumVolumeSize": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "nodeTopology": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + }, + "storageClassName": { + "description": "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "storageClassName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/csistoragecapacity/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csistoragecapacitylist-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csistoragecapacitylist-storage-v1.json new file mode 100644 index 00000000..3fb50a50 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csistoragecapacitylist-storage-v1.json @@ -0,0 +1,53 @@ +{ + "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of CSIStorageCapacity objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIStorageCapacity" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIStorageCapacityList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacityList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/csistoragecapacitylist/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csivolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csivolumesource-v1.json new file mode 100644 index 00000000..35216dd1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/csivolumesource-v1.json @@ -0,0 +1,50 @@ +{ + "description": "Represents a source location of a volume to mount, managed by an external CSI driver", + "properties": { + "driver": { + "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", + "type": [ + "string", + "null" + ] + }, + "fsType": { + "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", + "type": [ + "string", + "null" + ] + }, + "nodePublishSecretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." + }, + "readOnly": { + "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", + "type": [ + "boolean", + "null" + ] + }, + "volumeAttributes": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "driver" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/csivolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcecolumndefinition-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcecolumndefinition-apiextensions-v1.json new file mode 100644 index 00000000..36ae6bca --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcecolumndefinition-apiextensions-v1.json @@ -0,0 +1,57 @@ +{ + "description": "CustomResourceColumnDefinition specifies a column for server side printing.", + "properties": { + "description": { + "description": "description is a human readable description of this column.", + "type": [ + "string", + "null" + ] + }, + "format": { + "description": "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "type": [ + "string", + "null" + ] + }, + "jsonPath": { + "description": "jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is a human readable name for the column.", + "type": [ + "string", + "null" + ] + }, + "priority": { + "description": "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "type": { + "description": "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "type", + "jsonPath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourcecolumndefinition/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourceconversion-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourceconversion-apiextensions-v1.json new file mode 100644 index 00000000..9d06023a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourceconversion-apiextensions-v1.json @@ -0,0 +1,23 @@ +{ + "description": "CustomResourceConversion describes how to convert different versions of a CR.", + "properties": { + "strategy": { + "description": "strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.", + "type": [ + "string", + "null" + ] + }, + "webhook": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion", + "description": "webhook describes how to call the conversion webhook. Required when `strategy` is set to `\"Webhook\"`." + } + }, + "required": [ + "strategy" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourceconversion/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinition-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinition-apiextensions-v1.json new file mode 100644 index 00000000..497637c5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinition-apiextensions-v1.json @@ -0,0 +1,51 @@ +{ + "description": "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiextensions.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CustomResourceDefinition" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec", + "description": "spec describes how the user wants the resources to appear" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionStatus", + "description": "status indicates the actual state of the CustomResourceDefinition" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourcedefinition/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitioncondition-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitioncondition-apiextensions-v1.json new file mode 100644 index 00000000..dacc3d36 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitioncondition-apiextensions-v1.json @@ -0,0 +1,45 @@ +{ + "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime last time the condition transitioned from one status to another." + }, + "message": { + "description": "message is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status is the status of the condition. Can be True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type is the type of the condition. Types include Established, NamesAccepted and Terminating.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourcedefinitioncondition/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionlist-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionlist-apiextensions-v1.json new file mode 100644 index 00000000..b0046708 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionlist-apiextensions-v1.json @@ -0,0 +1,53 @@ +{ + "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiextensions.k8s.io/v1" + ] + }, + "items": { + "description": "items list individual CustomResourceDefinition objects", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CustomResourceDefinitionList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinitionList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourcedefinitionlist/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionnames-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionnames-apiextensions-v1.json new file mode 100644 index 00000000..772489f0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionnames-apiextensions-v1.json @@ -0,0 +1,69 @@ +{ + "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", + "properties": { + "categories": { + "description": "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.", + "type": [ + "string", + "null" + ] + }, + "listKind": { + "description": "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".", + "type": [ + "string", + "null" + ] + }, + "plural": { + "description": "plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.", + "type": [ + "string", + "null" + ] + }, + "shortNames": { + "description": "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "singular": { + "description": "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "plural", + "kind" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourcedefinitionnames/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionspec-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionspec-apiextensions-v1.json new file mode 100644 index 00000000..77af1661 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionspec-apiextensions-v1.json @@ -0,0 +1,55 @@ +{ + "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", + "properties": { + "conversion": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion", + "description": "conversion defines conversion settings for the CRD." + }, + "group": { + "description": "group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`).", + "type": [ + "string", + "null" + ] + }, + "names": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames", + "description": "names specify the resource and kind names for the custom resource." + }, + "preserveUnknownFields": { + "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.", + "type": [ + "boolean", + "null" + ] + }, + "scope": { + "description": "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.", + "type": [ + "string", + "null" + ] + }, + "versions": { + "description": "versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "group", + "names", + "scope", + "versions" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourcedefinitionspec/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionstatus-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionstatus-apiextensions-v1.json new file mode 100644 index 00000000..d7fba4b9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionstatus-apiextensions-v1.json @@ -0,0 +1,41 @@ +{ + "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", + "properties": { + "acceptedNames": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames", + "description": "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec." + }, + "conditions": { + "description": "conditions indicate state for particular aspects of a CustomResourceDefinition", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "storedVersions": { + "description": "storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourcedefinitionstatus/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionversion-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionversion-apiextensions-v1.json new file mode 100644 index 00000000..89da45da --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcedefinitionversion-apiextensions-v1.json @@ -0,0 +1,79 @@ +{ + "description": "CustomResourceDefinitionVersion describes a version for CRD.", + "properties": { + "additionalPrinterColumns": { + "description": "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "deprecated": { + "description": "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "deprecationWarning": { + "description": "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc. The custom resources are served under this version at `/apis///...` if `served` is true.", + "type": [ + "string", + "null" + ] + }, + "schema": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation", + "description": "schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource." + }, + "selectableFields": { + "description": "selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.SelectableField" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "served": { + "description": "served is a flag enabling/disabling this version from being served via REST APIs", + "type": [ + "boolean", + "null" + ] + }, + "storage": { + "description": "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.", + "type": [ + "boolean", + "null" + ] + }, + "subresources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources", + "description": "subresources specify what subresources this version of the defined custom resource have." + } + }, + "required": [ + "name", + "served", + "storage" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourcedefinitionversion/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcesubresources-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcesubresources-apiextensions-v1.json new file mode 100644 index 00000000..b0860f87 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcesubresources-apiextensions-v1.json @@ -0,0 +1,17 @@ +{ + "description": "CustomResourceSubresources defines the status and scale subresources for CustomResources.", + "properties": { + "scale": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale", + "description": "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus", + "description": "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourcesubresources/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcesubresourcescale-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcesubresourcescale-apiextensions-v1.json new file mode 100644 index 00000000..acb662fd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcesubresourcescale-apiextensions-v1.json @@ -0,0 +1,34 @@ +{ + "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", + "properties": { + "labelSelectorPath": { + "description": "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.", + "type": [ + "string", + "null" + ] + }, + "specReplicasPath": { + "description": "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.", + "type": [ + "string", + "null" + ] + }, + "statusReplicasPath": { + "description": "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "specReplicasPath", + "statusReplicasPath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourcesubresourcescale/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcesubresourcestatus-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcesubresourcestatus-apiextensions-v1.json new file mode 100644 index 00000000..d0352ebd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcesubresourcestatus-apiextensions-v1.json @@ -0,0 +1,7 @@ +{ + "description": "CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza", + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourcesubresourcestatus/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcevalidation-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcevalidation-apiextensions-v1.json new file mode 100644 index 00000000..c5dd121a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/customresourcevalidation-apiextensions-v1.json @@ -0,0 +1,13 @@ +{ + "description": "CustomResourceValidation is a list of validation methods for CustomResources.", + "properties": { + "openAPIV3Schema": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps", + "description": "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/customresourcevalidation/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonendpoint-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonendpoint-v1.json new file mode 100644 index 00000000..4bcc8809 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonendpoint-v1.json @@ -0,0 +1,20 @@ +{ + "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "properties": { + "Port": { + "description": "Port number of the given endpoint.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "Port" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/daemonendpoint/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonset-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonset-apps-v1.json new file mode 100644 index 00000000..1b6fd7b8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonset-apps-v1.json @@ -0,0 +1,48 @@ +{ + "description": "DaemonSet represents the configuration of a daemon set.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DaemonSet" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetSpec", + "description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetStatus", + "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/daemonset/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetcondition-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetcondition-apps-v1.json new file mode 100644 index 00000000..6e52c27e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetcondition-apps-v1.json @@ -0,0 +1,45 @@ +{ + "description": "DaemonSetCondition describes the state of a DaemonSet at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of DaemonSet condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/daemonsetcondition/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetlist-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetlist-apps-v1.json new file mode 100644 index 00000000..ff2d8aa0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetlist-apps-v1.json @@ -0,0 +1,53 @@ +{ + "description": "DaemonSetList is a collection of daemon sets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "A list of daemon sets.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSet" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DaemonSetList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DaemonSetList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/daemonsetlist/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetspec-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetspec-apps-v1.json new file mode 100644 index 00000000..9bc193d6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetspec-apps-v1.json @@ -0,0 +1,41 @@ +{ + "description": "DaemonSetSpec is the specification of a daemon set.", + "properties": { + "minReadySeconds": { + "description": "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "revisionHistoryLimit": { + "description": "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + }, + "updateStrategy": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetUpdateStrategy", + "description": "An update strategy to replace existing DaemonSet pods with new pods." + } + }, + "required": [ + "selector", + "template" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/daemonsetspec/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetstatus-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetstatus-apps-v1.json new file mode 100644 index 00000000..25bdaeed --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetstatus-apps-v1.json @@ -0,0 +1,103 @@ +{ + "description": "DaemonSetStatus represents the current status of a daemon set.", + "properties": { + "collisionCount": { + "description": "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a DaemonSet's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentNumberScheduled": { + "description": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "desiredNumberScheduled": { + "description": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "numberAvailable": { + "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "numberMisscheduled": { + "description": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "numberReady": { + "description": "numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "numberUnavailable": { + "description": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "The most recent generation observed by the daemon set controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "updatedNumberScheduled": { + "description": "The total number of nodes that are running updated daemon pod", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "currentNumberScheduled", + "numberMisscheduled", + "desiredNumberScheduled", + "numberReady" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/daemonsetstatus/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetupdatestrategy-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetupdatestrategy-apps-v1.json new file mode 100644 index 00000000..b95b1daf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/daemonsetupdatestrategy-apps-v1.json @@ -0,0 +1,20 @@ +{ + "description": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", + "properties": { + "rollingUpdate": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.RollingUpdateDaemonSet", + "description": "Rolling update config params. Present only if type = \"RollingUpdate\"." + }, + "type": { + "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/daemonsetupdatestrategy/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deleteoptions-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deleteoptions-meta-v1.json new file mode 100644 index 00000000..9c3ffcaa --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deleteoptions-meta-v1.json @@ -0,0 +1,430 @@ +{ + "description": "DeleteOptions may be provided when deleting an API object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1", + "admission.k8s.io/v1", + "admission.k8s.io/v1beta1", + "admissionregistration.k8s.io/v1", + "admissionregistration.k8s.io/v1alpha1", + "admissionregistration.k8s.io/v1beta1", + "apiextensions.k8s.io/v1", + "apiextensions.k8s.io/v1beta1", + "apiregistration.k8s.io/v1", + "apiregistration.k8s.io/v1beta1", + "apps/v1", + "apps/v1beta1", + "apps/v1beta2", + "authentication.k8s.io/v1", + "authentication.k8s.io/v1alpha1", + "authentication.k8s.io/v1beta1", + "authorization.k8s.io/v1", + "authorization.k8s.io/v1beta1", + "autoscaling/v1", + "autoscaling/v2", + "autoscaling/v2beta1", + "autoscaling/v2beta2", + "batch/v1", + "batch/v1beta1", + "certificates.k8s.io/v1", + "certificates.k8s.io/v1alpha1", + "certificates.k8s.io/v1beta1", + "coordination.k8s.io/v1", + "coordination.k8s.io/v1alpha1", + "coordination.k8s.io/v1beta1", + "discovery.k8s.io/v1", + "discovery.k8s.io/v1beta1", + "events.k8s.io/v1", + "events.k8s.io/v1beta1", + "extensions/v1beta1", + "flowcontrol.apiserver.k8s.io/v1", + "flowcontrol.apiserver.k8s.io/v1beta1", + "flowcontrol.apiserver.k8s.io/v1beta2", + "flowcontrol.apiserver.k8s.io/v1beta3", + "imagepolicy.k8s.io/v1alpha1", + "internal.apiserver.k8s.io/v1alpha1", + "networking.k8s.io/v1", + "networking.k8s.io/v1alpha1", + "networking.k8s.io/v1beta1", + "node.k8s.io/v1", + "node.k8s.io/v1alpha1", + "node.k8s.io/v1beta1", + "policy/v1", + "policy/v1beta1", + "rbac.authorization.k8s.io/v1", + "rbac.authorization.k8s.io/v1alpha1", + "rbac.authorization.k8s.io/v1beta1", + "resource.k8s.io/v1alpha3", + "scheduling.k8s.io/v1", + "scheduling.k8s.io/v1alpha1", + "scheduling.k8s.io/v1beta1", + "storage.k8s.io/v1", + "storage.k8s.io/v1alpha1", + "storage.k8s.io/v1beta1", + "storagemigration.k8s.io/v1alpha1" + ] + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "gracePeriodSeconds": { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeleteOptions" + ] + }, + "orphanDependents": { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "type": [ + "boolean", + "null" + ] + }, + "preconditions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions", + "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned." + }, + "propagationPolicy": { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1beta2" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2beta1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2beta2" + }, + { + "group": "batch", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "batch", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "discovery.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "discovery.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "events.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "events.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "extensions", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta2" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta3" + }, + { + "group": "imagepolicy.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "internal.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "policy", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "policy", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "resource.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha3" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deleteoptions/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deployment-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deployment-apps-v1.json new file mode 100644 index 00000000..b2f9a207 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deployment-apps-v1.json @@ -0,0 +1,48 @@ +{ + "description": "Deployment enables declarative updates for Pods and ReplicaSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Deployment" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentSpec", + "description": "Specification of the desired behavior of the Deployment." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentStatus", + "description": "Most recently observed status of the Deployment." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deployment/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentcondition-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentcondition-apps-v1.json new file mode 100644 index 00000000..ff035e4f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentcondition-apps-v1.json @@ -0,0 +1,49 @@ +{ + "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "lastUpdateTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time this condition was updated." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of deployment condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deploymentcondition/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentlist-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentlist-apps-v1.json new file mode 100644 index 00000000..f9e95f5e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentlist-apps-v1.json @@ -0,0 +1,53 @@ +{ + "description": "DeploymentList is a list of Deployments.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "Items is the list of Deployments.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.Deployment" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeploymentList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DeploymentList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deploymentlist/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentspec-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentspec-apps-v1.json new file mode 100644 index 00000000..0558222f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentspec-apps-v1.json @@ -0,0 +1,65 @@ +{ + "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "paused": { + "description": "Indicates that the deployment is paused.", + "type": [ + "boolean", + "null" + ] + }, + "progressDeadlineSeconds": { + "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "revisionHistoryLimit": { + "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels." + }, + "strategy": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentStrategy", + "description": "The deployment strategy to use to replace existing pods with new ones.", + "x-kubernetes-patch-strategy": "retainKeys" + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\"." + } + }, + "required": [ + "selector", + "template" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deploymentspec/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentstatus-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentstatus-apps-v1.json new file mode 100644 index 00000000..3f007684 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentstatus-apps-v1.json @@ -0,0 +1,81 @@ +{ + "description": "DeploymentStatus is the most recently observed status of the Deployment.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "collisionCount": { + "description": "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a deployment's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "observedGeneration": { + "description": "The generation observed by the deployment controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "unavailableReplicas": { + "description": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "updatedReplicas": { + "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deploymentstatus/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentstrategy-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentstrategy-apps-v1.json new file mode 100644 index 00000000..5e1e5146 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deploymentstrategy-apps-v1.json @@ -0,0 +1,20 @@ +{ + "description": "DeploymentStrategy describes how to replace existing pods with new ones.", + "properties": { + "rollingUpdate": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.RollingUpdateDeployment", + "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate." + }, + "type": { + "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deploymentstrategy/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/device-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/device-resource-v1alpha3.json new file mode 100644 index 00000000..30e76480 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/device-resource-v1alpha3.json @@ -0,0 +1,23 @@ +{ + "description": "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.", + "properties": { + "basic": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.BasicDevice", + "description": "Basic defines one device instance." + }, + "name": { + "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/device/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceallocationconfiguration-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceallocationconfiguration-resource-v1alpha3.json new file mode 100644 index 00000000..f1754339 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceallocationconfiguration-resource-v1alpha3.json @@ -0,0 +1,37 @@ +{ + "description": "DeviceAllocationConfiguration gets embedded in an AllocationResult.", + "properties": { + "opaque": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + }, + "requests": { + "description": "Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "source": { + "description": "Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "source" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deviceallocationconfiguration/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceallocationresult-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceallocationresult-resource-v1alpha3.json new file mode 100644 index 00000000..93a4cf0f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceallocationresult-resource-v1alpha3.json @@ -0,0 +1,31 @@ +{ + "description": "DeviceAllocationResult is the result of allocating devices.", + "properties": { + "config": { + "description": "This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.\n\nThis includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceAllocationConfiguration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "results": { + "description": "Results lists all allocated devices.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceRequestAllocationResult" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deviceallocationresult/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceattribute-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceattribute-resource-v1alpha3.json new file mode 100644 index 00000000..45196cc6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceattribute-resource-v1alpha3.json @@ -0,0 +1,38 @@ +{ + "description": "DeviceAttribute must have exactly one field set.", + "properties": { + "bool": { + "description": "BoolValue is a true/false value.", + "type": [ + "boolean", + "null" + ] + }, + "int": { + "description": "IntValue is a number.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "string": { + "description": "StringValue is a string. Must not be longer than 64 characters.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deviceattribute/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclaim-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclaim-resource-v1alpha3.json new file mode 100644 index 00000000..a5fab230 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclaim-resource-v1alpha3.json @@ -0,0 +1,42 @@ +{ + "description": "DeviceClaim defines how to request devices with a ResourceClaim.", + "properties": { + "config": { + "description": "This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClaimConfiguration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "constraints": { + "description": "These constraints must be satisfied by the set of devices that get allocated for the claim.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceConstraint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requests": { + "description": "Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceRequest" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deviceclaim/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclaimconfiguration-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclaimconfiguration-resource-v1alpha3.json new file mode 100644 index 00000000..a8f6633f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclaimconfiguration-resource-v1alpha3.json @@ -0,0 +1,27 @@ +{ + "description": "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.", + "properties": { + "opaque": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + }, + "requests": { + "description": "Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deviceclaimconfiguration/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclass-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclass-resource-v1alpha3.json new file mode 100644 index 00000000..5a0bf71e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclass-resource-v1alpha3.json @@ -0,0 +1,47 @@ +{ + "description": "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeviceClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassSpec", + "description": "Spec defines what can be allocated and how to configure it.\n\nThis is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.\n\nChanging the spec automatically increments the metadata.generation number." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deviceclass/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclassconfiguration-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclassconfiguration-resource-v1alpha3.json new file mode 100644 index 00000000..53581623 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclassconfiguration-resource-v1alpha3.json @@ -0,0 +1,13 @@ +{ + "description": "DeviceClassConfiguration is used in DeviceClass.", + "properties": { + "opaque": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deviceclassconfiguration/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclasslist-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclasslist-resource-v1alpha3.json new file mode 100644 index 00000000..711aa0d4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclasslist-resource-v1alpha3.json @@ -0,0 +1,53 @@ +{ + "description": "DeviceClassList is a collection of classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource classes.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeviceClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceClassList", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deviceclasslist/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclassspec-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclassspec-resource-v1alpha3.json new file mode 100644 index 00000000..c6428675 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceclassspec-resource-v1alpha3.json @@ -0,0 +1,35 @@ +{ + "description": "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.", + "properties": { + "config": { + "description": "Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.\n\nThey are passed to the driver, but are not considered while allocating the claim.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassConfiguration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "selectors": { + "description": "Each selector must be satisfied by a device which is claimed via this class.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceSelector" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "suitableNodes": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet *and* that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation.\n\nSetting this field is optional. If unset, all Nodes are candidates.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deviceclassspec/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceconstraint-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceconstraint-resource-v1alpha3.json new file mode 100644 index 00000000..2c5afb0c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceconstraint-resource-v1alpha3.json @@ -0,0 +1,30 @@ +{ + "description": "DeviceConstraint must have exactly one field set besides Requests.", + "properties": { + "matchAttribute": { + "description": "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.\n\nFor example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.\n\nMust include the domain qualifier.", + "type": [ + "string", + "null" + ] + }, + "requests": { + "description": "Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deviceconstraint/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/devicerequest-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/devicerequest-resource-v1alpha3.json new file mode 100644 index 00000000..f46aadf4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/devicerequest-resource-v1alpha3.json @@ -0,0 +1,60 @@ +{ + "description": "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.\n\nA DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.", + "properties": { + "adminAccess": { + "description": "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.", + "type": [ + "boolean", + "null" + ] + }, + "allocationMode": { + "description": "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:\n\n- ExactCount: This request is for a specific number of devices.\n This is the default. The exact number is provided in the\n count field.\n\n- All: This request is for all of the matching devices in a pool.\n Allocation will fail if some devices are already allocated,\n unless adminAccess is requested.\n\nIf AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.\n\nMore modes may get added in the future. Clients must refuse to handle requests with unknown modes.", + "type": [ + "string", + "null" + ] + }, + "count": { + "description": "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "deviceClassName": { + "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.\n\nMust be a DNS label.", + "type": [ + "string", + "null" + ] + }, + "selectors": { + "description": "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceSelector" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "deviceClassName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/devicerequest/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/devicerequestallocationresult-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/devicerequestallocationresult-resource-v1alpha3.json new file mode 100644 index 00000000..305ba338 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/devicerequestallocationresult-resource-v1alpha3.json @@ -0,0 +1,43 @@ +{ + "description": "DeviceRequestAllocationResult contains the allocation result for one request.", + "properties": { + "device": { + "description": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.", + "type": [ + "string", + "null" + ] + }, + "driver": { + "description": "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.", + "type": [ + "string", + "null" + ] + }, + "pool": { + "description": "This name together with the driver name and the device name field identify which device was allocated (`//`).\n\nMust not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.", + "type": [ + "string", + "null" + ] + }, + "request": { + "description": "Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "request", + "driver", + "pool", + "device" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/devicerequestallocationresult/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceselector-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceselector-resource-v1alpha3.json new file mode 100644 index 00000000..34b20464 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/deviceselector-resource-v1alpha3.json @@ -0,0 +1,13 @@ +{ + "description": "DeviceSelector must have exactly one field set.", + "properties": { + "cel": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.CELDeviceSelector", + "description": "CEL contains a CEL expression for selecting a device." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/deviceselector/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/downwardapiprojection-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/downwardapiprojection-v1.json new file mode 100644 index 00000000..4ae9a0d6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/downwardapiprojection-v1.json @@ -0,0 +1,20 @@ +{ + "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", + "properties": { + "items": { + "description": "Items is a list of DownwardAPIVolume file", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeFile" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/downwardapiprojection/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/downwardapivolumefile-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/downwardapivolumefile-v1.json new file mode 100644 index 00000000..c3b683bb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/downwardapivolumefile-v1.json @@ -0,0 +1,35 @@ +{ + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "properties": { + "fieldRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectFieldSelector", + "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "path": { + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "type": [ + "string", + "null" + ] + }, + "resourceFieldRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." + } + }, + "required": [ + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/downwardapivolumefile/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/downwardapivolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/downwardapivolumesource-v1.json new file mode 100644 index 00000000..5a616c67 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/downwardapivolumesource-v1.json @@ -0,0 +1,28 @@ +{ + "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "items": { + "description": "Items is a list of downward API volume file", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeFile" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/downwardapivolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/emptydirvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/emptydirvolumesource-v1.json new file mode 100644 index 00000000..06ff44ab --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/emptydirvolumesource-v1.json @@ -0,0 +1,20 @@ +{ + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", + "properties": { + "medium": { + "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", + "type": [ + "string", + "null" + ] + }, + "sizeLimit": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/emptydirvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpoint-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpoint-discovery-v1.json new file mode 100644 index 00000000..9bcd03f0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpoint-discovery-v1.json @@ -0,0 +1,72 @@ +{ + "description": "Endpoint represents a single logical \"backend\" implementing a service.", + "properties": { + "addresses": { + "description": "addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "conditions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointConditions", + "description": "conditions contains information about the current status of the endpoint." + }, + "deprecatedTopology": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.", + "type": [ + "object", + "null" + ] + }, + "hints": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointHints", + "description": "hints contains information associated with how an endpoint should be consumed." + }, + "hostname": { + "description": "hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.", + "type": [ + "string", + "null" + ] + }, + "nodeName": { + "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.", + "type": [ + "string", + "null" + ] + }, + "targetRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." + }, + "zone": { + "description": "zone is the name of the Zone this endpoint exists in.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "addresses" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/endpoint/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointaddress-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointaddress-v1.json new file mode 100644 index 00000000..49b67af4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointaddress-v1.json @@ -0,0 +1,38 @@ +{ + "description": "EndpointAddress is a tuple that describes single IP address.", + "properties": { + "hostname": { + "description": "The Hostname of this endpoint", + "type": [ + "string", + "null" + ] + }, + "ip": { + "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).", + "type": [ + "string", + "null" + ] + }, + "nodeName": { + "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "type": [ + "string", + "null" + ] + }, + "targetRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "Reference to object providing the endpoint." + } + }, + "required": [ + "ip" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/endpointaddress/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointconditions-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointconditions-discovery-v1.json new file mode 100644 index 00000000..658b8df1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointconditions-discovery-v1.json @@ -0,0 +1,30 @@ +{ + "description": "EndpointConditions represents the current condition of an endpoint.", + "properties": { + "ready": { + "description": "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.", + "type": [ + "boolean", + "null" + ] + }, + "serving": { + "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.", + "type": [ + "boolean", + "null" + ] + }, + "terminating": { + "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/endpointconditions/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointhints-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointhints-discovery-v1.json new file mode 100644 index 00000000..092fc811 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointhints-discovery-v1.json @@ -0,0 +1,20 @@ +{ + "description": "EndpointHints provides hints describing how an endpoint should be consumed.", + "properties": { + "forZones": { + "description": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.ForZone" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/endpointhints/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointport-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointport-discovery-v1.json new file mode 100644 index 00000000..ba1f857d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointport-discovery-v1.json @@ -0,0 +1,39 @@ +{ + "description": "EndpointPort represents a Port used by an EndpointSlice", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "protocol": { + "description": "protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/endpointport/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointport-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointport-v1.json new file mode 100644 index 00000000..69950682 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointport-v1.json @@ -0,0 +1,42 @@ +{ + "description": "EndpointPort is a tuple that describes a single port.", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "The port number of the endpoint.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "protocol": { + "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/endpointport/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpoints-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpoints-v1.json new file mode 100644 index 00000000..45796d62 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpoints-v1.json @@ -0,0 +1,51 @@ +{ + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Endpoints" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "subsets": { + "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointSubset" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/endpoints/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointslice-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointslice-discovery-v1.json new file mode 100644 index 00000000..134a7989 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointslice-discovery-v1.json @@ -0,0 +1,73 @@ +{ + "description": "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.", + "properties": { + "addressType": { + "description": "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.", + "type": [ + "string", + "null" + ] + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "discovery.k8s.io/v1" + ] + }, + "endpoints": { + "description": "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.Endpoint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EndpointSlice" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "ports": { + "description": "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "addressType", + "endpoints" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/endpointslice/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointslicelist-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointslicelist-discovery-v1.json new file mode 100644 index 00000000..b4d28772 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointslicelist-discovery-v1.json @@ -0,0 +1,53 @@ +{ + "description": "EndpointSliceList represents a list of endpoint slices", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "discovery.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of endpoint slices", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointSlice" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EndpointSliceList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "discovery.k8s.io", + "kind": "EndpointSliceList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/endpointslicelist/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointslist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointslist-v1.json new file mode 100644 index 00000000..b13672a9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointslist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "EndpointsList is a list of endpoints.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of endpoints.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Endpoints" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EndpointsList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EndpointsList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/endpointslist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointsubset-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointsubset-v1.json new file mode 100644 index 00000000..9744c65b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/endpointsubset-v1.json @@ -0,0 +1,42 @@ +{ + "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "properties": { + "addresses": { + "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointAddress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "notReadyAddresses": { + "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointAddress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "Port numbers available on the related IP addresses.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/endpointsubset/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/envfromsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/envfromsource-v1.json new file mode 100644 index 00000000..3d117dfe --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/envfromsource-v1.json @@ -0,0 +1,24 @@ +{ + "description": "EnvFromSource represents the source of a set of ConfigMaps", + "properties": { + "configMapRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapEnvSource", + "description": "The ConfigMap to select from" + }, + "prefix": { + "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "type": [ + "string", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretEnvSource", + "description": "The Secret to select from" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/envfromsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/envvar-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/envvar-v1.json new file mode 100644 index 00000000..b36624f1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/envvar-v1.json @@ -0,0 +1,30 @@ +{ + "description": "EnvVar represents an environment variable present in a Container.", + "properties": { + "name": { + "description": "Name of the environment variable. Must be a C_IDENTIFIER.", + "type": [ + "string", + "null" + ] + }, + "value": { + "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "type": [ + "string", + "null" + ] + }, + "valueFrom": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvVarSource", + "description": "Source for the environment variable's value. Cannot be used if value is not empty." + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/envvar/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/envvarsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/envvarsource-v1.json new file mode 100644 index 00000000..5b47baee --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/envvarsource-v1.json @@ -0,0 +1,25 @@ +{ + "description": "EnvVarSource represents a source for the value of an EnvVar.", + "properties": { + "configMapKeyRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapKeySelector", + "description": "Selects a key of a ConfigMap." + }, + "fieldRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectFieldSelector", + "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs." + }, + "resourceFieldRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported." + }, + "secretKeyRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretKeySelector", + "description": "Selects a key of a secret in the pod's namespace" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/envvarsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ephemeralcontainer-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ephemeralcontainer-v1.json new file mode 100644 index 00000000..a7baa85b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ephemeralcontainer-v1.json @@ -0,0 +1,228 @@ +{ + "description": "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvVar" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvFromSource" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", + "type": [ + "string", + "null" + ] + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "type": [ + "string", + "null" + ] + }, + "lifecycle": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Lifecycle", + "description": "Lifecycle is not allowed for ephemeral containers." + }, + "livenessProbe": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "name": { + "description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "Ports are not allowed for ephemeral containers.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerResizePolicy" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceRequirements", + "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." + }, + "restartPolicy": { + "description": "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.", + "type": [ + "string", + "null" + ] + }, + "securityContext": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecurityContext", + "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." + }, + "startupProbe": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": [ + "boolean", + "null" + ] + }, + "targetContainerName": { + "description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.", + "type": [ + "string", + "null" + ] + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeDevice" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "devicePath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeMount" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ephemeralcontainer/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ephemeralvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ephemeralvolumesource-v1.json new file mode 100644 index 00000000..a85af1bd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ephemeralvolumesource-v1.json @@ -0,0 +1,13 @@ +{ + "description": "Represents an ephemeral volume that is handled by a normal storage driver.", + "properties": { + "volumeClaimTemplate": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimTemplate", + "description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ephemeralvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/event-events-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/event-events-v1.json new file mode 100644 index 00000000..2d27d251 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/event-events-v1.json @@ -0,0 +1,121 @@ +{ + "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "properties": { + "action": { + "description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": [ + "string", + "null" + ] + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "events.k8s.io/v1" + ] + }, + "deprecatedCount": { + "description": "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "deprecatedFirstTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "deprecatedLastTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "deprecatedSource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EventSource", + "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "eventTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "eventTime is the time when this Event was first observed. It is required." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Event" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "note": { + "description": "note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": [ + "string", + "null" + ] + }, + "regarding": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." + }, + "related": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." + }, + "reportingController": { + "description": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.", + "type": [ + "string", + "null" + ] + }, + "reportingInstance": { + "description": "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": [ + "string", + "null" + ] + }, + "series": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.events.v1.EventSeries", + "description": "series is data about the Event series this event represents or nil if it's a singleton Event." + }, + "type": { + "description": "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "eventTime" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/event/events/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/event-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/event-v1.json new file mode 100644 index 00000000..d9db1ad3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/event-v1.json @@ -0,0 +1,122 @@ +{ + "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "properties": { + "action": { + "description": "What action was taken/failed regarding to the Regarding object.", + "type": [ + "string", + "null" + ] + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "count": { + "description": "The number of times this event has occurred.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "eventTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "Time when this Event was first observed." + }, + "firstTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)" + }, + "involvedObject": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "The object that this event is about." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Event" + ] + }, + "lastTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The time at which the most recent occurrence of this event was recorded." + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": [ + "string", + "null" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "reason": { + "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + "type": [ + "string", + "null" + ] + }, + "related": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "Optional secondary object for more complex actions." + }, + "reportingComponent": { + "description": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", + "type": [ + "string", + "null" + ] + }, + "reportingInstance": { + "description": "ID of the controller instance, e.g. `kubelet-xyzf`.", + "type": [ + "string", + "null" + ] + }, + "series": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EventSeries", + "description": "Data about the Event series this event represents or nil if it's a singleton Event." + }, + "source": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EventSource", + "description": "The component reporting this event. Should be a short machine understandable string." + }, + "type": { + "description": "Type of this event (Normal, Warning), new types could be added in the future", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "metadata", + "involvedObject" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Event", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/event/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventlist-events-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventlist-events-v1.json new file mode 100644 index 00000000..19200449 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventlist-events-v1.json @@ -0,0 +1,53 @@ +{ + "description": "EventList is a list of Event objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "events.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.events.v1.Event" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EventList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "events.k8s.io", + "kind": "EventList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/eventlist/events/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventlist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventlist-v1.json new file mode 100644 index 00000000..4f6d208a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventlist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "EventList is a list of events.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of events", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Event" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EventList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EventList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/eventlist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventseries-events-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventseries-events-v1.json new file mode 100644 index 00000000..34f92690 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventseries-events-v1.json @@ -0,0 +1,25 @@ +{ + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations.", + "properties": { + "count": { + "description": "count is the number of occurrences in this series up to the last heartbeat time.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lastObservedTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat." + } + }, + "required": [ + "count", + "lastObservedTime" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/eventseries/events/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventseries-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventseries-v1.json new file mode 100644 index 00000000..09c159f7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventseries-v1.json @@ -0,0 +1,21 @@ +{ + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", + "properties": { + "count": { + "description": "Number of occurrences in this series up to the last heartbeat time", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lastObservedTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "Time of the last occurrence observed" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/eventseries/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventsource-v1.json new file mode 100644 index 00000000..6c71f10a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eventsource-v1.json @@ -0,0 +1,23 @@ +{ + "description": "EventSource contains information for an event.", + "properties": { + "component": { + "description": "Component from which the event is generated.", + "type": [ + "string", + "null" + ] + }, + "host": { + "description": "Node name on which the event is generated.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/eventsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eviction-policy-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eviction-policy-v1.json new file mode 100644 index 00000000..8e3e049b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/eviction-policy-v1.json @@ -0,0 +1,44 @@ +{ + "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "policy/v1" + ] + }, + "deleteOptions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions", + "description": "DeleteOptions may be provided" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Eviction" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "ObjectMeta describes the pod that is being evicted." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "Eviction", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/eviction/policy/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/execaction-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/execaction-v1.json new file mode 100644 index 00000000..2224a468 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/execaction-v1.json @@ -0,0 +1,23 @@ +{ + "description": "ExecAction describes a \"run in container\" action.", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/execaction/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/exemptprioritylevelconfiguration-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/exemptprioritylevelconfiguration-flowcontrol-v1.json new file mode 100644 index 00000000..9b4fe708 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/exemptprioritylevelconfiguration-flowcontrol-v1.json @@ -0,0 +1,25 @@ +{ + "description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", + "properties": { + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/exemptprioritylevelconfiguration/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/exemptprioritylevelconfiguration-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/exemptprioritylevelconfiguration-flowcontrol-v1beta3.json new file mode 100644 index 00000000..57259f81 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/exemptprioritylevelconfiguration-flowcontrol-v1beta3.json @@ -0,0 +1,25 @@ +{ + "description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", + "properties": { + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/exemptprioritylevelconfiguration/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/expressionwarning-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/expressionwarning-admissionregistration-v1.json new file mode 100644 index 00000000..4361ebd0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/expressionwarning-admissionregistration-v1.json @@ -0,0 +1,27 @@ +{ + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": [ + "string", + "null" + ] + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/expressionwarning/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/expressionwarning-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/expressionwarning-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..7e972423 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/expressionwarning-admissionregistration-v1alpha1.json @@ -0,0 +1,27 @@ +{ + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": [ + "string", + "null" + ] + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/expressionwarning/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/expressionwarning-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/expressionwarning-admissionregistration-v1beta1.json new file mode 100644 index 00000000..bd844885 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/expressionwarning-admissionregistration-v1beta1.json @@ -0,0 +1,27 @@ +{ + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": [ + "string", + "null" + ] + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/expressionwarning/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/externaldocumentation-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/externaldocumentation-apiextensions-v1.json new file mode 100644 index 00000000..3b6c074e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/externaldocumentation-apiextensions-v1.json @@ -0,0 +1,21 @@ +{ + "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", + "properties": { + "description": { + "type": [ + "string", + "null" + ] + }, + "url": { + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/externaldocumentation/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/externalmetricsource-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/externalmetricsource-autoscaling-v2.json new file mode 100644 index 00000000..697f0e75 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/externalmetricsource-autoscaling-v2.json @@ -0,0 +1,21 @@ +{ + "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", + "properties": { + "metric": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "metric", + "target" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/externalmetricsource/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/externalmetricstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/externalmetricstatus-autoscaling-v2.json new file mode 100644 index 00000000..ccfd10d5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/externalmetricstatus-autoscaling-v2.json @@ -0,0 +1,21 @@ +{ + "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", + "properties": { + "current": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "metric": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/externalmetricstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fcvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fcvolumesource-v1.json new file mode 100644 index 00000000..acc9b687 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fcvolumesource-v1.json @@ -0,0 +1,59 @@ +{ + "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "lun": { + "description": "lun is Optional: FC target lun number", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "targetWWNs": { + "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "wwids": { + "description": "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/fcvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fieldselectorattributes-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fieldselectorattributes-authorization-v1.json new file mode 100644 index 00000000..a7e1e393 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fieldselectorattributes-authorization-v1.json @@ -0,0 +1,27 @@ +{ + "description": "FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.", + "properties": { + "rawSelector": { + "description": "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.", + "type": [ + "string", + "null" + ] + }, + "requirements": { + "description": "requirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.FieldSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/fieldselectorattributes/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fieldselectorrequirement-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fieldselectorrequirement-meta-v1.json new file mode 100644 index 00000000..fcae8c7f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fieldselectorrequirement-meta-v1.json @@ -0,0 +1,41 @@ +{ + "description": "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the field selector key that the requirement applies to.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.", + "type": [ + "string", + "null" + ] + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/fieldselectorrequirement/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fieldsv1-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fieldsv1-meta-v1.json new file mode 100644 index 00000000..fc9dec89 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/fieldsv1-meta-v1.json @@ -0,0 +1,7 @@ +{ + "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/fieldsv1/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flexpersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flexpersistentvolumesource-v1.json new file mode 100644 index 00000000..75253bea --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flexpersistentvolumesource-v1.json @@ -0,0 +1,50 @@ +{ + "description": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", + "type": [ + "string", + "null" + ] + }, + "fsType": { + "description": "fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": [ + "string", + "null" + ] + }, + "options": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": [ + "object", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + } + }, + "required": [ + "driver" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flexpersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flexvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flexvolumesource-v1.json new file mode 100644 index 00000000..f4c01a2b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flexvolumesource-v1.json @@ -0,0 +1,50 @@ +{ + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", + "type": [ + "string", + "null" + ] + }, + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": [ + "string", + "null" + ] + }, + "options": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": [ + "object", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + } + }, + "required": [ + "driver" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flexvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flockervolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flockervolumesource-v1.json new file mode 100644 index 00000000..decf70cc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flockervolumesource-v1.json @@ -0,0 +1,23 @@ +{ + "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "properties": { + "datasetName": { + "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "type": [ + "string", + "null" + ] + }, + "datasetUUID": { + "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flockervolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowdistinguishermethod-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowdistinguishermethod-flowcontrol-v1.json new file mode 100644 index 00000000..b6d3c2da --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowdistinguishermethod-flowcontrol-v1.json @@ -0,0 +1,19 @@ +{ + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", + "properties": { + "type": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flowdistinguishermethod/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowdistinguishermethod-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowdistinguishermethod-flowcontrol-v1beta3.json new file mode 100644 index 00000000..7ee76bc8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowdistinguishermethod-flowcontrol-v1beta3.json @@ -0,0 +1,19 @@ +{ + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", + "properties": { + "type": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flowdistinguishermethod/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschema-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschema-flowcontrol-v1.json new file mode 100644 index 00000000..e018b765 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschema-flowcontrol-v1.json @@ -0,0 +1,48 @@ +{ + "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchema" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flowschema/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschema-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschema-flowcontrol-v1beta3.json new file mode 100644 index 00000000..6cd6d5ca --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschema-flowcontrol-v1beta3.json @@ -0,0 +1,48 @@ +{ + "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchema" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flowschema/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemacondition-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemacondition-flowcontrol-v1.json new file mode 100644 index 00000000..dd052184 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemacondition-flowcontrol-v1.json @@ -0,0 +1,41 @@ +{ + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flowschemacondition/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemacondition-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemacondition-flowcontrol-v1beta3.json new file mode 100644 index 00000000..c49bdf2d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemacondition-flowcontrol-v1beta3.json @@ -0,0 +1,41 @@ +{ + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flowschemacondition/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemalist-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemalist-flowcontrol-v1.json new file mode 100644 index 00000000..c12cb6df --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemalist-flowcontrol-v1.json @@ -0,0 +1,53 @@ +{ + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "items": { + "description": "`items` is a list of FlowSchemas.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchema" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchemaList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flowschemalist/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemalist-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemalist-flowcontrol-v1beta3.json new file mode 100644 index 00000000..83c61536 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemalist-flowcontrol-v1beta3.json @@ -0,0 +1,53 @@ +{ + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "items": { + "description": "`items` is a list of FlowSchemas.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchemaList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1beta3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flowschemalist/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemaspec-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemaspec-flowcontrol-v1.json new file mode 100644 index 00000000..f0342328 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemaspec-flowcontrol-v1.json @@ -0,0 +1,39 @@ +{ + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + }, + "matchingPrecedence": { + "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "priorityLevelConfiguration": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + }, + "rules": { + "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flowschemaspec/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemaspec-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemaspec-flowcontrol-v1beta3.json new file mode 100644 index 00000000..1af15712 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemaspec-flowcontrol-v1beta3.json @@ -0,0 +1,39 @@ +{ + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + }, + "matchingPrecedence": { + "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "priorityLevelConfiguration": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + }, + "rules": { + "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flowschemaspec/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemastatus-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemastatus-flowcontrol-v1.json new file mode 100644 index 00000000..ead02dad --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemastatus-flowcontrol-v1.json @@ -0,0 +1,25 @@ +{ + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flowschemastatus/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemastatus-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemastatus-flowcontrol-v1beta3.json new file mode 100644 index 00000000..afc85075 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/flowschemastatus-flowcontrol-v1beta3.json @@ -0,0 +1,25 @@ +{ + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/flowschemastatus/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/forzone-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/forzone-discovery-v1.json new file mode 100644 index 00000000..2a3bc324 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/forzone-discovery-v1.json @@ -0,0 +1,19 @@ +{ + "description": "ForZone provides information about which zones should consume this endpoint.", + "properties": { + "name": { + "description": "name represents the name of the zone.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/forzone/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/gcepersistentdiskvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/gcepersistentdiskvolumesource-v1.json new file mode 100644 index 00000000..bce7f631 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/gcepersistentdiskvolumesource-v1.json @@ -0,0 +1,41 @@ +{ + "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": [ + "string", + "null" + ] + }, + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "pdName": { + "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "pdName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/gcepersistentdiskvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/gitrepovolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/gitrepovolumesource-v1.json new file mode 100644 index 00000000..f7bb73b2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/gitrepovolumesource-v1.json @@ -0,0 +1,33 @@ +{ + "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + "properties": { + "directory": { + "description": "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "type": [ + "string", + "null" + ] + }, + "repository": { + "description": "repository is the URL", + "type": [ + "string", + "null" + ] + }, + "revision": { + "description": "revision is the commit hash for the specified revision.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "repository" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/gitrepovolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/glusterfspersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/glusterfspersistentvolumesource-v1.json new file mode 100644 index 00000000..4c59ebc8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/glusterfspersistentvolumesource-v1.json @@ -0,0 +1,41 @@ +{ + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "string", + "null" + ] + }, + "endpointsNamespace": { + "description": "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "endpoints", + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/glusterfspersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/glusterfsvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/glusterfsvolumesource-v1.json new file mode 100644 index 00000000..37e6803c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/glusterfsvolumesource-v1.json @@ -0,0 +1,34 @@ +{ + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "endpoints", + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/glusterfsvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupsubject-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupsubject-flowcontrol-v1.json new file mode 100644 index 00000000..354e3645 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupsubject-flowcontrol-v1.json @@ -0,0 +1,19 @@ +{ + "description": "GroupSubject holds detailed information for group-kind subject.", + "properties": { + "name": { + "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/groupsubject/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupsubject-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupsubject-flowcontrol-v1beta3.json new file mode 100644 index 00000000..774cec8d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupsubject-flowcontrol-v1beta3.json @@ -0,0 +1,19 @@ +{ + "description": "GroupSubject holds detailed information for group-kind subject.", + "properties": { + "name": { + "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/groupsubject/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupversionfordiscovery-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupversionfordiscovery-meta-v1.json new file mode 100644 index 00000000..b7908086 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupversionfordiscovery-meta-v1.json @@ -0,0 +1,27 @@ +{ + "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "properties": { + "groupVersion": { + "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "groupVersion", + "version" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/groupversionfordiscovery/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupversionresource-storagemigration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupversionresource-storagemigration-v1alpha1.json new file mode 100644 index 00000000..7a9a871d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/groupversionresource-storagemigration-v1alpha1.json @@ -0,0 +1,30 @@ +{ + "description": "The names of the group, the version, and the resource.", + "properties": { + "group": { + "description": "The name of the group.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "The name of the resource.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "The name of the version.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/groupversionresource/storagemigration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/grpcaction-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/grpcaction-v1.json new file mode 100644 index 00000000..7539f1f7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/grpcaction-v1.json @@ -0,0 +1,26 @@ +{ + "properties": { + "port": { + "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "service": { + "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/grpcaction/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscaler-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscaler-autoscaling-v1.json new file mode 100644 index 00000000..cda13d70 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscaler-autoscaling-v1.json @@ -0,0 +1,48 @@ +{ + "description": "configuration of a horizontal pod autoscaler.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscaler" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec", + "description": "spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/horizontalpodautoscaler/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscaler-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscaler-autoscaling-v2.json new file mode 100644 index 00000000..4796fc04 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscaler-autoscaling-v2.json @@ -0,0 +1,48 @@ +{ + "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v2" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscaler" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec", + "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/horizontalpodautoscaler/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerbehavior-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerbehavior-autoscaling-v2.json new file mode 100644 index 00000000..d79c7b5a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerbehavior-autoscaling-v2.json @@ -0,0 +1,17 @@ +{ + "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", + "properties": { + "scaleDown": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HPAScalingRules", + "description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)." + }, + "scaleUp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HPAScalingRules", + "description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/horizontalpodautoscalerbehavior/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalercondition-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalercondition-autoscaling-v2.json new file mode 100644 index 00000000..ea385a27 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalercondition-autoscaling-v2.json @@ -0,0 +1,45 @@ +{ + "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the last time the condition transitioned from one status to another" + }, + "message": { + "description": "message is a human-readable explanation containing details about the transition", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is the reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status is the status of the condition (True, False, Unknown)", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type describes the current condition", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/horizontalpodautoscalercondition/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerlist-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerlist-autoscaling-v1.json new file mode 100644 index 00000000..f70f66e0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerlist-autoscaling-v1.json @@ -0,0 +1,53 @@ +{ + "description": "list of horizontal pod autoscaler objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v1" + ] + }, + "items": { + "description": "items is the list of horizontal pod autoscaler objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscalerList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/horizontalpodautoscalerlist/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerlist-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerlist-autoscaling-v2.json new file mode 100644 index 00000000..36b55251 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerlist-autoscaling-v2.json @@ -0,0 +1,53 @@ +{ + "description": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v2" + ] + }, + "items": { + "description": "items is the list of horizontal pod autoscaler objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscalerList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata is the standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", + "version": "v2" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/horizontalpodautoscalerlist/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerspec-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerspec-autoscaling-v1.json new file mode 100644 index 00000000..bcf42b80 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerspec-autoscaling-v1.json @@ -0,0 +1,41 @@ +{ + "description": "specification of a horizontal pod autoscaler.", + "properties": { + "maxReplicas": { + "description": "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "scaleTargetRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.CrossVersionObjectReference", + "description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource." + }, + "targetCPUUtilizationPercentage": { + "description": "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "scaleTargetRef", + "maxReplicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/horizontalpodautoscalerspec/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerspec-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerspec-autoscaling-v2.json new file mode 100644 index 00000000..fd87b29e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerspec-autoscaling-v2.json @@ -0,0 +1,48 @@ +{ + "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", + "properties": { + "behavior": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior", + "description": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used." + }, + "maxReplicas": { + "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "metrics": { + "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricSpec" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "scaleTargetRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." + } + }, + "required": [ + "scaleTargetRef", + "maxReplicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/horizontalpodautoscalerspec/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerstatus-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerstatus-autoscaling-v1.json new file mode 100644 index 00000000..373050e9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerstatus-autoscaling-v1.json @@ -0,0 +1,49 @@ +{ + "description": "current status of a horizontal pod autoscaler", + "properties": { + "currentCPUUtilizationPercentage": { + "description": "currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "currentReplicas": { + "description": "currentReplicas is the current number of replicas of pods managed by this autoscaler.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lastScaleTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed." + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "currentReplicas", + "desiredReplicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/horizontalpodautoscalerstatus/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerstatus-autoscaling-v2.json new file mode 100644 index 00000000..ff49e8c9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/horizontalpodautoscalerstatus-autoscaling-v2.json @@ -0,0 +1,67 @@ +{ + "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", + "properties": { + "conditions": { + "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentMetrics": { + "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "currentReplicas": { + "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lastScaleTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed." + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "desiredReplicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/horizontalpodautoscalerstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hostalias-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hostalias-v1.json new file mode 100644 index 00000000..a473640d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hostalias-v1.json @@ -0,0 +1,33 @@ +{ + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "properties": { + "hostnames": { + "description": "Hostnames for the above IP address.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ip": { + "description": "IP address of the host file entry.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "ip" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/hostalias/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hostip-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hostip-v1.json new file mode 100644 index 00000000..53869299 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hostip-v1.json @@ -0,0 +1,19 @@ +{ + "description": "HostIP represents a single IP address allocated to the host.", + "properties": { + "ip": { + "description": "IP is the IP address assigned to the host", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "ip" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/hostip/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hostpathvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hostpathvolumesource-v1.json new file mode 100644 index 00000000..389adfb4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hostpathvolumesource-v1.json @@ -0,0 +1,26 @@ +{ + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/hostpathvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hpascalingpolicy-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hpascalingpolicy-autoscaling-v2.json new file mode 100644 index 00000000..fbeca6e2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hpascalingpolicy-autoscaling-v2.json @@ -0,0 +1,37 @@ +{ + "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", + "properties": { + "periodSeconds": { + "description": "periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "type": { + "description": "type is used to specify the scaling policy.", + "type": [ + "string", + "null" + ] + }, + "value": { + "description": "value contains the amount of change which is permitted by the policy. It must be greater than zero", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "type", + "value", + "periodSeconds" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/hpascalingpolicy/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hpascalingrules-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hpascalingrules-autoscaling-v2.json new file mode 100644 index 00000000..e33ab094 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/hpascalingrules-autoscaling-v2.json @@ -0,0 +1,35 @@ +{ + "description": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.", + "properties": { + "policies": { + "description": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HPAScalingPolicy" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "selectPolicy": { + "description": "selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.", + "type": [ + "string", + "null" + ] + }, + "stabilizationWindowSeconds": { + "description": "stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/hpascalingrules/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpgetaction-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpgetaction-v1.json new file mode 100644 index 00000000..0bbe489d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpgetaction-v1.json @@ -0,0 +1,48 @@ +{ + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": [ + "string", + "null" + ] + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HTTPHeader" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": [ + "string", + "null" + ] + }, + "port": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/httpgetaction/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpheader-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpheader-v1.json new file mode 100644 index 00000000..457abd9f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpheader-v1.json @@ -0,0 +1,27 @@ +{ + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "properties": { + "name": { + "description": "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.", + "type": [ + "string", + "null" + ] + }, + "value": { + "description": "The header field value", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "value" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/httpheader/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpingresspath-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpingresspath-networking-v1.json new file mode 100644 index 00000000..44282350 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpingresspath-networking-v1.json @@ -0,0 +1,31 @@ +{ + "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", + "properties": { + "backend": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressBackend", + "description": "backend defines the referenced service endpoint to which the traffic will be forwarded to." + }, + "path": { + "description": "path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".", + "type": [ + "string", + "null" + ] + }, + "pathType": { + "description": "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "pathType", + "backend" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/httpingresspath/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpingressrulevalue-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpingressrulevalue-networking-v1.json new file mode 100644 index 00000000..9c356290 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/httpingressrulevalue-networking-v1.json @@ -0,0 +1,23 @@ +{ + "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", + "properties": { + "paths": { + "description": "paths is a collection of paths that map requests to backends.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.HTTPIngressPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "paths" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/httpingressrulevalue/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/imagevolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/imagevolumesource-v1.json new file mode 100644 index 00000000..5a8343b2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/imagevolumesource-v1.json @@ -0,0 +1,23 @@ +{ + "description": "ImageVolumeSource represents a image volume resource.", + "properties": { + "pullPolicy": { + "description": "Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.", + "type": [ + "string", + "null" + ] + }, + "reference": { + "description": "Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/imagevolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/info-pkg-version.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/info-pkg-version.json new file mode 100644 index 00000000..52a3cb33 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/info-pkg-version.json @@ -0,0 +1,74 @@ +{ + "description": "Info contains versioning information. how we'll want to distribute that information.", + "properties": { + "buildDate": { + "type": [ + "string", + "null" + ] + }, + "compiler": { + "type": [ + "string", + "null" + ] + }, + "gitCommit": { + "type": [ + "string", + "null" + ] + }, + "gitTreeState": { + "type": [ + "string", + "null" + ] + }, + "gitVersion": { + "type": [ + "string", + "null" + ] + }, + "goVersion": { + "type": [ + "string", + "null" + ] + }, + "major": { + "type": [ + "string", + "null" + ] + }, + "minor": { + "type": [ + "string", + "null" + ] + }, + "platform": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "major", + "minor", + "gitVersion", + "gitCommit", + "gitTreeState", + "buildDate", + "goVersion", + "compiler", + "platform" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/info/pkg/version" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingress-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingress-networking-v1.json new file mode 100644 index 00000000..40491c78 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingress-networking-v1.json @@ -0,0 +1,48 @@ +{ + "description": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Ingress" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressSpec", + "description": "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressStatus", + "description": "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingress/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressbackend-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressbackend-networking-v1.json new file mode 100644 index 00000000..3a63c740 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressbackend-networking-v1.json @@ -0,0 +1,17 @@ +{ + "description": "IngressBackend describes all endpoints for a given service and port.", + "properties": { + "resource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TypedLocalObjectReference", + "description": "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\"." + }, + "service": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressServiceBackend", + "description": "service references a service as a backend. This is a mutually exclusive setting with \"Resource\"." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingressbackend/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclass-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclass-networking-v1.json new file mode 100644 index 00000000..e3a354a2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclass-networking-v1.json @@ -0,0 +1,44 @@ +{ + "description": "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IngressClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClassSpec", + "description": "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingressclass/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclasslist-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclasslist-networking-v1.json new file mode 100644 index 00000000..5ace8d71 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclasslist-networking-v1.json @@ -0,0 +1,53 @@ +{ + "description": "IngressClassList is a collection of IngressClasses.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of IngressClasses.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IngressClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClassList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingressclasslist/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclassparametersreference-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclassparametersreference-networking-v1.json new file mode 100644 index 00000000..b66dd2bc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclassparametersreference-networking-v1.json @@ -0,0 +1,48 @@ +{ + "description": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", + "properties": { + "apiGroup": { + "description": "apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the type of resource being referenced.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the name of resource being referenced.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", + "type": [ + "string", + "null" + ] + }, + "scope": { + "description": "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingressclassparametersreference/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclassspec-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclassspec-networking-v1.json new file mode 100644 index 00000000..cf099ebe --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressclassspec-networking-v1.json @@ -0,0 +1,20 @@ +{ + "description": "IngressClassSpec provides information about the class of an Ingress.", + "properties": { + "controller": { + "description": "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "parameters": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClassParametersReference", + "description": "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingressclassspec/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingresslist-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingresslist-networking-v1.json new file mode 100644 index 00000000..3e313029 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingresslist-networking-v1.json @@ -0,0 +1,53 @@ +{ + "description": "IngressList is a collection of Ingress.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of Ingress.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.Ingress" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IngressList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingresslist/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressloadbalanceringress-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressloadbalanceringress-networking-v1.json new file mode 100644 index 00000000..c9991cda --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressloadbalanceringress-networking-v1.json @@ -0,0 +1,34 @@ +{ + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "properties": { + "hostname": { + "description": "hostname is set for load-balancer ingress points that are DNS based.", + "type": [ + "string", + "null" + ] + }, + "ip": { + "description": "ip is set for load-balancer ingress points that are IP based.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "ports provides information about the ports exposed by this LoadBalancer.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressPortStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingressloadbalanceringress/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressloadbalancerstatus-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressloadbalancerstatus-networking-v1.json new file mode 100644 index 00000000..e292adf2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressloadbalancerstatus-networking-v1.json @@ -0,0 +1,20 @@ +{ + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "ingress is a list containing ingress points for the load-balancer.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressLoadBalancerIngress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingressloadbalancerstatus/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressportstatus-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressportstatus-networking-v1.json new file mode 100644 index 00000000..a63a9943 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressportstatus-networking-v1.json @@ -0,0 +1,35 @@ +{ + "description": "IngressPortStatus represents the error condition of a service port", + "properties": { + "error": { + "description": "error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "port is the port number of the ingress port.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "protocol": { + "description": "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingressportstatus/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressrule-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressrule-networking-v1.json new file mode 100644 index 00000000..b62374b4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressrule-networking-v1.json @@ -0,0 +1,19 @@ +{ + "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", + "properties": { + "host": { + "description": "host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nhost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", + "type": [ + "string", + "null" + ] + }, + "http": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.HTTPIngressRuleValue" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingressrule/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressservicebackend-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressservicebackend-networking-v1.json new file mode 100644 index 00000000..3bc8f4cc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressservicebackend-networking-v1.json @@ -0,0 +1,23 @@ +{ + "description": "IngressServiceBackend references a Kubernetes Service as a Backend.", + "properties": { + "name": { + "description": "name is the referenced service. The service must exist in the same namespace as the Ingress object.", + "type": [ + "string", + "null" + ] + }, + "port": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.ServiceBackendPort", + "description": "port of the referenced service. A port name or port number is required for a IngressServiceBackend." + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingressservicebackend/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressspec-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressspec-networking-v1.json new file mode 100644 index 00000000..fb041189 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressspec-networking-v1.json @@ -0,0 +1,42 @@ +{ + "description": "IngressSpec describes the Ingress the user wishes to exist.", + "properties": { + "defaultBackend": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressBackend", + "description": "defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." + }, + "ingressClassName": { + "description": "ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.", + "type": [ + "string", + "null" + ] + }, + "rules": { + "description": "rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "tls": { + "description": "tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressTLS" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingressspec/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressstatus-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressstatus-networking-v1.json new file mode 100644 index 00000000..5af00980 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingressstatus-networking-v1.json @@ -0,0 +1,13 @@ +{ + "description": "IngressStatus describe the current state of the Ingress.", + "properties": { + "loadBalancer": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressLoadBalancerStatus", + "description": "loadBalancer contains the current status of the load-balancer." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingressstatus/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingresstls-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingresstls-networking-v1.json new file mode 100644 index 00000000..cd3ecae3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ingresstls-networking-v1.json @@ -0,0 +1,30 @@ +{ + "description": "IngressTLS describes the transport layer security associated with an ingress.", + "properties": { + "hosts": { + "description": "hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "secretName": { + "description": "secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the \"Host\" header is used for routing.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ingresstls/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/intorstring-util-intstr.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/intorstring-util-intstr.json new file mode 100644 index 00000000..572af1a4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/intorstring-util-intstr.json @@ -0,0 +1,14 @@ +{ + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/intorstring/util/intstr" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipaddress-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipaddress-networking-v1beta1.json new file mode 100644 index 00000000..7b90743a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipaddress-networking-v1beta1.json @@ -0,0 +1,44 @@ +{ + "description": "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IPAddress" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.IPAddressSpec", + "description": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ipaddress/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipaddresslist-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipaddresslist-networking-v1beta1.json new file mode 100644 index 00000000..4e8ed24e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipaddresslist-networking-v1beta1.json @@ -0,0 +1,53 @@ +{ + "description": "IPAddressList contains a list of IPAddress.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "items": { + "description": "items is the list of IPAddresses.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.IPAddress" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IPAddressList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddressList", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ipaddresslist/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipaddressspec-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipaddressspec-networking-v1beta1.json new file mode 100644 index 00000000..a57dde33 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipaddressspec-networking-v1beta1.json @@ -0,0 +1,16 @@ +{ + "description": "IPAddressSpec describe the attributes in an IP Address.", + "properties": { + "parentRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ParentReference", + "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." + } + }, + "required": [ + "parentRef" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ipaddressspec/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipblock-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipblock-networking-v1.json new file mode 100644 index 00000000..0294b4dd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ipblock-networking-v1.json @@ -0,0 +1,33 @@ +{ + "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + "properties": { + "cidr": { + "description": "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", + "type": [ + "string", + "null" + ] + }, + "except": { + "description": "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "cidr" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ipblock/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/iscsipersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/iscsipersistentvolumesource-v1.json new file mode 100644 index 00000000..965437a9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/iscsipersistentvolumesource-v1.json @@ -0,0 +1,96 @@ +{ + "description": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": [ + "string", + "null" + ] + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": [ + "string", + "null" + ] + }, + "iqn": { + "description": "iqn is Target iSCSI Qualified Name.", + "type": [ + "string", + "null" + ] + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": [ + "string", + "null" + ] + }, + "lun": { + "description": "lun is iSCSI Target Lun number.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/iscsipersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/iscsivolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/iscsivolumesource-v1.json new file mode 100644 index 00000000..05181bdb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/iscsivolumesource-v1.json @@ -0,0 +1,96 @@ +{ + "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": [ + "string", + "null" + ] + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": [ + "string", + "null" + ] + }, + "iqn": { + "description": "iqn is the target iSCSI Qualified Name.", + "type": [ + "string", + "null" + ] + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": [ + "string", + "null" + ] + }, + "lun": { + "description": "lun represents iSCSI Target Lun number.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/iscsivolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/job-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/job-batch-v1.json new file mode 100644 index 00000000..0922fc22 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/job-batch-v1.json @@ -0,0 +1,48 @@ +{ + "description": "Job represents the configuration of a single job.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Job" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobSpec", + "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobStatus", + "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "Job", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/job/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobcondition-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobcondition-batch-v1.json new file mode 100644 index 00000000..0e36a4be --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobcondition-batch-v1.json @@ -0,0 +1,49 @@ +{ + "description": "JobCondition describes current state of a job.", + "properties": { + "lastProbeTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition was checked." + }, + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transit from one status to another." + }, + "message": { + "description": "Human readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of job condition, Complete or Failed.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/jobcondition/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/joblist-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/joblist-batch-v1.json new file mode 100644 index 00000000..54ed27af --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/joblist-batch-v1.json @@ -0,0 +1,53 @@ +{ + "description": "JobList is a collection of jobs.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "items": { + "description": "items is the list of Jobs.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.Job" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "JobList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "JobList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/joblist/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobspec-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobspec-batch-v1.json new file mode 100644 index 00000000..34a27fe5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobspec-batch-v1.json @@ -0,0 +1,119 @@ +{ + "description": "JobSpec describes how the job execution will look like.", + "properties": { + "activeDeadlineSeconds": { + "description": "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "backoffLimit": { + "description": "Specifies the number of retries before marking this job failed. Defaults to 6", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "backoffLimitPerIndex": { + "description": "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "completionMode": { + "description": "completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.", + "type": [ + "string", + "null" + ] + }, + "completions": { + "description": "Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "managedBy": { + "description": "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.\n\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).", + "type": [ + "string", + "null" + ] + }, + "manualSelector": { + "description": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector", + "type": [ + "boolean", + "null" + ] + }, + "maxFailedIndexes": { + "description": "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "parallelism": { + "description": "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "podFailurePolicy": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicy", + "description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure." + }, + "podReplacementPolicy": { + "description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "successPolicy": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.SuccessPolicy", + "description": "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.\n\nThis field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default)." + }, + "suspend": { + "description": "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are \"Never\" or \"OnFailure\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/" + }, + "ttlSecondsAfterFinished": { + "description": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "template" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/jobspec/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobstatus-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobstatus-batch-v1.json new file mode 100644 index 00000000..143f456f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobstatus-batch-v1.json @@ -0,0 +1,88 @@ +{ + "description": "JobStatus represents the current state of a Job.", + "properties": { + "active": { + "description": "The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "completedIndexes": { + "description": "completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", + "type": [ + "string", + "null" + ] + }, + "completionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field." + }, + "conditions": { + "description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true.\n\nA job is considered finished when it is in a terminal condition, either \"Complete\" or \"Failed\". A Job cannot have both the \"Complete\" and \"Failed\" conditions. Additionally, it cannot be in the \"Complete\" and \"FailureTarget\" conditions. The \"Complete\", \"Failed\" and \"FailureTarget\" conditions cannot be disabled.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "failed": { + "description": "The number of pods which reached phase Failed. The value increases monotonically.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "failedIndexes": { + "description": "FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes.\n\nThis field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "type": [ + "string", + "null" + ] + }, + "ready": { + "description": "The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "startTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.\n\nOnce set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished." + }, + "succeeded": { + "description": "The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "terminating": { + "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "uncountedTerminatedPods": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.UncountedTerminatedPods", + "description": "uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/jobstatus/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobtemplatespec-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobtemplatespec-batch-v1.json new file mode 100644 index 00000000..57cd6f24 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jobtemplatespec-batch-v1.json @@ -0,0 +1,17 @@ +{ + "description": "JobTemplateSpec describes the data a Job should have when created from a template", + "properties": { + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobSpec", + "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/jobtemplatespec/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/json-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/json-apiextensions-v1.json new file mode 100644 index 00000000..d9d00272 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/json-apiextensions-v1.json @@ -0,0 +1,7 @@ +{ + "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/json/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemaprops-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemaprops-apiextensions-v1.json new file mode 100644 index 00000000..d0350e2d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemaprops-apiextensions-v1.json @@ -0,0 +1,315 @@ +{ + "description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).", + "properties": { + "$ref": { + "type": [ + "string", + "null" + ] + }, + "$schema": { + "type": [ + "string", + "null" + ] + }, + "additionalItems": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" + }, + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" + }, + "allOf": { + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "anyOf": { + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "default": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON", + "description": "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false." + }, + "definitions": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "object", + "null" + ] + }, + "dependencies": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrStringArray" + }, + "type": [ + "object", + "null" + ] + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "enum": { + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "example": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" + }, + "exclusiveMaximum": { + "type": [ + "boolean", + "null" + ] + }, + "exclusiveMinimum": { + "type": [ + "boolean", + "null" + ] + }, + "externalDocs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation" + }, + "format": { + "description": "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like \"0321751043\" or \"978-0321751041\" - isbn10: an ISBN10 number string like \"0321751043\" - isbn13: an ISBN13 number string like \"978-0321751041\" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$ - hexcolor: an hexadecimal color code like \"#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like \"rgb(255,255,2559\" - byte: base64 encoded binary data - password: any kind of string - date: a date string like \"2006-01-02\" as defined by full-date in RFC3339 - duration: a duration string like \"22 ns\" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like \"2014-12-15T19:30:20.000Z\" as defined by date-time in RFC3339.", + "type": [ + "string", + "null" + ] + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrArray" + }, + "maxItems": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "maxLength": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "maxProperties": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "maximum": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "minItems": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "minLength": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "minProperties": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "minimum": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "multipleOf": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "not": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "nullable": { + "type": [ + "boolean", + "null" + ] + }, + "oneOf": { + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "pattern": { + "type": [ + "string", + "null" + ] + }, + "patternProperties": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "object", + "null" + ] + }, + "properties": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "object", + "null" + ] + }, + "required": { + "items": { + "type": "string" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "type": { + "type": [ + "string", + "null" + ] + }, + "uniqueItems": { + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-embedded-resource": { + "description": "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).", + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-int-or-string": { + "description": "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-list-map-keys": { + "description": "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.\n\nThis tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.", + "items": { + "type": "string" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "x-kubernetes-list-type": { + "description": "x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.", + "type": [ + "string", + "null" + ] + }, + "x-kubernetes-map-type": { + "description": "x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.", + "type": [ + "string", + "null" + ] + }, + "x-kubernetes-preserve-unknown-fields": { + "description": "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.", + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-validations": { + "description": "x-kubernetes-validations describes a list of validation rules written in the CEL expression language.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "rule" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "rule", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/jsonschemaprops/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemapropsorarray-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemapropsorarray-apiextensions-v1.json new file mode 100644 index 00000000..46bd94a1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemapropsorarray-apiextensions-v1.json @@ -0,0 +1,7 @@ +{ + "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/jsonschemapropsorarray/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemapropsorbool-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemapropsorbool-apiextensions-v1.json new file mode 100644 index 00000000..975a2e49 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemapropsorbool-apiextensions-v1.json @@ -0,0 +1,7 @@ +{ + "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/jsonschemapropsorbool/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemapropsorstringarray-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemapropsorstringarray-apiextensions-v1.json new file mode 100644 index 00000000..0166d547 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/jsonschemapropsorstringarray-apiextensions-v1.json @@ -0,0 +1,7 @@ +{ + "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/jsonschemapropsorstringarray/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/keytopath-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/keytopath-v1.json new file mode 100644 index 00000000..e466ff39 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/keytopath-v1.json @@ -0,0 +1,35 @@ +{ + "description": "Maps a string key to a path within a volume.", + "properties": { + "key": { + "description": "key is the key to project.", + "type": [ + "string", + "null" + ] + }, + "mode": { + "description": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "path": { + "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "key", + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/keytopath/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/labelselector-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/labelselector-meta-v1.json new file mode 100644 index 00000000..996abae9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/labelselector-meta-v1.json @@ -0,0 +1,34 @@ +{ + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": [ + "object", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/labelselector/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/labelselectorattributes-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/labelselectorattributes-authorization-v1.json new file mode 100644 index 00000000..1d1500d9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/labelselectorattributes-authorization-v1.json @@ -0,0 +1,27 @@ +{ + "description": "LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.", + "properties": { + "rawSelector": { + "description": "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.", + "type": [ + "string", + "null" + ] + }, + "requirements": { + "description": "requirements is the parsed interpretation of a label selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/labelselectorattributes/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/labelselectorrequirement-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/labelselectorrequirement-meta-v1.json new file mode 100644 index 00000000..2953c41a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/labelselectorrequirement-meta-v1.json @@ -0,0 +1,41 @@ +{ + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": [ + "string", + "null" + ] + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/labelselectorrequirement/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/lease-coordination-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/lease-coordination-v1.json new file mode 100644 index 00000000..d9e2a165 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/lease-coordination-v1.json @@ -0,0 +1,44 @@ +{ + "description": "Lease defines a lease concept.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Lease" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1.LeaseSpec", + "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/lease/coordination/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasecandidate-coordination-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasecandidate-coordination-v1alpha1.json new file mode 100644 index 00000000..66162a96 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasecandidate-coordination-v1alpha1.json @@ -0,0 +1,44 @@ +{ + "description": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LeaseCandidate" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidateSpec", + "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/leasecandidate/coordination/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasecandidatelist-coordination-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasecandidatelist-coordination-v1alpha1.json new file mode 100644 index 00000000..eed8ff1b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasecandidatelist-coordination-v1alpha1.json @@ -0,0 +1,53 @@ +{ + "description": "LeaseCandidateList is a list of Lease objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidate" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LeaseCandidateList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidateList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/leasecandidatelist/coordination/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasecandidatespec-coordination-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasecandidatespec-coordination-v1alpha1.json new file mode 100644 index 00000000..bfcdf6f4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasecandidatespec-coordination-v1alpha1.json @@ -0,0 +1,56 @@ +{ + "description": "LeaseCandidateSpec is a specification of a Lease.", + "properties": { + "binaryVersion": { + "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is \"OldestEmulationVersion\"", + "type": [ + "string", + "null" + ] + }, + "emulationVersion": { + "description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + "type": [ + "string", + "null" + ] + }, + "leaseName": { + "description": "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "pingTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime." + }, + "preferredStrategies": { + "description": "PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y\n will be used.\n- If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader\n election will not operate the Lease until resolved.\n(Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "renewTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates." + } + }, + "required": [ + "leaseName", + "preferredStrategies" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/leasecandidatespec/coordination/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leaselist-coordination-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leaselist-coordination-v1.json new file mode 100644 index 00000000..0091faba --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leaselist-coordination-v1.json @@ -0,0 +1,53 @@ +{ + "description": "LeaseList is a list of Lease objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1.Lease" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LeaseList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/leaselist/coordination/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasespec-coordination-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasespec-coordination-v1.json new file mode 100644 index 00000000..d9b9222e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/leasespec-coordination-v1.json @@ -0,0 +1,54 @@ +{ + "description": "LeaseSpec is a specification of a Lease.", + "properties": { + "acquireTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "acquireTime is a time when the current lease was acquired." + }, + "holderIdentity": { + "description": "holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.", + "type": [ + "string", + "null" + ] + }, + "leaseDurationSeconds": { + "description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "leaseTransitions": { + "description": "leaseTransitions is the number of transitions of a lease between holders.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "preferredHolder": { + "description": "PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.", + "type": [ + "string", + "null" + ] + }, + "renewTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "renewTime is a time when the current holder of a lease has last updated the lease." + }, + "strategy": { + "description": "Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/leasespec/coordination/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/lifecycle-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/lifecycle-v1.json new file mode 100644 index 00000000..27abb9f2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/lifecycle-v1.json @@ -0,0 +1,17 @@ +{ + "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "properties": { + "postStart": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LifecycleHandler", + "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + }, + "preStop": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LifecycleHandler", + "description": "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/lifecycle/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/lifecyclehandler-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/lifecyclehandler-v1.json new file mode 100644 index 00000000..134271b1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/lifecyclehandler-v1.json @@ -0,0 +1,25 @@ +{ + "description": "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.", + "properties": { + "exec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ExecAction", + "description": "Exec specifies the action to take." + }, + "httpGet": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." + }, + "sleep": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SleepAction", + "description": "Sleep represents the duration that the container should sleep before being terminated." + }, + "tcpSocket": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TCPSocketAction", + "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/lifecyclehandler/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitedprioritylevelconfiguration-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitedprioritylevelconfiguration-flowcontrol-v1.json new file mode 100644 index 00000000..20b2a794 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitedprioritylevelconfiguration-flowcontrol-v1.json @@ -0,0 +1,37 @@ +{ + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "properties": { + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "limitResponse": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level.\n\nIf not specified, this field defaults to a value of 30.\n\nSetting this field to zero supports the construction of a \"jail\" for this priority level that is used to hold some request(s)", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/limitedprioritylevelconfiguration/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitedprioritylevelconfiguration-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitedprioritylevelconfiguration-flowcontrol-v1beta3.json new file mode 100644 index 00000000..1e4a27a3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitedprioritylevelconfiguration-flowcontrol-v1beta3.json @@ -0,0 +1,37 @@ +{ + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "properties": { + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "limitResponse": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/limitedprioritylevelconfiguration/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrange-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrange-v1.json new file mode 100644 index 00000000..bb2bf8ce --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrange-v1.json @@ -0,0 +1,44 @@ +{ + "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LimitRange" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRangeSpec", + "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/limitrange/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrangeitem-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrangeitem-v1.json new file mode 100644 index 00000000..1e4c69f5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrangeitem-v1.json @@ -0,0 +1,69 @@ +{ + "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "properties": { + "default": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Default resource requirement limit value by resource name if resource limit is omitted.", + "type": [ + "object", + "null" + ] + }, + "defaultRequest": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", + "type": [ + "object", + "null" + ] + }, + "max": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Max usage constraints on this kind by resource name.", + "type": [ + "object", + "null" + ] + }, + "maxLimitRequestRatio": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", + "type": [ + "object", + "null" + ] + }, + "min": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Min usage constraints on this kind by resource name.", + "type": [ + "object", + "null" + ] + }, + "type": { + "description": "Type of resource that this limit applies to.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/limitrangeitem/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrangelist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrangelist-v1.json new file mode 100644 index 00000000..65ca9200 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrangelist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "LimitRangeList is a list of LimitRange items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRange" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LimitRangeList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "LimitRangeList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/limitrangelist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrangespec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrangespec-v1.json new file mode 100644 index 00000000..3e465846 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitrangespec-v1.json @@ -0,0 +1,23 @@ +{ + "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", + "properties": { + "limits": { + "description": "Limits is the list of LimitRangeItem objects that are enforced.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRangeItem" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "limits" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/limitrangespec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitresponse-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitresponse-flowcontrol-v1.json new file mode 100644 index 00000000..5434c82e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitresponse-flowcontrol-v1.json @@ -0,0 +1,31 @@ +{ + "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "properties": { + "queuing": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + }, + "type": { + "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "queuing": "Queuing" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/limitresponse/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitresponse-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitresponse-flowcontrol-v1beta3.json new file mode 100644 index 00000000..52ba998b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/limitresponse-flowcontrol-v1beta3.json @@ -0,0 +1,31 @@ +{ + "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "properties": { + "queuing": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + }, + "type": { + "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "queuing": "Queuing" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/limitresponse/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/linuxcontaineruser-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/linuxcontaineruser-v1.json new file mode 100644 index 00000000..12aa36af --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/linuxcontaineruser-v1.json @@ -0,0 +1,44 @@ +{ + "description": "LinuxContainerUser represents user identity information in Linux containers", + "properties": { + "gid": { + "description": "GID is the primary gid initially attached to the first process in the container", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "supplementalGroups": { + "description": "SupplementalGroups are the supplemental groups initially attached to the first process in the container", + "items": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "uid": { + "description": "UID is the primary uid initially attached to the first process in the container", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "uid", + "gid" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/linuxcontaineruser/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/listmeta-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/listmeta-meta-v1.json new file mode 100644 index 00000000..d545ab11 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/listmeta-meta-v1.json @@ -0,0 +1,38 @@ +{ + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "properties": { + "continue": { + "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", + "type": [ + "string", + "null" + ] + }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "resourceVersion": { + "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": [ + "string", + "null" + ] + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/listmeta/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/loadbalanceringress-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/loadbalanceringress-v1.json new file mode 100644 index 00000000..4ef9b3f3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/loadbalanceringress-v1.json @@ -0,0 +1,41 @@ +{ + "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", + "properties": { + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", + "type": [ + "string", + "null" + ] + }, + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", + "type": [ + "string", + "null" + ] + }, + "ipMode": { + "description": "IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PortStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/loadbalanceringress/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/loadbalancerstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/loadbalancerstatus-v1.json new file mode 100644 index 00000000..794066c1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/loadbalancerstatus-v1.json @@ -0,0 +1,20 @@ +{ + "description": "LoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LoadBalancerIngress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/loadbalancerstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/localobjectreference-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/localobjectreference-v1.json new file mode 100644 index 00000000..3bb0eef5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/localobjectreference-v1.json @@ -0,0 +1,17 @@ +{ + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/localobjectreference/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/localsubjectaccessreview-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/localsubjectaccessreview-authorization-v1.json new file mode 100644 index 00000000..7c37b155 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/localsubjectaccessreview-authorization-v1.json @@ -0,0 +1,51 @@ +{ + "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LocalSubjectAccessReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "LocalSubjectAccessReview", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/localsubjectaccessreview/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/localvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/localvolumesource-v1.json new file mode 100644 index 00000000..0691362b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/localvolumesource-v1.json @@ -0,0 +1,26 @@ +{ + "description": "Local represents directly-attached storage with node affinity (Beta feature)", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/localvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/managedfieldsentry-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/managedfieldsentry-meta-v1.json new file mode 100644 index 00000000..3fb9e6d8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/managedfieldsentry-meta-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", + "type": [ + "string", + "null" + ] + }, + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "type": [ + "string", + "null" + ] + }, + "fieldsV1": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1", + "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type." + }, + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", + "type": [ + "string", + "null" + ] + }, + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "type": [ + "string", + "null" + ] + }, + "subresource": { + "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", + "type": [ + "string", + "null" + ] + }, + "time": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/managedfieldsentry/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchcondition-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchcondition-admissionregistration-v1.json new file mode 100644 index 00000000..d7930508 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchcondition-admissionregistration-v1.json @@ -0,0 +1,27 @@ +{ + "description": "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/matchcondition/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchcondition-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchcondition-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..94b08346 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchcondition-admissionregistration-v1alpha1.json @@ -0,0 +1,26 @@ +{ + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/matchcondition/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchcondition-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchcondition-admissionregistration-v1beta1.json new file mode 100644 index 00000000..36703df1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchcondition-admissionregistration-v1beta1.json @@ -0,0 +1,27 @@ +{ + "description": "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/matchcondition/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchresources-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchresources-admissionregistration-v1.json new file mode 100644 index 00000000..d7be6c98 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchresources-admissionregistration-v1.json @@ -0,0 +1,47 @@ +{ + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/matchresources/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchresources-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchresources-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..3d32f5f8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchresources-admissionregistration-v1alpha1.json @@ -0,0 +1,47 @@ +{ + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/matchresources/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchresources-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchresources-admissionregistration-v1beta1.json new file mode 100644 index 00000000..8aff33fc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/matchresources-admissionregistration-v1beta1.json @@ -0,0 +1,47 @@ +{ + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/matchresources/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricidentifier-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricidentifier-autoscaling-v2.json new file mode 100644 index 00000000..bb4210ad --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricidentifier-autoscaling-v2.json @@ -0,0 +1,23 @@ +{ + "description": "MetricIdentifier defines the name and optionally selector for a metric", + "properties": { + "name": { + "description": "name is the name of the given metric", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/metricidentifier/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricspec-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricspec-autoscaling-v2.json new file mode 100644 index 00000000..ed97bf99 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricspec-autoscaling-v2.json @@ -0,0 +1,39 @@ +{ + "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", + "properties": { + "containerResource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ContainerResourceMetricSource", + "description": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." + }, + "external": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ExternalMetricSource", + "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." + }, + "object": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ObjectMetricSource", + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." + }, + "pods": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.PodsMetricSource", + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + }, + "resource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ResourceMetricSource", + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "type": { + "description": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/metricspec/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricstatus-autoscaling-v2.json new file mode 100644 index 00000000..f6e4f658 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricstatus-autoscaling-v2.json @@ -0,0 +1,39 @@ +{ + "description": "MetricStatus describes the last-read state of a single metric.", + "properties": { + "containerResource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus", + "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "external": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ExternalMetricStatus", + "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." + }, + "object": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ObjectMetricStatus", + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." + }, + "pods": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.PodsMetricStatus", + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + }, + "resource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ResourceMetricStatus", + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "type": { + "description": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/metricstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metrictarget-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metrictarget-autoscaling-v2.json new file mode 100644 index 00000000..cfe97255 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metrictarget-autoscaling-v2.json @@ -0,0 +1,35 @@ +{ + "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric", + "properties": { + "averageUtilization": { + "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "averageValue": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)" + }, + "type": { + "description": "type represents whether the metric type is Utilization, Value, or AverageValue", + "type": [ + "string", + "null" + ] + }, + "value": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "value is the target value of the metric (as a quantity)." + } + }, + "required": [ + "type" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/metrictarget/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricvaluestatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricvaluestatus-autoscaling-v2.json new file mode 100644 index 00000000..fdfaa8a8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/metricvaluestatus-autoscaling-v2.json @@ -0,0 +1,25 @@ +{ + "description": "MetricValueStatus holds the current value for a metric", + "properties": { + "averageUtilization": { + "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "averageValue": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" + }, + "value": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "value is the current value of the metric (as a quantity)." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/metricvaluestatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/microtime-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/microtime-meta-v1.json new file mode 100644 index 00000000..2466ec7f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/microtime-meta-v1.json @@ -0,0 +1,8 @@ +{ + "description": "MicroTime is version of Time with microsecond level precision.", + "format": "date-time", + "type": "string", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/microtime/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/migrationcondition-storagemigration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/migrationcondition-storagemigration-v1alpha1.json new file mode 100644 index 00000000..c76831b9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/migrationcondition-storagemigration-v1alpha1.json @@ -0,0 +1,45 @@ +{ + "description": "Describes the state of a migration at a certain point.", + "properties": { + "lastUpdateTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time this condition was updated." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of the condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/migrationcondition/storagemigration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/modifyvolumestatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/modifyvolumestatus-v1.json new file mode 100644 index 00000000..a4a43bb1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/modifyvolumestatus-v1.json @@ -0,0 +1,26 @@ +{ + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation", + "properties": { + "status": { + "description": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.", + "type": [ + "string", + "null" + ] + }, + "targetVolumeAttributesClassName": { + "description": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/modifyvolumestatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/mutatingwebhook-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/mutatingwebhook-admissionregistration-v1.json new file mode 100644 index 00000000..919d631e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/mutatingwebhook-admissionregistration-v1.json @@ -0,0 +1,111 @@ +{ + "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "clientConfig": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "reinvocationPolicy": { + "description": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", + "type": [ + "string", + "null" + ] + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.RuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "sideEffects": { + "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", + "type": [ + "string", + "null" + ] + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/mutatingwebhook/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/mutatingwebhookconfiguration-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/mutatingwebhookconfiguration-admissionregistration-v1.json new file mode 100644 index 00000000..f37ec488 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/mutatingwebhookconfiguration-admissionregistration-v1.json @@ -0,0 +1,56 @@ +{ + "description": "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "MutatingWebhookConfiguration" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "webhooks": { + "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhook" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/mutatingwebhookconfiguration/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/mutatingwebhookconfigurationlist-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/mutatingwebhookconfigurationlist-admissionregistration-v1.json new file mode 100644 index 00000000..c34aa10d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/mutatingwebhookconfigurationlist-admissionregistration-v1.json @@ -0,0 +1,53 @@ +{ + "description": "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of MutatingWebhookConfiguration.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "MutatingWebhookConfigurationList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfigurationList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/mutatingwebhookconfigurationlist/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namedrulewithoperations-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namedrulewithoperations-admissionregistration-v1.json new file mode 100644 index 00000000..4cd475a9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namedrulewithoperations-admissionregistration-v1.json @@ -0,0 +1,87 @@ +{ + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/namedrulewithoperations/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namedrulewithoperations-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namedrulewithoperations-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..c2be0f8f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namedrulewithoperations-admissionregistration-v1alpha1.json @@ -0,0 +1,87 @@ +{ + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/namedrulewithoperations/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namedrulewithoperations-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namedrulewithoperations-admissionregistration-v1beta1.json new file mode 100644 index 00000000..d0b4dcaa --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namedrulewithoperations-admissionregistration-v1beta1.json @@ -0,0 +1,87 @@ +{ + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/namedrulewithoperations/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespace-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespace-v1.json new file mode 100644 index 00000000..ebe6330a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespace-v1.json @@ -0,0 +1,48 @@ +{ + "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Namespace" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceSpec", + "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceStatus", + "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Namespace", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/namespace/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacecondition-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacecondition-v1.json new file mode 100644 index 00000000..4b805ece --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacecondition-v1.json @@ -0,0 +1,42 @@ +{ + "description": "NamespaceCondition contains details about state of namespace.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": [ + "string", + "null" + ] + }, + "reason": { + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of namespace controller condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/namespacecondition/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacelist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacelist-v1.json new file mode 100644 index 00000000..d1200f4f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacelist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "NamespaceList is a list of Namespaces.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Namespace" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NamespaceList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "NamespaceList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/namespacelist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacespec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacespec-v1.json new file mode 100644 index 00000000..615e9162 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacespec-v1.json @@ -0,0 +1,23 @@ +{ + "description": "NamespaceSpec describes the attributes on a Namespace.", + "properties": { + "finalizers": { + "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/namespacespec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacestatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacestatus-v1.json new file mode 100644 index 00000000..875a3e28 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/namespacestatus-v1.json @@ -0,0 +1,32 @@ +{ + "description": "NamespaceStatus is information about the current status of a Namespace.", + "properties": { + "conditions": { + "description": "Represents the latest available observations of a namespace's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "phase": { + "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/namespacestatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicy-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicy-networking-v1.json new file mode 100644 index 00000000..f4679bee --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicy-networking-v1.json @@ -0,0 +1,44 @@ +{ + "description": "NetworkPolicy describes what network traffic is allowed for a set of Pods", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NetworkPolicy" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicySpec", + "description": "spec represents the specification of the desired behavior for this NetworkPolicy." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/networkpolicy/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyegressrule-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyegressrule-networking-v1.json new file mode 100644 index 00000000..f15c5bf4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyegressrule-networking-v1.json @@ -0,0 +1,31 @@ +{ + "description": "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", + "properties": { + "ports": { + "description": "ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "to": { + "description": "to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyPeer" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/networkpolicyegressrule/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyingressrule-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyingressrule-networking-v1.json new file mode 100644 index 00000000..68d5c8d6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyingressrule-networking-v1.json @@ -0,0 +1,31 @@ +{ + "description": "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.", + "properties": { + "from": { + "description": "from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyPeer" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/networkpolicyingressrule/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicylist-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicylist-networking-v1.json new file mode 100644 index 00000000..b856593d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicylist-networking-v1.json @@ -0,0 +1,53 @@ +{ + "description": "NetworkPolicyList is a list of NetworkPolicy objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicy" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NetworkPolicyList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "NetworkPolicyList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/networkpolicylist/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicypeer-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicypeer-networking-v1.json new file mode 100644 index 00000000..250abfa4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicypeer-networking-v1.json @@ -0,0 +1,21 @@ +{ + "description": "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", + "properties": { + "ipBlock": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IPBlock", + "description": "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be." + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector." + }, + "podSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/networkpolicypeer/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyport-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyport-networking-v1.json new file mode 100644 index 00000000..52c46560 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyport-networking-v1.json @@ -0,0 +1,28 @@ +{ + "description": "NetworkPolicyPort describes a port to allow traffic on", + "properties": { + "endPort": { + "description": "endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "port": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched." + }, + "protocol": { + "description": "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/networkpolicyport/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyspec-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyspec-networking-v1.json new file mode 100644 index 00000000..02925bd1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/networkpolicyspec-networking-v1.json @@ -0,0 +1,52 @@ +{ + "description": "NetworkPolicySpec provides the specification of a NetworkPolicy", + "properties": { + "egress": { + "description": "egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyEgressRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ingress": { + "description": "ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyIngressRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "podSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace." + }, + "policyTypes": { + "description": "policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "podSelector" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/networkpolicyspec/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nfsvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nfsvolumesource-v1.json new file mode 100644 index 00000000..2af69100 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nfsvolumesource-v1.json @@ -0,0 +1,34 @@ +{ + "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": [ + "boolean", + "null" + ] + }, + "server": { + "description": "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "server", + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nfsvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/node-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/node-v1.json new file mode 100644 index 00000000..2c18eb4f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/node-v1.json @@ -0,0 +1,48 @@ +{ + "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Node" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSpec", + "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeStatus", + "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Node", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/node/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeaddress-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeaddress-v1.json new file mode 100644 index 00000000..e08209de --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeaddress-v1.json @@ -0,0 +1,27 @@ +{ + "description": "NodeAddress contains information for the node's address.", + "properties": { + "address": { + "description": "The node address.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "address" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodeaddress/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeaffinity-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeaffinity-v1.json new file mode 100644 index 00000000..f49d5a8d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeaffinity-v1.json @@ -0,0 +1,24 @@ +{ + "description": "Node affinity is a group of node affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PreferredSchedulingTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodeaffinity/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodecondition-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodecondition-v1.json new file mode 100644 index 00000000..a4376c83 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodecondition-v1.json @@ -0,0 +1,49 @@ +{ + "description": "NodeCondition contains condition information for a node.", + "properties": { + "lastHeartbeatTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time we got an update on a given condition." + }, + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transit from one status to another." + }, + "message": { + "description": "Human readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of node condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodecondition/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeconfigsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeconfigsource-v1.json new file mode 100644 index 00000000..be036784 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeconfigsource-v1.json @@ -0,0 +1,13 @@ +{ + "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", + "properties": { + "configMap": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapNodeConfigSource", + "description": "ConfigMap is a reference to a Node's ConfigMap" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodeconfigsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeconfigstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeconfigstatus-v1.json new file mode 100644 index 00000000..2b127326 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeconfigstatus-v1.json @@ -0,0 +1,28 @@ +{ + "description": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", + "properties": { + "active": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error." + }, + "assigned": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned." + }, + "error": { + "description": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", + "type": [ + "string", + "null" + ] + }, + "lastKnownGood": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodeconfigstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodedaemonendpoints-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodedaemonendpoints-v1.json new file mode 100644 index 00000000..7a6cf508 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodedaemonendpoints-v1.json @@ -0,0 +1,13 @@ +{ + "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", + "properties": { + "kubeletEndpoint": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DaemonEndpoint", + "description": "Endpoint on which Kubelet is listening." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodedaemonendpoints/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodefeatures-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodefeatures-v1.json new file mode 100644 index 00000000..23e9897f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodefeatures-v1.json @@ -0,0 +1,16 @@ +{ + "description": "NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.", + "properties": { + "supplementalGroupsPolicy": { + "description": "SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodefeatures/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodelist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodelist-v1.json new file mode 100644 index 00000000..75eea3eb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodelist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "NodeList is the whole list of all Nodes which have been registered with master.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of nodes", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Node" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NodeList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "NodeList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodelist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/noderuntimehandler-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/noderuntimehandler-v1.json new file mode 100644 index 00000000..6b813022 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/noderuntimehandler-v1.json @@ -0,0 +1,20 @@ +{ + "description": "NodeRuntimeHandler is a set of runtime handler information.", + "properties": { + "features": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeRuntimeHandlerFeatures", + "description": "Supported features." + }, + "name": { + "description": "Runtime handler name. Empty for the default runtime handler.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/noderuntimehandler/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/noderuntimehandlerfeatures-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/noderuntimehandlerfeatures-v1.json new file mode 100644 index 00000000..d782840c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/noderuntimehandlerfeatures-v1.json @@ -0,0 +1,23 @@ +{ + "description": "NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.", + "properties": { + "recursiveReadOnlyMounts": { + "description": "RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.", + "type": [ + "boolean", + "null" + ] + }, + "userNamespaces": { + "description": "UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/noderuntimehandlerfeatures/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeselector-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeselector-v1.json new file mode 100644 index 00000000..fccba7f4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeselector-v1.json @@ -0,0 +1,24 @@ +{ + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelectorTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "nodeSelectorTerms" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodeselector/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeselectorrequirement-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeselectorrequirement-v1.json new file mode 100644 index 00000000..2df06313 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeselectorrequirement-v1.json @@ -0,0 +1,41 @@ +{ + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": [ + "string", + "null" + ] + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodeselectorrequirement/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeselectorterm-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeselectorterm-v1.json new file mode 100644 index 00000000..50c4320f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodeselectorterm-v1.json @@ -0,0 +1,32 @@ +{ + "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodeselectorterm/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodespec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodespec-v1.json new file mode 100644 index 00000000..c886b3ec --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodespec-v1.json @@ -0,0 +1,67 @@ +{ + "description": "NodeSpec describes the attributes that a node is created with.", + "properties": { + "configSource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed." + }, + "externalID": { + "description": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", + "type": [ + "string", + "null" + ] + }, + "podCIDR": { + "description": "PodCIDR represents the pod IP range assigned to the node.", + "type": [ + "string", + "null" + ] + }, + "podCIDRs": { + "description": "podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" + }, + "providerID": { + "description": "ID of the node assigned by the cloud provider in the format: ://", + "type": [ + "string", + "null" + ] + }, + "taints": { + "description": "If specified, the node's taints.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Taint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "unschedulable": { + "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodespec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodestatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodestatus-v1.json new file mode 100644 index 00000000..801a446f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodestatus-v1.json @@ -0,0 +1,131 @@ +{ + "description": "NodeStatus is information about the current status of a node.", + "properties": { + "addresses": { + "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeAddress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "allocatable": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", + "type": [ + "object", + "null" + ] + }, + "capacity": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity", + "type": [ + "object", + "null" + ] + }, + "conditions": { + "description": "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "config": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigStatus", + "description": "Status of the config assigned to the node via the dynamic Kubelet config feature." + }, + "daemonEndpoints": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeDaemonEndpoints", + "description": "Endpoints of daemons running on the Node." + }, + "features": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeFeatures", + "description": "Features describes the set of features implemented by the CRI implementation." + }, + "images": { + "description": "List of container images on this node", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerImage" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nodeInfo": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSystemInfo", + "description": "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info" + }, + "phase": { + "description": "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.", + "type": [ + "string", + "null" + ] + }, + "runtimeHandlers": { + "description": "The available runtime handlers.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeRuntimeHandler" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "volumesAttached": { + "description": "List of volumes that are attached to the node.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AttachedVolume" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "volumesInUse": { + "description": "List of attachable volumes in use (mounted) by the node.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodestatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodesysteminfo-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodesysteminfo-v1.json new file mode 100644 index 00000000..33806992 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nodesysteminfo-v1.json @@ -0,0 +1,91 @@ +{ + "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", + "properties": { + "architecture": { + "description": "The Architecture reported by the node", + "type": [ + "string", + "null" + ] + }, + "bootID": { + "description": "Boot ID reported by the node.", + "type": [ + "string", + "null" + ] + }, + "containerRuntimeVersion": { + "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).", + "type": [ + "string", + "null" + ] + }, + "kernelVersion": { + "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", + "type": [ + "string", + "null" + ] + }, + "kubeProxyVersion": { + "description": "Deprecated: KubeProxy Version reported by the node.", + "type": [ + "string", + "null" + ] + }, + "kubeletVersion": { + "description": "Kubelet Version reported by the node.", + "type": [ + "string", + "null" + ] + }, + "machineID": { + "description": "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", + "type": [ + "string", + "null" + ] + }, + "operatingSystem": { + "description": "The Operating System reported by the node", + "type": [ + "string", + "null" + ] + }, + "osImage": { + "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", + "type": [ + "string", + "null" + ] + }, + "systemUUID": { + "description": "SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "machineID", + "systemUUID", + "bootID", + "kernelVersion", + "osImage", + "containerRuntimeVersion", + "kubeletVersion", + "kubeProxyVersion", + "operatingSystem", + "architecture" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nodesysteminfo/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourceattributes-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourceattributes-authorization-v1.json new file mode 100644 index 00000000..e7a0d520 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourceattributes-authorization-v1.json @@ -0,0 +1,23 @@ +{ + "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", + "properties": { + "path": { + "description": "Path is the URL path of the request", + "type": [ + "string", + "null" + ] + }, + "verb": { + "description": "Verb is the standard HTTP verb", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nonresourceattributes/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourcepolicyrule-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourcepolicyrule-flowcontrol-v1.json new file mode 100644 index 00000000..5e3f730a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourcepolicyrule-flowcontrol-v1.json @@ -0,0 +1,41 @@ +{ + "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", + "properties": { + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "nonResourceURLs" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nonresourcepolicyrule/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourcepolicyrule-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourcepolicyrule-flowcontrol-v1beta3.json new file mode 100644 index 00000000..4e655b1a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourcepolicyrule-flowcontrol-v1beta3.json @@ -0,0 +1,41 @@ +{ + "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", + "properties": { + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "nonResourceURLs" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nonresourcepolicyrule/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourcerule-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourcerule-authorization-v1.json new file mode 100644 index 00000000..224386c5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/nonresourcerule-authorization-v1.json @@ -0,0 +1,40 @@ +{ + "description": "NonResourceRule holds information that describes a rule for the non-resource", + "properties": { + "nonResourceURLs": { + "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/nonresourcerule/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectfieldselector-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectfieldselector-v1.json new file mode 100644 index 00000000..24a6e6af --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectfieldselector-v1.json @@ -0,0 +1,27 @@ +{ + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": [ + "string", + "null" + ] + }, + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "fieldPath" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/objectfieldselector/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectmeta-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectmeta-meta-v1.json new file mode 100644 index 00000000..1194689a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectmeta-meta-v1.json @@ -0,0 +1,143 @@ +{ + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "properties": { + "annotations": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations", + "type": [ + "object", + "null" + ] + }, + "creationTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "deletionTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" + }, + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "type": [ + "string", + "null" + ] + }, + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "labels": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels", + "type": [ + "object", + "null" + ] + }, + "managedFields": { + "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces", + "type": [ + "string", + "null" + ] + }, + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": [ + "string", + "null" + ] + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/objectmeta/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectmetricsource-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectmetricsource-autoscaling-v2.json new file mode 100644 index 00000000..48c7dd71 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectmetricsource-autoscaling-v2.json @@ -0,0 +1,26 @@ +{ + "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "properties": { + "describedObject": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "describedObject specifies the descriptions of a object,such as kind,name apiVersion" + }, + "metric": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "describedObject", + "target", + "metric" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/objectmetricsource/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectmetricstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectmetricstatus-autoscaling-v2.json new file mode 100644 index 00000000..6da54aaf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectmetricstatus-autoscaling-v2.json @@ -0,0 +1,26 @@ +{ + "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "properties": { + "current": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "describedObject": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "DescribedObject specifies the descriptions of a object,such as kind,name apiVersion" + }, + "metric": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current", + "describedObject" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/objectmetricstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectreference-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectreference-v1.json new file mode 100644 index 00000000..e7ad2522 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/objectreference-v1.json @@ -0,0 +1,59 @@ +{ + "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": [ + "string", + "null" + ] + }, + "fieldPath": { + "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "type": [ + "string", + "null" + ] + }, + "resourceVersion": { + "description": "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/objectreference/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/opaquedeviceconfiguration-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/opaquedeviceconfiguration-resource-v1alpha3.json new file mode 100644 index 00000000..7da579c5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/opaquedeviceconfiguration-resource-v1alpha3.json @@ -0,0 +1,24 @@ +{ + "description": "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.", + "properties": { + "driver": { + "description": "Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.\n\nAn admission policy provided by the driver developer could use this to decide whether it needs to validate them.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.", + "type": [ + "string", + "null" + ] + }, + "parameters": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version (\"kind\" + \"apiVersion\" for Kubernetes types), with conversion between different versions." + } + }, + "required": [ + "driver", + "parameters" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/opaquedeviceconfiguration/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/overhead-node-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/overhead-node-v1.json new file mode 100644 index 00000000..672dbaf3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/overhead-node-v1.json @@ -0,0 +1,19 @@ +{ + "description": "Overhead structure represents the resource overhead associated with running a pod.", + "properties": { + "podFixed": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "podFixed represents the fixed resource overhead associated with running a pod.", + "type": [ + "object", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/overhead/node/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ownerreference-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ownerreference-meta-v1.json new file mode 100644 index 00000000..9665e9b0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/ownerreference-meta-v1.json @@ -0,0 +1,58 @@ +{ + "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": [ + "string", + "null" + ] + }, + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": [ + "boolean", + "null" + ] + }, + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/ownerreference/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramkind-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramkind-admissionregistration-v1.json new file mode 100644 index 00000000..3852276c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramkind-admissionregistration-v1.json @@ -0,0 +1,24 @@ +{ + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/paramkind/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramkind-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramkind-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..51abc86f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramkind-admissionregistration-v1alpha1.json @@ -0,0 +1,24 @@ +{ + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/paramkind/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramkind-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramkind-admissionregistration-v1beta1.json new file mode 100644 index 00000000..09051b4f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramkind-admissionregistration-v1beta1.json @@ -0,0 +1,24 @@ +{ + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/paramkind/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramref-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramref-admissionregistration-v1.json new file mode 100644 index 00000000..9ad6d28d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramref-admissionregistration-v1.json @@ -0,0 +1,35 @@ +{ + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": [ + "string", + "null" + ] + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/paramref/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramref-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramref-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..686cf70c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramref-admissionregistration-v1alpha1.json @@ -0,0 +1,35 @@ +{ + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "`name` is the name of the resource being referenced.\n\n`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": [ + "string", + "null" + ] + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny` Default to `Deny`", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/paramref/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramref-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramref-admissionregistration-v1beta1.json new file mode 100644 index 00000000..1eb73556 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/paramref-admissionregistration-v1beta1.json @@ -0,0 +1,35 @@ +{ + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": [ + "string", + "null" + ] + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/paramref/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/parentreference-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/parentreference-networking-v1beta1.json new file mode 100644 index 00000000..3b96bbaa --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/parentreference-networking-v1beta1.json @@ -0,0 +1,41 @@ +{ + "description": "ParentReference describes a reference to a parent object.", + "properties": { + "group": { + "description": "Group is the group of the object being referenced.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of the object being referenced.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the namespace of the object being referenced.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "Resource is the resource of the object being referenced.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "resource", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/parentreference/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/patch-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/patch-meta-v1.json new file mode 100644 index 00000000..6b33ceda --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/patch-meta-v1.json @@ -0,0 +1,7 @@ +{ + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/patch/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolume-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolume-v1.json new file mode 100644 index 00000000..4ffe0bc5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolume-v1.json @@ -0,0 +1,48 @@ +{ + "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolume" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeStatus", + "description": "status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/persistentvolume/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaim-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaim-v1.json new file mode 100644 index 00000000..3656a073 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaim-v1.json @@ -0,0 +1,48 @@ +{ + "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolumeClaim" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimSpec", + "description": "spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimStatus", + "description": "status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/persistentvolumeclaim/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimcondition-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimcondition-v1.json new file mode 100644 index 00000000..f34adfb9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimcondition-v1.json @@ -0,0 +1,47 @@ +{ + "description": "PersistentVolumeClaimCondition contains details about state of pvc", + "properties": { + "lastProbeTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastProbeTime is the time we probed the condition." + }, + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the time the condition transitioned from one status to another." + }, + "message": { + "description": "message is the human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized.", + "type": [ + "string", + "null" + ] + }, + "status": { + "type": [ + "string", + "null" + ] + }, + "type": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/persistentvolumeclaimcondition/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimlist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimlist-v1.json new file mode 100644 index 00000000..b33efe7c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimlist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaim" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolumeClaimList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeClaimList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/persistentvolumeclaimlist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimspec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimspec-v1.json new file mode 100644 index 00000000..3cf4368c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimspec-v1.json @@ -0,0 +1,67 @@ +{ + "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", + "properties": { + "accessModes": { + "description": "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "dataSource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TypedLocalObjectReference", + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource." + }, + "dataSourceRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TypedObjectReference", + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." + }, + "resources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeResourceRequirements", + "description": "resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources" + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is a label query over volumes to consider for binding." + }, + "storageClassName": { + "description": "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", + "type": [ + "string", + "null" + ] + }, + "volumeAttributesClassName": { + "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", + "type": [ + "string", + "null" + ] + }, + "volumeMode": { + "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", + "type": [ + "string", + "null" + ] + }, + "volumeName": { + "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/persistentvolumeclaimspec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimstatus-v1.json new file mode 100644 index 00000000..8014c995 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimstatus-v1.json @@ -0,0 +1,91 @@ +{ + "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", + "properties": { + "accessModes": { + "description": "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "allocatedResourceStatuses": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "granular" + }, + "allocatedResources": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": [ + "object", + "null" + ] + }, + "capacity": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "capacity represents the actual resources of the underlying volume.", + "type": [ + "object", + "null" + ] + }, + "conditions": { + "description": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentVolumeAttributesClassName": { + "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + "type": [ + "string", + "null" + ] + }, + "modifyVolumeStatus": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ModifyVolumeStatus", + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default)." + }, + "phase": { + "description": "phase represents the current phase of PersistentVolumeClaim.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/persistentvolumeclaimstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimtemplate-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimtemplate-v1.json new file mode 100644 index 00000000..0875db54 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimtemplate-v1.json @@ -0,0 +1,20 @@ +{ + "description": "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", + "properties": { + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimSpec", + "description": "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here." + } + }, + "required": [ + "spec" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/persistentvolumeclaimtemplate/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimvolumesource-v1.json new file mode 100644 index 00000000..0ed3d36a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumeclaimvolumesource-v1.json @@ -0,0 +1,26 @@ +{ + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", + "properties": { + "claimName": { + "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "claimName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/persistentvolumeclaimvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumelist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumelist-v1.json new file mode 100644 index 00000000..eb182177 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumelist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "PersistentVolumeList is a list of PersistentVolume items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolume" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolumeList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/persistentvolumelist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumespec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumespec-v1.json new file mode 100644 index 00000000..90957ee9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumespec-v1.json @@ -0,0 +1,172 @@ +{ + "description": "PersistentVolumeSpec is the specification of a persistent volume.", + "properties": { + "accessModes": { + "description": "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "awsElasticBlockStore": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource", + "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore" + }, + "azureDisk": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureDiskVolumeSource", + "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." + }, + "azureFile": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureFilePersistentVolumeSource", + "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod." + }, + "capacity": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", + "type": [ + "object", + "null" + ] + }, + "cephfs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CephFSPersistentVolumeSource", + "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "cinder": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CinderPersistentVolumeSource", + "description": "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + }, + "claimRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding", + "x-kubernetes-map-type": "granular" + }, + "csi": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CSIPersistentVolumeSource", + "description": "csi represents storage that is handled by an external CSI driver (Beta feature)." + }, + "fc": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FCVolumeSource", + "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flexVolume": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlexPersistentVolumeSource", + "description": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." + }, + "flocker": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlockerVolumeSource", + "description": "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running" + }, + "gcePersistentDisk": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource", + "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + }, + "glusterfs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GlusterfsPersistentVolumeSource", + "description": "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + }, + "hostPath": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostPathVolumeSource", + "description": "hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" + }, + "iscsi": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ISCSIPersistentVolumeSource", + "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin." + }, + "local": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalVolumeSource", + "description": "local represents directly-attached storage with node affinity" + }, + "mountOptions": { + "description": "mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nfs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NFSVolumeSource", + "description": "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + }, + "nodeAffinity": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeNodeAffinity", + "description": "nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume." + }, + "persistentVolumeReclaimPolicy": { + "description": "persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming", + "type": [ + "string", + "null" + ] + }, + "photonPersistentDisk": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource", + "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" + }, + "portworxVolume": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PortworxVolumeSource", + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine" + }, + "quobyte": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.QuobyteVolumeSource", + "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime" + }, + "rbd": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.RBDPersistentVolumeSource", + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md" + }, + "scaleIO": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScaleIOPersistentVolumeSource", + "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." + }, + "storageClassName": { + "description": "storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.", + "type": [ + "string", + "null" + ] + }, + "storageos": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.StorageOSPersistentVolumeSource", + "description": "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md" + }, + "volumeAttributesClassName": { + "description": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + "type": [ + "string", + "null" + ] + }, + "volumeMode": { + "description": "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.", + "type": [ + "string", + "null" + ] + }, + "vsphereVolume": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource", + "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/persistentvolumespec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumestatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumestatus-v1.json new file mode 100644 index 00000000..17547260 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/persistentvolumestatus-v1.json @@ -0,0 +1,34 @@ +{ + "description": "PersistentVolumeStatus is the current status of a persistent volume.", + "properties": { + "lastPhaseTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions." + }, + "message": { + "description": "message is a human-readable message indicating details about why the volume is in this state.", + "type": [ + "string", + "null" + ] + }, + "phase": { + "description": "phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/persistentvolumestatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/photonpersistentdiskvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/photonpersistentdiskvolumesource-v1.json new file mode 100644 index 00000000..aa84c2ed --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/photonpersistentdiskvolumesource-v1.json @@ -0,0 +1,26 @@ +{ + "description": "Represents a Photon Controller persistent disk resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "pdID": { + "description": "pdID is the ID that identifies Photon Controller persistent disk", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "pdID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/photonpersistentdiskvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/pod-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/pod-v1.json new file mode 100644 index 00000000..38538554 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/pod-v1.json @@ -0,0 +1,48 @@ +{ + "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Pod" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodStatus", + "description": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Pod", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/pod/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podaffinity-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podaffinity-v1.json new file mode 100644 index 00000000..8a60d78e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podaffinity-v1.json @@ -0,0 +1,31 @@ +{ + "description": "Pod affinity is a group of inter pod affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podaffinity/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podaffinityterm-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podaffinityterm-v1.json new file mode 100644 index 00000000..f640e2a7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podaffinityterm-v1.json @@ -0,0 +1,69 @@ +{ + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running", + "properties": { + "labelSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods." + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces." + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "topologyKey" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podaffinityterm/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podantiaffinity-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podantiaffinity-v1.json new file mode 100644 index 00000000..a42941c1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podantiaffinity-v1.json @@ -0,0 +1,31 @@ +{ + "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podantiaffinity/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podcondition-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podcondition-v1.json new file mode 100644 index 00000000..f55e8db8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podcondition-v1.json @@ -0,0 +1,49 @@ +{ + "description": "PodCondition contains details for the current condition of this pod.", + "properties": { + "lastProbeTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time we probed the condition." + }, + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podcondition/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudget-policy-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudget-policy-v1.json new file mode 100644 index 00000000..b8a394b7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudget-policy-v1.json @@ -0,0 +1,48 @@ +{ + "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "policy/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodDisruptionBudget" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetSpec", + "description": "Specification of the desired behavior of the PodDisruptionBudget." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetStatus", + "description": "Most recently observed status of the PodDisruptionBudget." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/poddisruptionbudget/policy/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudgetlist-policy-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudgetlist-policy-v1.json new file mode 100644 index 00000000..f0249b64 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudgetlist-policy-v1.json @@ -0,0 +1,53 @@ +{ + "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "policy/v1" + ] + }, + "items": { + "description": "Items is a list of PodDisruptionBudgets", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudget" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodDisruptionBudgetList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "PodDisruptionBudgetList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/poddisruptionbudgetlist/policy/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudgetspec-policy-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudgetspec-policy-v1.json new file mode 100644 index 00000000..83c3017f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudgetspec-policy-v1.json @@ -0,0 +1,29 @@ +{ + "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", + "properties": { + "maxUnavailable": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." + }, + "minAvailable": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", + "x-kubernetes-patch-strategy": "replace" + }, + "unhealthyPodEvictionPolicy": { + "description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/poddisruptionbudgetspec/policy/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudgetstatus-policy-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudgetstatus-policy-v1.json new file mode 100644 index 00000000..6f74a9b7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddisruptionbudgetstatus-policy-v1.json @@ -0,0 +1,81 @@ +{ + "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", + "properties": { + "conditions": { + "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentHealthy": { + "description": "current number of healthy pods", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "desiredHealthy": { + "description": "minimum desired number of healthy pods", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "disruptedPods": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", + "type": [ + "object", + "null" + ] + }, + "disruptionsAllowed": { + "description": "Number of pod disruptions that are currently allowed.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "expectedPods": { + "description": "total number of pods counted by this disruption budget", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "disruptionsAllowed", + "currentHealthy", + "desiredHealthy", + "expectedPods" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/poddisruptionbudgetstatus/policy/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddnsconfig-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddnsconfig-v1.json new file mode 100644 index 00000000..786726b2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddnsconfig-v1.json @@ -0,0 +1,48 @@ +{ + "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", + "properties": { + "nameservers": { + "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "options": { + "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodDNSConfigOption" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "searches": { + "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/poddnsconfig/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddnsconfigoption-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddnsconfigoption-v1.json new file mode 100644 index 00000000..f4d88e27 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/poddnsconfigoption-v1.json @@ -0,0 +1,22 @@ +{ + "description": "PodDNSConfigOption defines DNS resolver options of a pod.", + "properties": { + "name": { + "description": "Required.", + "type": [ + "string", + "null" + ] + }, + "value": { + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/poddnsconfigoption/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicy-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicy-batch-v1.json new file mode 100644 index 00000000..0e955a0e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicy-batch-v1.json @@ -0,0 +1,23 @@ +{ + "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", + "properties": { + "rules": { + "description": "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podfailurepolicy/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicyonexitcodesrequirement-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicyonexitcodesrequirement-batch-v1.json new file mode 100644 index 00000000..ad1b3767 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicyonexitcodesrequirement-batch-v1.json @@ -0,0 +1,42 @@ +{ + "description": "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", + "properties": { + "containerName": { + "description": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:\n\n- In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.", + "type": [ + "string", + "null" + ] + }, + "values": { + "description": "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", + "items": { + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "operator", + "values" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podfailurepolicyonexitcodesrequirement/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicyonpodconditionspattern-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicyonpodconditionspattern-batch-v1.json new file mode 100644 index 00000000..a826cdd5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicyonpodconditionspattern-batch-v1.json @@ -0,0 +1,27 @@ +{ + "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", + "properties": { + "status": { + "description": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podfailurepolicyonpodconditionspattern/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicyrule-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicyrule-batch-v1.json new file mode 100644 index 00000000..e4a67e84 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podfailurepolicyrule-batch-v1.json @@ -0,0 +1,34 @@ +{ + "description": "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.", + "properties": { + "action": { + "description": "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:\n\n- FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- FailIndex: indicates that the pod's index is marked as Failed and will\n not be restarted.\n This value is beta-level. It can be used when the\n `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.", + "type": [ + "string", + "null" + ] + }, + "onExitCodes": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement", + "description": "Represents the requirement on the container exit codes." + }, + "onPodConditions": { + "description": "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "action" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podfailurepolicyrule/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podip-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podip-v1.json new file mode 100644 index 00000000..39ad4148 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podip-v1.json @@ -0,0 +1,19 @@ +{ + "description": "PodIP represents a single IP address allocated to the pod.", + "properties": { + "ip": { + "description": "IP is the IP address assigned to the pod", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "ip" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podip/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podlist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podlist-v1.json new file mode 100644 index 00000000..c42b398e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podlist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "PodList is a list of Pods.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Pod" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podlist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podos-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podos-v1.json new file mode 100644 index 00000000..66bacfae --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podos-v1.json @@ -0,0 +1,19 @@ +{ + "description": "PodOS defines the OS parameters of a pod.", + "properties": { + "name": { + "description": "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podos/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podreadinessgate-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podreadinessgate-v1.json new file mode 100644 index 00000000..b91f68c4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podreadinessgate-v1.json @@ -0,0 +1,19 @@ +{ + "description": "PodReadinessGate contains the reference to a pod condition", + "properties": { + "conditionType": { + "description": "ConditionType refers to a condition in the pod's condition list with matching type.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "conditionType" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podreadinessgate/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podresourceclaim-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podresourceclaim-v1.json new file mode 100644 index 00000000..d860721f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podresourceclaim-v1.json @@ -0,0 +1,33 @@ +{ + "description": "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod.\n\nIt adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", + "type": [ + "string", + "null" + ] + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "type": [ + "string", + "null" + ] + }, + "resourceClaimTemplateName": { + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podresourceclaim/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podresourceclaimstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podresourceclaimstatus-v1.json new file mode 100644 index 00000000..f159393c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podresourceclaimstatus-v1.json @@ -0,0 +1,26 @@ +{ + "description": "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.", + "type": [ + "string", + "null" + ] + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podresourceclaimstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontext-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontext-resource-v1alpha3.json new file mode 100644 index 00000000..1d3dc1b5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontext-resource-v1alpha3.json @@ -0,0 +1,51 @@ +{ + "description": "PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DRAControlPlaneController feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodSchedulingContext" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextSpec", + "description": "Spec describes where resources for the Pod are needed." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextStatus", + "description": "Status describes where resources for the Pod can be allocated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podschedulingcontext/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontextlist-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontextlist-resource-v1alpha3.json new file mode 100644 index 00000000..43f66da7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontextlist-resource-v1alpha3.json @@ -0,0 +1,53 @@ +{ + "description": "PodSchedulingContextList is a collection of Pod scheduling objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of PodSchedulingContext objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContext" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodSchedulingContextList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodSchedulingContextList", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podschedulingcontextlist/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontextspec-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontextspec-resource-v1alpha3.json new file mode 100644 index 00000000..37525874 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontextspec-resource-v1alpha3.json @@ -0,0 +1,30 @@ +{ + "description": "PodSchedulingContextSpec describes where resources for the Pod are needed.", + "properties": { + "potentialNodes": { + "description": "PotentialNodes lists nodes where the Pod might be able to run.\n\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "selectedNode": { + "description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podschedulingcontextspec/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontextstatus-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontextstatus-resource-v1alpha3.json new file mode 100644 index 00000000..36aba39b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulingcontextstatus-resource-v1alpha3.json @@ -0,0 +1,23 @@ +{ + "description": "PodSchedulingContextStatus describes where resources for the Pod can be allocated.", + "properties": { + "resourceClaims": { + "description": "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSchedulingStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podschedulingcontextstatus/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulinggate-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulinggate-v1.json new file mode 100644 index 00000000..f5c4c301 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podschedulinggate-v1.json @@ -0,0 +1,19 @@ +{ + "description": "PodSchedulingGate is associated to a Pod to guard its scheduling.", + "properties": { + "name": { + "description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podschedulinggate/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podsecuritycontext-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podsecuritycontext-v1.json new file mode 100644 index 00000000..26962871 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podsecuritycontext-v1.json @@ -0,0 +1,96 @@ +{ + "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "properties": { + "appArmorProfile": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AppArmorProfile", + "description": "appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." + }, + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "string", + "null" + ] + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": [ + "boolean", + "null" + ] + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "seLinuxOptions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SELinuxOptions", + "description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows." + }, + "seccompProfile": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SeccompProfile", + "description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.", + "items": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "supplementalGroupsPolicy": { + "description": "Defines how supplemental groups of the first container processes are calculated. Valid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "string", + "null" + ] + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Sysctl" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "windowsOptions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.WindowsSecurityContextOptions", + "description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podsecuritycontext/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podsmetricsource-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podsmetricsource-autoscaling-v2.json new file mode 100644 index 00000000..9a18a583 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podsmetricsource-autoscaling-v2.json @@ -0,0 +1,21 @@ +{ + "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", + "properties": { + "metric": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "metric", + "target" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podsmetricsource/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podsmetricstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podsmetricstatus-autoscaling-v2.json new file mode 100644 index 00000000..585e35de --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podsmetricstatus-autoscaling-v2.json @@ -0,0 +1,21 @@ +{ + "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "properties": { + "current": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "metric": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podsmetricstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podspec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podspec-v1.json new file mode 100644 index 00000000..9ee6201b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podspec-v1.json @@ -0,0 +1,376 @@ +{ + "description": "PodSpec is a description of a pod.", + "properties": { + "activeDeadlineSeconds": { + "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "affinity": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Affinity", + "description": "If specified, the pod's scheduling constraints" + }, + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", + "type": [ + "boolean", + "null" + ] + }, + "containers": { + "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Container" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "dnsConfig": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodDNSConfig", + "description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy." + }, + "dnsPolicy": { + "description": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", + "type": [ + "string", + "null" + ] + }, + "enableServiceLinks": { + "description": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.", + "type": [ + "boolean", + "null" + ] + }, + "ephemeralContainers": { + "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EphemeralContainer" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "hostAliases": { + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostAlias" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "ip" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "hostIPC": { + "description": "Use the host's ipc namespace. Optional: Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "hostNetwork": { + "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "hostPID": { + "description": "Use the host's pid namespace. Optional: Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "hostUsers": { + "description": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.", + "type": [ + "boolean", + "null" + ] + }, + "hostname": { + "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", + "type": [ + "string", + "null" + ] + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "initContainers": { + "description": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Container" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "nodeName": { + "description": "NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename", + "type": [ + "string", + "null" + ] + }, + "nodeSelector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "os": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodOS", + "description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup" + }, + "overhead": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md", + "type": [ + "object", + "null" + ] + }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": [ + "string", + "null" + ] + }, + "priority": { + "description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "priorityClassName": { + "description": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.", + "type": [ + "string", + "null" + ] + }, + "readinessGates": { + "description": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodReadinessGate" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodResourceClaim" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "restartPolicy": { + "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy", + "type": [ + "string", + "null" + ] + }, + "runtimeClassName": { + "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", + "type": [ + "string", + "null" + ] + }, + "schedulerName": { + "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", + "type": [ + "string", + "null" + ] + }, + "schedulingGates": { + "description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\n\nSchedulingGates can only be set at pod creation time, and be removed only afterwards.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSchedulingGate" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "securityContext": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSecurityContext", + "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." + }, + "serviceAccount": { + "description": "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", + "type": [ + "string", + "null" + ] + }, + "serviceAccountName": { + "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "type": [ + "string", + "null" + ] + }, + "setHostnameAsFQDN": { + "description": "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "shareProcessNamespace": { + "description": "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "subdomain": { + "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", + "type": [ + "string", + "null" + ] + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Toleration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "topologySpreadConstraints": { + "description": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TopologySpreadConstraint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "topologyKey", + "whenUnsatisfiable" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "topologyKey", + "x-kubernetes-patch-strategy": "merge" + }, + "volumes": { + "description": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Volume" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + } + }, + "required": [ + "containers" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podspec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podstatus-v1.json new file mode 100644 index 00000000..54d61377 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podstatus-v1.json @@ -0,0 +1,163 @@ +{ + "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", + "properties": { + "conditions": { + "description": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "containerStatuses": { + "description": "The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ephemeralContainerStatuses": { + "description": "Status for any ephemeral containers that have run in this pod.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "hostIP": { + "description": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod", + "type": [ + "string", + "null" + ] + }, + "hostIPs": { + "description": "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostIP" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "initContainerStatuses": { + "description": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "message": { + "description": "A human readable message indicating details about why the pod is in this condition.", + "type": [ + "string", + "null" + ] + }, + "nominatedNodeName": { + "description": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", + "type": [ + "string", + "null" + ] + }, + "phase": { + "description": "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase", + "type": [ + "string", + "null" + ] + }, + "podIP": { + "description": "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", + "type": [ + "string", + "null" + ] + }, + "podIPs": { + "description": "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodIP" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "ip" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "qosClass": { + "description": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", + "type": [ + "string", + "null" + ] + }, + "resize": { + "description": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"", + "type": [ + "string", + "null" + ] + }, + "resourceClaimStatuses": { + "description": "Status of resource claims.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodResourceClaimStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "startTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podtemplate-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podtemplate-v1.json new file mode 100644 index 00000000..efabf952 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podtemplate-v1.json @@ -0,0 +1,44 @@ +{ + "description": "PodTemplate describes a template for creating copies of a predefined pod.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodTemplate" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podtemplate/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podtemplatelist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podtemplatelist-v1.json new file mode 100644 index 00000000..dd6152da --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podtemplatelist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "PodTemplateList is a list of PodTemplates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of pod templates", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplate" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodTemplateList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodTemplateList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podtemplatelist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podtemplatespec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podtemplatespec-v1.json new file mode 100644 index 00000000..5d38a235 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/podtemplatespec-v1.json @@ -0,0 +1,17 @@ +{ + "description": "PodTemplateSpec describes the data a pod should have when created from a template", + "properties": { + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/podtemplatespec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/policyrule-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/policyrule-rbac-v1.json new file mode 100644 index 00000000..41b4e579 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/policyrule-rbac-v1.json @@ -0,0 +1,82 @@ +{ + "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", + "properties": { + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nonResourceURLs": { + "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/policyrule/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/policyruleswithsubjects-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/policyruleswithsubjects-flowcontrol-v1.json new file mode 100644 index 00000000..e64a7088 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/policyruleswithsubjects-flowcontrol-v1.json @@ -0,0 +1,45 @@ +{ + "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", + "properties": { + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.NonResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.ResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "subjects": { + "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.Subject" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "subjects" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/policyruleswithsubjects/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/policyruleswithsubjects-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/policyruleswithsubjects-flowcontrol-v1beta3.json new file mode 100644 index 00000000..3b1a9053 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/policyruleswithsubjects-flowcontrol-v1beta3.json @@ -0,0 +1,45 @@ +{ + "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", + "properties": { + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "subjects": { + "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.Subject" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "subjects" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/policyruleswithsubjects/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/portstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/portstatus-v1.json new file mode 100644 index 00000000..d1159ead --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/portstatus-v1.json @@ -0,0 +1,34 @@ +{ + "properties": { + "error": { + "description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "Port is the port number of the service port of which status is recorded here", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "protocol": { + "description": "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/portstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/portworxvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/portworxvolumesource-v1.json new file mode 100644 index 00000000..6c9d27aa --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/portworxvolumesource-v1.json @@ -0,0 +1,33 @@ +{ + "description": "PortworxVolumeSource represents a Portworx volume resource.", + "properties": { + "fsType": { + "description": "fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "volumeID": { + "description": "volumeID uniquely identifies a Portworx volume", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "volumeID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/portworxvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/preconditions-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/preconditions-meta-v1.json new file mode 100644 index 00000000..3304e29a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/preconditions-meta-v1.json @@ -0,0 +1,23 @@ +{ + "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "properties": { + "resourceVersion": { + "description": "Specifies the target ResourceVersion", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "Specifies the target UID.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/preconditions/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/preferredschedulingterm-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/preferredschedulingterm-v1.json new file mode 100644 index 00000000..2ab47510 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/preferredschedulingterm-v1.json @@ -0,0 +1,25 @@ +{ + "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "properties": { + "preference": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelectorTerm", + "description": "A node selector term, associated with the corresponding weight." + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "weight", + "preference" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/preferredschedulingterm/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/priorityclass-scheduling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/priorityclass-scheduling-v1.json new file mode 100644 index 00000000..6c943a53 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/priorityclass-scheduling-v1.json @@ -0,0 +1,72 @@ +{ + "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "scheduling.k8s.io/v1" + ] + }, + "description": { + "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", + "type": [ + "string", + "null" + ] + }, + "globalDefault": { + "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": [ + "string", + "null" + ] + }, + "value": { + "description": "value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "value" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/priorityclass/scheduling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/priorityclasslist-scheduling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/priorityclasslist-scheduling-v1.json new file mode 100644 index 00000000..edca98a3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/priorityclasslist-scheduling-v1.json @@ -0,0 +1,53 @@ +{ + "description": "PriorityClassList is a collection of priority classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "scheduling.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of PriorityClasses", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.scheduling.v1.PriorityClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClassList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/priorityclasslist/scheduling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfiguration-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfiguration-flowcontrol-v1.json new file mode 100644 index 00000000..b197fdcb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfiguration-flowcontrol-v1.json @@ -0,0 +1,48 @@ +{ + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfiguration" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/prioritylevelconfiguration/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfiguration-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfiguration-flowcontrol-v1beta3.json new file mode 100644 index 00000000..4bc56483 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfiguration-flowcontrol-v1beta3.json @@ -0,0 +1,48 @@ +{ + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfiguration" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/prioritylevelconfiguration/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationcondition-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationcondition-flowcontrol-v1.json new file mode 100644 index 00000000..b2def62c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationcondition-flowcontrol-v1.json @@ -0,0 +1,41 @@ +{ + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/prioritylevelconfigurationcondition/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationcondition-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationcondition-flowcontrol-v1beta3.json new file mode 100644 index 00000000..1af96994 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationcondition-flowcontrol-v1beta3.json @@ -0,0 +1,41 @@ +{ + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/prioritylevelconfigurationcondition/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationlist-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationlist-flowcontrol-v1.json new file mode 100644 index 00000000..17d8e8d5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationlist-flowcontrol-v1.json @@ -0,0 +1,53 @@ +{ + "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "items": { + "description": "`items` is a list of request-priorities.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfigurationList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/prioritylevelconfigurationlist/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationlist-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationlist-flowcontrol-v1beta3.json new file mode 100644 index 00000000..ad8d1a1c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationlist-flowcontrol-v1beta3.json @@ -0,0 +1,53 @@ +{ + "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "items": { + "description": "`items` is a list of request-priorities.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfigurationList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1beta3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/prioritylevelconfigurationlist/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationreference-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationreference-flowcontrol-v1.json new file mode 100644 index 00000000..2e948bab --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationreference-flowcontrol-v1.json @@ -0,0 +1,19 @@ +{ + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "properties": { + "name": { + "description": "`name` is the name of the priority level configuration being referenced Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/prioritylevelconfigurationreference/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationreference-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationreference-flowcontrol-v1beta3.json new file mode 100644 index 00000000..1df66bcf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationreference-flowcontrol-v1beta3.json @@ -0,0 +1,19 @@ +{ + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "properties": { + "name": { + "description": "`name` is the name of the priority level configuration being referenced Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/prioritylevelconfigurationreference/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationspec-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationspec-flowcontrol-v1.json new file mode 100644 index 00000000..2a86caf3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationspec-flowcontrol-v1.json @@ -0,0 +1,36 @@ +{ + "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", + "properties": { + "exempt": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration", + "description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply." + }, + "limited": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "type": { + "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "exempt": "Exempt", + "limited": "Limited" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/prioritylevelconfigurationspec/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationspec-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationspec-flowcontrol-v1beta3.json new file mode 100644 index 00000000..0bf9e3c5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationspec-flowcontrol-v1beta3.json @@ -0,0 +1,36 @@ +{ + "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", + "properties": { + "exempt": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration", + "description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply." + }, + "limited": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "type": { + "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "exempt": "Exempt", + "limited": "Limited" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/prioritylevelconfigurationspec/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationstatus-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationstatus-flowcontrol-v1.json new file mode 100644 index 00000000..e40d9290 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationstatus-flowcontrol-v1.json @@ -0,0 +1,25 @@ +{ + "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/prioritylevelconfigurationstatus/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationstatus-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationstatus-flowcontrol-v1beta3.json new file mode 100644 index 00000000..73190574 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/prioritylevelconfigurationstatus-flowcontrol-v1beta3.json @@ -0,0 +1,25 @@ +{ + "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/prioritylevelconfigurationstatus/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/probe-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/probe-v1.json new file mode 100644 index 00000000..07f07039 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/probe-v1.json @@ -0,0 +1,73 @@ +{ + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "properties": { + "exec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ExecAction", + "description": "Exec specifies the action to take." + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "grpc": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GRPCAction", + "description": "GRPC specifies an action involving a GRPC port." + }, + "httpGet": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "tcpSocket": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TCPSocketAction", + "description": "TCPSocket specifies an action involving a TCP port." + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/probe/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/projectedvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/projectedvolumesource-v1.json new file mode 100644 index 00000000..84b2ccd3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/projectedvolumesource-v1.json @@ -0,0 +1,28 @@ +{ + "description": "Represents a projected volume source", + "properties": { + "defaultMode": { + "description": "defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "sources": { + "description": "sources is the list of volume projections. Each entry in this list handles one source.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeProjection" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/projectedvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/quantity-resource.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/quantity-resource.json new file mode 100644 index 00000000..ab93115a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/quantity-resource.json @@ -0,0 +1,14 @@ +{ + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/quantity/resource" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/queuingconfiguration-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/queuingconfiguration-flowcontrol-v1.json new file mode 100644 index 00000000..7483e91f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/queuingconfiguration-flowcontrol-v1.json @@ -0,0 +1,33 @@ +{ + "description": "QueuingConfiguration holds the configuration parameters for queuing", + "properties": { + "handSize": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/queuingconfiguration/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/queuingconfiguration-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/queuingconfiguration-flowcontrol-v1beta3.json new file mode 100644 index 00000000..bbda1997 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/queuingconfiguration-flowcontrol-v1beta3.json @@ -0,0 +1,33 @@ +{ + "description": "QueuingConfiguration holds the configuration parameters for queuing", + "properties": { + "handSize": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/queuingconfiguration/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/quobytevolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/quobytevolumesource-v1.json new file mode 100644 index 00000000..17733e0a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/quobytevolumesource-v1.json @@ -0,0 +1,55 @@ +{ + "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", + "properties": { + "group": { + "description": "group to map volume access to Default is no group", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "registry": { + "description": "registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", + "type": [ + "string", + "null" + ] + }, + "tenant": { + "description": "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "user to map volume access to Defaults to serivceaccount user", + "type": [ + "string", + "null" + ] + }, + "volume": { + "description": "volume is a string that references an already created Quobyte volume by name.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "registry", + "volume" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/quobytevolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rawextension-pkg-runtime.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rawextension-pkg-runtime.json new file mode 100644 index 00000000..f101d898 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rawextension-pkg-runtime.json @@ -0,0 +1,7 @@ +{ + "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/rawextension/pkg/runtime" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rbdpersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rbdpersistentvolumesource-v1.json new file mode 100644 index 00000000..71eb972d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rbdpersistentvolumesource-v1.json @@ -0,0 +1,73 @@ +{ + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "keyring": { + "description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "pool": { + "description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + }, + "user": { + "description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors", + "image" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/rbdpersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rbdvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rbdvolumesource-v1.json new file mode 100644 index 00000000..1c2fd88b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rbdvolumesource-v1.json @@ -0,0 +1,73 @@ +{ + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "keyring": { + "description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "pool": { + "description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + }, + "user": { + "description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors", + "image" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/rbdvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicaset-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicaset-apps-v1.json new file mode 100644 index 00000000..2d036334 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicaset-apps-v1.json @@ -0,0 +1,48 @@ +{ + "description": "ReplicaSet ensures that a specified number of pod replicas are running at any given time.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicaSet" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetSpec", + "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetStatus", + "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/replicaset/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetcondition-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetcondition-apps-v1.json new file mode 100644 index 00000000..60049def --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetcondition-apps-v1.json @@ -0,0 +1,45 @@ +{ + "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of replica set condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/replicasetcondition/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetlist-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetlist-apps-v1.json new file mode 100644 index 00000000..cfc11d55 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetlist-apps-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ReplicaSetList is a collection of ReplicaSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSet" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicaSetList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ReplicaSetList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/replicasetlist/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetspec-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetspec-apps-v1.json new file mode 100644 index 00000000..119c4b1f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetspec-apps-v1.json @@ -0,0 +1,36 @@ +{ + "description": "ReplicaSetSpec is the specification of a ReplicaSet.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + } + }, + "required": [ + "selector" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/replicasetspec/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetstatus-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetstatus-apps-v1.json new file mode 100644 index 00000000..58ad1da0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicasetstatus-apps-v1.json @@ -0,0 +1,68 @@ +{ + "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", + "properties": { + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a replica set's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replicaset.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "replicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/replicasetstatus/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontroller-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontroller-v1.json new file mode 100644 index 00000000..bc628924 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontroller-v1.json @@ -0,0 +1,48 @@ +{ + "description": "ReplicationController represents the configuration of a replication controller.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicationController" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerSpec", + "description": "Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerStatus", + "description": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/replicationcontroller/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollercondition-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollercondition-v1.json new file mode 100644 index 00000000..b1340f73 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollercondition-v1.json @@ -0,0 +1,45 @@ +{ + "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of replication controller condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/replicationcontrollercondition/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollerlist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollerlist-v1.json new file mode 100644 index 00000000..328bc4b0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollerlist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ReplicationControllerList is a collection of replication controllers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationController" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicationControllerList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ReplicationControllerList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/replicationcontrollerlist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollerspec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollerspec-v1.json new file mode 100644 index 00000000..843e05d8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollerspec-v1.json @@ -0,0 +1,43 @@ +{ + "description": "ReplicationControllerSpec is the specification of a replication controller.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/replicationcontrollerspec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollerstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollerstatus-v1.json new file mode 100644 index 00000000..8ec9b2cf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/replicationcontrollerstatus-v1.json @@ -0,0 +1,68 @@ +{ + "description": "ReplicationControllerStatus represents the current status of a replication controller.", + "properties": { + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a replication controller's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "The number of ready replicas for this replication controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "replicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/replicationcontrollerstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceattributes-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceattributes-authorization-v1.json new file mode 100644 index 00000000..8b2b088e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceattributes-authorization-v1.json @@ -0,0 +1,66 @@ +{ + "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", + "properties": { + "fieldSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.FieldSelectorAttributes", + "description": "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default)." + }, + "group": { + "description": "Group is the API Group of the Resource. \"*\" means all.", + "type": [ + "string", + "null" + ] + }, + "labelSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.LabelSelectorAttributes", + "description": "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default)." + }, + "name": { + "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "Resource is one of the existing resource types. \"*\" means all.", + "type": [ + "string", + "null" + ] + }, + "subresource": { + "description": "Subresource is one of the existing resource types. \"\" means none.", + "type": [ + "string", + "null" + ] + }, + "verb": { + "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "Version is the API Version of the Resource. \"*\" means all.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceattributes/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaim-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaim-resource-v1alpha3.json new file mode 100644 index 00000000..7201f3fb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaim-resource-v1alpha3.json @@ -0,0 +1,51 @@ +{ + "description": "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaim" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSpec", + "description": "Spec describes what is being requested and how to configure it. The spec is immutable." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimStatus", + "description": "Status describes whether the claim is ready to use and what has been allocated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceclaim/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaim-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaim-v1.json new file mode 100644 index 00000000..a0398861 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaim-v1.json @@ -0,0 +1,26 @@ +{ + "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", + "properties": { + "name": { + "description": "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.", + "type": [ + "string", + "null" + ] + }, + "request": { + "description": "Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceclaim/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimconsumerreference-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimconsumerreference-resource-v1alpha3.json new file mode 100644 index 00000000..e317c000 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimconsumerreference-resource-v1alpha3.json @@ -0,0 +1,42 @@ +{ + "description": "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "Resource is the type of resource being referenced, for example \"pods\".", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID identifies exactly one incarnation of the resource.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "resource", + "name", + "uid" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceclaimconsumerreference/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimlist-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimlist-resource-v1alpha3.json new file mode 100644 index 00000000..b79d6aa3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimlist-resource-v1alpha3.json @@ -0,0 +1,53 @@ +{ + "description": "ResourceClaimList is a collection of claims.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource claims.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaim" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaimList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimList", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceclaimlist/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimschedulingstatus-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimschedulingstatus-resource-v1alpha3.json new file mode 100644 index 00000000..ce0296e0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimschedulingstatus-resource-v1alpha3.json @@ -0,0 +1,33 @@ +{ + "description": "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.", + "properties": { + "name": { + "description": "Name matches the pod.spec.resourceClaims[*].Name field.", + "type": [ + "string", + "null" + ] + }, + "unsuitableNodes": { + "description": "UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\n\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceclaimschedulingstatus/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimspec-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimspec-resource-v1alpha3.json new file mode 100644 index 00000000..ffe12b3c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimspec-resource-v1alpha3.json @@ -0,0 +1,20 @@ +{ + "description": "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.", + "properties": { + "controller": { + "description": "Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.", + "type": [ + "string", + "null" + ] + }, + "devices": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClaim", + "description": "Devices defines how to request devices." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceclaimspec/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimstatus-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimstatus-resource-v1alpha3.json new file mode 100644 index 00000000..8b535b45 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimstatus-resource-v1alpha3.json @@ -0,0 +1,36 @@ +{ + "description": "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.", + "properties": { + "allocation": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.AllocationResult", + "description": "Allocation is set once the claim has been allocated successfully." + }, + "deallocationRequested": { + "description": "Indicates that a claim is to be deallocated. While this is set, no new consumers may be added to ReservedFor.\n\nThis is only used if the claim needs to be deallocated by a DRA driver. That driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.", + "type": [ + "boolean", + "null" + ] + }, + "reservedFor": { + "description": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.\n\nIn a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.\n\nBoth schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.\n\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimConsumerReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceclaimstatus/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimtemplate-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimtemplate-resource-v1alpha3.json new file mode 100644 index 00000000..e3155c49 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimtemplate-resource-v1alpha3.json @@ -0,0 +1,47 @@ +{ + "description": "ResourceClaimTemplate is used to produce ResourceClaim objects.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaimTemplate" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplateSpec", + "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceclaimtemplate/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimtemplatelist-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimtemplatelist-resource-v1alpha3.json new file mode 100644 index 00000000..4d3dd130 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimtemplatelist-resource-v1alpha3.json @@ -0,0 +1,53 @@ +{ + "description": "ResourceClaimTemplateList is a collection of claim templates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource claim templates.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplate" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaimTemplateList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplateList", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceclaimtemplatelist/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimtemplatespec-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimtemplatespec-resource-v1alpha3.json new file mode 100644 index 00000000..86a9b242 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceclaimtemplatespec-resource-v1alpha3.json @@ -0,0 +1,20 @@ +{ + "description": "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.", + "properties": { + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSpec", + "description": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here." + } + }, + "required": [ + "spec" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceclaimtemplatespec/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcefieldselector-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcefieldselector-v1.json new file mode 100644 index 00000000..1ee1d2f5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcefieldselector-v1.json @@ -0,0 +1,31 @@ +{ + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "properties": { + "containerName": { + "description": "Container name: required for volumes, optional for env vars", + "type": [ + "string", + "null" + ] + }, + "divisor": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Specifies the output format of the exposed resources, defaults to \"1\"" + }, + "resource": { + "description": "Required: resource to select", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "resource" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcefieldselector/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcehealth-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcehealth-v1.json new file mode 100644 index 00000000..6cc0309c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcehealth-v1.json @@ -0,0 +1,26 @@ +{ + "description": "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.", + "properties": { + "health": { + "description": "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.", + "type": [ + "string", + "null" + ] + }, + "resourceID": { + "description": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "resourceID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcehealth/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcemetricsource-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcemetricsource-autoscaling-v2.json new file mode 100644 index 00000000..69685432 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcemetricsource-autoscaling-v2.json @@ -0,0 +1,24 @@ +{ + "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "properties": { + "name": { + "description": "name is the name of the resource in question.", + "type": [ + "string", + "null" + ] + }, + "target": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "name", + "target" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcemetricsource/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcemetricstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcemetricstatus-autoscaling-v2.json new file mode 100644 index 00000000..ba193a28 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcemetricstatus-autoscaling-v2.json @@ -0,0 +1,24 @@ +{ + "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "properties": { + "current": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "current" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcemetricstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcepolicyrule-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcepolicyrule-flowcontrol-v1.json new file mode 100644 index 00000000..3b80ddb6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcepolicyrule-flowcontrol-v1.json @@ -0,0 +1,77 @@ +{ + "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", + "properties": { + "apiGroups": { + "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "clusterScope": { + "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", + "type": [ + "boolean", + "null" + ] + }, + "namespaces": { + "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "resources": { + "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "apiGroups", + "resources" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcepolicyrule/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcepolicyrule-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcepolicyrule-flowcontrol-v1beta3.json new file mode 100644 index 00000000..3c2a7991 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcepolicyrule-flowcontrol-v1beta3.json @@ -0,0 +1,77 @@ +{ + "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", + "properties": { + "apiGroups": { + "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "clusterScope": { + "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", + "type": [ + "boolean", + "null" + ] + }, + "namespaces": { + "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "resources": { + "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "apiGroups", + "resources" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcepolicyrule/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcepool-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcepool-resource-v1alpha3.json new file mode 100644 index 00000000..f2aecdcf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcepool-resource-v1alpha3.json @@ -0,0 +1,37 @@ +{ + "description": "ResourcePool describes the pool that ResourceSlices belong to.", + "properties": { + "generation": { + "description": "Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.\n\nCombined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "name": { + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "resourceSliceCount": { + "description": "ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.\n\nConsumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "name", + "generation", + "resourceSliceCount" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcepool/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequota-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequota-v1.json new file mode 100644 index 00000000..964847d6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequota-v1.json @@ -0,0 +1,48 @@ +{ + "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceQuota" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuotaSpec", + "description": "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuotaStatus", + "description": "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcequota/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequotalist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequotalist-v1.json new file mode 100644 index 00000000..2bff3dec --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequotalist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ResourceQuotaList is a list of ResourceQuota items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuota" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceQuotaList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ResourceQuotaList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcequotalist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequotaspec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequotaspec-v1.json new file mode 100644 index 00000000..e2547155 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequotaspec-v1.json @@ -0,0 +1,37 @@ +{ + "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", + "properties": { + "hard": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "type": [ + "object", + "null" + ] + }, + "scopeSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScopeSelector", + "description": "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched." + }, + "scopes": { + "description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcequotaspec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequotastatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequotastatus-v1.json new file mode 100644 index 00000000..1a60200a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcequotastatus-v1.json @@ -0,0 +1,29 @@ +{ + "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", + "properties": { + "hard": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "type": [ + "object", + "null" + ] + }, + "used": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Used is the current observed total usage of the resource in the namespace.", + "type": [ + "object", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcequotastatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcerequirements-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcerequirements-v1.json new file mode 100644 index 00000000..8ee422c8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcerequirements-v1.json @@ -0,0 +1,43 @@ +{ + "description": "ResourceRequirements describes the compute resource requirements.", + "properties": { + "claims": { + "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceClaim" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "limits": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + }, + "requests": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcerequirements/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcerule-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcerule-authorization-v1.json new file mode 100644 index 00000000..4069cf33 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcerule-authorization-v1.json @@ -0,0 +1,68 @@ +{ + "description": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "properties": { + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcerule/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceslice-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceslice-resource-v1alpha3.json new file mode 100644 index 00000000..476e8ca2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceslice-resource-v1alpha3.json @@ -0,0 +1,47 @@ +{ + "description": "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.\n\nAt the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , .\n\nWhenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.\n\nWhen allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.\n\nFor resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceSlice" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceSliceSpec", + "description": "Contains the information published by the driver.\n\nChanging the spec automatically increments the metadata.generation number." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceslice/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceslicelist-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceslicelist-resource-v1alpha3.json new file mode 100644 index 00000000..c53145f4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceslicelist-resource-v1alpha3.json @@ -0,0 +1,53 @@ +{ + "description": "ResourceSliceList is a collection of ResourceSlices.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource ResourceSlices.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceSlice" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceSliceList" + ] + }, + "listMeta": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceSliceList", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceslicelist/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceslicespec-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceslicespec-resource-v1alpha3.json new file mode 100644 index 00000000..b1aeeebf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourceslicespec-resource-v1alpha3.json @@ -0,0 +1,53 @@ +{ + "description": "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.", + "properties": { + "allNodes": { + "description": "AllNodes indicates that all nodes have access to the resources in the pool.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set.", + "type": [ + "boolean", + "null" + ] + }, + "devices": { + "description": "Devices lists some or all of the devices in this pool.\n\nMust not have more than 128 entries.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.Device" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "driver": { + "description": "Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "nodeName": { + "description": "NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.\n\nThis field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "nodeSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set." + }, + "pool": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourcePool", + "description": "Pool describes the pool that this ResourceSlice belongs to." + } + }, + "required": [ + "driver", + "pool" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourceslicespec/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcestatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcestatus-v1.json new file mode 100644 index 00000000..7775caef --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/resourcestatus-v1.json @@ -0,0 +1,32 @@ +{ + "properties": { + "name": { + "description": "Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.", + "type": [ + "string", + "null" + ] + }, + "resources": { + "description": "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceHealth" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "resourceID" + ], + "x-kubernetes-list-type": "map" + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/resourcestatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/role-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/role-rbac-v1.json new file mode 100644 index 00000000..b4453c6c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/role-rbac-v1.json @@ -0,0 +1,51 @@ +{ + "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Role" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "rules": { + "description": "Rules holds all the PolicyRules for this Role", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.PolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/role/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rolebinding-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rolebinding-rbac-v1.json new file mode 100644 index 00000000..5b32f9bd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rolebinding-rbac-v1.json @@ -0,0 +1,58 @@ +{ + "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RoleBinding" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "roleRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleRef", + "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.Subject" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "roleRef" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/rolebinding/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rolebindinglist-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rolebindinglist-rbac-v1.json new file mode 100644 index 00000000..d0519188 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rolebindinglist-rbac-v1.json @@ -0,0 +1,53 @@ +{ + "description": "RoleBindingList is a collection of RoleBindings", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of RoleBindings", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleBinding" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RoleBindingList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBindingList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/rolebindinglist/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rolelist-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rolelist-rbac-v1.json new file mode 100644 index 00000000..3bf4691e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rolelist-rbac-v1.json @@ -0,0 +1,53 @@ +{ + "description": "RoleList is a collection of Roles", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of Roles", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.Role" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RoleList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/rolelist/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/roleref-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/roleref-rbac-v1.json new file mode 100644 index 00000000..eb42d37b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/roleref-rbac-v1.json @@ -0,0 +1,36 @@ +{ + "description": "RoleRef contains information that points to the role being used", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "apiGroup", + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/roleref/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rollingupdatedaemonset-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rollingupdatedaemonset-apps-v1.json new file mode 100644 index 00000000..30e30735 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rollingupdatedaemonset-apps-v1.json @@ -0,0 +1,17 @@ +{ + "description": "Spec to control the desired behavior of daemon set rolling update.", + "properties": { + "maxSurge": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption." + }, + "maxUnavailable": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/rollingupdatedaemonset/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rollingupdatedeployment-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rollingupdatedeployment-apps-v1.json new file mode 100644 index 00000000..51e86f79 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rollingupdatedeployment-apps-v1.json @@ -0,0 +1,17 @@ +{ + "description": "Spec to control the desired behavior of rolling update.", + "properties": { + "maxSurge": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods." + }, + "maxUnavailable": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/rollingupdatedeployment/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rollingupdatestatefulsetstrategy-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rollingupdatestatefulsetstrategy-apps-v1.json new file mode 100644 index 00000000..792b1b02 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rollingupdatestatefulsetstrategy-apps-v1.json @@ -0,0 +1,21 @@ +{ + "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", + "properties": { + "maxUnavailable": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable." + }, + "partition": { + "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/rollingupdatestatefulsetstrategy/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rulewithoperations-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rulewithoperations-admissionregistration-v1.json new file mode 100644 index 00000000..339d8f9b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/rulewithoperations-admissionregistration-v1.json @@ -0,0 +1,72 @@ +{ + "description": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/rulewithoperations/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/runtimeclass-node-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/runtimeclass-node-v1.json new file mode 100644 index 00000000..b4790ba6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/runtimeclass-node-v1.json @@ -0,0 +1,58 @@ +{ + "description": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "node.k8s.io/v1" + ] + }, + "handler": { + "description": "handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RuntimeClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "overhead": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.Overhead", + "description": "overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see\n https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/" + }, + "scheduling": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.Scheduling", + "description": "scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." + } + }, + "required": [ + "handler" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/runtimeclass/node/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/runtimeclasslist-node-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/runtimeclasslist-node-v1.json new file mode 100644 index 00000000..6b89a0fd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/runtimeclasslist-node-v1.json @@ -0,0 +1,53 @@ +{ + "description": "RuntimeClassList is a list of RuntimeClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "node.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.RuntimeClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RuntimeClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "node.k8s.io", + "kind": "RuntimeClassList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/runtimeclasslist/node/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scale-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scale-autoscaling-v1.json new file mode 100644 index 00000000..1684d21f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scale-autoscaling-v1.json @@ -0,0 +1,48 @@ +{ + "description": "Scale represents a scaling request for a resource.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Scale" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.ScaleSpec", + "description": "spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.ScaleStatus", + "description": "status is the current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/scale/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scaleiopersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scaleiopersistentvolumesource-v1.json new file mode 100644 index 00000000..86d4e26e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scaleiopersistentvolumesource-v1.json @@ -0,0 +1,81 @@ +{ + "description": "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"", + "type": [ + "string", + "null" + ] + }, + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": [ + "string", + "null" + ] + }, + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + }, + "sslEnabled": { + "description": "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false", + "type": [ + "boolean", + "null" + ] + }, + "storageMode": { + "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "type": [ + "string", + "null" + ] + }, + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": [ + "string", + "null" + ] + }, + "system": { + "description": "system is the name of the storage system as configured in ScaleIO.", + "type": [ + "string", + "null" + ] + }, + "volumeName": { + "description": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/scaleiopersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scaleiovolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scaleiovolumesource-v1.json new file mode 100644 index 00000000..80d63c2c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scaleiovolumesource-v1.json @@ -0,0 +1,81 @@ +{ + "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".", + "type": [ + "string", + "null" + ] + }, + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": [ + "string", + "null" + ] + }, + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + }, + "sslEnabled": { + "description": "sslEnabled Flag enable/disable SSL communication with Gateway, default false", + "type": [ + "boolean", + "null" + ] + }, + "storageMode": { + "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "type": [ + "string", + "null" + ] + }, + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": [ + "string", + "null" + ] + }, + "system": { + "description": "system is the name of the storage system as configured in ScaleIO.", + "type": [ + "string", + "null" + ] + }, + "volumeName": { + "description": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/scaleiovolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scalespec-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scalespec-autoscaling-v1.json new file mode 100644 index 00000000..a236345e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scalespec-autoscaling-v1.json @@ -0,0 +1,17 @@ +{ + "description": "ScaleSpec describes the attributes of a scale subresource.", + "properties": { + "replicas": { + "description": "replicas is the desired number of instances for the scaled object.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/scalespec/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scalestatus-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scalestatus-autoscaling-v1.json new file mode 100644 index 00000000..e49f989a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scalestatus-autoscaling-v1.json @@ -0,0 +1,27 @@ +{ + "description": "ScaleStatus represents the current status of a scale subresource.", + "properties": { + "replicas": { + "description": "replicas is the actual number of observed instances of the scaled object.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "description": "selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "replicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/scalestatus/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scheduling-node-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scheduling-node-v1.json new file mode 100644 index 00000000..b7a5e6c8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scheduling-node-v1.json @@ -0,0 +1,34 @@ +{ + "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", + "properties": { + "nodeSelector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "tolerations": { + "description": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Toleration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/scheduling/node/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scopedresourceselectorrequirement-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scopedresourceselectorrequirement-v1.json new file mode 100644 index 00000000..b51c21aa --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scopedresourceselectorrequirement-v1.json @@ -0,0 +1,41 @@ +{ + "description": "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.", + "properties": { + "operator": { + "description": "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.", + "type": [ + "string", + "null" + ] + }, + "scopeName": { + "description": "The name of the scope that the selector applies to.", + "type": [ + "string", + "null" + ] + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "scopeName", + "operator" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/scopedresourceselectorrequirement/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scopeselector-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scopeselector-v1.json new file mode 100644 index 00000000..6d7f5783 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/scopeselector-v1.json @@ -0,0 +1,21 @@ +{ + "description": "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", + "properties": { + "matchExpressions": { + "description": "A list of scope selector requirements by scope of the resources.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScopedResourceSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/scopeselector/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/seccompprofile-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/seccompprofile-v1.json new file mode 100644 index 00000000..8e94831a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/seccompprofile-v1.json @@ -0,0 +1,34 @@ +{ + "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/seccompprofile/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secret-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secret-v1.json new file mode 100644 index 00000000..6fedb697 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secret-v1.json @@ -0,0 +1,81 @@ +{ + "description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "data": { + "additionalProperties": { + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "description": "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + "type": [ + "object", + "null" + ] + }, + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Secret" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "stringData": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.", + "type": [ + "object", + "null" + ] + }, + "type": { + "description": "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Secret", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/secret/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretenvsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretenvsource-v1.json new file mode 100644 index 00000000..7fafb306 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretenvsource-v1.json @@ -0,0 +1,23 @@ +{ + "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the Secret must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/secretenvsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretkeyselector-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretkeyselector-v1.json new file mode 100644 index 00000000..174c551d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretkeyselector-v1.json @@ -0,0 +1,34 @@ +{ + "description": "SecretKeySelector selects a key of a Secret.", + "properties": { + "key": { + "description": "The key of the secret to select from. Must be a valid secret key.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "key" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/secretkeyselector/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretlist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretlist-v1.json new file mode 100644 index 00000000..729d5f90 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretlist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "SecretList is a list of Secret.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Secret" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SecretList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "SecretList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/secretlist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretprojection-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretprojection-v1.json new file mode 100644 index 00000000..680ff50d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretprojection-v1.json @@ -0,0 +1,34 @@ +{ + "description": "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.", + "properties": { + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "optional field specify whether the Secret or its key must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/secretprojection/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretreference-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretreference-v1.json new file mode 100644 index 00000000..fa3b4e78 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretreference-v1.json @@ -0,0 +1,24 @@ +{ + "description": "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", + "properties": { + "name": { + "description": "name is unique within a namespace to reference a secret resource.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace defines the space within which the secret name must be unique.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/secretreference/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretvolumesource-v1.json new file mode 100644 index 00000000..24aec76d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/secretvolumesource-v1.json @@ -0,0 +1,42 @@ +{ + "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "items": { + "description": "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "optional": { + "description": "optional field specify whether the Secret or its keys must be defined", + "type": [ + "boolean", + "null" + ] + }, + "secretName": { + "description": "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/secretvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/securitycontext-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/securitycontext-v1.json new file mode 100644 index 00000000..7d7514d9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/securitycontext-v1.json @@ -0,0 +1,80 @@ +{ + "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", + "properties": { + "allowPrivilegeEscalation": { + "description": "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "boolean", + "null" + ] + }, + "appArmorProfile": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AppArmorProfile", + "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows." + }, + "capabilities": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Capabilities", + "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows." + }, + "privileged": { + "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "boolean", + "null" + ] + }, + "procMount": { + "description": "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "string", + "null" + ] + }, + "readOnlyRootFilesystem": { + "description": "Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "boolean", + "null" + ] + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": [ + "boolean", + "null" + ] + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "seLinuxOptions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SELinuxOptions", + "description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows." + }, + "seccompProfile": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SeccompProfile", + "description": "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows." + }, + "windowsOptions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.WindowsSecurityContextOptions", + "description": "The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/securitycontext/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selectablefield-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selectablefield-apiextensions-v1.json new file mode 100644 index 00000000..467859de --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selectablefield-apiextensions-v1.json @@ -0,0 +1,19 @@ +{ + "description": "SelectableField specifies the JSON path of a field that may be used with field selectors.", + "properties": { + "jsonPath": { + "description": "jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "jsonPath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/selectablefield/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectaccessreview-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectaccessreview-authorization-v1.json new file mode 100644 index 00000000..22a21d4b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectaccessreview-authorization-v1.json @@ -0,0 +1,51 @@ +{ + "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectAccessReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated. user and groups must be empty" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectAccessReview", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/selfsubjectaccessreview/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectaccessreviewspec-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectaccessreviewspec-authorization-v1.json new file mode 100644 index 00000000..72fc39df --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectaccessreviewspec-authorization-v1.json @@ -0,0 +1,17 @@ +{ + "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "nonResourceAttributes": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.NonResourceAttributes", + "description": "NonResourceAttributes describes information for a non-resource access request" + }, + "resourceAttributes": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.ResourceAttributes", + "description": "ResourceAuthorizationAttributes describes information for a resource access request" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/selfsubjectaccessreviewspec/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreview-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreview-authentication-v1.json new file mode 100644 index 00000000..92a11c94 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreview-authentication-v1.json @@ -0,0 +1,44 @@ +{ + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/selfsubjectreview/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreview-authentication-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreview-authentication-v1alpha1.json new file mode 100644 index 00000000..3839d91a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreview-authentication-v1alpha1.json @@ -0,0 +1,44 @@ +{ + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/selfsubjectreview/authentication/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreview-authentication-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreview-authentication-v1beta1.json new file mode 100644 index 00000000..08a76bbc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreview-authentication-v1beta1.json @@ -0,0 +1,44 @@ +{ + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1beta1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/selfsubjectreview/authentication/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreviewstatus-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreviewstatus-authentication-v1.json new file mode 100644 index 00000000..5aa3f147 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreviewstatus-authentication-v1.json @@ -0,0 +1,13 @@ +{ + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/selfsubjectreviewstatus/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreviewstatus-authentication-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreviewstatus-authentication-v1alpha1.json new file mode 100644 index 00000000..2cf4eda1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreviewstatus-authentication-v1alpha1.json @@ -0,0 +1,13 @@ +{ + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/selfsubjectreviewstatus/authentication/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreviewstatus-authentication-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreviewstatus-authentication-v1beta1.json new file mode 100644 index 00000000..485f0d20 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectreviewstatus-authentication-v1beta1.json @@ -0,0 +1,13 @@ +{ + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/selfsubjectreviewstatus/authentication/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectrulesreview-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectrulesreview-authorization-v1.json new file mode 100644 index 00000000..8d60ef14 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectrulesreview-authorization-v1.json @@ -0,0 +1,51 @@ +{ + "description": "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectRulesReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec", + "description": "Spec holds information about the request being evaluated." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectRulesReviewStatus", + "description": "Status is filled in by the server and indicates the set of actions a user can perform." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectRulesReview", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/selfsubjectrulesreview/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectrulesreviewspec-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectrulesreviewspec-authorization-v1.json new file mode 100644 index 00000000..858e4989 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selfsubjectrulesreviewspec-authorization-v1.json @@ -0,0 +1,16 @@ +{ + "description": "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.", + "properties": { + "namespace": { + "description": "Namespace to evaluate rules for. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/selfsubjectrulesreviewspec/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selinuxoptions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selinuxoptions-v1.json new file mode 100644 index 00000000..ae27bf31 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/selinuxoptions-v1.json @@ -0,0 +1,37 @@ +{ + "description": "SELinuxOptions are the labels to be applied to the container", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": [ + "string", + "null" + ] + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/selinuxoptions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serveraddressbyclientcidr-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serveraddressbyclientcidr-meta-v1.json new file mode 100644 index 00000000..3da66b9c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serveraddressbyclientcidr-meta-v1.json @@ -0,0 +1,27 @@ +{ + "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "properties": { + "clientCIDR": { + "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + "type": [ + "string", + "null" + ] + }, + "serverAddress": { + "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "clientCIDR", + "serverAddress" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/serveraddressbyclientcidr/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serverstorageversion-apiserverinternal-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serverstorageversion-apiserverinternal-v1alpha1.json new file mode 100644 index 00000000..baa65785 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serverstorageversion-apiserverinternal-v1alpha1.json @@ -0,0 +1,51 @@ +{ + "description": "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.", + "properties": { + "apiServerID": { + "description": "The ID of the reporting API server.", + "type": [ + "string", + "null" + ] + }, + "decodableVersions": { + "description": "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "encodingVersion": { + "description": "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).", + "type": [ + "string", + "null" + ] + }, + "servedVersions": { + "description": "The API server can serve these versions. DecodableVersions must include all ServedVersions.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/serverstorageversion/apiserverinternal/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/service-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/service-v1.json new file mode 100644 index 00000000..ef057063 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/service-v1.json @@ -0,0 +1,48 @@ +{ + "description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Service" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceSpec", + "description": "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceStatus", + "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Service", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/service/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccount-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccount-v1.json new file mode 100644 index 00000000..b5e571ae --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccount-v1.json @@ -0,0 +1,74 @@ +{ + "description": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", + "type": [ + "boolean", + "null" + ] + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceAccount" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "secrets": { + "description": "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/serviceaccount/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccountlist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccountlist-v1.json new file mode 100644 index 00000000..a32d8d87 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccountlist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ServiceAccountList is a list of ServiceAccount objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceAccount" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceAccountList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceAccountList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/serviceaccountlist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccountsubject-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccountsubject-flowcontrol-v1.json new file mode 100644 index 00000000..bdafb2c2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccountsubject-flowcontrol-v1.json @@ -0,0 +1,27 @@ +{ + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", + "properties": { + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/serviceaccountsubject/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccountsubject-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccountsubject-flowcontrol-v1beta3.json new file mode 100644 index 00000000..000c7aef --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccountsubject-flowcontrol-v1beta3.json @@ -0,0 +1,27 @@ +{ + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", + "properties": { + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/serviceaccountsubject/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccounttokenprojection-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccounttokenprojection-v1.json new file mode 100644 index 00000000..5a9a32c1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceaccounttokenprojection-v1.json @@ -0,0 +1,34 @@ +{ + "description": "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).", + "properties": { + "audience": { + "description": "audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.", + "type": [ + "string", + "null" + ] + }, + "expirationSeconds": { + "description": "expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "path": { + "description": "path is the path relative to the mount point of the file to project the token into.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/serviceaccounttokenprojection/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicebackendport-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicebackendport-networking-v1.json new file mode 100644 index 00000000..f9d1ca59 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicebackendport-networking-v1.json @@ -0,0 +1,25 @@ +{ + "description": "ServiceBackendPort is the service port being referenced.", + "properties": { + "name": { + "description": "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", + "type": [ + "string", + "null" + ] + }, + "number": { + "description": "number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/servicebackendport/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidr-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidr-networking-v1beta1.json new file mode 100644 index 00000000..bf4213d6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidr-networking-v1beta1.json @@ -0,0 +1,48 @@ +{ + "description": "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceCIDR" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRSpec", + "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRStatus", + "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/servicecidr/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidrlist-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidrlist-networking-v1beta1.json new file mode 100644 index 00000000..2604370c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidrlist-networking-v1beta1.json @@ -0,0 +1,53 @@ +{ + "description": "ServiceCIDRList contains a list of ServiceCIDR objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "items": { + "description": "items is the list of ServiceCIDRs.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDR" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceCIDRList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDRList", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/servicecidrlist/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidrspec-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidrspec-networking-v1beta1.json new file mode 100644 index 00000000..0a711d09 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidrspec-networking-v1beta1.json @@ -0,0 +1,23 @@ +{ + "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", + "properties": { + "cidrs": { + "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/servicecidrspec/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidrstatus-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidrstatus-networking-v1beta1.json new file mode 100644 index 00000000..21da8337 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicecidrstatus-networking-v1beta1.json @@ -0,0 +1,25 @@ +{ + "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", + "properties": { + "conditions": { + "description": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/servicecidrstatus/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicelist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicelist-v1.json new file mode 100644 index 00000000..121149dd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicelist-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ServiceList holds a list of services.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of services", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Service" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/servicelist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceport-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceport-v1.json new file mode 100644 index 00000000..dad5e1a9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/serviceport-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ServicePort contains information on service's port.", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.", + "type": [ + "string", + "null" + ] + }, + "nodePort": { + "description": "The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "port": { + "description": "The port that will be exposed by this service.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "protocol": { + "description": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.", + "type": [ + "string", + "null" + ] + }, + "targetPort": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service" + } + }, + "required": [ + "port" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/serviceport/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicereference-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicereference-admissionregistration-v1.json new file mode 100644 index 00000000..dfd3fd63 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicereference-admissionregistration-v1.json @@ -0,0 +1,42 @@ +{ + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "`name` is the name of the service. Required", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "`namespace` is the namespace of the service. Required", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "`path` is an optional URL path which will be sent in any request to this service.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/servicereference/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicereference-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicereference-apiextensions-v1.json new file mode 100644 index 00000000..27be77fc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicereference-apiextensions-v1.json @@ -0,0 +1,42 @@ +{ + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "name is the name of the service. Required", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the service. Required", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "path is an optional URL path at which the webhook will be contacted.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/servicereference/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicereference-apiregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicereference-apiregistration-v1.json new file mode 100644 index 00000000..6ec0746c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicereference-apiregistration-v1.json @@ -0,0 +1,31 @@ +{ + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "Name is the name of the service", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the namespace of the service", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/servicereference/apiregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicespec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicespec-v1.json new file mode 100644 index 00000000..1d511e20 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicespec-v1.json @@ -0,0 +1,192 @@ +{ + "description": "ServiceSpec describes the attributes that a user creates on a service.", + "properties": { + "allocateLoadBalancerNodePorts": { + "description": "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.", + "type": [ + "boolean", + "null" + ] + }, + "clusterIP": { + "description": "clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "type": [ + "string", + "null" + ] + }, + "clusterIPs": { + "description": "ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\n\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "externalIPs": { + "description": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "externalName": { + "description": "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".", + "type": [ + "string", + "null" + ] + }, + "externalTrafficPolicy": { + "description": "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.", + "type": [ + "string", + "null" + ] + }, + "healthCheckNodePort": { + "description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "internalTrafficPolicy": { + "description": "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).", + "type": [ + "string", + "null" + ] + }, + "ipFamilies": { + "description": "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ipFamilyPolicy": { + "description": "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.", + "type": [ + "string", + "null" + ] + }, + "loadBalancerClass": { + "description": "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.", + "type": [ + "string", + "null" + ] + }, + "loadBalancerIP": { + "description": "Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available.", + "type": [ + "string", + "null" + ] + }, + "loadBalancerSourceRanges": { + "description": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServicePort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "port", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "port", + "x-kubernetes-patch-strategy": "merge" + }, + "publishNotReadyAddresses": { + "description": "publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.", + "type": [ + "boolean", + "null" + ] + }, + "selector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "sessionAffinity": { + "description": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "type": [ + "string", + "null" + ] + }, + "sessionAffinityConfig": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SessionAffinityConfig", + "description": "sessionAffinityConfig contains the configurations of session affinity." + }, + "trafficDistribution": { + "description": "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/servicespec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicestatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicestatus-v1.json new file mode 100644 index 00000000..a1b7dcb7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/servicestatus-v1.json @@ -0,0 +1,29 @@ +{ + "description": "ServiceStatus represents the current status of a service.", + "properties": { + "conditions": { + "description": "Current service state", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "loadBalancer": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LoadBalancerStatus", + "description": "LoadBalancer contains the current status of the load-balancer, if one is present." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/servicestatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/sessionaffinityconfig-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/sessionaffinityconfig-v1.json new file mode 100644 index 00000000..bc5fc956 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/sessionaffinityconfig-v1.json @@ -0,0 +1,13 @@ +{ + "description": "SessionAffinityConfig represents the configurations of session affinity.", + "properties": { + "clientIP": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ClientIPConfig", + "description": "clientIP contains the configurations of Client IP based session affinity." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/sessionaffinityconfig/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/sleepaction-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/sleepaction-v1.json new file mode 100644 index 00000000..66bccf2f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/sleepaction-v1.json @@ -0,0 +1,20 @@ +{ + "description": "SleepAction describes a \"sleep\" action.", + "properties": { + "seconds": { + "description": "Seconds is the number of seconds to sleep.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "seconds" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/sleepaction/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulset-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulset-apps-v1.json new file mode 100644 index 00000000..1502a731 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulset-apps-v1.json @@ -0,0 +1,48 @@ +{ + "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StatefulSet" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetSpec", + "description": "Spec defines the desired identities of pods in this set." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetStatus", + "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/statefulset/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetcondition-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetcondition-apps-v1.json new file mode 100644 index 00000000..b03c2506 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetcondition-apps-v1.json @@ -0,0 +1,45 @@ +{ + "description": "StatefulSetCondition describes the state of a statefulset at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of statefulset condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/statefulsetcondition/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetlist-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetlist-apps-v1.json new file mode 100644 index 00000000..c91afa45 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetlist-apps-v1.json @@ -0,0 +1,53 @@ +{ + "description": "StatefulSetList is a collection of StatefulSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "Items is the list of stateful sets.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSet" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StatefulSetList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "StatefulSetList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/statefulsetlist/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetordinals-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetordinals-apps-v1.json new file mode 100644 index 00000000..7593123a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetordinals-apps-v1.json @@ -0,0 +1,17 @@ +{ + "description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", + "properties": { + "start": { + "description": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/statefulsetordinals/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetpersistentvolumeclaimretentionpolicy-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetpersistentvolumeclaimretentionpolicy-apps-v1.json new file mode 100644 index 00000000..9bd2d9f1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetpersistentvolumeclaimretentionpolicy-apps-v1.json @@ -0,0 +1,23 @@ +{ + "description": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", + "properties": { + "whenDeleted": { + "description": "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.", + "type": [ + "string", + "null" + ] + }, + "whenScaled": { + "description": "WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/statefulsetpersistentvolumeclaimretentionpolicy/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetspec-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetspec-apps-v1.json new file mode 100644 index 00000000..8157f342 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetspec-apps-v1.json @@ -0,0 +1,83 @@ +{ + "description": "A StatefulSetSpec is the specification of a StatefulSet.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "ordinals": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetOrdinals", + "description": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested." + }, + "persistentVolumeClaimRetentionPolicy": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy", + "description": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta." + }, + "podManagementPolicy": { + "description": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.", + "type": [ + "string", + "null" + ] + }, + "replicas": { + "description": "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "revisionHistoryLimit": { + "description": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "serviceName": { + "description": "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.", + "type": [ + "string", + "null" + ] + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\". The only allowed template.spec.restartPolicy value is \"Always\"." + }, + "updateStrategy": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetUpdateStrategy", + "description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template." + }, + "volumeClaimTemplates": { + "description": "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaim" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "selector", + "template", + "serviceName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/statefulsetspec/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetstatus-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetstatus-apps-v1.json new file mode 100644 index 00000000..c6b78d7c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetstatus-apps-v1.json @@ -0,0 +1,98 @@ +{ + "description": "StatefulSetStatus represents the current state of a StatefulSet.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "collisionCount": { + "description": "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a statefulset's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentReplicas": { + "description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "currentRevision": { + "description": "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).", + "type": [ + "string", + "null" + ] + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "replicas is the number of Pods created by the StatefulSet controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "updateRevision": { + "description": "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)", + "type": [ + "string", + "null" + ] + }, + "updatedReplicas": { + "description": "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "replicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/statefulsetstatus/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetupdatestrategy-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetupdatestrategy-apps-v1.json new file mode 100644 index 00000000..ad37b35d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statefulsetupdatestrategy-apps-v1.json @@ -0,0 +1,20 @@ +{ + "description": "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", + "properties": { + "rollingUpdate": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy", + "description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType." + }, + "type": { + "description": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/statefulsetupdatestrategy/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/status-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/status-meta-v1.json new file mode 100644 index 00000000..883c1885 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/status-meta-v1.json @@ -0,0 +1,74 @@ +{ + "description": "Status is a return value for calls that don't return other objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "code": { + "description": "Suggested HTTP return code for this status, 0 if not set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "details": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails", + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Status" + ] + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": [ + "string", + "null" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + }, + "reason": { + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Status", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/status/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statuscause-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statuscause-meta-v1.json new file mode 100644 index 00000000..057b6643 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statuscause-meta-v1.json @@ -0,0 +1,30 @@ +{ + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "properties": { + "field": { + "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/statuscause/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statusdetails-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statusdetails-meta-v1.json new file mode 100644 index 00000000..67a2f769 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/statusdetails-meta-v1.json @@ -0,0 +1,56 @@ +{ + "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "properties": { + "causes": { + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "The group attribute of the resource associated with the status StatusReason.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "type": [ + "string", + "null" + ] + }, + "retryAfterSeconds": { + "description": "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "uid": { + "description": "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/statusdetails/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageclass-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageclass-storage-v1.json new file mode 100644 index 00000000..fd9d26bd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageclass-storage-v1.json @@ -0,0 +1,109 @@ +{ + "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", + "properties": { + "allowVolumeExpansion": { + "description": "allowVolumeExpansion shows whether the storage class allow volume expand.", + "type": [ + "boolean", + "null" + ] + }, + "allowedTopologies": { + "description": "allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TopologySelectorTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "mountOptions": { + "description": "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "parameters": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "parameters holds the parameters for the provisioner that should create volumes of this storage class.", + "type": [ + "object", + "null" + ] + }, + "provisioner": { + "description": "provisioner indicates the type of the provisioner.", + "type": [ + "string", + "null" + ] + }, + "reclaimPolicy": { + "description": "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.", + "type": [ + "string", + "null" + ] + }, + "volumeBindingMode": { + "description": "volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "provisioner" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageclass/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageclasslist-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageclasslist-storage-v1.json new file mode 100644 index 00000000..7ea3247b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageclasslist-storage-v1.json @@ -0,0 +1,53 @@ +{ + "description": "StorageClassList is a collection of storage classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of StorageClasses", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.StorageClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClassList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageclasslist/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageospersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageospersistentvolumesource-v1.json new file mode 100644 index 00000000..33d8cb39 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageospersistentvolumesource-v1.json @@ -0,0 +1,41 @@ +{ + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." + }, + "volumeName": { + "description": "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + "type": [ + "string", + "null" + ] + }, + "volumeNamespace": { + "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageospersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageosvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageosvolumesource-v1.json new file mode 100644 index 00000000..a7b38f49 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageosvolumesource-v1.json @@ -0,0 +1,41 @@ +{ + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." + }, + "volumeName": { + "description": "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + "type": [ + "string", + "null" + ] + }, + "volumeNamespace": { + "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageosvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversion-apiserverinternal-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversion-apiserverinternal-v1alpha1.json new file mode 100644 index 00000000..62080cff --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversion-apiserverinternal-v1alpha1.json @@ -0,0 +1,52 @@ +{ + "description": "Storage version of a specific resource.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "internal.apiserver.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersion" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "The name is .." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionSpec", + "description": "Spec is an empty spec. It is here to comply with Kubernetes API style." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionStatus", + "description": "API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend." + } + }, + "required": [ + "spec", + "status" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageversion/apiserverinternal/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversioncondition-apiserverinternal-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversioncondition-apiserverinternal-v1alpha1.json new file mode 100644 index 00000000..90ba13a2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversioncondition-apiserverinternal-v1alpha1.json @@ -0,0 +1,55 @@ +{ + "description": "Describes the state of the storageVersion at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "observedGeneration": { + "description": "If set, this represents the .metadata.generation that the condition was set based upon.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of the condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status", + "reason", + "message" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageversioncondition/apiserverinternal/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionlist-apiserverinternal-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionlist-apiserverinternal-v1alpha1.json new file mode 100644 index 00000000..278dd4a1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionlist-apiserverinternal-v1alpha1.json @@ -0,0 +1,53 @@ +{ + "description": "A list of StorageVersions.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "internal.apiserver.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "Items holds a list of StorageVersion", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersionList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersionList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageversionlist/apiserverinternal/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigration-storagemigration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigration-storagemigration-v1alpha1.json new file mode 100644 index 00000000..e9de858c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigration-storagemigration-v1alpha1.json @@ -0,0 +1,48 @@ +{ + "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storagemigration.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersionMigration" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationSpec", + "description": "Specification of the migration." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationStatus", + "description": "Status of the migration." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageversionmigration/storagemigration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigrationlist-storagemigration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigrationlist-storagemigration-v1alpha1.json new file mode 100644 index 00000000..1af63f66 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigrationlist-storagemigration-v1alpha1.json @@ -0,0 +1,59 @@ +{ + "description": "StorageVersionMigrationList is a collection of storage version migrations.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storagemigration.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "Items is the list of StorageVersionMigration", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersionMigrationList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigrationList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageversionmigrationlist/storagemigration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigrationspec-storagemigration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigrationspec-storagemigration-v1alpha1.json new file mode 100644 index 00000000..9384f092 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigrationspec-storagemigration-v1alpha1.json @@ -0,0 +1,23 @@ +{ + "description": "Spec of the storage version migration.", + "properties": { + "continueToken": { + "description": "The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is \"Running\", users can use this token to check the progress of the migration.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.GroupVersionResource", + "description": "The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable." + } + }, + "required": [ + "resource" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageversionmigrationspec/storagemigration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigrationstatus-storagemigration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigrationstatus-storagemigration-v1alpha1.json new file mode 100644 index 00000000..ec3c0668 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionmigrationstatus-storagemigration-v1alpha1.json @@ -0,0 +1,32 @@ +{ + "description": "Status of the storage version migration.", + "properties": { + "conditions": { + "description": "The latest available observations of the migration's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.MigrationCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageversionmigrationstatus/storagemigration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionspec-apiserverinternal-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionspec-apiserverinternal-v1alpha1.json new file mode 100644 index 00000000..8253de55 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionspec-apiserverinternal-v1alpha1.json @@ -0,0 +1,7 @@ +{ + "description": "StorageVersionSpec is an empty spec.", + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageversionspec/apiserverinternal/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionstatus-apiserverinternal-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionstatus-apiserverinternal-v1alpha1.json new file mode 100644 index 00000000..af04b989 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/storageversionstatus-apiserverinternal-v1alpha1.json @@ -0,0 +1,44 @@ +{ + "description": "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.", + "properties": { + "commonEncodingVersion": { + "description": "If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.", + "type": [ + "string", + "null" + ] + }, + "conditions": { + "description": "The latest available observations of the storageVersion's state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "storageVersions": { + "description": "The reported versions per API server instance.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "apiServerID" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/storageversionstatus/apiserverinternal/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subject-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subject-flowcontrol-v1.json new file mode 100644 index 00000000..21f21eef --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subject-flowcontrol-v1.json @@ -0,0 +1,41 @@ +{ + "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", + "properties": { + "group": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.GroupSubject", + "description": "`group` matches based on user group name." + }, + "kind": { + "description": "`kind` indicates which one of the other fields is non-empty. Required", + "type": [ + "string", + "null" + ] + }, + "serviceAccount": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.UserSubject", + "description": "`user` matches based on username." + } + }, + "required": [ + "kind" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/subject/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subject-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subject-flowcontrol-v1beta3.json new file mode 100644 index 00000000..ff823cce --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subject-flowcontrol-v1beta3.json @@ -0,0 +1,41 @@ +{ + "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", + "properties": { + "group": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.GroupSubject", + "description": "`group` matches based on user group name." + }, + "kind": { + "description": "`kind` indicates which one of the other fields is non-empty. Required", + "type": [ + "string", + "null" + ] + }, + "serviceAccount": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.UserSubject", + "description": "`user` matches based on username." + } + }, + "required": [ + "kind" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/subject/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subject-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subject-rbac-v1.json new file mode 100644 index 00000000..6e676fdc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subject-rbac-v1.json @@ -0,0 +1,42 @@ +{ + "description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", + "properties": { + "apiGroup": { + "description": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the object being referenced.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/subject/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectaccessreview-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectaccessreview-authorization-v1.json new file mode 100644 index 00000000..31f5d47f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectaccessreview-authorization-v1.json @@ -0,0 +1,51 @@ +{ + "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SubjectAccessReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SubjectAccessReview", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/subjectaccessreview/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectaccessreviewspec-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectaccessreviewspec-authorization-v1.json new file mode 100644 index 00000000..30f2d46a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectaccessreviewspec-authorization-v1.json @@ -0,0 +1,64 @@ +{ + "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "extra": { + "additionalProperties": { + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", + "type": [ + "object", + "null" + ] + }, + "groups": { + "description": "Groups is the groups you're testing for.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nonResourceAttributes": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.NonResourceAttributes", + "description": "NonResourceAttributes describes information for a non-resource access request" + }, + "resourceAttributes": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.ResourceAttributes", + "description": "ResourceAuthorizationAttributes describes information for a resource access request" + }, + "uid": { + "description": "UID information about the requesting user.", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/subjectaccessreviewspec/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectaccessreviewstatus-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectaccessreviewstatus-authorization-v1.json new file mode 100644 index 00000000..b8834e66 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectaccessreviewstatus-authorization-v1.json @@ -0,0 +1,40 @@ +{ + "description": "SubjectAccessReviewStatus", + "properties": { + "allowed": { + "description": "Allowed is required. True if the action would be allowed, false otherwise.", + "type": [ + "boolean", + "null" + ] + }, + "denied": { + "description": "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", + "type": [ + "boolean", + "null" + ] + }, + "evaluationError": { + "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason is optional. It indicates why a request was allowed or denied.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "allowed" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/subjectaccessreviewstatus/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectrulesreviewstatus-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectrulesreviewstatus-authorization-v1.json new file mode 100644 index 00000000..d7d7afd1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/subjectrulesreviewstatus-authorization-v1.json @@ -0,0 +1,50 @@ +{ + "description": "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.", + "properties": { + "evaluationError": { + "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", + "type": [ + "string", + "null" + ] + }, + "incomplete": { + "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", + "type": [ + "boolean", + "null" + ] + }, + "nonResourceRules": { + "description": "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.NonResourceRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.ResourceRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "resourceRules", + "nonResourceRules", + "incomplete" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/subjectrulesreviewstatus/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/successpolicy-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/successpolicy-batch-v1.json new file mode 100644 index 00000000..60c20e21 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/successpolicy-batch-v1.json @@ -0,0 +1,23 @@ +{ + "description": "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.", + "properties": { + "rules": { + "description": "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.SuccessPolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/successpolicy/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/successpolicyrule-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/successpolicyrule-batch-v1.json new file mode 100644 index 00000000..5eb35048 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/successpolicyrule-batch-v1.json @@ -0,0 +1,24 @@ +{ + "description": "SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified.", + "properties": { + "succeededCount": { + "description": "succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is \"1-4\", succeededCount is \"3\", and completed indexes are \"1\", \"3\", and \"5\", the Job isn't declared as succeeded because only \"1\" and \"3\" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "succeededIndexes": { + "description": "succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to \".spec.completions-1\" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". When this field is null, this field doesn't default to any value and is never evaluated at any time.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/successpolicyrule/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/sysctl-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/sysctl-v1.json new file mode 100644 index 00000000..0838d096 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/sysctl-v1.json @@ -0,0 +1,27 @@ +{ + "description": "Sysctl defines a kernel parameter to be set", + "properties": { + "name": { + "description": "Name of a property to set", + "type": [ + "string", + "null" + ] + }, + "value": { + "description": "Value of a property to set", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "value" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/sysctl/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/taint-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/taint-v1.json new file mode 100644 index 00000000..204257c0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/taint-v1.json @@ -0,0 +1,38 @@ +{ + "description": "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", + "properties": { + "effect": { + "description": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", + "type": [ + "string", + "null" + ] + }, + "key": { + "description": "Required. The taint key to be applied to a node.", + "type": [ + "string", + "null" + ] + }, + "timeAdded": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints." + }, + "value": { + "description": "The taint value corresponding to the taint key.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "key", + "effect" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/taint/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tcpsocketaction-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tcpsocketaction-v1.json new file mode 100644 index 00000000..cde2ced3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tcpsocketaction-v1.json @@ -0,0 +1,23 @@ +{ + "description": "TCPSocketAction describes an action based on opening a socket", + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": [ + "string", + "null" + ] + }, + "port": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + } + }, + "required": [ + "port" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/tcpsocketaction/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/time-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/time-meta-v1.json new file mode 100644 index 00000000..47a36b29 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/time-meta-v1.json @@ -0,0 +1,8 @@ +{ + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": "string", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/time/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequest-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequest-authentication-v1.json new file mode 100644 index 00000000..5a55d6d3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequest-authentication-v1.json @@ -0,0 +1,51 @@ +{ + "description": "TokenRequest requests a token for a given service account.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "TokenRequest" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenRequestSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenRequestStatus", + "description": "Status is filled in by the server and indicates whether the token can be authenticated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "TokenRequest", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/tokenrequest/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequest-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequest-storage-v1.json new file mode 100644 index 00000000..da754da6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequest-storage-v1.json @@ -0,0 +1,27 @@ +{ + "description": "TokenRequest contains parameters of a service account token.", + "properties": { + "audience": { + "description": "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", + "type": [ + "string", + "null" + ] + }, + "expirationSeconds": { + "description": "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "audience" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/tokenrequest/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequestspec-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequestspec-authentication-v1.json new file mode 100644 index 00000000..b2e32957 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequestspec-authentication-v1.json @@ -0,0 +1,38 @@ +{ + "description": "TokenRequestSpec contains client provided parameters of a token request.", + "properties": { + "audiences": { + "description": "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "boundObjectRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.BoundObjectReference", + "description": "BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation." + }, + "expirationSeconds": { + "description": "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "audiences" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/tokenrequestspec/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequeststatus-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequeststatus-authentication-v1.json new file mode 100644 index 00000000..a7b1f36f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenrequeststatus-authentication-v1.json @@ -0,0 +1,24 @@ +{ + "description": "TokenRequestStatus is the result of a token request.", + "properties": { + "expirationTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "ExpirationTimestamp is the time of expiration of the returned token." + }, + "token": { + "description": "Token is the opaque bearer token.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "token", + "expirationTimestamp" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/tokenrequeststatus/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenreview-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenreview-authentication-v1.json new file mode 100644 index 00000000..3167799b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenreview-authentication-v1.json @@ -0,0 +1,51 @@ +{ + "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "TokenReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenReviewSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenReviewStatus", + "description": "Status is filled in by the server and indicates whether the request can be authenticated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "TokenReview", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/tokenreview/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenreviewspec-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenreviewspec-authentication-v1.json new file mode 100644 index 00000000..4d3844f1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenreviewspec-authentication-v1.json @@ -0,0 +1,30 @@ +{ + "description": "TokenReviewSpec is a description of the token authentication request.", + "properties": { + "audiences": { + "description": "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "token": { + "description": "Token is the opaque bearer token.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/tokenreviewspec/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenreviewstatus-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenreviewstatus-authentication-v1.json new file mode 100644 index 00000000..3d372421 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/tokenreviewstatus-authentication-v1.json @@ -0,0 +1,41 @@ +{ + "description": "TokenReviewStatus is the result of the token authentication request.", + "properties": { + "audiences": { + "description": "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "authenticated": { + "description": "Authenticated indicates that the token was associated with a known user.", + "type": [ + "boolean", + "null" + ] + }, + "error": { + "description": "Error indicates that the token couldn't be checked", + "type": [ + "string", + "null" + ] + }, + "user": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User is the UserInfo associated with the provided token." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/tokenreviewstatus/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/toleration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/toleration-v1.json new file mode 100644 index 00000000..e9ffdd8c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/toleration-v1.json @@ -0,0 +1,45 @@ +{ + "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", + "type": [ + "string", + "null" + ] + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.", + "type": [ + "string", + "null" + ] + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "value": { + "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/toleration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/topologyselectorlabelrequirement-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/topologyselectorlabelrequirement-v1.json new file mode 100644 index 00000000..15bd0062 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/topologyselectorlabelrequirement-v1.json @@ -0,0 +1,34 @@ +{ + "description": "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": [ + "string", + "null" + ] + }, + "values": { + "description": "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "values" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/topologyselectorlabelrequirement/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/topologyselectorterm-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/topologyselectorterm-v1.json new file mode 100644 index 00000000..771aef10 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/topologyselectorterm-v1.json @@ -0,0 +1,21 @@ +{ + "description": "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.", + "properties": { + "matchLabelExpressions": { + "description": "A list of topology selector requirements by labels.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TopologySelectorLabelRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/topologyselectorterm/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/topologyspreadconstraint-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/topologyspreadconstraint-v1.json new file mode 100644 index 00000000..e93c092a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/topologyspreadconstraint-v1.json @@ -0,0 +1,76 @@ +{ + "description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", + "properties": { + "labelSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain." + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "maxSkew": { + "description": "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "minDomains": { + "description": "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "nodeAffinityPolicy": { + "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "type": [ + "string", + "null" + ] + }, + "nodeTaintsPolicy": { + "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "type": [ + "string", + "null" + ] + }, + "topologyKey": { + "description": "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.", + "type": [ + "string", + "null" + ] + }, + "whenUnsatisfiable": { + "description": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "maxSkew", + "topologyKey", + "whenUnsatisfiable" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/topologyspreadconstraint/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typechecking-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typechecking-admissionregistration-v1.json new file mode 100644 index 00000000..b9b368c0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typechecking-admissionregistration-v1.json @@ -0,0 +1,20 @@ +{ + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ExpressionWarning" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/typechecking/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typechecking-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typechecking-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..2b20de7a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typechecking-admissionregistration-v1alpha1.json @@ -0,0 +1,20 @@ +{ + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ExpressionWarning" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/typechecking/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typechecking-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typechecking-admissionregistration-v1beta1.json new file mode 100644 index 00000000..96a9f905 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typechecking-admissionregistration-v1beta1.json @@ -0,0 +1,20 @@ +{ + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ExpressionWarning" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/typechecking/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typedlocalobjectreference-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typedlocalobjectreference-v1.json new file mode 100644 index 00000000..9ee55bde --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typedlocalobjectreference-v1.json @@ -0,0 +1,35 @@ +{ + "description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/typedlocalobjectreference/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typedobjectreference-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typedobjectreference-v1.json new file mode 100644 index 00000000..30f5c7f9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/typedobjectreference-v1.json @@ -0,0 +1,40 @@ +{ + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/typedobjectreference/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/uncountedterminatedpods-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/uncountedterminatedpods-batch-v1.json new file mode 100644 index 00000000..9faafcf5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/uncountedterminatedpods-batch-v1.json @@ -0,0 +1,37 @@ +{ + "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", + "properties": { + "failed": { + "description": "failed holds UIDs of failed Pods.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "succeeded": { + "description": "succeeded holds UIDs of succeeded Pods.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/uncountedterminatedpods/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/userinfo-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/userinfo-authentication-v1.json new file mode 100644 index 00000000..c0f41dad --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/userinfo-authentication-v1.json @@ -0,0 +1,56 @@ +{ + "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", + "properties": { + "extra": { + "additionalProperties": { + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "description": "Any additional information provided by the authenticator.", + "type": [ + "object", + "null" + ] + }, + "groups": { + "description": "The names of groups this user is a part of.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "uid": { + "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", + "type": [ + "string", + "null" + ] + }, + "username": { + "description": "The name that uniquely identifies this user among all active users.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/userinfo/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/usersubject-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/usersubject-flowcontrol-v1.json new file mode 100644 index 00000000..84298313 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/usersubject-flowcontrol-v1.json @@ -0,0 +1,19 @@ +{ + "description": "UserSubject holds detailed information for user-kind subject.", + "properties": { + "name": { + "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/usersubject/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/usersubject-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/usersubject-flowcontrol-v1beta3.json new file mode 100644 index 00000000..d27cc485 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/usersubject-flowcontrol-v1beta3.json @@ -0,0 +1,19 @@ +{ + "description": "UserSubject holds detailed information for user-kind subject.", + "properties": { + "name": { + "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/usersubject/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicy-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicy-admissionregistration-v1.json new file mode 100644 index 00000000..0ac2ebe2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicy-admissionregistration-v1.json @@ -0,0 +1,48 @@ +{ + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicy" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicy/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicy-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicy-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..448ee406 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicy-admissionregistration-v1alpha1.json @@ -0,0 +1,48 @@ +{ + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicy" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicy/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicy-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicy-admissionregistration-v1beta1.json new file mode 100644 index 00000000..11919a63 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicy-admissionregistration-v1beta1.json @@ -0,0 +1,48 @@ +{ + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicy" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicy/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybinding-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybinding-admissionregistration-v1.json new file mode 100644 index 00000000..739f943c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybinding-admissionregistration-v1.json @@ -0,0 +1,44 @@ +{ + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBinding" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicybinding/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybinding-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybinding-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..ee7b855e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybinding-admissionregistration-v1alpha1.json @@ -0,0 +1,44 @@ +{ + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBinding" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicybinding/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybinding-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybinding-admissionregistration-v1beta1.json new file mode 100644 index 00000000..2f26028f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybinding-admissionregistration-v1beta1.json @@ -0,0 +1,44 @@ +{ + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBinding" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicybinding/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindinglist-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindinglist-admissionregistration-v1.json new file mode 100644 index 00000000..919dbb8f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindinglist-admissionregistration-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBindingList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicybindinglist/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindinglist-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindinglist-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..a02703fb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindinglist-admissionregistration-v1alpha1.json @@ -0,0 +1,53 @@ +{ + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBindingList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicybindinglist/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindinglist-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindinglist-admissionregistration-v1beta1.json new file mode 100644 index 00000000..b047c97a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindinglist-admissionregistration-v1beta1.json @@ -0,0 +1,53 @@ +{ + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBindingList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicybindinglist/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindingspec-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindingspec-admissionregistration-v1.json new file mode 100644 index 00000000..cd01cbfe --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindingspec-admissionregistration-v1.json @@ -0,0 +1,38 @@ +{ + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": [ + "string", + "null" + ] + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicybindingspec/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindingspec-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindingspec-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..a1b9f802 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindingspec-admissionregistration-v1alpha1.json @@ -0,0 +1,38 @@ +{ + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": [ + "string", + "null" + ] + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicybindingspec/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindingspec-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindingspec-admissionregistration-v1beta1.json new file mode 100644 index 00000000..820cd3fa --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicybindingspec-admissionregistration-v1beta1.json @@ -0,0 +1,38 @@ +{ + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": [ + "string", + "null" + ] + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicybindingspec/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicylist-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicylist-admissionregistration-v1.json new file mode 100644 index 00000000..5cc89796 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicylist-admissionregistration-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicylist/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicylist-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicylist-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..9d7f1fb4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicylist-admissionregistration-v1alpha1.json @@ -0,0 +1,53 @@ +{ + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicylist/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicylist-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicylist-admissionregistration-v1beta1.json new file mode 100644 index 00000000..40c34a9b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicylist-admissionregistration-v1beta1.json @@ -0,0 +1,53 @@ +{ + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicylist/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicyspec-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicyspec-admissionregistration-v1.json new file mode 100644 index 00000000..223567f5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicyspec-admissionregistration-v1.json @@ -0,0 +1,78 @@ +{ + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.AuditAnnotation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.Validation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.Variable" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicyspec/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicyspec-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicyspec-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..5c895d91 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicyspec-admissionregistration-v1alpha1.json @@ -0,0 +1,78 @@ +{ + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.Validation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.Variable" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicyspec/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicyspec-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicyspec-admissionregistration-v1beta1.json new file mode 100644 index 00000000..430da815 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicyspec-admissionregistration-v1beta1.json @@ -0,0 +1,78 @@ +{ + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.AuditAnnotation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.Validation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.Variable" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicyspec/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicystatus-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicystatus-admissionregistration-v1.json new file mode 100644 index 00000000..ac434dda --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicystatus-admissionregistration-v1.json @@ -0,0 +1,35 @@ +{ + "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "typeChecking": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicystatus/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicystatus-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicystatus-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..4e2ac336 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicystatus-admissionregistration-v1alpha1.json @@ -0,0 +1,35 @@ +{ + "description": "ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "typeChecking": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicystatus/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicystatus-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicystatus-admissionregistration-v1beta1.json new file mode 100644 index 00000000..eb51f7a3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingadmissionpolicystatus-admissionregistration-v1beta1.json @@ -0,0 +1,35 @@ +{ + "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "typeChecking": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingadmissionpolicystatus/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingwebhook-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingwebhook-admissionregistration-v1.json new file mode 100644 index 00000000..2392abc8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingwebhook-admissionregistration-v1.json @@ -0,0 +1,104 @@ +{ + "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "clientConfig": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.RuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "sideEffects": { + "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", + "type": [ + "string", + "null" + ] + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingwebhook/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingwebhookconfiguration-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingwebhookconfiguration-admissionregistration-v1.json new file mode 100644 index 00000000..5fa01cc0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingwebhookconfiguration-admissionregistration-v1.json @@ -0,0 +1,56 @@ +{ + "description": "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingWebhookConfiguration" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "webhooks": { + "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhook" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingwebhookconfiguration/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingwebhookconfigurationlist-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingwebhookconfigurationlist-admissionregistration-v1.json new file mode 100644 index 00000000..7d5a5f1d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validatingwebhookconfigurationlist-admissionregistration-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of ValidatingWebhookConfiguration.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingWebhookConfigurationList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfigurationList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validatingwebhookconfigurationlist/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validation-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validation-admissionregistration-v1.json new file mode 100644 index 00000000..8622afa2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validation-admissionregistration-v1.json @@ -0,0 +1,40 @@ +{ + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validation/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validation-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validation-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..c146cdff --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validation-admissionregistration-v1alpha1.json @@ -0,0 +1,40 @@ +{ + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validation/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validation-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validation-admissionregistration-v1beta1.json new file mode 100644 index 00000000..fe1096d5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validation-admissionregistration-v1beta1.json @@ -0,0 +1,40 @@ +{ + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validation/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validationrule-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validationrule-apiextensions-v1.json new file mode 100644 index 00000000..172304cd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/validationrule-apiextensions-v1.json @@ -0,0 +1,54 @@ +{ + "description": "ValidationRule describes a validation rule written in the CEL expression language.", + "properties": { + "fieldPath": { + "description": "fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']`", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "optionalOldSelf": { + "description": "optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value.\n\nWhen enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created.\n\nYou may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes\n\nMay not be set unless `oldSelf` is used in `rule`.", + "type": [ + "boolean", + "null" + ] + }, + "reason": { + "description": "reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid.", + "type": [ + "string", + "null" + ] + }, + "rule": { + "description": "Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"}\n\nIf the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"}\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible.\n\nUnknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as:\n - A schema with no type and x-kubernetes-preserve-unknown-fields set to true\n - An array where the items schema is of an \"unknown type\"\n - An object where the additionalProperties schema is of an \"unknown type\"\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"}\n - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"}\n - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"}\n\nEquality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\n\nIf `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`.\n\nBy default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional\n variable whose value() is the same type as `self`.\nSee the documentation for the `optionalOldSelf` field for details.\n\nTransition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "rule" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/validationrule/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/variable-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/variable-admissionregistration-v1.json new file mode 100644 index 00000000..34371c62 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/variable-admissionregistration-v1.json @@ -0,0 +1,28 @@ +{ + "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/variable/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/variable-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/variable-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..6670c11a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/variable-admissionregistration-v1alpha1.json @@ -0,0 +1,27 @@ +{ + "description": "Variable is the definition of a variable that is used for composition.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/variable/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/variable-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/variable-admissionregistration-v1beta1.json new file mode 100644 index 00000000..62607f31 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/variable-admissionregistration-v1beta1.json @@ -0,0 +1,28 @@ +{ + "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/variable/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volume-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volume-v1.json new file mode 100644 index 00000000..38d74c42 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volume-v1.json @@ -0,0 +1,139 @@ +{ + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "properties": { + "awsElasticBlockStore": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource", + "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore" + }, + "azureDisk": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureDiskVolumeSource", + "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." + }, + "azureFile": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureFileVolumeSource", + "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod." + }, + "cephfs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CephFSVolumeSource", + "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "cinder": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CinderVolumeSource", + "description": "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + }, + "configMap": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapVolumeSource", + "description": "configMap represents a configMap that should populate this volume" + }, + "csi": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CSIVolumeSource", + "description": "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature)." + }, + "downwardAPI": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeSource", + "description": "downwardAPI represents downward API about the pod that should populate this volume" + }, + "emptyDir": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EmptyDirVolumeSource", + "description": "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" + }, + "ephemeral": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EphemeralVolumeSource", + "description": "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time." + }, + "fc": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FCVolumeSource", + "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flexVolume": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlexVolumeSource", + "description": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." + }, + "flocker": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlockerVolumeSource", + "description": "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running" + }, + "gcePersistentDisk": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource", + "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + }, + "gitRepo": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GitRepoVolumeSource", + "description": "gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container." + }, + "glusterfs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GlusterfsVolumeSource", + "description": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + }, + "hostPath": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostPathVolumeSource", + "description": "hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" + }, + "image": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ImageVolumeSource", + "description": "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type." + }, + "iscsi": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ISCSIVolumeSource", + "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md" + }, + "name": { + "description": "name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "nfs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NFSVolumeSource", + "description": "nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + }, + "persistentVolumeClaim": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource", + "description": "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + }, + "photonPersistentDisk": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource", + "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" + }, + "portworxVolume": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PortworxVolumeSource", + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine" + }, + "projected": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ProjectedVolumeSource", + "description": "projected items for all in one resources secrets, configmaps, and downward API" + }, + "quobyte": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.QuobyteVolumeSource", + "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime" + }, + "rbd": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.RBDVolumeSource", + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md" + }, + "scaleIO": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScaleIOVolumeSource", + "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." + }, + "secret": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretVolumeSource", + "description": "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret" + }, + "storageos": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.StorageOSVolumeSource", + "description": "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes." + }, + "vsphereVolume": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource", + "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volume/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachment-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachment-storage-v1.json new file mode 100644 index 00000000..9c82aad9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachment-storage-v1.json @@ -0,0 +1,51 @@ +{ + "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttachment" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentSpec", + "description": "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentStatus", + "description": "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumeattachment/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentlist-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentlist-storage-v1.json new file mode 100644 index 00000000..65648052 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentlist-storage-v1.json @@ -0,0 +1,53 @@ +{ + "description": "VolumeAttachmentList is a collection of VolumeAttachment objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of VolumeAttachments", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachment" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttachmentList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachmentList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumeattachmentlist/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentsource-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentsource-storage-v1.json new file mode 100644 index 00000000..56b0b30a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentsource-storage-v1.json @@ -0,0 +1,20 @@ +{ + "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", + "properties": { + "inlineVolumeSpec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature." + }, + "persistentVolumeName": { + "description": "persistentVolumeName represents the name of the persistent volume to attach.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumeattachmentsource/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentspec-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentspec-storage-v1.json new file mode 100644 index 00000000..b4b04632 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentspec-storage-v1.json @@ -0,0 +1,32 @@ +{ + "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", + "properties": { + "attacher": { + "description": "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", + "type": [ + "string", + "null" + ] + }, + "nodeName": { + "description": "nodeName represents the node that the volume should be attached to.", + "type": [ + "string", + "null" + ] + }, + "source": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentSource", + "description": "source represents the volume that should be attached." + } + }, + "required": [ + "attacher", + "source", + "nodeName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumeattachmentspec/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentstatus-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentstatus-storage-v1.json new file mode 100644 index 00000000..c7caefe3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattachmentstatus-storage-v1.json @@ -0,0 +1,40 @@ +{ + "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", + "properties": { + "attachError": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeError", + "description": "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." + }, + "attached": { + "description": "attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "type": [ + "boolean", + "null" + ] + }, + "attachmentMetadata": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "type": [ + "object", + "null" + ] + }, + "detachError": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeError", + "description": "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." + } + }, + "required": [ + "attached" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumeattachmentstatus/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclass-storage-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclass-storage-v1alpha1.json new file mode 100644 index 00000000..ca7a4568 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclass-storage-v1alpha1.json @@ -0,0 +1,63 @@ +{ + "description": "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1alpha1" + ] + }, + "driverName": { + "description": "Name of the CSI driver This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "parameters": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "driverName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumeattributesclass/storage/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclass-storage-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclass-storage-v1beta1.json new file mode 100644 index 00000000..85d5bbf1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclass-storage-v1beta1.json @@ -0,0 +1,63 @@ +{ + "description": "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1beta1" + ] + }, + "driverName": { + "description": "Name of the CSI driver This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "parameters": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "driverName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumeattributesclass/storage/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclasslist-storage-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclasslist-storage-v1alpha1.json new file mode 100644 index 00000000..fdd438dc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclasslist-storage-v1alpha1.json @@ -0,0 +1,53 @@ +{ + "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "items is the list of VolumeAttributesClass objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClassList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumeattributesclasslist/storage/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclasslist-storage-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclasslist-storage-v1beta1.json new file mode 100644 index 00000000..171aa6c0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeattributesclasslist-storage-v1beta1.json @@ -0,0 +1,53 @@ +{ + "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1beta1" + ] + }, + "items": { + "description": "items is the list of VolumeAttributesClass objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClassList", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumeattributesclasslist/storage/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumedevice-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumedevice-v1.json new file mode 100644 index 00000000..aef06f34 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumedevice-v1.json @@ -0,0 +1,27 @@ +{ + "description": "volumeDevice describes a mapping of a raw block device within a container.", + "properties": { + "devicePath": { + "description": "devicePath is the path inside of the container that the device will be mapped to.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name must match the name of a persistentVolumeClaim in the pod", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "devicePath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumedevice/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeerror-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeerror-storage-v1.json new file mode 100644 index 00000000..613f90b5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeerror-storage-v1.json @@ -0,0 +1,20 @@ +{ + "description": "VolumeError captures an error encountered during a volume operation.", + "properties": { + "message": { + "description": "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", + "type": [ + "string", + "null" + ] + }, + "time": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "time represents the time the error was encountered." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumeerror/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumemount-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumemount-v1.json new file mode 100644 index 00000000..8b300b8a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumemount-v1.json @@ -0,0 +1,62 @@ +{ + "description": "VolumeMount describes a mounting of a Volume within a container.", + "properties": { + "mountPath": { + "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "type": [ + "string", + "null" + ] + }, + "mountPropagation": { + "description": "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "This must match the Name of a Volume.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "recursiveReadOnly": { + "description": "RecursiveReadOnly specifies whether read-only mounts should be handled recursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", + "type": [ + "string", + "null" + ] + }, + "subPath": { + "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", + "type": [ + "string", + "null" + ] + }, + "subPathExpr": { + "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "mountPath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumemount/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumemountstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumemountstatus-v1.json new file mode 100644 index 00000000..c96aa376 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumemountstatus-v1.json @@ -0,0 +1,41 @@ +{ + "description": "VolumeMountStatus shows status of volume mounts.", + "properties": { + "mountPath": { + "description": "MountPath corresponds to the original VolumeMount.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name corresponds to the name of the original VolumeMount.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "ReadOnly corresponds to the original VolumeMount.", + "type": [ + "boolean", + "null" + ] + }, + "recursiveReadOnly": { + "description": "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "mountPath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumemountstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumenodeaffinity-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumenodeaffinity-v1.json new file mode 100644 index 00000000..5f8065f3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumenodeaffinity-v1.json @@ -0,0 +1,13 @@ +{ + "description": "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", + "properties": { + "required": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "required specifies hard node constraints that must be met." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumenodeaffinity/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumenoderesources-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumenoderesources-storage-v1.json new file mode 100644 index 00000000..7d0a8fa1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumenoderesources-storage-v1.json @@ -0,0 +1,17 @@ +{ + "description": "VolumeNodeResources is a set of resource limits for scheduling of volumes.", + "properties": { + "count": { + "description": "count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumenoderesources/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeprojection-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeprojection-v1.json new file mode 100644 index 00000000..0ac7db0d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeprojection-v1.json @@ -0,0 +1,29 @@ +{ + "description": "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.", + "properties": { + "clusterTrustBundle": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ClusterTrustBundleProjection", + "description": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time." + }, + "configMap": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapProjection", + "description": "configMap information about the configMap data to project" + }, + "downwardAPI": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIProjection", + "description": "downwardAPI information about the downwardAPI data to project" + }, + "secret": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretProjection", + "description": "secret information about the secret data to project" + }, + "serviceAccountToken": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceAccountTokenProjection", + "description": "serviceAccountToken is information about the serviceAccountToken data to project" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumeprojection/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeresourcerequirements-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeresourcerequirements-v1.json new file mode 100644 index 00000000..4cc147f4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/volumeresourcerequirements-v1.json @@ -0,0 +1,29 @@ +{ + "description": "VolumeResourceRequirements describes the storage resource requirements for a volume.", + "properties": { + "limits": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + }, + "requests": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/volumeresourcerequirements/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/vspherevirtualdiskvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/vspherevirtualdiskvolumesource-v1.json new file mode 100644 index 00000000..dbba7232 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/vspherevirtualdiskvolumesource-v1.json @@ -0,0 +1,40 @@ +{ + "description": "Represents a vSphere volume resource.", + "properties": { + "fsType": { + "description": "fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "storagePolicyID": { + "description": "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", + "type": [ + "string", + "null" + ] + }, + "storagePolicyName": { + "description": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", + "type": [ + "string", + "null" + ] + }, + "volumePath": { + "description": "volumePath is the path that identifies vSphere volume vmdk", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "volumePath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/vspherevirtualdiskvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/watchevent-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/watchevent-meta-v1.json new file mode 100644 index 00000000..3ac4d572 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/watchevent-meta-v1.json @@ -0,0 +1,325 @@ +{ + "description": "Event represents a single event to a watched resource.", + "properties": { + "object": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context." + }, + "type": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "object" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta2" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2beta1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2beta2" + }, + { + "group": "batch", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "batch", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "extensions", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta2" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta3" + }, + { + "group": "imagepolicy.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "internal.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "policy", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "policy", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha3" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/watchevent/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/webhookclientconfig-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/webhookclientconfig-admissionregistration-v1.json new file mode 100644 index 00000000..aad5142e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/webhookclientconfig-admissionregistration-v1.json @@ -0,0 +1,28 @@ +{ + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook", + "properties": { + "caBundle": { + "description": "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "service": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ServiceReference", + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + }, + "url": { + "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/webhookclientconfig/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/webhookclientconfig-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/webhookclientconfig-apiextensions-v1.json new file mode 100644 index 00000000..3f22d9d4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/webhookclientconfig-apiextensions-v1.json @@ -0,0 +1,28 @@ +{ + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook.", + "properties": { + "caBundle": { + "description": "caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "service": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference", + "description": "service is a reference to the service for this webhook. Either service or url must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + }, + "url": { + "description": "url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/webhookclientconfig/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/webhookconversion-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/webhookconversion-apiextensions-v1.json new file mode 100644 index 00000000..b8b7ad64 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/webhookconversion-apiextensions-v1.json @@ -0,0 +1,30 @@ +{ + "description": "WebhookConversion describes how to call a conversion webhook", + "properties": { + "clientConfig": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookClientConfig", + "description": "clientConfig is the instructions for how to call the webhook if strategy is `Webhook`." + }, + "conversionReviewVersions": { + "description": "conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "conversionReviewVersions" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/webhookconversion/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/weightedpodaffinityterm-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/weightedpodaffinityterm-v1.json new file mode 100644 index 00000000..7e12d8e0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/weightedpodaffinityterm-v1.json @@ -0,0 +1,25 @@ +{ + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "properties": { + "podAffinityTerm": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinityTerm", + "description": "Required. A pod affinity term, associated with the corresponding weight." + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "weight", + "podAffinityTerm" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/weightedpodaffinityterm/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/windowssecuritycontextoptions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/windowssecuritycontextoptions-v1.json new file mode 100644 index 00000000..44969552 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local-strict/windowssecuritycontextoptions-v1.json @@ -0,0 +1,37 @@ +{ + "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", + "properties": { + "gmsaCredentialSpec": { + "description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.", + "type": [ + "string", + "null" + ] + }, + "gmsaCredentialSpecName": { + "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", + "type": [ + "string", + "null" + ] + }, + "hostProcess": { + "description": "HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.", + "type": [ + "boolean", + "null" + ] + }, + "runAsUserName": { + "description": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "additionalProperties": false, + "$id": "https://kubernetes.io/api/windowssecuritycontextoptions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/_definitions.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/_definitions.json new file mode 100644 index 00000000..18d986a9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/_definitions.json @@ -0,0 +1,26986 @@ +{ + "$defs": { + "io.k8s.api.admissionregistration.v1.AuditAnnotation": { + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": "string" + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": "string" + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1.ExpressionWarning": { + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": "string" + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": "string" + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1.MatchCondition": { + "description": "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": "string" + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1.MatchResources": { + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1.MutatingWebhook": { + "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "clientConfig": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "reinvocationPolicy": { + "description": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", + "type": [ + "string", + "null" + ] + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.RuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "sideEffects": { + "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", + "type": "string" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration": { + "description": "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "MutatingWebhookConfiguration" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "webhooks": { + "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhook" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + ] + }, + "io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList": { + "description": "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of MutatingWebhookConfiguration.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "MutatingWebhookConfigurationList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfigurationList", + "version": "v1" + } + ] + }, + "io.k8s.api.admissionregistration.v1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": [ + "string", + "null" + ] + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1.RuleWithOperations": { + "description": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "`name` is the name of the service. Required", + "type": "string" + }, + "namespace": { + "description": "`namespace` is the namespace of the service. Required", + "type": "string" + }, + "path": { + "description": "`path` is an optional URL path which will be sent in any request to this service.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "namespace", + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1.TypeChecking": { + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ExpressionWarning" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy": { + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicy" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1" + } + ] + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBinding" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" + } + ] + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBindingList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1" + } + ] + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": [ + "string", + "null" + ] + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1" + } + ] + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.AuditAnnotation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.Validation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.Variable" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyStatus": { + "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "typeChecking": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1.ValidatingWebhook": { + "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "clientConfig": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.RuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "sideEffects": { + "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", + "type": "string" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration": { + "description": "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingWebhookConfiguration" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "webhooks": { + "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhook" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + ] + }, + "io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList": { + "description": "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of ValidatingWebhookConfiguration.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingWebhookConfigurationList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfigurationList", + "version": "v1" + } + ] + }, + "io.k8s.api.admissionregistration.v1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1.Variable": { + "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": "string" + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1.WebhookClientConfig": { + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook", + "properties": { + "caBundle": { + "description": "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "service": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1.ServiceReference", + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + }, + "url": { + "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation": { + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": "string" + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": "string" + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ExpressionWarning": { + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": "string" + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": "string" + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.MatchCondition": { + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": "string" + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.MatchResources": { + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "`name` is the name of the resource being referenced.\n\n`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": [ + "string", + "null" + ] + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny` Default to `Deny`", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.TypeChecking": { + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ExpressionWarning" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy": { + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicy" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBinding" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBindingList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": [ + "string", + "null" + ] + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.Validation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.Variable" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyStatus": { + "description": "ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "typeChecking": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1alpha1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.Variable": { + "description": "Variable is the definition of a variable that is used for composition.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": "string" + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1beta1.AuditAnnotation": { + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": "string" + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": "string" + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1beta1.ExpressionWarning": { + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": "string" + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": "string" + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1beta1.MatchCondition": { + "description": "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": "string" + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1beta1.MatchResources": { + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1beta1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1beta1.ParamRef": { + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": [ + "string", + "null" + ] + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1beta1.TypeChecking": { + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ExpressionWarning" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy": { + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicy" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBinding" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBindingList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": [ + "string", + "null" + ] + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.AuditAnnotation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.Validation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.Variable" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyStatus": { + "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "typeChecking": { + "$ref": "#/$defs/io.k8s.api.admissionregistration.v1beta1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1beta1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.admissionregistration.v1beta1.Variable": { + "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": "string" + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": "string" + } + }, + "required": [ + "name", + "expression" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion": { + "description": "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.", + "properties": { + "apiServerID": { + "description": "The ID of the reporting API server.", + "type": [ + "string", + "null" + ] + }, + "decodableVersions": { + "description": "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "encodingVersion": { + "description": "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).", + "type": [ + "string", + "null" + ] + }, + "servedVersions": { + "description": "The API server can serve these versions. DecodableVersions must include all ServedVersions.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersion": { + "description": "Storage version of a specific resource.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "internal.apiserver.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersion" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "The name is .." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionSpec", + "description": "Spec is an empty spec. It is here to comply with Kubernetes API style." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionStatus", + "description": "API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend." + } + }, + "required": [ + "spec", + "status" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionCondition": { + "description": "Describes the state of the storageVersion at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" + }, + "observedGeneration": { + "description": "If set, this represents the .metadata.generation that the condition was set based upon.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of the condition.", + "type": "string" + } + }, + "required": [ + "type", + "status", + "reason", + "message" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList": { + "description": "A list of StorageVersions.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "internal.apiserver.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "Items holds a list of StorageVersion", + "items": { + "$ref": "#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersionList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersionList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionSpec": { + "description": "StorageVersionSpec is an empty spec.", + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apiserverinternal.v1alpha1.StorageVersionStatus": { + "description": "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.", + "properties": { + "commonEncodingVersion": { + "description": "If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.", + "type": [ + "string", + "null" + ] + }, + "conditions": { + "description": "The latest available observations of the storageVersion's state.", + "items": { + "$ref": "#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "storageVersions": { + "description": "The reported versions per API server instance.", + "items": { + "$ref": "#/$defs/io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "apiServerID" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.ControllerRevision": { + "description": "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "data": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Data is the serialized representation of the state." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ControllerRevision" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "revision": { + "description": "Revision indicates the revision of the state represented by Data.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "revision" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.ControllerRevisionList": { + "description": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "Items is the list of ControllerRevisions", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.ControllerRevision" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ControllerRevisionList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ControllerRevisionList", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.DaemonSet": { + "description": "DaemonSet represents the configuration of a daemon set.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DaemonSet" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DaemonSetSpec", + "description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DaemonSetStatus", + "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.DaemonSetCondition": { + "description": "DaemonSetCondition describes the state of a DaemonSet at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of DaemonSet condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.DaemonSetList": { + "description": "DaemonSetList is a collection of daemon sets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "A list of daemon sets.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DaemonSet" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DaemonSetList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DaemonSetList", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.DaemonSetSpec": { + "description": "DaemonSetSpec is the specification of a daemon set.", + "properties": { + "minReadySeconds": { + "description": "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "revisionHistoryLimit": { + "description": "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + }, + "updateStrategy": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DaemonSetUpdateStrategy", + "description": "An update strategy to replace existing DaemonSet pods with new pods." + } + }, + "required": [ + "selector", + "template" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.DaemonSetStatus": { + "description": "DaemonSetStatus represents the current status of a daemon set.", + "properties": { + "collisionCount": { + "description": "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a DaemonSet's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DaemonSetCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentNumberScheduled": { + "description": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": "integer" + }, + "desiredNumberScheduled": { + "description": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": "integer" + }, + "numberAvailable": { + "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "numberMisscheduled": { + "description": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": "integer" + }, + "numberReady": { + "description": "numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.", + "format": "int32", + "type": "integer" + }, + "numberUnavailable": { + "description": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "The most recent generation observed by the daemon set controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "updatedNumberScheduled": { + "description": "The total number of nodes that are running updated daemon pod", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "currentNumberScheduled", + "numberMisscheduled", + "desiredNumberScheduled", + "numberReady" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.DaemonSetUpdateStrategy": { + "description": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", + "properties": { + "rollingUpdate": { + "$ref": "#/$defs/io.k8s.api.apps.v1.RollingUpdateDaemonSet", + "description": "Rolling update config params. Present only if type = \"RollingUpdate\"." + }, + "type": { + "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.Deployment": { + "description": "Deployment enables declarative updates for Pods and ReplicaSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Deployment" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DeploymentSpec", + "description": "Specification of the desired behavior of the Deployment." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DeploymentStatus", + "description": "Most recently observed status of the Deployment." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.DeploymentCondition": { + "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "lastUpdateTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time this condition was updated." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of deployment condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.DeploymentList": { + "description": "DeploymentList is a list of Deployments.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "Items is the list of Deployments.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.Deployment" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeploymentList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DeploymentList", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.DeploymentSpec": { + "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "paused": { + "description": "Indicates that the deployment is paused.", + "type": [ + "boolean", + "null" + ] + }, + "progressDeadlineSeconds": { + "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "revisionHistoryLimit": { + "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels." + }, + "strategy": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DeploymentStrategy", + "description": "The deployment strategy to use to replace existing pods with new ones.", + "x-kubernetes-patch-strategy": "retainKeys" + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\"." + } + }, + "required": [ + "selector", + "template" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.DeploymentStatus": { + "description": "DeploymentStatus is the most recently observed status of the Deployment.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "collisionCount": { + "description": "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a deployment's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.DeploymentCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "observedGeneration": { + "description": "The generation observed by the deployment controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "unavailableReplicas": { + "description": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "updatedReplicas": { + "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.DeploymentStrategy": { + "description": "DeploymentStrategy describes how to replace existing pods with new ones.", + "properties": { + "rollingUpdate": { + "$ref": "#/$defs/io.k8s.api.apps.v1.RollingUpdateDeployment", + "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate." + }, + "type": { + "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.ReplicaSet": { + "description": "ReplicaSet ensures that a specified number of pod replicas are running at any given time.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicaSet" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.apps.v1.ReplicaSetSpec", + "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.apps.v1.ReplicaSetStatus", + "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.ReplicaSetCondition": { + "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of replica set condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.ReplicaSetList": { + "description": "ReplicaSetList is a collection of ReplicaSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.ReplicaSet" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicaSetList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ReplicaSetList", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.ReplicaSetSpec": { + "description": "ReplicaSetSpec is the specification of a ReplicaSet.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + } + }, + "required": [ + "selector" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.ReplicaSetStatus": { + "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", + "properties": { + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a replica set's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.ReplicaSetCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replicaset.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "replicas" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.RollingUpdateDaemonSet": { + "description": "Spec to control the desired behavior of daemon set rolling update.", + "properties": { + "maxSurge": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption." + }, + "maxUnavailable": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.RollingUpdateDeployment": { + "description": "Spec to control the desired behavior of rolling update.", + "properties": { + "maxSurge": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods." + }, + "maxUnavailable": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy": { + "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", + "properties": { + "maxUnavailable": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable." + }, + "partition": { + "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.StatefulSet": { + "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StatefulSet" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSetSpec", + "description": "Spec defines the desired identities of pods in this set." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSetStatus", + "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.StatefulSetCondition": { + "description": "StatefulSetCondition describes the state of a statefulset at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of statefulset condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.StatefulSetList": { + "description": "StatefulSetList is a collection of StatefulSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "Items is the list of stateful sets.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSet" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StatefulSetList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "StatefulSetList", + "version": "v1" + } + ] + }, + "io.k8s.api.apps.v1.StatefulSetOrdinals": { + "description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", + "properties": { + "start": { + "description": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy": { + "description": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", + "properties": { + "whenDeleted": { + "description": "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.", + "type": [ + "string", + "null" + ] + }, + "whenScaled": { + "description": "WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.StatefulSetSpec": { + "description": "A StatefulSetSpec is the specification of a StatefulSet.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "ordinals": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSetOrdinals", + "description": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested." + }, + "persistentVolumeClaimRetentionPolicy": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy", + "description": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta." + }, + "podManagementPolicy": { + "description": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.", + "type": [ + "string", + "null" + ] + }, + "replicas": { + "description": "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "revisionHistoryLimit": { + "description": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "serviceName": { + "description": "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.", + "type": "string" + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\". The only allowed template.spec.restartPolicy value is \"Always\"." + }, + "updateStrategy": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSetUpdateStrategy", + "description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template." + }, + "volumeClaimTemplates": { + "description": "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaim" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "selector", + "template", + "serviceName" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.StatefulSetStatus": { + "description": "StatefulSetStatus represents the current state of a StatefulSet.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "collisionCount": { + "description": "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a statefulset's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.apps.v1.StatefulSetCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentReplicas": { + "description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "currentRevision": { + "description": "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).", + "type": [ + "string", + "null" + ] + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "replicas is the number of Pods created by the StatefulSet controller.", + "format": "int32", + "type": "integer" + }, + "updateRevision": { + "description": "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)", + "type": [ + "string", + "null" + ] + }, + "updatedReplicas": { + "description": "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "replicas" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.apps.v1.StatefulSetUpdateStrategy": { + "description": "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", + "properties": { + "rollingUpdate": { + "$ref": "#/$defs/io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy", + "description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType." + }, + "type": { + "description": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authentication.v1.BoundObjectReference": { + "description": "BoundObjectReference is a reference to an object that a token is bound to.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID of the referent.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authentication.v1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1" + } + ] + }, + "io.k8s.api.authentication.v1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authentication.v1.TokenRequest": { + "description": "TokenRequest requests a token for a given service account.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "TokenRequest" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.TokenRequestSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.TokenRequestStatus", + "description": "Status is filled in by the server and indicates whether the token can be authenticated." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "TokenRequest", + "version": "v1" + } + ] + }, + "io.k8s.api.authentication.v1.TokenRequestSpec": { + "description": "TokenRequestSpec contains client provided parameters of a token request.", + "properties": { + "audiences": { + "description": "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "boundObjectRef": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.BoundObjectReference", + "description": "BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation." + }, + "expirationSeconds": { + "description": "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "audiences" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authentication.v1.TokenRequestStatus": { + "description": "TokenRequestStatus is the result of a token request.", + "properties": { + "expirationTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "ExpirationTimestamp is the time of expiration of the returned token." + }, + "token": { + "description": "Token is the opaque bearer token.", + "type": "string" + } + }, + "required": [ + "token", + "expirationTimestamp" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authentication.v1.TokenReview": { + "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "TokenReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.TokenReviewSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.TokenReviewStatus", + "description": "Status is filled in by the server and indicates whether the request can be authenticated." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "TokenReview", + "version": "v1" + } + ] + }, + "io.k8s.api.authentication.v1.TokenReviewSpec": { + "description": "TokenReviewSpec is a description of the token authentication request.", + "properties": { + "audiences": { + "description": "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "token": { + "description": "Token is the opaque bearer token.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authentication.v1.TokenReviewStatus": { + "description": "TokenReviewStatus is the result of the token authentication request.", + "properties": { + "audiences": { + "description": "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "authenticated": { + "description": "Authenticated indicates that the token was associated with a known user.", + "type": [ + "boolean", + "null" + ] + }, + "error": { + "description": "Error indicates that the token couldn't be checked", + "type": [ + "string", + "null" + ] + }, + "user": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User is the UserInfo associated with the provided token." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authentication.v1.UserInfo": { + "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", + "properties": { + "extra": { + "additionalProperties": { + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "description": "Any additional information provided by the authenticator.", + "type": [ + "object", + "null" + ] + }, + "groups": { + "description": "The names of groups this user is a part of.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "uid": { + "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", + "type": [ + "string", + "null" + ] + }, + "username": { + "description": "The name that uniquely identifies this user among all active users.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authentication.v1alpha1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authentication.v1beta1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authentication.v1beta1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.authentication.v1beta1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authorization.v1.FieldSelectorAttributes": { + "description": "FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.", + "properties": { + "rawSelector": { + "description": "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.", + "type": [ + "string", + "null" + ] + }, + "requirements": { + "description": "requirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.FieldSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authorization.v1.LabelSelectorAttributes": { + "description": "LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.", + "properties": { + "rawSelector": { + "description": "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.", + "type": [ + "string", + "null" + ] + }, + "requirements": { + "description": "requirements is the parsed interpretation of a label selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authorization.v1.LocalSubjectAccessReview": { + "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LocalSubjectAccessReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "LocalSubjectAccessReview", + "version": "v1" + } + ] + }, + "io.k8s.api.authorization.v1.NonResourceAttributes": { + "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", + "properties": { + "path": { + "description": "Path is the URL path of the request", + "type": [ + "string", + "null" + ] + }, + "verb": { + "description": "Verb is the standard HTTP verb", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authorization.v1.NonResourceRule": { + "description": "NonResourceRule holds information that describes a rule for the non-resource", + "properties": { + "nonResourceURLs": { + "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authorization.v1.ResourceAttributes": { + "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", + "properties": { + "fieldSelector": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.FieldSelectorAttributes", + "description": "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default)." + }, + "group": { + "description": "Group is the API Group of the Resource. \"*\" means all.", + "type": [ + "string", + "null" + ] + }, + "labelSelector": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.LabelSelectorAttributes", + "description": "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default)." + }, + "name": { + "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "Resource is one of the existing resource types. \"*\" means all.", + "type": [ + "string", + "null" + ] + }, + "subresource": { + "description": "Subresource is one of the existing resource types. \"\" means none.", + "type": [ + "string", + "null" + ] + }, + "verb": { + "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "Version is the API Version of the Resource. \"*\" means all.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authorization.v1.ResourceRule": { + "description": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "properties": { + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authorization.v1.SelfSubjectAccessReview": { + "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectAccessReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated. user and groups must be empty" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectAccessReview", + "version": "v1" + } + ] + }, + "io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec": { + "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "nonResourceAttributes": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.NonResourceAttributes", + "description": "NonResourceAttributes describes information for a non-resource access request" + }, + "resourceAttributes": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.ResourceAttributes", + "description": "ResourceAuthorizationAttributes describes information for a resource access request" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authorization.v1.SelfSubjectRulesReview": { + "description": "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectRulesReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec", + "description": "Spec holds information about the request being evaluated." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SubjectRulesReviewStatus", + "description": "Status is filled in by the server and indicates the set of actions a user can perform." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectRulesReview", + "version": "v1" + } + ] + }, + "io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec": { + "description": "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.", + "properties": { + "namespace": { + "description": "Namespace to evaluate rules for. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authorization.v1.SubjectAccessReview": { + "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SubjectAccessReview" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SubjectAccessReview", + "version": "v1" + } + ] + }, + "io.k8s.api.authorization.v1.SubjectAccessReviewSpec": { + "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "extra": { + "additionalProperties": { + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", + "type": [ + "object", + "null" + ] + }, + "groups": { + "description": "Groups is the groups you're testing for.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nonResourceAttributes": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.NonResourceAttributes", + "description": "NonResourceAttributes describes information for a non-resource access request" + }, + "resourceAttributes": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.ResourceAttributes", + "description": "ResourceAuthorizationAttributes describes information for a resource access request" + }, + "uid": { + "description": "UID information about the requesting user.", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authorization.v1.SubjectAccessReviewStatus": { + "description": "SubjectAccessReviewStatus", + "properties": { + "allowed": { + "description": "Allowed is required. True if the action would be allowed, false otherwise.", + "type": "boolean" + }, + "denied": { + "description": "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", + "type": [ + "boolean", + "null" + ] + }, + "evaluationError": { + "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason is optional. It indicates why a request was allowed or denied.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "allowed" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.authorization.v1.SubjectRulesReviewStatus": { + "description": "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.", + "properties": { + "evaluationError": { + "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", + "type": [ + "string", + "null" + ] + }, + "incomplete": { + "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", + "type": "boolean" + }, + "nonResourceRules": { + "description": "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.NonResourceRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "#/$defs/io.k8s.api.authorization.v1.ResourceRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "resourceRules", + "nonResourceRules", + "incomplete" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v1.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "properties": { + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler": { + "description": "configuration of a horizontal pod autoscaler.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscaler" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec", + "description": "spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + ] + }, + "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList": { + "description": "list of horizontal pod autoscaler objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v1" + ] + }, + "items": { + "description": "items is the list of horizontal pod autoscaler objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscalerList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", + "version": "v1" + } + ] + }, + "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec": { + "description": "specification of a horizontal pod autoscaler.", + "properties": { + "maxReplicas": { + "description": "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", + "format": "int32", + "type": "integer" + }, + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "scaleTargetRef": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v1.CrossVersionObjectReference", + "description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource." + }, + "targetCPUUtilizationPercentage": { + "description": "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "scaleTargetRef", + "maxReplicas" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus": { + "description": "current status of a horizontal pod autoscaler", + "properties": { + "currentCPUUtilizationPercentage": { + "description": "currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "currentReplicas": { + "description": "currentReplicas is the current number of replicas of pods managed by this autoscaler.", + "format": "int32", + "type": "integer" + }, + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler.", + "format": "int32", + "type": "integer" + }, + "lastScaleTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed." + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "currentReplicas", + "desiredReplicas" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v1.Scale": { + "description": "Scale represents a scaling request for a resource.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Scale" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v1.ScaleSpec", + "description": "spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v1.ScaleStatus", + "description": "status is the current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + ] + }, + "io.k8s.api.autoscaling.v1.ScaleSpec": { + "description": "ScaleSpec describes the attributes of a scale subresource.", + "properties": { + "replicas": { + "description": "replicas is the desired number of instances for the scaled object.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v1.ScaleStatus": { + "description": "ScaleStatus represents the current status of a scale subresource.", + "properties": { + "replicas": { + "description": "replicas is the actual number of observed instances of the scaled object.", + "format": "int32", + "type": "integer" + }, + "selector": { + "description": "selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "replicas" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.ContainerResourceMetricSource": { + "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "properties": { + "container": { + "description": "container is the name of the container in the pods of the scaling target", + "type": "string" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + }, + "target": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "name", + "target", + "container" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus": { + "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "properties": { + "container": { + "description": "container is the name of the container in the pods of the scaling target", + "type": "string" + }, + "current": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + } + }, + "required": [ + "name", + "current", + "container" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.CrossVersionObjectReference": { + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "properties": { + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.ExternalMetricSource": { + "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", + "properties": { + "metric": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "metric", + "target" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.ExternalMetricStatus": { + "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", + "properties": { + "current": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "metric": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.HPAScalingPolicy": { + "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", + "properties": { + "periodSeconds": { + "description": "periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "type is used to specify the scaling policy.", + "type": "string" + }, + "value": { + "description": "value contains the amount of change which is permitted by the policy. It must be greater than zero", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "type", + "value", + "periodSeconds" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.HPAScalingRules": { + "description": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.", + "properties": { + "policies": { + "description": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid", + "items": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HPAScalingPolicy" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "selectPolicy": { + "description": "selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.", + "type": [ + "string", + "null" + ] + }, + "stabilizationWindowSeconds": { + "description": "stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler": { + "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v2" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscaler" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec", + "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + ] + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior": { + "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", + "properties": { + "scaleDown": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HPAScalingRules", + "description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)." + }, + "scaleUp": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HPAScalingRules", + "description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerCondition": { + "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the last time the condition transitioned from one status to another" + }, + "message": { + "description": "message is a human-readable explanation containing details about the transition", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is the reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status is the status of the condition (True, False, Unknown)", + "type": "string" + }, + "type": { + "description": "type describes the current condition", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList": { + "description": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v2" + ] + }, + "items": { + "description": "items is the list of horizontal pod autoscaler objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscalerList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata is the standard list metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", + "version": "v2" + } + ] + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec": { + "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", + "properties": { + "behavior": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior", + "description": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used." + }, + "maxReplicas": { + "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", + "format": "int32", + "type": "integer" + }, + "metrics": { + "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", + "items": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricSpec" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "scaleTargetRef": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." + } + }, + "required": [ + "scaleTargetRef", + "maxReplicas" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerStatus": { + "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", + "properties": { + "conditions": { + "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", + "items": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentMetrics": { + "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", + "items": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "currentReplicas": { + "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", + "format": "int32", + "type": "integer" + }, + "lastScaleTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed." + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "desiredReplicas" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.MetricIdentifier": { + "description": "MetricIdentifier defines the name and optionally selector for a metric", + "properties": { + "name": { + "description": "name is the name of the given metric", + "type": "string" + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.MetricSpec": { + "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", + "properties": { + "containerResource": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ContainerResourceMetricSource", + "description": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." + }, + "external": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ExternalMetricSource", + "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." + }, + "object": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ObjectMetricSource", + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." + }, + "pods": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.PodsMetricSource", + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + }, + "resource": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ResourceMetricSource", + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "type": { + "description": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.MetricStatus": { + "description": "MetricStatus describes the last-read state of a single metric.", + "properties": { + "containerResource": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus", + "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "external": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ExternalMetricStatus", + "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." + }, + "object": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ObjectMetricStatus", + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." + }, + "pods": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.PodsMetricStatus", + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + }, + "resource": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.ResourceMetricStatus", + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "type": { + "description": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.MetricTarget": { + "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric", + "properties": { + "averageUtilization": { + "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "averageValue": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)" + }, + "type": { + "description": "type represents whether the metric type is Utilization, Value, or AverageValue", + "type": "string" + }, + "value": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "value is the target value of the metric (as a quantity)." + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.MetricValueStatus": { + "description": "MetricValueStatus holds the current value for a metric", + "properties": { + "averageUtilization": { + "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "averageValue": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" + }, + "value": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "value is the current value of the metric (as a quantity)." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.ObjectMetricSource": { + "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "properties": { + "describedObject": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "describedObject specifies the descriptions of a object,such as kind,name apiVersion" + }, + "metric": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "describedObject", + "target", + "metric" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.ObjectMetricStatus": { + "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "properties": { + "current": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "describedObject": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "DescribedObject specifies the descriptions of a object,such as kind,name apiVersion" + }, + "metric": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current", + "describedObject" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.PodsMetricSource": { + "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", + "properties": { + "metric": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "metric", + "target" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.PodsMetricStatus": { + "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "properties": { + "current": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "metric": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.ResourceMetricSource": { + "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "properties": { + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + }, + "target": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "name", + "target" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.autoscaling.v2.ResourceMetricStatus": { + "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "properties": { + "current": { + "$ref": "#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": "string" + } + }, + "required": [ + "name", + "current" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.CronJob": { + "description": "CronJob represents the configuration of a single cron job.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CronJob" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.batch.v1.CronJobSpec", + "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.batch.v1.CronJobStatus", + "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + ] + }, + "io.k8s.api.batch.v1.CronJobList": { + "description": "CronJobList is a collection of cron jobs.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "items": { + "description": "items is the list of CronJobs.", + "items": { + "$ref": "#/$defs/io.k8s.api.batch.v1.CronJob" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CronJobList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJobList", + "version": "v1" + } + ] + }, + "io.k8s.api.batch.v1.CronJobSpec": { + "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", + "properties": { + "concurrencyPolicy": { + "description": "Specifies how to treat concurrent executions of a Job. Valid values are:\n\n- \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one", + "type": [ + "string", + "null" + ] + }, + "failedJobsHistoryLimit": { + "description": "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "jobTemplate": { + "$ref": "#/$defs/io.k8s.api.batch.v1.JobTemplateSpec", + "description": "Specifies the job that will be created when executing a CronJob." + }, + "schedule": { + "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + "type": "string" + }, + "startingDeadlineSeconds": { + "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "successfulJobsHistoryLimit": { + "description": "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "suspend": { + "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "timeZone": { + "description": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "schedule", + "jobTemplate" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.CronJobStatus": { + "description": "CronJobStatus represents the current state of a cron job.", + "properties": { + "active": { + "description": "A list of pointers to currently running jobs.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "lastScheduleTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Information when was the last time the job was successfully scheduled." + }, + "lastSuccessfulTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Information when was the last time the job successfully completed." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.Job": { + "description": "Job represents the configuration of a single job.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Job" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.batch.v1.JobSpec", + "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.batch.v1.JobStatus", + "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "Job", + "version": "v1" + } + ] + }, + "io.k8s.api.batch.v1.JobCondition": { + "description": "JobCondition describes current state of a job.", + "properties": { + "lastProbeTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition was checked." + }, + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transit from one status to another." + }, + "message": { + "description": "Human readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of job condition, Complete or Failed.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.JobList": { + "description": "JobList is a collection of jobs.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "items": { + "description": "items is the list of Jobs.", + "items": { + "$ref": "#/$defs/io.k8s.api.batch.v1.Job" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "JobList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "JobList", + "version": "v1" + } + ] + }, + "io.k8s.api.batch.v1.JobSpec": { + "description": "JobSpec describes how the job execution will look like.", + "properties": { + "activeDeadlineSeconds": { + "description": "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "backoffLimit": { + "description": "Specifies the number of retries before marking this job failed. Defaults to 6", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "backoffLimitPerIndex": { + "description": "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "completionMode": { + "description": "completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.", + "type": [ + "string", + "null" + ] + }, + "completions": { + "description": "Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "managedBy": { + "description": "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.\n\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).", + "type": [ + "string", + "null" + ] + }, + "manualSelector": { + "description": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector", + "type": [ + "boolean", + "null" + ] + }, + "maxFailedIndexes": { + "description": "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "parallelism": { + "description": "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "podFailurePolicy": { + "$ref": "#/$defs/io.k8s.api.batch.v1.PodFailurePolicy", + "description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure." + }, + "podReplacementPolicy": { + "description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "successPolicy": { + "$ref": "#/$defs/io.k8s.api.batch.v1.SuccessPolicy", + "description": "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.\n\nThis field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default)." + }, + "suspend": { + "description": "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are \"Never\" or \"OnFailure\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/" + }, + "ttlSecondsAfterFinished": { + "description": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "template" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.JobStatus": { + "description": "JobStatus represents the current state of a Job.", + "properties": { + "active": { + "description": "The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "completedIndexes": { + "description": "completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", + "type": [ + "string", + "null" + ] + }, + "completionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field." + }, + "conditions": { + "description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true.\n\nA job is considered finished when it is in a terminal condition, either \"Complete\" or \"Failed\". A Job cannot have both the \"Complete\" and \"Failed\" conditions. Additionally, it cannot be in the \"Complete\" and \"FailureTarget\" conditions. The \"Complete\", \"Failed\" and \"FailureTarget\" conditions cannot be disabled.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "items": { + "$ref": "#/$defs/io.k8s.api.batch.v1.JobCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "failed": { + "description": "The number of pods which reached phase Failed. The value increases monotonically.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "failedIndexes": { + "description": "FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes.\n\nThis field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "type": [ + "string", + "null" + ] + }, + "ready": { + "description": "The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "startTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.\n\nOnce set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished." + }, + "succeeded": { + "description": "The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "terminating": { + "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "uncountedTerminatedPods": { + "$ref": "#/$defs/io.k8s.api.batch.v1.UncountedTerminatedPods", + "description": "uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.JobTemplateSpec": { + "description": "JobTemplateSpec describes the data a Job should have when created from a template", + "properties": { + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.batch.v1.JobSpec", + "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.PodFailurePolicy": { + "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", + "properties": { + "rules": { + "description": "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", + "items": { + "$ref": "#/$defs/io.k8s.api.batch.v1.PodFailurePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement": { + "description": "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", + "properties": { + "containerName": { + "description": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:\n\n- In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.", + "type": "string" + }, + "values": { + "description": "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", + "items": { + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "operator", + "values" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern": { + "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", + "properties": { + "status": { + "description": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", + "type": "string" + }, + "type": { + "description": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.PodFailurePolicyRule": { + "description": "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.", + "properties": { + "action": { + "description": "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:\n\n- FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- FailIndex: indicates that the pod's index is marked as Failed and will\n not be restarted.\n This value is beta-level. It can be used when the\n `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.", + "type": "string" + }, + "onExitCodes": { + "$ref": "#/$defs/io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement", + "description": "Represents the requirement on the container exit codes." + }, + "onPodConditions": { + "description": "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.", + "items": { + "$ref": "#/$defs/io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "action" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.SuccessPolicy": { + "description": "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.", + "properties": { + "rules": { + "description": "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", + "items": { + "$ref": "#/$defs/io.k8s.api.batch.v1.SuccessPolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.SuccessPolicyRule": { + "description": "SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified.", + "properties": { + "succeededCount": { + "description": "succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is \"1-4\", succeededCount is \"3\", and completed indexes are \"1\", \"3\", and \"5\", the Job isn't declared as succeeded because only \"1\" and \"3\" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "succeededIndexes": { + "description": "succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to \".spec.completions-1\" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". When this field is null, this field doesn't default to any value and is never evaluated at any time.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.batch.v1.UncountedTerminatedPods": { + "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", + "properties": { + "failed": { + "description": "failed holds UIDs of failed Pods.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "succeeded": { + "description": "succeeded holds UIDs of succeeded Pods.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.certificates.v1.CertificateSigningRequest": { + "description": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CertificateSigningRequest" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestSpec", + "description": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestStatus", + "description": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + ] + }, + "io.k8s.api.certificates.v1.CertificateSigningRequestCondition": { + "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time." + }, + "lastUpdateTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastUpdateTime is the time of the last update to this condition" + }, + "message": { + "description": "message contains a human readable message with details about the request state", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason indicates a brief reason for the request state", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", + "type": "string" + }, + "type": { + "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.certificates.v1.CertificateSigningRequestList": { + "description": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1" + ] + }, + "items": { + "description": "items is a collection of CertificateSigningRequest objects", + "items": { + "$ref": "#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequest" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CertificateSigningRequestList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequestList", + "version": "v1" + } + ] + }, + "io.k8s.api.certificates.v1.CertificateSigningRequestSpec": { + "description": "CertificateSigningRequestSpec contains the certificate request.", + "properties": { + "expirationSeconds": { + "description": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "extra": { + "additionalProperties": { + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "description": "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": [ + "object", + "null" + ] + }, + "groups": { + "description": "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "request": { + "description": "request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.", + "format": "byte", + "type": "string", + "x-kubernetes-list-type": "atomic" + }, + "signerName": { + "description": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 6. Whether or not requests for CA certificates are allowed.", + "type": "string" + }, + "uid": { + "description": "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": [ + "string", + "null" + ] + }, + "usages": { + "description": "usages specifies a set of key usages requested in the issued certificate.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "username": { + "description": "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "request", + "signerName" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.certificates.v1.CertificateSigningRequestStatus": { + "description": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", + "properties": { + "certificate": { + "description": "certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(\n -----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\n )", + "format": "byte", + "type": [ + "string", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "conditions": { + "description": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", + "items": { + "$ref": "#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.certificates.v1alpha1.ClusterTrustBundle": { + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.\n\nIt can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterTrustBundle" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata contains the object metadata." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec", + "description": "spec contains the signer (if any) and trust anchors." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList": { + "description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "items is a collection of ClusterTrustBundle objects", + "items": { + "$ref": "#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterTrustBundleList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata contains the list metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundleList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec": { + "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", + "properties": { + "signerName": { + "description": "signerName indicates the associated signer, if any.\n\nIn order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest.\n\nIf signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.\n\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\n\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.", + "type": [ + "string", + "null" + ] + }, + "trustBundle": { + "description": "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\n\nThe data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.\n\nUsers of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.", + "type": "string" + } + }, + "required": [ + "trustBundle" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.coordination.v1.Lease": { + "description": "Lease defines a lease concept.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Lease" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.coordination.v1.LeaseSpec", + "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + ] + }, + "io.k8s.api.coordination.v1.LeaseList": { + "description": "LeaseList is a list of Lease objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.coordination.v1.Lease" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LeaseList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseList", + "version": "v1" + } + ] + }, + "io.k8s.api.coordination.v1.LeaseSpec": { + "description": "LeaseSpec is a specification of a Lease.", + "properties": { + "acquireTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "acquireTime is a time when the current lease was acquired." + }, + "holderIdentity": { + "description": "holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.", + "type": [ + "string", + "null" + ] + }, + "leaseDurationSeconds": { + "description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "leaseTransitions": { + "description": "leaseTransitions is the number of transitions of a lease between holders.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "preferredHolder": { + "description": "PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.", + "type": [ + "string", + "null" + ] + }, + "renewTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "renewTime is a time when the current holder of a lease has last updated the lease." + }, + "strategy": { + "description": "Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.coordination.v1alpha1.LeaseCandidate": { + "description": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LeaseCandidate" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidateSpec", + "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.coordination.v1alpha1.LeaseCandidateList": { + "description": "LeaseCandidateList is a list of Lease objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidate" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LeaseCandidateList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidateList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.coordination.v1alpha1.LeaseCandidateSpec": { + "description": "LeaseCandidateSpec is a specification of a Lease.", + "properties": { + "binaryVersion": { + "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is \"OldestEmulationVersion\"", + "type": [ + "string", + "null" + ] + }, + "emulationVersion": { + "description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + "type": [ + "string", + "null" + ] + }, + "leaseName": { + "description": "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.", + "type": "string" + }, + "pingTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime." + }, + "preferredStrategies": { + "description": "PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y\n will be used.\n- If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader\n election will not operate the Lease until resolved.\n(Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "renewTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates." + } + }, + "required": [ + "leaseName", + "preferredStrategies" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource": { + "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": [ + "string", + "null" + ] + }, + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "readOnly": { + "description": "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": [ + "boolean", + "null" + ] + }, + "volumeID": { + "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Affinity": { + "description": "Affinity is a group of affinity scheduling rules.", + "properties": { + "nodeAffinity": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeAffinity", + "description": "Describes node affinity scheduling rules for the pod." + }, + "podAffinity": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodAffinity", + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))." + }, + "podAntiAffinity": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodAntiAffinity", + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.AppArmorProfile": { + "description": "AppArmorProfile defines a pod or container's AppArmor settings.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\".", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type indicates which kind of AppArmor profile will be applied. Valid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ] + }, + "io.k8s.api.core.v1.AttachedVolume": { + "description": "AttachedVolume describes a volume attached to a node", + "properties": { + "devicePath": { + "description": "DevicePath represents the device path where the volume should be available", + "type": "string" + }, + "name": { + "description": "Name of the attached volume", + "type": "string" + } + }, + "required": [ + "name", + "devicePath" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.AzureDiskVolumeSource": { + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "properties": { + "cachingMode": { + "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", + "type": [ + "string", + "null" + ] + }, + "diskName": { + "description": "diskName is the Name of the data disk in the blob storage", + "type": "string" + }, + "diskURI": { + "description": "diskURI is the URI of data disk in the blob storage", + "type": "string" + }, + "fsType": { + "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "diskName", + "diskURI" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.AzureFilePersistentVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": "string" + }, + "secretNamespace": { + "description": "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", + "type": [ + "string", + "null" + ] + }, + "shareName": { + "description": "shareName is the azure Share Name", + "type": "string" + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.AzureFileVolumeSource": { + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": "string" + }, + "shareName": { + "description": "shareName is the azure share Name", + "type": "string" + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Binding": { + "description": "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Binding" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "target": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "The target object that you want to bind to the standard object." + } + }, + "required": [ + "target" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Binding", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.CSIPersistentVolumeSource": { + "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", + "properties": { + "controllerExpandSecretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "controllerPublishSecretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "driver": { + "description": "driver is the name of the driver to use for this volume. Required.", + "type": "string" + }, + "fsType": { + "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", + "type": [ + "string", + "null" + ] + }, + "nodeExpandSecretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "nodePublishSecretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "nodeStageSecretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "readOnly": { + "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", + "type": [ + "boolean", + "null" + ] + }, + "volumeAttributes": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "volumeAttributes of the volume to publish.", + "type": [ + "object", + "null" + ] + }, + "volumeHandle": { + "description": "volumeHandle is the unique volume name returned by the CSI volume plugin\u2019s CreateVolume to refer to the volume on all subsequent calls. Required.", + "type": "string" + } + }, + "required": [ + "driver", + "volumeHandle" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.CSIVolumeSource": { + "description": "Represents a source location of a volume to mount, managed by an external CSI driver", + "properties": { + "driver": { + "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", + "type": "string" + }, + "fsType": { + "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", + "type": [ + "string", + "null" + ] + }, + "nodePublishSecretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." + }, + "readOnly": { + "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", + "type": [ + "boolean", + "null" + ] + }, + "volumeAttributes": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "driver" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Capabilities": { + "description": "Adds and removes POSIX capabilities from running containers.", + "properties": { + "add": { + "description": "Added capabilities", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "drop": { + "description": "Removed capabilities", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.CephFSPersistentVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.CephFSVolumeSource": { + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.CinderPersistentVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.CinderVolumeSource": { + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ClientIPConfig": { + "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", + "properties": { + "timeoutSeconds": { + "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ClusterTrustBundleProjection": { + "description": "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.", + "properties": { + "labelSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as \"match nothing\". If set but empty, interpreted as \"match everything\"." + }, + "name": { + "description": "Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.", + "type": [ + "boolean", + "null" + ] + }, + "path": { + "description": "Relative path from the volume root to write the bundle.", + "type": "string" + }, + "signerName": { + "description": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "path" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ComponentCondition": { + "description": "Information about the condition of a component.", + "properties": { + "error": { + "description": "Condition error code for a component. For example, a health check error code.", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message about the condition for a component. For example, information about a health check.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", + "type": "string" + }, + "type": { + "description": "Type of condition for a component. Valid value: \"Healthy\"", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ComponentStatus": { + "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "conditions": { + "description": "List of component conditions observed", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ComponentCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ComponentStatus" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatus", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ComponentStatusList": { + "description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of ComponentStatus objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ComponentStatus" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ComponentStatusList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatusList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ConfigMap": { + "description": "ConfigMap holds configuration data for pods to consume.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "binaryData": { + "additionalProperties": { + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", + "type": [ + "object", + "null" + ] + }, + "data": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.", + "type": [ + "object", + "null" + ] + }, + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ConfigMap" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ConfigMapEnvSource": { + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ConfigMapKeySelector": { + "description": "Selects a key from a ConfigMap.", + "properties": { + "key": { + "description": "The key to select.", + "type": "string" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "key" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.ConfigMapList": { + "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is the list of ConfigMaps.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ConfigMap" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ConfigMapList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMapList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ConfigMapNodeConfigSource": { + "description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", + "properties": { + "kubeletConfigKey": { + "description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", + "type": "string" + }, + "name": { + "description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", + "type": "string" + }, + "namespace": { + "description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", + "type": "string" + }, + "resourceVersion": { + "description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "namespace", + "name", + "kubeletConfigKey" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ConfigMapProjection": { + "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", + "properties": { + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ConfigMapVolumeSource": { + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Container": { + "description": "A single application container that you want to run within a pod.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EnvVar" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EnvFromSource" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", + "type": [ + "string", + "null" + ] + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "type": [ + "string", + "null" + ] + }, + "lifecycle": { + "$ref": "#/$defs/io.k8s.api.core.v1.Lifecycle", + "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + }, + "livenessProbe": { + "$ref": "#/$defs/io.k8s.api.core.v1.Probe", + "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "name": { + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", + "type": "string" + }, + "ports": { + "description": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "$ref": "#/$defs/io.k8s.api.core.v1.Probe", + "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerResizePolicy" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceRequirements", + "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + }, + "restartPolicy": { + "description": "RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", + "type": [ + "string", + "null" + ] + }, + "securityContext": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecurityContext", + "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" + }, + "startupProbe": { + "$ref": "#/$defs/io.k8s.api.core.v1.Probe", + "description": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": [ + "boolean", + "null" + ] + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeDevice" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "devicePath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeMount" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ContainerImage": { + "description": "Describe a container image", + "properties": { + "names": { + "description": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "sizeBytes": { + "description": "The size of the image in bytes.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ContainerPort": { + "description": "ContainerPort represents a network port in a single container.", + "properties": { + "containerPort": { + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", + "format": "int32", + "type": "integer" + }, + "hostIP": { + "description": "What host IP to bind the external port to.", + "type": [ + "string", + "null" + ] + }, + "hostPort": { + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "name": { + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "type": [ + "string", + "null" + ] + }, + "protocol": { + "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "containerPort" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ContainerResizePolicy": { + "description": "ContainerResizePolicy represents resource resize policy for the container.", + "properties": { + "resourceName": { + "description": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.", + "type": "string" + }, + "restartPolicy": { + "description": "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.", + "type": "string" + } + }, + "required": [ + "resourceName", + "restartPolicy" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ContainerState": { + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", + "properties": { + "running": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerStateRunning", + "description": "Details about a running container" + }, + "terminated": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerStateTerminated", + "description": "Details about a terminated container" + }, + "waiting": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerStateWaiting", + "description": "Details about a waiting container" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ContainerStateRunning": { + "description": "ContainerStateRunning is a running state of a container.", + "properties": { + "startedAt": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container was last (re-)started" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ContainerStateTerminated": { + "description": "ContainerStateTerminated is a terminated state of a container.", + "properties": { + "containerID": { + "description": "Container's ID in the format '://'", + "type": [ + "string", + "null" + ] + }, + "exitCode": { + "description": "Exit status from the last termination of the container", + "format": "int32", + "type": "integer" + }, + "finishedAt": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container last terminated" + }, + "message": { + "description": "Message regarding the last termination of the container", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason from the last termination of the container", + "type": [ + "string", + "null" + ] + }, + "signal": { + "description": "Signal from the last termination of the container", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "startedAt": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which previous execution of the container started" + } + }, + "required": [ + "exitCode" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ContainerStateWaiting": { + "description": "ContainerStateWaiting is a waiting state of a container.", + "properties": { + "message": { + "description": "Message regarding why the container is not yet running.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason the container is not yet running.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ContainerStatus": { + "description": "ContainerStatus contains details for the current status of this container.", + "properties": { + "allocatedResources": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.", + "type": [ + "object", + "null" + ] + }, + "allocatedResourcesStatus": { + "description": "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "containerID": { + "description": "ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.", + "type": "string" + }, + "imageID": { + "description": "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.", + "type": "string" + }, + "lastState": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerState", + "description": "LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0." + }, + "name": { + "description": "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.", + "type": "string" + }, + "ready": { + "description": "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic.", + "type": "boolean" + }, + "resources": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceRequirements", + "description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized." + }, + "restartCount": { + "description": "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.", + "format": "int32", + "type": "integer" + }, + "started": { + "description": "Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.", + "type": [ + "boolean", + "null" + ] + }, + "state": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerState", + "description": "State holds details about the container's current condition." + }, + "user": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerUser", + "description": "User represents user identity information initially attached to the first process of the container" + }, + "volumeMounts": { + "description": "Status of volume mounts.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeMountStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "name", + "ready", + "restartCount", + "image", + "imageID" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ContainerUser": { + "description": "ContainerUser represents user identity information", + "properties": { + "linux": { + "$ref": "#/$defs/io.k8s.api.core.v1.LinuxContainerUser", + "description": "Linux holds user identity information initially attached to the first process of the containers in Linux. Note that the actual running identity can be changed if the process has enough privilege to do so." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.DaemonEndpoint": { + "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "properties": { + "Port": { + "description": "Port number of the given endpoint.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "Port" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.DownwardAPIProjection": { + "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", + "properties": { + "items": { + "description": "Items is a list of DownwardAPIVolume file", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeFile" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.DownwardAPIVolumeFile": { + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "properties": { + "fieldRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectFieldSelector", + "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "path": { + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "type": "string" + }, + "resourceFieldRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." + } + }, + "required": [ + "path" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.DownwardAPIVolumeSource": { + "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "items": { + "description": "Items is a list of downward API volume file", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeFile" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.EmptyDirVolumeSource": { + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", + "properties": { + "medium": { + "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", + "type": [ + "string", + "null" + ] + }, + "sizeLimit": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.EndpointAddress": { + "description": "EndpointAddress is a tuple that describes single IP address.", + "properties": { + "hostname": { + "description": "The Hostname of this endpoint", + "type": [ + "string", + "null" + ] + }, + "ip": { + "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).", + "type": "string" + }, + "nodeName": { + "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "type": [ + "string", + "null" + ] + }, + "targetRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "Reference to object providing the endpoint." + } + }, + "required": [ + "ip" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.EndpointPort": { + "description": "EndpointPort is a tuple that describes a single port.", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "The port number of the endpoint.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.EndpointSubset": { + "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "properties": { + "addresses": { + "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EndpointAddress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "notReadyAddresses": { + "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EndpointAddress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "Port numbers available on the related IP addresses.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EndpointPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Endpoints": { + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Endpoints" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "subsets": { + "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EndpointSubset" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.EndpointsList": { + "description": "EndpointsList is a list of endpoints.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of endpoints.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Endpoints" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EndpointsList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EndpointsList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.EnvFromSource": { + "description": "EnvFromSource represents the source of a set of ConfigMaps", + "properties": { + "configMapRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ConfigMapEnvSource", + "description": "The ConfigMap to select from" + }, + "prefix": { + "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "type": [ + "string", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretEnvSource", + "description": "The Secret to select from" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.EnvVar": { + "description": "EnvVar represents an environment variable present in a Container.", + "properties": { + "name": { + "description": "Name of the environment variable. Must be a C_IDENTIFIER.", + "type": "string" + }, + "value": { + "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "type": [ + "string", + "null" + ] + }, + "valueFrom": { + "$ref": "#/$defs/io.k8s.api.core.v1.EnvVarSource", + "description": "Source for the environment variable's value. Cannot be used if value is not empty." + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.EnvVarSource": { + "description": "EnvVarSource represents a source for the value of an EnvVar.", + "properties": { + "configMapKeyRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ConfigMapKeySelector", + "description": "Selects a key of a ConfigMap." + }, + "fieldRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectFieldSelector", + "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs." + }, + "resourceFieldRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported." + }, + "secretKeyRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretKeySelector", + "description": "Selects a key of a secret in the pod's namespace" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.EphemeralContainer": { + "description": "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EnvVar" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EnvFromSource" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", + "type": [ + "string", + "null" + ] + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "type": [ + "string", + "null" + ] + }, + "lifecycle": { + "$ref": "#/$defs/io.k8s.api.core.v1.Lifecycle", + "description": "Lifecycle is not allowed for ephemeral containers." + }, + "livenessProbe": { + "$ref": "#/$defs/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "name": { + "description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", + "type": "string" + }, + "ports": { + "description": "Ports are not allowed for ephemeral containers.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "$ref": "#/$defs/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerResizePolicy" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceRequirements", + "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." + }, + "restartPolicy": { + "description": "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.", + "type": [ + "string", + "null" + ] + }, + "securityContext": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecurityContext", + "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." + }, + "startupProbe": { + "$ref": "#/$defs/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": [ + "boolean", + "null" + ] + }, + "targetContainerName": { + "description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.", + "type": [ + "string", + "null" + ] + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeDevice" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "devicePath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeMount" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.EphemeralVolumeSource": { + "description": "Represents an ephemeral volume that is handled by a normal storage driver.", + "properties": { + "volumeClaimTemplate": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimTemplate", + "description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Event": { + "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "properties": { + "action": { + "description": "What action was taken/failed regarding to the Regarding object.", + "type": [ + "string", + "null" + ] + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "count": { + "description": "The number of times this event has occurred.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "eventTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "Time when this Event was first observed." + }, + "firstTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)" + }, + "involvedObject": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "The object that this event is about." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Event" + ] + }, + "lastTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The time at which the most recent occurrence of this event was recorded." + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": [ + "string", + "null" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "reason": { + "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + "type": [ + "string", + "null" + ] + }, + "related": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "Optional secondary object for more complex actions." + }, + "reportingComponent": { + "description": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", + "type": [ + "string", + "null" + ] + }, + "reportingInstance": { + "description": "ID of the controller instance, e.g. `kubelet-xyzf`.", + "type": [ + "string", + "null" + ] + }, + "series": { + "$ref": "#/$defs/io.k8s.api.core.v1.EventSeries", + "description": "Data about the Event series this event represents or nil if it's a singleton Event." + }, + "source": { + "$ref": "#/$defs/io.k8s.api.core.v1.EventSource", + "description": "The component reporting this event. Should be a short machine understandable string." + }, + "type": { + "description": "Type of this event (Normal, Warning), new types could be added in the future", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "metadata", + "involvedObject" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Event", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.EventList": { + "description": "EventList is a list of events.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of events", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Event" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EventList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EventList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.EventSeries": { + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", + "properties": { + "count": { + "description": "Number of occurrences in this series up to the last heartbeat time", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lastObservedTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "Time of the last occurrence observed" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.EventSource": { + "description": "EventSource contains information for an event.", + "properties": { + "component": { + "description": "Component from which the event is generated.", + "type": [ + "string", + "null" + ] + }, + "host": { + "description": "Node name on which the event is generated.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ExecAction": { + "description": "ExecAction describes a \"run in container\" action.", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.FCVolumeSource": { + "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "lun": { + "description": "lun is Optional: FC target lun number", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "targetWWNs": { + "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "wwids": { + "description": "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.FlexPersistentVolumeSource": { + "description": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", + "type": "string" + }, + "fsType": { + "description": "fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": [ + "string", + "null" + ] + }, + "options": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": [ + "object", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + } + }, + "required": [ + "driver" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.FlexVolumeSource": { + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", + "type": "string" + }, + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": [ + "string", + "null" + ] + }, + "options": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": [ + "object", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + } + }, + "required": [ + "driver" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.FlockerVolumeSource": { + "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "properties": { + "datasetName": { + "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "type": [ + "string", + "null" + ] + }, + "datasetUUID": { + "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.GCEPersistentDiskVolumeSource": { + "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": [ + "string", + "null" + ] + }, + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "pdName": { + "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "pdName" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.GRPCAction": { + "properties": { + "port": { + "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", + "format": "int32", + "type": "integer" + }, + "service": { + "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.GitRepoVolumeSource": { + "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + "properties": { + "directory": { + "description": "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "type": [ + "string", + "null" + ] + }, + "repository": { + "description": "repository is the URL", + "type": "string" + }, + "revision": { + "description": "revision is the commit hash for the specified revision.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "repository" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.GlusterfsPersistentVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "endpointsNamespace": { + "description": "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "endpoints", + "path" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.GlusterfsVolumeSource": { + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "endpoints", + "path" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.HTTPGetAction": { + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": [ + "string", + "null" + ] + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.HTTPHeader" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": [ + "string", + "null" + ] + }, + "port": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.HTTPHeader": { + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "properties": { + "name": { + "description": "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.", + "type": "string" + }, + "value": { + "description": "The header field value", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.HostAlias": { + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "properties": { + "hostnames": { + "description": "Hostnames for the above IP address.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ip": { + "description": "IP address of the host file entry.", + "type": "string" + } + }, + "required": [ + "ip" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.HostIP": { + "description": "HostIP represents a single IP address allocated to the host.", + "properties": { + "ip": { + "description": "IP is the IP address assigned to the host", + "type": "string" + } + }, + "required": [ + "ip" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.HostPathVolumeSource": { + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": "string" + }, + "type": { + "description": "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "path" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ISCSIPersistentVolumeSource": { + "description": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": [ + "string", + "null" + ] + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": [ + "string", + "null" + ] + }, + "iqn": { + "description": "iqn is Target iSCSI Qualified Name.", + "type": "string" + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": [ + "string", + "null" + ] + }, + "lun": { + "description": "lun is iSCSI Target Lun number.", + "format": "int32", + "type": "integer" + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "string" + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ISCSIVolumeSource": { + "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": [ + "string", + "null" + ] + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": [ + "string", + "null" + ] + }, + "iqn": { + "description": "iqn is the target iSCSI Qualified Name.", + "type": "string" + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": [ + "string", + "null" + ] + }, + "lun": { + "description": "lun represents iSCSI Target Lun number.", + "format": "int32", + "type": "integer" + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": "string" + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ImageVolumeSource": { + "description": "ImageVolumeSource represents a image volume resource.", + "properties": { + "pullPolicy": { + "description": "Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.", + "type": [ + "string", + "null" + ] + }, + "reference": { + "description": "Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.KeyToPath": { + "description": "Maps a string key to a path within a volume.", + "properties": { + "key": { + "description": "key is the key to project.", + "type": "string" + }, + "mode": { + "description": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "path": { + "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": "string" + } + }, + "required": [ + "key", + "path" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Lifecycle": { + "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "properties": { + "postStart": { + "$ref": "#/$defs/io.k8s.api.core.v1.LifecycleHandler", + "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + }, + "preStop": { + "$ref": "#/$defs/io.k8s.api.core.v1.LifecycleHandler", + "description": "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.LifecycleHandler": { + "description": "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.", + "properties": { + "exec": { + "$ref": "#/$defs/io.k8s.api.core.v1.ExecAction", + "description": "Exec specifies the action to take." + }, + "httpGet": { + "$ref": "#/$defs/io.k8s.api.core.v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." + }, + "sleep": { + "$ref": "#/$defs/io.k8s.api.core.v1.SleepAction", + "description": "Sleep represents the duration that the container should sleep before being terminated." + }, + "tcpSocket": { + "$ref": "#/$defs/io.k8s.api.core.v1.TCPSocketAction", + "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.LimitRange": { + "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LimitRange" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.LimitRangeSpec", + "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.LimitRangeItem": { + "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "properties": { + "default": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Default resource requirement limit value by resource name if resource limit is omitted.", + "type": [ + "object", + "null" + ] + }, + "defaultRequest": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", + "type": [ + "object", + "null" + ] + }, + "max": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Max usage constraints on this kind by resource name.", + "type": [ + "object", + "null" + ] + }, + "maxLimitRequestRatio": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", + "type": [ + "object", + "null" + ] + }, + "min": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Min usage constraints on this kind by resource name.", + "type": [ + "object", + "null" + ] + }, + "type": { + "description": "Type of resource that this limit applies to.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.LimitRangeList": { + "description": "LimitRangeList is a list of LimitRange items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.LimitRange" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LimitRangeList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "LimitRangeList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.LimitRangeSpec": { + "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", + "properties": { + "limits": { + "description": "Limits is the list of LimitRangeItem objects that are enforced.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.LimitRangeItem" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "limits" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.LinuxContainerUser": { + "description": "LinuxContainerUser represents user identity information in Linux containers", + "properties": { + "gid": { + "description": "GID is the primary gid initially attached to the first process in the container", + "format": "int64", + "type": "integer" + }, + "supplementalGroups": { + "description": "SupplementalGroups are the supplemental groups initially attached to the first process in the container", + "items": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "uid": { + "description": "UID is the primary uid initially attached to the first process in the container", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "uid", + "gid" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.LoadBalancerIngress": { + "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", + "properties": { + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", + "type": [ + "string", + "null" + ] + }, + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", + "type": [ + "string", + "null" + ] + }, + "ipMode": { + "description": "IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PortStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.LoadBalancerStatus": { + "description": "LoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.LoadBalancerIngress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.LocalVolumeSource": { + "description": "Local represents directly-attached storage with node affinity (Beta feature)", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ModifyVolumeStatus": { + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation", + "properties": { + "status": { + "description": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.", + "type": "string" + }, + "targetVolumeAttributesClassName": { + "description": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NFSVolumeSource": { + "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": "string" + }, + "readOnly": { + "description": "readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": [ + "boolean", + "null" + ] + }, + "server": { + "description": "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": "string" + } + }, + "required": [ + "server", + "path" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Namespace": { + "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Namespace" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.NamespaceSpec", + "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.NamespaceStatus", + "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Namespace", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.NamespaceCondition": { + "description": "NamespaceCondition contains details about state of namespace.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": [ + "string", + "null" + ] + }, + "reason": { + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of namespace controller condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NamespaceList": { + "description": "NamespaceList is a list of Namespaces.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Namespace" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NamespaceList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "NamespaceList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.NamespaceSpec": { + "description": "NamespaceSpec describes the attributes on a Namespace.", + "properties": { + "finalizers": { + "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NamespaceStatus": { + "description": "NamespaceStatus is information about the current status of a Namespace.", + "properties": { + "conditions": { + "description": "Represents the latest available observations of a namespace's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NamespaceCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "phase": { + "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Node": { + "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Node" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSpec", + "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeStatus", + "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Node", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.NodeAddress": { + "description": "NodeAddress contains information for the node's address.", + "properties": { + "address": { + "description": "The node address.", + "type": "string" + }, + "type": { + "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", + "type": "string" + } + }, + "required": [ + "type", + "address" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NodeAffinity": { + "description": "Node affinity is a group of node affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PreferredSchedulingTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NodeCondition": { + "description": "NodeCondition contains condition information for a node.", + "properties": { + "lastHeartbeatTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time we got an update on a given condition." + }, + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transit from one status to another." + }, + "message": { + "description": "Human readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of node condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NodeConfigSource": { + "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", + "properties": { + "configMap": { + "$ref": "#/$defs/io.k8s.api.core.v1.ConfigMapNodeConfigSource", + "description": "ConfigMap is a reference to a Node's ConfigMap" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NodeConfigStatus": { + "description": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", + "properties": { + "active": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error." + }, + "assigned": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned." + }, + "error": { + "description": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", + "type": [ + "string", + "null" + ] + }, + "lastKnownGood": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NodeDaemonEndpoints": { + "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", + "properties": { + "kubeletEndpoint": { + "$ref": "#/$defs/io.k8s.api.core.v1.DaemonEndpoint", + "description": "Endpoint on which Kubelet is listening." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NodeFeatures": { + "description": "NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.", + "properties": { + "supplementalGroupsPolicy": { + "description": "SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NodeList": { + "description": "NodeList is the whole list of all Nodes which have been registered with master.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of nodes", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Node" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NodeList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "NodeList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.NodeRuntimeHandler": { + "description": "NodeRuntimeHandler is a set of runtime handler information.", + "properties": { + "features": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeRuntimeHandlerFeatures", + "description": "Supported features." + }, + "name": { + "description": "Runtime handler name. Empty for the default runtime handler.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NodeRuntimeHandlerFeatures": { + "description": "NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.", + "properties": { + "recursiveReadOnlyMounts": { + "description": "RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.", + "type": [ + "boolean", + "null" + ] + }, + "userNamespaces": { + "description": "UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NodeSelector": { + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelectorTerm" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "nodeSelectorTerms" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.NodeSelectorRequirement": { + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NodeSelectorTerm": { + "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.NodeSpec": { + "description": "NodeSpec describes the attributes that a node is created with.", + "properties": { + "configSource": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed." + }, + "externalID": { + "description": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", + "type": [ + "string", + "null" + ] + }, + "podCIDR": { + "description": "PodCIDR represents the pod IP range assigned to the node.", + "type": [ + "string", + "null" + ] + }, + "podCIDRs": { + "description": "podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" + }, + "providerID": { + "description": "ID of the node assigned by the cloud provider in the format: ://", + "type": [ + "string", + "null" + ] + }, + "taints": { + "description": "If specified, the node's taints.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Taint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "unschedulable": { + "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NodeStatus": { + "description": "NodeStatus is information about the current status of a node.", + "properties": { + "addresses": { + "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeAddress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "allocatable": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", + "type": [ + "object", + "null" + ] + }, + "capacity": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity", + "type": [ + "object", + "null" + ] + }, + "conditions": { + "description": "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "config": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeConfigStatus", + "description": "Status of the config assigned to the node via the dynamic Kubelet config feature." + }, + "daemonEndpoints": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeDaemonEndpoints", + "description": "Endpoints of daemons running on the Node." + }, + "features": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeFeatures", + "description": "Features describes the set of features implemented by the CRI implementation." + }, + "images": { + "description": "List of container images on this node", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerImage" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nodeInfo": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSystemInfo", + "description": "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info" + }, + "phase": { + "description": "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.", + "type": [ + "string", + "null" + ] + }, + "runtimeHandlers": { + "description": "The available runtime handlers.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeRuntimeHandler" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "volumesAttached": { + "description": "List of volumes that are attached to the node.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.AttachedVolume" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "volumesInUse": { + "description": "List of attachable volumes in use (mounted) by the node.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.NodeSystemInfo": { + "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", + "properties": { + "architecture": { + "description": "The Architecture reported by the node", + "type": "string" + }, + "bootID": { + "description": "Boot ID reported by the node.", + "type": "string" + }, + "containerRuntimeVersion": { + "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).", + "type": "string" + }, + "kernelVersion": { + "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", + "type": "string" + }, + "kubeProxyVersion": { + "description": "Deprecated: KubeProxy Version reported by the node.", + "type": "string" + }, + "kubeletVersion": { + "description": "Kubelet Version reported by the node.", + "type": "string" + }, + "machineID": { + "description": "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", + "type": "string" + }, + "operatingSystem": { + "description": "The Operating System reported by the node", + "type": "string" + }, + "osImage": { + "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", + "type": "string" + }, + "systemUUID": { + "description": "SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid", + "type": "string" + } + }, + "required": [ + "machineID", + "systemUUID", + "bootID", + "kernelVersion", + "osImage", + "containerRuntimeVersion", + "kubeletVersion", + "kubeProxyVersion", + "operatingSystem", + "architecture" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ObjectFieldSelector": { + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": [ + "string", + "null" + ] + }, + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": "string" + } + }, + "required": [ + "fieldPath" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.ObjectReference": { + "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": [ + "string", + "null" + ] + }, + "fieldPath": { + "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "type": [ + "string", + "null" + ] + }, + "resourceVersion": { + "description": "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.PersistentVolume": { + "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolume" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeStatus", + "description": "status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PersistentVolumeClaim": { + "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolumeClaim" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimSpec", + "description": "spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimStatus", + "description": "status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PersistentVolumeClaimCondition": { + "description": "PersistentVolumeClaimCondition contains details about state of pvc", + "properties": { + "lastProbeTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastProbeTime is the time we probed the condition." + }, + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the time the condition transitioned from one status to another." + }, + "message": { + "description": "message is the human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized.", + "type": [ + "string", + "null" + ] + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PersistentVolumeClaimList": { + "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaim" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolumeClaimList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeClaimList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PersistentVolumeClaimSpec": { + "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", + "properties": { + "accessModes": { + "description": "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "dataSource": { + "$ref": "#/$defs/io.k8s.api.core.v1.TypedLocalObjectReference", + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource." + }, + "dataSourceRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.TypedObjectReference", + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." + }, + "resources": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeResourceRequirements", + "description": "resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources" + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is a label query over volumes to consider for binding." + }, + "storageClassName": { + "description": "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", + "type": [ + "string", + "null" + ] + }, + "volumeAttributesClassName": { + "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", + "type": [ + "string", + "null" + ] + }, + "volumeMode": { + "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", + "type": [ + "string", + "null" + ] + }, + "volumeName": { + "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PersistentVolumeClaimStatus": { + "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", + "properties": { + "accessModes": { + "description": "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "allocatedResourceStatuses": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "granular" + }, + "allocatedResources": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": [ + "object", + "null" + ] + }, + "capacity": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "capacity represents the actual resources of the underlying volume.", + "type": [ + "object", + "null" + ] + }, + "conditions": { + "description": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentVolumeAttributesClassName": { + "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + "type": [ + "string", + "null" + ] + }, + "modifyVolumeStatus": { + "$ref": "#/$defs/io.k8s.api.core.v1.ModifyVolumeStatus", + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default)." + }, + "phase": { + "description": "phase represents the current phase of PersistentVolumeClaim.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PersistentVolumeClaimTemplate": { + "description": "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", + "properties": { + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimSpec", + "description": "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource": { + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", + "properties": { + "claimName": { + "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "type": "string" + }, + "readOnly": { + "description": "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "claimName" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PersistentVolumeList": { + "description": "PersistentVolumeList is a list of PersistentVolume items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolume" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolumeList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PersistentVolumeSpec": { + "description": "PersistentVolumeSpec is the specification of a persistent volume.", + "properties": { + "accessModes": { + "description": "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "awsElasticBlockStore": { + "$ref": "#/$defs/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource", + "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore" + }, + "azureDisk": { + "$ref": "#/$defs/io.k8s.api.core.v1.AzureDiskVolumeSource", + "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." + }, + "azureFile": { + "$ref": "#/$defs/io.k8s.api.core.v1.AzureFilePersistentVolumeSource", + "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod." + }, + "capacity": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", + "type": [ + "object", + "null" + ] + }, + "cephfs": { + "$ref": "#/$defs/io.k8s.api.core.v1.CephFSPersistentVolumeSource", + "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "cinder": { + "$ref": "#/$defs/io.k8s.api.core.v1.CinderPersistentVolumeSource", + "description": "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + }, + "claimRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding", + "x-kubernetes-map-type": "granular" + }, + "csi": { + "$ref": "#/$defs/io.k8s.api.core.v1.CSIPersistentVolumeSource", + "description": "csi represents storage that is handled by an external CSI driver (Beta feature)." + }, + "fc": { + "$ref": "#/$defs/io.k8s.api.core.v1.FCVolumeSource", + "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flexVolume": { + "$ref": "#/$defs/io.k8s.api.core.v1.FlexPersistentVolumeSource", + "description": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." + }, + "flocker": { + "$ref": "#/$defs/io.k8s.api.core.v1.FlockerVolumeSource", + "description": "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running" + }, + "gcePersistentDisk": { + "$ref": "#/$defs/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource", + "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + }, + "glusterfs": { + "$ref": "#/$defs/io.k8s.api.core.v1.GlusterfsPersistentVolumeSource", + "description": "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + }, + "hostPath": { + "$ref": "#/$defs/io.k8s.api.core.v1.HostPathVolumeSource", + "description": "hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" + }, + "iscsi": { + "$ref": "#/$defs/io.k8s.api.core.v1.ISCSIPersistentVolumeSource", + "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin." + }, + "local": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalVolumeSource", + "description": "local represents directly-attached storage with node affinity" + }, + "mountOptions": { + "description": "mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nfs": { + "$ref": "#/$defs/io.k8s.api.core.v1.NFSVolumeSource", + "description": "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + }, + "nodeAffinity": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeNodeAffinity", + "description": "nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume." + }, + "persistentVolumeReclaimPolicy": { + "description": "persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming", + "type": [ + "string", + "null" + ] + }, + "photonPersistentDisk": { + "$ref": "#/$defs/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource", + "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" + }, + "portworxVolume": { + "$ref": "#/$defs/io.k8s.api.core.v1.PortworxVolumeSource", + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine" + }, + "quobyte": { + "$ref": "#/$defs/io.k8s.api.core.v1.QuobyteVolumeSource", + "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime" + }, + "rbd": { + "$ref": "#/$defs/io.k8s.api.core.v1.RBDPersistentVolumeSource", + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md" + }, + "scaleIO": { + "$ref": "#/$defs/io.k8s.api.core.v1.ScaleIOPersistentVolumeSource", + "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." + }, + "storageClassName": { + "description": "storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.", + "type": [ + "string", + "null" + ] + }, + "storageos": { + "$ref": "#/$defs/io.k8s.api.core.v1.StorageOSPersistentVolumeSource", + "description": "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md" + }, + "volumeAttributesClassName": { + "description": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + "type": [ + "string", + "null" + ] + }, + "volumeMode": { + "description": "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.", + "type": [ + "string", + "null" + ] + }, + "vsphereVolume": { + "$ref": "#/$defs/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource", + "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PersistentVolumeStatus": { + "description": "PersistentVolumeStatus is the current status of a persistent volume.", + "properties": { + "lastPhaseTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions." + }, + "message": { + "description": "message is a human-readable message indicating details about why the volume is in this state.", + "type": [ + "string", + "null" + ] + }, + "phase": { + "description": "phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource": { + "description": "Represents a Photon Controller persistent disk resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "pdID": { + "description": "pdID is the ID that identifies Photon Controller persistent disk", + "type": "string" + } + }, + "required": [ + "pdID" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Pod": { + "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Pod" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodStatus", + "description": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Pod", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PodAffinity": { + "description": "Pod affinity is a group of inter pod affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodAffinityTerm": { + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running", + "properties": { + "labelSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods." + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces." + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": "string" + } + }, + "required": [ + "topologyKey" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodAntiAffinity": { + "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodCondition": { + "description": "PodCondition contains details for the current condition of this pod.", + "properties": { + "lastProbeTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time we probed the condition." + }, + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": "string" + }, + "type": { + "description": "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodDNSConfig": { + "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", + "properties": { + "nameservers": { + "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "options": { + "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodDNSConfigOption" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "searches": { + "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodDNSConfigOption": { + "description": "PodDNSConfigOption defines DNS resolver options of a pod.", + "properties": { + "name": { + "description": "Required.", + "type": [ + "string", + "null" + ] + }, + "value": { + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodIP": { + "description": "PodIP represents a single IP address allocated to the pod.", + "properties": { + "ip": { + "description": "IP is the IP address assigned to the pod", + "type": "string" + } + }, + "required": [ + "ip" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodList": { + "description": "PodList is a list of Pods.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Pod" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PodOS": { + "description": "PodOS defines the OS parameters of a pod.", + "properties": { + "name": { + "description": "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodReadinessGate": { + "description": "PodReadinessGate contains the reference to a pod condition", + "properties": { + "conditionType": { + "description": "ConditionType refers to a condition in the pod's condition list with matching type.", + "type": "string" + } + }, + "required": [ + "conditionType" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodResourceClaim": { + "description": "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod.\n\nIt adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", + "type": "string" + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "type": [ + "string", + "null" + ] + }, + "resourceClaimTemplateName": { + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodResourceClaimStatus": { + "description": "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.", + "type": "string" + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodSchedulingGate": { + "description": "PodSchedulingGate is associated to a Pod to guard its scheduling.", + "properties": { + "name": { + "description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodSecurityContext": { + "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "properties": { + "appArmorProfile": { + "$ref": "#/$defs/io.k8s.api.core.v1.AppArmorProfile", + "description": "appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." + }, + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "string", + "null" + ] + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": [ + "boolean", + "null" + ] + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "seLinuxOptions": { + "$ref": "#/$defs/io.k8s.api.core.v1.SELinuxOptions", + "description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows." + }, + "seccompProfile": { + "$ref": "#/$defs/io.k8s.api.core.v1.SeccompProfile", + "description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.", + "items": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "supplementalGroupsPolicy": { + "description": "Defines how supplemental groups of the first container processes are calculated. Valid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "string", + "null" + ] + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Sysctl" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "windowsOptions": { + "$ref": "#/$defs/io.k8s.api.core.v1.WindowsSecurityContextOptions", + "description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodSpec": { + "description": "PodSpec is a description of a pod.", + "properties": { + "activeDeadlineSeconds": { + "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "affinity": { + "$ref": "#/$defs/io.k8s.api.core.v1.Affinity", + "description": "If specified, the pod's scheduling constraints" + }, + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", + "type": [ + "boolean", + "null" + ] + }, + "containers": { + "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Container" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "dnsConfig": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodDNSConfig", + "description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy." + }, + "dnsPolicy": { + "description": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", + "type": [ + "string", + "null" + ] + }, + "enableServiceLinks": { + "description": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.", + "type": [ + "boolean", + "null" + ] + }, + "ephemeralContainers": { + "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.EphemeralContainer" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "hostAliases": { + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.HostAlias" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "ip" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "hostIPC": { + "description": "Use the host's ipc namespace. Optional: Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "hostNetwork": { + "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "hostPID": { + "description": "Use the host's pid namespace. Optional: Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "hostUsers": { + "description": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.", + "type": [ + "boolean", + "null" + ] + }, + "hostname": { + "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", + "type": [ + "string", + "null" + ] + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "initContainers": { + "description": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Container" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "nodeName": { + "description": "NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename", + "type": [ + "string", + "null" + ] + }, + "nodeSelector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "os": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodOS", + "description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup" + }, + "overhead": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md", + "type": [ + "object", + "null" + ] + }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": [ + "string", + "null" + ] + }, + "priority": { + "description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "priorityClassName": { + "description": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.", + "type": [ + "string", + "null" + ] + }, + "readinessGates": { + "description": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodReadinessGate" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodResourceClaim" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "restartPolicy": { + "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy", + "type": [ + "string", + "null" + ] + }, + "runtimeClassName": { + "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", + "type": [ + "string", + "null" + ] + }, + "schedulerName": { + "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", + "type": [ + "string", + "null" + ] + }, + "schedulingGates": { + "description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\n\nSchedulingGates can only be set at pod creation time, and be removed only afterwards.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodSchedulingGate" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "securityContext": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodSecurityContext", + "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." + }, + "serviceAccount": { + "description": "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", + "type": [ + "string", + "null" + ] + }, + "serviceAccountName": { + "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "type": [ + "string", + "null" + ] + }, + "setHostnameAsFQDN": { + "description": "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "shareProcessNamespace": { + "description": "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "subdomain": { + "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", + "type": [ + "string", + "null" + ] + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Toleration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "topologySpreadConstraints": { + "description": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.TopologySpreadConstraint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "topologyKey", + "whenUnsatisfiable" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "topologyKey", + "x-kubernetes-patch-strategy": "merge" + }, + "volumes": { + "description": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Volume" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + } + }, + "required": [ + "containers" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodStatus": { + "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", + "properties": { + "conditions": { + "description": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "containerStatuses": { + "description": "The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ephemeralContainerStatuses": { + "description": "Status for any ephemeral containers that have run in this pod.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "hostIP": { + "description": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod", + "type": [ + "string", + "null" + ] + }, + "hostIPs": { + "description": "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.HostIP" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "initContainerStatuses": { + "description": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "message": { + "description": "A human readable message indicating details about why the pod is in this condition.", + "type": [ + "string", + "null" + ] + }, + "nominatedNodeName": { + "description": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", + "type": [ + "string", + "null" + ] + }, + "phase": { + "description": "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase", + "type": [ + "string", + "null" + ] + }, + "podIP": { + "description": "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", + "type": [ + "string", + "null" + ] + }, + "podIPs": { + "description": "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodIP" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "ip" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "qosClass": { + "description": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", + "type": [ + "string", + "null" + ] + }, + "resize": { + "description": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"", + "type": [ + "string", + "null" + ] + }, + "resourceClaimStatuses": { + "description": "Status of resource claims.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodResourceClaimStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "startTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PodTemplate": { + "description": "PodTemplate describes a template for creating copies of a predefined pod.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodTemplate" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PodTemplateList": { + "description": "PodTemplateList is a list of PodTemplates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of pod templates", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplate" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodTemplateList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodTemplateList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.PodTemplateSpec": { + "description": "PodTemplateSpec describes the data a pod should have when created from a template", + "properties": { + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PortStatus": { + "properties": { + "error": { + "description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "Port is the port number of the service port of which status is recorded here", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PortworxVolumeSource": { + "description": "PortworxVolumeSource represents a Portworx volume resource.", + "properties": { + "fsType": { + "description": "fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "volumeID": { + "description": "volumeID uniquely identifies a Portworx volume", + "type": "string" + } + }, + "required": [ + "volumeID" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.PreferredSchedulingTerm": { + "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "properties": { + "preference": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelectorTerm", + "description": "A node selector term, associated with the corresponding weight." + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "weight", + "preference" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Probe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "properties": { + "exec": { + "$ref": "#/$defs/io.k8s.api.core.v1.ExecAction", + "description": "Exec specifies the action to take." + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "grpc": { + "$ref": "#/$defs/io.k8s.api.core.v1.GRPCAction", + "description": "GRPC specifies an action involving a GRPC port." + }, + "httpGet": { + "$ref": "#/$defs/io.k8s.api.core.v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "tcpSocket": { + "$ref": "#/$defs/io.k8s.api.core.v1.TCPSocketAction", + "description": "TCPSocket specifies an action involving a TCP port." + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ProjectedVolumeSource": { + "description": "Represents a projected volume source", + "properties": { + "defaultMode": { + "description": "defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "sources": { + "description": "sources is the list of volume projections. Each entry in this list handles one source.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.VolumeProjection" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.QuobyteVolumeSource": { + "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", + "properties": { + "group": { + "description": "group to map volume access to Default is no group", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "registry": { + "description": "registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", + "type": "string" + }, + "tenant": { + "description": "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "user to map volume access to Defaults to serivceaccount user", + "type": [ + "string", + "null" + ] + }, + "volume": { + "description": "volume is a string that references an already created Quobyte volume by name.", + "type": "string" + } + }, + "required": [ + "registry", + "volume" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.RBDPersistentVolumeSource": { + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "keyring": { + "description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "pool": { + "description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + }, + "user": { + "description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors", + "image" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.RBDVolumeSource": { + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": "string" + }, + "keyring": { + "description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "pool": { + "description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + }, + "user": { + "description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors", + "image" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ReplicationController": { + "description": "ReplicationController represents the configuration of a replication controller.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicationController" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.ReplicationControllerSpec", + "description": "Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.ReplicationControllerStatus", + "description": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ReplicationControllerCondition": { + "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of replication controller condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ReplicationControllerList": { + "description": "ReplicationControllerList is a collection of replication controllers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ReplicationController" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicationControllerList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ReplicationControllerList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ReplicationControllerSpec": { + "description": "ReplicationControllerSpec is the specification of a replication controller.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "template": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ReplicationControllerStatus": { + "description": "ReplicationControllerStatus represents the current status of a replication controller.", + "properties": { + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a replication controller's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ReplicationControllerCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "The number of ready replicas for this replication controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "replicas" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ResourceClaim": { + "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", + "properties": { + "name": { + "description": "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.", + "type": "string" + }, + "request": { + "description": "Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ResourceFieldSelector": { + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "properties": { + "containerName": { + "description": "Container name: required for volumes, optional for env vars", + "type": [ + "string", + "null" + ] + }, + "divisor": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Specifies the output format of the exposed resources, defaults to \"1\"" + }, + "resource": { + "description": "Required: resource to select", + "type": "string" + } + }, + "required": [ + "resource" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.ResourceHealth": { + "description": "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.", + "properties": { + "health": { + "description": "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.", + "type": [ + "string", + "null" + ] + }, + "resourceID": { + "description": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.", + "type": "string" + } + }, + "required": [ + "resourceID" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ResourceQuota": { + "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceQuota" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceQuotaSpec", + "description": "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceQuotaStatus", + "description": "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ResourceQuotaList": { + "description": "ResourceQuotaList is a list of ResourceQuota items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceQuota" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceQuotaList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ResourceQuotaList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ResourceQuotaSpec": { + "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", + "properties": { + "hard": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "type": [ + "object", + "null" + ] + }, + "scopeSelector": { + "$ref": "#/$defs/io.k8s.api.core.v1.ScopeSelector", + "description": "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched." + }, + "scopes": { + "description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ResourceQuotaStatus": { + "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", + "properties": { + "hard": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "type": [ + "object", + "null" + ] + }, + "used": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Used is the current observed total usage of the resource in the namespace.", + "type": [ + "object", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "properties": { + "claims": { + "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceClaim" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "limits": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + }, + "requests": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ResourceStatus": { + "properties": { + "name": { + "description": "Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.", + "type": "string" + }, + "resources": { + "description": "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ResourceHealth" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "resourceID" + ], + "x-kubernetes-list-type": "map" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.SELinuxOptions": { + "description": "SELinuxOptions are the labels to be applied to the container", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": [ + "string", + "null" + ] + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ScaleIOPersistentVolumeSource": { + "description": "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"", + "type": [ + "string", + "null" + ] + }, + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": "string" + }, + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + }, + "sslEnabled": { + "description": "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false", + "type": [ + "boolean", + "null" + ] + }, + "storageMode": { + "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "type": [ + "string", + "null" + ] + }, + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": [ + "string", + "null" + ] + }, + "system": { + "description": "system is the name of the storage system as configured in ScaleIO.", + "type": "string" + }, + "volumeName": { + "description": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ScaleIOVolumeSource": { + "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".", + "type": [ + "string", + "null" + ] + }, + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": "string" + }, + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + }, + "sslEnabled": { + "description": "sslEnabled Flag enable/disable SSL communication with Gateway, default false", + "type": [ + "boolean", + "null" + ] + }, + "storageMode": { + "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "type": [ + "string", + "null" + ] + }, + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": [ + "string", + "null" + ] + }, + "system": { + "description": "system is the name of the storage system as configured in ScaleIO.", + "type": "string" + }, + "volumeName": { + "description": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ScopeSelector": { + "description": "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", + "properties": { + "matchExpressions": { + "description": "A list of scope selector requirements by scope of the resources.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ScopedResourceSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.ScopedResourceSelectorRequirement": { + "description": "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.", + "properties": { + "operator": { + "description": "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.", + "type": "string" + }, + "scopeName": { + "description": "The name of the scope that the selector applies to.", + "type": "string" + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "scopeName", + "operator" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.SeccompProfile": { + "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ] + }, + "io.k8s.api.core.v1.Secret": { + "description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "data": { + "additionalProperties": { + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "description": "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + "type": [ + "object", + "null" + ] + }, + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Secret" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "stringData": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.", + "type": [ + "object", + "null" + ] + }, + "type": { + "description": "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Secret", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.SecretEnvSource": { + "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the Secret must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.SecretKeySelector": { + "description": "SecretKeySelector selects a key of a Secret.", + "properties": { + "key": { + "description": "The key of the secret to select from. Must be a valid secret key.", + "type": "string" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "key" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.SecretList": { + "description": "SecretList is a list of Secret.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Secret" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SecretList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "SecretList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.SecretProjection": { + "description": "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.", + "properties": { + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "optional field specify whether the Secret or its key must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.SecretReference": { + "description": "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", + "properties": { + "name": { + "description": "name is unique within a namespace to reference a secret resource.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace defines the space within which the secret name must be unique.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.SecretVolumeSource": { + "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "items": { + "description": "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "optional": { + "description": "optional field specify whether the Secret or its keys must be defined", + "type": [ + "boolean", + "null" + ] + }, + "secretName": { + "description": "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.SecurityContext": { + "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", + "properties": { + "allowPrivilegeEscalation": { + "description": "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "boolean", + "null" + ] + }, + "appArmorProfile": { + "$ref": "#/$defs/io.k8s.api.core.v1.AppArmorProfile", + "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows." + }, + "capabilities": { + "$ref": "#/$defs/io.k8s.api.core.v1.Capabilities", + "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows." + }, + "privileged": { + "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "boolean", + "null" + ] + }, + "procMount": { + "description": "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "string", + "null" + ] + }, + "readOnlyRootFilesystem": { + "description": "Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "boolean", + "null" + ] + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": [ + "boolean", + "null" + ] + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "seLinuxOptions": { + "$ref": "#/$defs/io.k8s.api.core.v1.SELinuxOptions", + "description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows." + }, + "seccompProfile": { + "$ref": "#/$defs/io.k8s.api.core.v1.SeccompProfile", + "description": "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows." + }, + "windowsOptions": { + "$ref": "#/$defs/io.k8s.api.core.v1.WindowsSecurityContextOptions", + "description": "The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Service": { + "description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Service" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.core.v1.ServiceSpec", + "description": "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.core.v1.ServiceStatus", + "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Service", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ServiceAccount": { + "description": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", + "type": [ + "boolean", + "null" + ] + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceAccount" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "secrets": { + "description": "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ServiceAccountList": { + "description": "ServiceAccountList is a list of ServiceAccount objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ServiceAccount" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceAccountList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceAccountList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ServiceAccountTokenProjection": { + "description": "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).", + "properties": { + "audience": { + "description": "audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.", + "type": [ + "string", + "null" + ] + }, + "expirationSeconds": { + "description": "expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "path": { + "description": "path is the path relative to the mount point of the file to project the token into.", + "type": "string" + } + }, + "required": [ + "path" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ServiceList": { + "description": "ServiceList holds a list of services.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of services", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Service" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceList", + "version": "v1" + } + ] + }, + "io.k8s.api.core.v1.ServicePort": { + "description": "ServicePort contains information on service's port.", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.", + "type": [ + "string", + "null" + ] + }, + "nodePort": { + "description": "The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "port": { + "description": "The port that will be exposed by this service.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.", + "type": [ + "string", + "null" + ] + }, + "targetPort": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service" + } + }, + "required": [ + "port" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ServiceSpec": { + "description": "ServiceSpec describes the attributes that a user creates on a service.", + "properties": { + "allocateLoadBalancerNodePorts": { + "description": "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.", + "type": [ + "boolean", + "null" + ] + }, + "clusterIP": { + "description": "clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "type": [ + "string", + "null" + ] + }, + "clusterIPs": { + "description": "ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\n\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "externalIPs": { + "description": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "externalName": { + "description": "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".", + "type": [ + "string", + "null" + ] + }, + "externalTrafficPolicy": { + "description": "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.", + "type": [ + "string", + "null" + ] + }, + "healthCheckNodePort": { + "description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "internalTrafficPolicy": { + "description": "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).", + "type": [ + "string", + "null" + ] + }, + "ipFamilies": { + "description": "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ipFamilyPolicy": { + "description": "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.", + "type": [ + "string", + "null" + ] + }, + "loadBalancerClass": { + "description": "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.", + "type": [ + "string", + "null" + ] + }, + "loadBalancerIP": { + "description": "Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available.", + "type": [ + "string", + "null" + ] + }, + "loadBalancerSourceRanges": { + "description": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.ServicePort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "port", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "port", + "x-kubernetes-patch-strategy": "merge" + }, + "publishNotReadyAddresses": { + "description": "publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.", + "type": [ + "boolean", + "null" + ] + }, + "selector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "sessionAffinity": { + "description": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "type": [ + "string", + "null" + ] + }, + "sessionAffinityConfig": { + "$ref": "#/$defs/io.k8s.api.core.v1.SessionAffinityConfig", + "description": "sessionAffinityConfig contains the configurations of session affinity." + }, + "trafficDistribution": { + "description": "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.ServiceStatus": { + "description": "ServiceStatus represents the current status of a service.", + "properties": { + "conditions": { + "description": "Current service state", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "loadBalancer": { + "$ref": "#/$defs/io.k8s.api.core.v1.LoadBalancerStatus", + "description": "LoadBalancer contains the current status of the load-balancer, if one is present." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.SessionAffinityConfig": { + "description": "SessionAffinityConfig represents the configurations of session affinity.", + "properties": { + "clientIP": { + "$ref": "#/$defs/io.k8s.api.core.v1.ClientIPConfig", + "description": "clientIP contains the configurations of Client IP based session affinity." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.SleepAction": { + "description": "SleepAction describes a \"sleep\" action.", + "properties": { + "seconds": { + "description": "Seconds is the number of seconds to sleep.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "seconds" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.StorageOSPersistentVolumeSource": { + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." + }, + "volumeName": { + "description": "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + "type": [ + "string", + "null" + ] + }, + "volumeNamespace": { + "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.StorageOSVolumeSource": { + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." + }, + "volumeName": { + "description": "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + "type": [ + "string", + "null" + ] + }, + "volumeNamespace": { + "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Sysctl": { + "description": "Sysctl defines a kernel parameter to be set", + "properties": { + "name": { + "description": "Name of a property to set", + "type": "string" + }, + "value": { + "description": "Value of a property to set", + "type": "string" + } + }, + "required": [ + "name", + "value" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.TCPSocketAction": { + "description": "TCPSocketAction describes an action based on opening a socket", + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": [ + "string", + "null" + ] + }, + "port": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + } + }, + "required": [ + "port" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Taint": { + "description": "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", + "properties": { + "effect": { + "description": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", + "type": "string" + }, + "key": { + "description": "Required. The taint key to be applied to a node.", + "type": "string" + }, + "timeAdded": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints." + }, + "value": { + "description": "The taint value corresponding to the taint key.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "key", + "effect" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Toleration": { + "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", + "type": [ + "string", + "null" + ] + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.", + "type": [ + "string", + "null" + ] + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "value": { + "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.TopologySelectorLabelRequirement": { + "description": "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": "string" + }, + "values": { + "description": "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "values" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.TopologySelectorTerm": { + "description": "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.", + "properties": { + "matchLabelExpressions": { + "description": "A list of topology selector requirements by labels.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.TopologySelectorLabelRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.TopologySpreadConstraint": { + "description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", + "properties": { + "labelSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain." + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "maxSkew": { + "description": "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.", + "format": "int32", + "type": "integer" + }, + "minDomains": { + "description": "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "nodeAffinityPolicy": { + "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "type": [ + "string", + "null" + ] + }, + "nodeTaintsPolicy": { + "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "type": [ + "string", + "null" + ] + }, + "topologyKey": { + "description": "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.", + "type": "string" + }, + "whenUnsatisfiable": { + "description": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.", + "type": "string" + } + }, + "required": [ + "maxSkew", + "topologyKey", + "whenUnsatisfiable" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.TypedLocalObjectReference": { + "description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.core.v1.TypedObjectReference": { + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.Volume": { + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "properties": { + "awsElasticBlockStore": { + "$ref": "#/$defs/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource", + "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore" + }, + "azureDisk": { + "$ref": "#/$defs/io.k8s.api.core.v1.AzureDiskVolumeSource", + "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." + }, + "azureFile": { + "$ref": "#/$defs/io.k8s.api.core.v1.AzureFileVolumeSource", + "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod." + }, + "cephfs": { + "$ref": "#/$defs/io.k8s.api.core.v1.CephFSVolumeSource", + "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "cinder": { + "$ref": "#/$defs/io.k8s.api.core.v1.CinderVolumeSource", + "description": "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + }, + "configMap": { + "$ref": "#/$defs/io.k8s.api.core.v1.ConfigMapVolumeSource", + "description": "configMap represents a configMap that should populate this volume" + }, + "csi": { + "$ref": "#/$defs/io.k8s.api.core.v1.CSIVolumeSource", + "description": "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature)." + }, + "downwardAPI": { + "$ref": "#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeSource", + "description": "downwardAPI represents downward API about the pod that should populate this volume" + }, + "emptyDir": { + "$ref": "#/$defs/io.k8s.api.core.v1.EmptyDirVolumeSource", + "description": "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" + }, + "ephemeral": { + "$ref": "#/$defs/io.k8s.api.core.v1.EphemeralVolumeSource", + "description": "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time." + }, + "fc": { + "$ref": "#/$defs/io.k8s.api.core.v1.FCVolumeSource", + "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flexVolume": { + "$ref": "#/$defs/io.k8s.api.core.v1.FlexVolumeSource", + "description": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." + }, + "flocker": { + "$ref": "#/$defs/io.k8s.api.core.v1.FlockerVolumeSource", + "description": "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running" + }, + "gcePersistentDisk": { + "$ref": "#/$defs/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource", + "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + }, + "gitRepo": { + "$ref": "#/$defs/io.k8s.api.core.v1.GitRepoVolumeSource", + "description": "gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container." + }, + "glusterfs": { + "$ref": "#/$defs/io.k8s.api.core.v1.GlusterfsVolumeSource", + "description": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + }, + "hostPath": { + "$ref": "#/$defs/io.k8s.api.core.v1.HostPathVolumeSource", + "description": "hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" + }, + "image": { + "$ref": "#/$defs/io.k8s.api.core.v1.ImageVolumeSource", + "description": "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type." + }, + "iscsi": { + "$ref": "#/$defs/io.k8s.api.core.v1.ISCSIVolumeSource", + "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md" + }, + "name": { + "description": "name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": "string" + }, + "nfs": { + "$ref": "#/$defs/io.k8s.api.core.v1.NFSVolumeSource", + "description": "nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + }, + "persistentVolumeClaim": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource", + "description": "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + }, + "photonPersistentDisk": { + "$ref": "#/$defs/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource", + "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" + }, + "portworxVolume": { + "$ref": "#/$defs/io.k8s.api.core.v1.PortworxVolumeSource", + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine" + }, + "projected": { + "$ref": "#/$defs/io.k8s.api.core.v1.ProjectedVolumeSource", + "description": "projected items for all in one resources secrets, configmaps, and downward API" + }, + "quobyte": { + "$ref": "#/$defs/io.k8s.api.core.v1.QuobyteVolumeSource", + "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime" + }, + "rbd": { + "$ref": "#/$defs/io.k8s.api.core.v1.RBDVolumeSource", + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md" + }, + "scaleIO": { + "$ref": "#/$defs/io.k8s.api.core.v1.ScaleIOVolumeSource", + "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." + }, + "secret": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretVolumeSource", + "description": "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret" + }, + "storageos": { + "$ref": "#/$defs/io.k8s.api.core.v1.StorageOSVolumeSource", + "description": "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes." + }, + "vsphereVolume": { + "$ref": "#/$defs/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource", + "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.VolumeDevice": { + "description": "volumeDevice describes a mapping of a raw block device within a container.", + "properties": { + "devicePath": { + "description": "devicePath is the path inside of the container that the device will be mapped to.", + "type": "string" + }, + "name": { + "description": "name must match the name of a persistentVolumeClaim in the pod", + "type": "string" + } + }, + "required": [ + "name", + "devicePath" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.VolumeMount": { + "description": "VolumeMount describes a mounting of a Volume within a container.", + "properties": { + "mountPath": { + "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "type": "string" + }, + "mountPropagation": { + "description": "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "This must match the Name of a Volume.", + "type": "string" + }, + "readOnly": { + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "recursiveReadOnly": { + "description": "RecursiveReadOnly specifies whether read-only mounts should be handled recursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", + "type": [ + "string", + "null" + ] + }, + "subPath": { + "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", + "type": [ + "string", + "null" + ] + }, + "subPathExpr": { + "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "mountPath" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.VolumeMountStatus": { + "description": "VolumeMountStatus shows status of volume mounts.", + "properties": { + "mountPath": { + "description": "MountPath corresponds to the original VolumeMount.", + "type": "string" + }, + "name": { + "description": "Name corresponds to the name of the original VolumeMount.", + "type": "string" + }, + "readOnly": { + "description": "ReadOnly corresponds to the original VolumeMount.", + "type": [ + "boolean", + "null" + ] + }, + "recursiveReadOnly": { + "description": "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "mountPath" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.VolumeNodeAffinity": { + "description": "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", + "properties": { + "required": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "required specifies hard node constraints that must be met." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.VolumeProjection": { + "description": "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.", + "properties": { + "clusterTrustBundle": { + "$ref": "#/$defs/io.k8s.api.core.v1.ClusterTrustBundleProjection", + "description": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time." + }, + "configMap": { + "$ref": "#/$defs/io.k8s.api.core.v1.ConfigMapProjection", + "description": "configMap information about the configMap data to project" + }, + "downwardAPI": { + "$ref": "#/$defs/io.k8s.api.core.v1.DownwardAPIProjection", + "description": "downwardAPI information about the downwardAPI data to project" + }, + "secret": { + "$ref": "#/$defs/io.k8s.api.core.v1.SecretProjection", + "description": "secret information about the secret data to project" + }, + "serviceAccountToken": { + "$ref": "#/$defs/io.k8s.api.core.v1.ServiceAccountTokenProjection", + "description": "serviceAccountToken is information about the serviceAccountToken data to project" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.VolumeResourceRequirements": { + "description": "VolumeResourceRequirements describes the storage resource requirements for a volume.", + "properties": { + "limits": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + }, + "requests": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource": { + "description": "Represents a vSphere volume resource.", + "properties": { + "fsType": { + "description": "fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "storagePolicyID": { + "description": "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", + "type": [ + "string", + "null" + ] + }, + "storagePolicyName": { + "description": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", + "type": [ + "string", + "null" + ] + }, + "volumePath": { + "description": "volumePath is the path that identifies vSphere volume vmdk", + "type": "string" + } + }, + "required": [ + "volumePath" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.WeightedPodAffinityTerm": { + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "properties": { + "podAffinityTerm": { + "$ref": "#/$defs/io.k8s.api.core.v1.PodAffinityTerm", + "description": "Required. A pod affinity term, associated with the corresponding weight." + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "weight", + "podAffinityTerm" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.core.v1.WindowsSecurityContextOptions": { + "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", + "properties": { + "gmsaCredentialSpec": { + "description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.", + "type": [ + "string", + "null" + ] + }, + "gmsaCredentialSpecName": { + "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", + "type": [ + "string", + "null" + ] + }, + "hostProcess": { + "description": "HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.", + "type": [ + "boolean", + "null" + ] + }, + "runAsUserName": { + "description": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.discovery.v1.Endpoint": { + "description": "Endpoint represents a single logical \"backend\" implementing a service.", + "properties": { + "addresses": { + "description": "addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "conditions": { + "$ref": "#/$defs/io.k8s.api.discovery.v1.EndpointConditions", + "description": "conditions contains information about the current status of the endpoint." + }, + "deprecatedTopology": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.", + "type": [ + "object", + "null" + ] + }, + "hints": { + "$ref": "#/$defs/io.k8s.api.discovery.v1.EndpointHints", + "description": "hints contains information associated with how an endpoint should be consumed." + }, + "hostname": { + "description": "hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.", + "type": [ + "string", + "null" + ] + }, + "nodeName": { + "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.", + "type": [ + "string", + "null" + ] + }, + "targetRef": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." + }, + "zone": { + "description": "zone is the name of the Zone this endpoint exists in.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "addresses" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.discovery.v1.EndpointConditions": { + "description": "EndpointConditions represents the current condition of an endpoint.", + "properties": { + "ready": { + "description": "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.", + "type": [ + "boolean", + "null" + ] + }, + "serving": { + "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.", + "type": [ + "boolean", + "null" + ] + }, + "terminating": { + "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.", + "type": [ + "boolean", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.discovery.v1.EndpointHints": { + "description": "EndpointHints provides hints describing how an endpoint should be consumed.", + "properties": { + "forZones": { + "description": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.", + "items": { + "$ref": "#/$defs/io.k8s.api.discovery.v1.ForZone" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.discovery.v1.EndpointPort": { + "description": "EndpointPort represents a Port used by an EndpointSlice", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "protocol": { + "description": "protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.discovery.v1.EndpointSlice": { + "description": "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.", + "properties": { + "addressType": { + "description": "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.", + "type": "string" + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "discovery.k8s.io/v1" + ] + }, + "endpoints": { + "description": "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.", + "items": { + "$ref": "#/$defs/io.k8s.api.discovery.v1.Endpoint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EndpointSlice" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "ports": { + "description": "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.", + "items": { + "$ref": "#/$defs/io.k8s.api.discovery.v1.EndpointPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "addressType", + "endpoints" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + ] + }, + "io.k8s.api.discovery.v1.EndpointSliceList": { + "description": "EndpointSliceList represents a list of endpoint slices", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "discovery.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of endpoint slices", + "items": { + "$ref": "#/$defs/io.k8s.api.discovery.v1.EndpointSlice" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EndpointSliceList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "discovery.k8s.io", + "kind": "EndpointSliceList", + "version": "v1" + } + ] + }, + "io.k8s.api.discovery.v1.ForZone": { + "description": "ForZone provides information about which zones should consume this endpoint.", + "properties": { + "name": { + "description": "name represents the name of the zone.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.events.v1.Event": { + "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "properties": { + "action": { + "description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": [ + "string", + "null" + ] + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "events.k8s.io/v1" + ] + }, + "deprecatedCount": { + "description": "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "deprecatedFirstTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "deprecatedLastTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "deprecatedSource": { + "$ref": "#/$defs/io.k8s.api.core.v1.EventSource", + "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "eventTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "eventTime is the time when this Event was first observed. It is required." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Event" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "note": { + "description": "note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": [ + "string", + "null" + ] + }, + "regarding": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." + }, + "related": { + "$ref": "#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." + }, + "reportingController": { + "description": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.", + "type": [ + "string", + "null" + ] + }, + "reportingInstance": { + "description": "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": [ + "string", + "null" + ] + }, + "series": { + "$ref": "#/$defs/io.k8s.api.events.v1.EventSeries", + "description": "series is data about the Event series this event represents or nil if it's a singleton Event." + }, + "type": { + "description": "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "eventTime" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + ] + }, + "io.k8s.api.events.v1.EventList": { + "description": "EventList is a list of Event objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "events.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.events.v1.Event" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EventList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "events.k8s.io", + "kind": "EventList", + "version": "v1" + } + ] + }, + "io.k8s.api.events.v1.EventSeries": { + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations.", + "properties": { + "count": { + "description": "count is the number of occurrences in this series up to the last heartbeat time.", + "format": "int32", + "type": "integer" + }, + "lastObservedTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat." + } + }, + "required": [ + "count", + "lastObservedTime" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration": { + "description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", + "properties": { + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod": { + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", + "properties": { + "type": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.FlowSchema": { + "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchema" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + ] + }, + "io.k8s.api.flowcontrol.v1.FlowSchemaCondition": { + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.FlowSchemaList": { + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "items": { + "description": "`items` is a list of FlowSchemas.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.FlowSchema" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchemaList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1" + } + ] + }, + "io.k8s.api.flowcontrol.v1.FlowSchemaSpec": { + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + }, + "matchingPrecedence": { + "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "priorityLevelConfiguration": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + }, + "rules": { + "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.FlowSchemaStatus": { + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.GroupSubject": { + "description": "GroupSubject holds detailed information for group-kind subject.", + "properties": { + "name": { + "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.LimitResponse": { + "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "properties": { + "queuing": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + }, + "type": { + "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "queuing": "Queuing" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration": { + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "properties": { + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "limitResponse": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level.\n\nIf not specified, this field defaults to a value of 30.\n\nSetting this field to zero supports the construction of a \"jail\" for this priority level that is used to hold some request(s)", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.NonResourcePolicyRule": { + "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", + "properties": { + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "nonResourceURLs" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects": { + "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", + "properties": { + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.NonResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.ResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "subjects": { + "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "subjects" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration": { + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfiguration" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + ] + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationCondition": { + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList": { + "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "items": { + "description": "`items` is a list of request-priorities.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfigurationList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1" + } + ] + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference": { + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "properties": { + "name": { + "description": "`name` is the name of the priority level configuration being referenced Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec": { + "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", + "properties": { + "exempt": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration", + "description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply." + }, + "limited": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "type": { + "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "exempt": "Exempt", + "limited": "Limited" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationStatus": { + "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.QueuingConfiguration": { + "description": "QueuingConfiguration holds the configuration parameters for queuing", + "properties": { + "handSize": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.ResourcePolicyRule": { + "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", + "properties": { + "apiGroups": { + "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "clusterScope": { + "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", + "type": [ + "boolean", + "null" + ] + }, + "namespaces": { + "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "resources": { + "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "apiGroups", + "resources" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.ServiceAccountSubject": { + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", + "properties": { + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", + "type": "string" + }, + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": "string" + } + }, + "required": [ + "namespace", + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1.Subject": { + "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", + "properties": { + "group": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.GroupSubject", + "description": "`group` matches based on user group name." + }, + "kind": { + "description": "`kind` indicates which one of the other fields is non-empty. Required", + "type": "string" + }, + "serviceAccount": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1.UserSubject", + "description": "`user` matches based on username." + } + }, + "required": [ + "kind" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1.UserSubject": { + "description": "UserSubject holds detailed information for user-kind subject.", + "properties": { + "name": { + "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration": { + "description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", + "properties": { + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod": { + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", + "properties": { + "type": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchema": { + "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchema" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition": { + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaList": { + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "items": { + "description": "`items` is a list of FlowSchemas.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchemaList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1beta3" + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec": { + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + }, + "matchingPrecedence": { + "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "priorityLevelConfiguration": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + }, + "rules": { + "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus": { + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.GroupSubject": { + "description": "GroupSubject holds detailed information for group-kind subject.", + "properties": { + "name": { + "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.LimitResponse": { + "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "properties": { + "queuing": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + }, + "type": { + "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "queuing": "Queuing" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration": { + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "properties": { + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "limitResponse": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule": { + "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", + "properties": { + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "nonResourceURLs" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects": { + "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", + "properties": { + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "subjects": { + "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "subjects" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration": { + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfiguration" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition": { + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList": { + "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "items": { + "description": "`items` is a list of request-priorities.", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfigurationList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1beta3" + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference": { + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "properties": { + "name": { + "description": "`name` is the name of the priority level configuration being referenced Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec": { + "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", + "properties": { + "exempt": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration", + "description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply." + }, + "limited": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "type": { + "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "exempt": "Exempt", + "limited": "Limited" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus": { + "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration": { + "description": "QueuingConfiguration holds the configuration parameters for queuing", + "properties": { + "handSize": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule": { + "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", + "properties": { + "apiGroups": { + "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "clusterScope": { + "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", + "type": [ + "boolean", + "null" + ] + }, + "namespaces": { + "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "resources": { + "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "apiGroups", + "resources" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject": { + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", + "properties": { + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", + "type": "string" + }, + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": "string" + } + }, + "required": [ + "namespace", + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.flowcontrol.v1beta3.Subject": { + "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", + "properties": { + "group": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.GroupSubject", + "description": "`group` matches based on user group name." + }, + "kind": { + "description": "`kind` indicates which one of the other fields is non-empty. Required", + "type": "string" + }, + "serviceAccount": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "#/$defs/io.k8s.api.flowcontrol.v1beta3.UserSubject", + "description": "`user` matches based on username." + } + }, + "required": [ + "kind" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-unions": [ + { + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.UserSubject": { + "description": "UserSubject holds detailed information for user-kind subject.", + "properties": { + "name": { + "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.HTTPIngressPath": { + "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", + "properties": { + "backend": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressBackend", + "description": "backend defines the referenced service endpoint to which the traffic will be forwarded to." + }, + "path": { + "description": "path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".", + "type": [ + "string", + "null" + ] + }, + "pathType": { + "description": "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", + "type": "string" + } + }, + "required": [ + "pathType", + "backend" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.HTTPIngressRuleValue": { + "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", + "properties": { + "paths": { + "description": "paths is a collection of paths that map requests to backends.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.HTTPIngressPath" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "paths" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.IPBlock": { + "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + "properties": { + "cidr": { + "description": "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", + "type": "string" + }, + "except": { + "description": "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "cidr" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.Ingress": { + "description": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Ingress" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressSpec", + "description": "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressStatus", + "description": "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + ] + }, + "io.k8s.api.networking.v1.IngressBackend": { + "description": "IngressBackend describes all endpoints for a given service and port.", + "properties": { + "resource": { + "$ref": "#/$defs/io.k8s.api.core.v1.TypedLocalObjectReference", + "description": "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\"." + }, + "service": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressServiceBackend", + "description": "service references a service as a backend. This is a mutually exclusive setting with \"Resource\"." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.IngressClass": { + "description": "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IngressClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressClassSpec", + "description": "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + ] + }, + "io.k8s.api.networking.v1.IngressClassList": { + "description": "IngressClassList is a collection of IngressClasses.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of IngressClasses.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IngressClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClassList", + "version": "v1" + } + ] + }, + "io.k8s.api.networking.v1.IngressClassParametersReference": { + "description": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", + "properties": { + "apiGroup": { + "description": "apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the type of resource being referenced.", + "type": "string" + }, + "name": { + "description": "name is the name of resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", + "type": [ + "string", + "null" + ] + }, + "scope": { + "description": "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.IngressClassSpec": { + "description": "IngressClassSpec provides information about the class of an Ingress.", + "properties": { + "controller": { + "description": "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "parameters": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressClassParametersReference", + "description": "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.IngressList": { + "description": "IngressList is a collection of Ingress.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of Ingress.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.Ingress" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IngressList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressList", + "version": "v1" + } + ] + }, + "io.k8s.api.networking.v1.IngressLoadBalancerIngress": { + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "properties": { + "hostname": { + "description": "hostname is set for load-balancer ingress points that are DNS based.", + "type": [ + "string", + "null" + ] + }, + "ip": { + "description": "ip is set for load-balancer ingress points that are IP based.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "ports provides information about the ports exposed by this LoadBalancer.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressPortStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.IngressLoadBalancerStatus": { + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "ingress is a list containing ingress points for the load-balancer.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressLoadBalancerIngress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.IngressPortStatus": { + "description": "IngressPortStatus represents the error condition of a service port", + "properties": { + "error": { + "description": "error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "port is the port number of the ingress port.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.IngressRule": { + "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", + "properties": { + "host": { + "description": "host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nhost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", + "type": [ + "string", + "null" + ] + }, + "http": { + "$ref": "#/$defs/io.k8s.api.networking.v1.HTTPIngressRuleValue" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.IngressServiceBackend": { + "description": "IngressServiceBackend references a Kubernetes Service as a Backend.", + "properties": { + "name": { + "description": "name is the referenced service. The service must exist in the same namespace as the Ingress object.", + "type": "string" + }, + "port": { + "$ref": "#/$defs/io.k8s.api.networking.v1.ServiceBackendPort", + "description": "port of the referenced service. A port name or port number is required for a IngressServiceBackend." + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.IngressSpec": { + "description": "IngressSpec describes the Ingress the user wishes to exist.", + "properties": { + "defaultBackend": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressBackend", + "description": "defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." + }, + "ingressClassName": { + "description": "ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.", + "type": [ + "string", + "null" + ] + }, + "rules": { + "description": "rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "tls": { + "description": "tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressTLS" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.IngressStatus": { + "description": "IngressStatus describe the current state of the Ingress.", + "properties": { + "loadBalancer": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IngressLoadBalancerStatus", + "description": "loadBalancer contains the current status of the load-balancer." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.IngressTLS": { + "description": "IngressTLS describes the transport layer security associated with an ingress.", + "properties": { + "hosts": { + "description": "hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "secretName": { + "description": "secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the \"Host\" header is used for routing.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.NetworkPolicy": { + "description": "NetworkPolicy describes what network traffic is allowed for a set of Pods", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NetworkPolicy" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicySpec", + "description": "spec represents the specification of the desired behavior for this NetworkPolicy." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + ] + }, + "io.k8s.api.networking.v1.NetworkPolicyEgressRule": { + "description": "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", + "properties": { + "ports": { + "description": "ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicyPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "to": { + "description": "to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicyPeer" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.NetworkPolicyIngressRule": { + "description": "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.", + "properties": { + "from": { + "description": "from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicyPeer" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicyPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.NetworkPolicyList": { + "description": "NetworkPolicyList is a list of NetworkPolicy objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NetworkPolicyList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "NetworkPolicyList", + "version": "v1" + } + ] + }, + "io.k8s.api.networking.v1.NetworkPolicyPeer": { + "description": "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", + "properties": { + "ipBlock": { + "$ref": "#/$defs/io.k8s.api.networking.v1.IPBlock", + "description": "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be." + }, + "namespaceSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector." + }, + "podSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.NetworkPolicyPort": { + "description": "NetworkPolicyPort describes a port to allow traffic on", + "properties": { + "endPort": { + "description": "endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "port": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched." + }, + "protocol": { + "description": "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.NetworkPolicySpec": { + "description": "NetworkPolicySpec provides the specification of a NetworkPolicy", + "properties": { + "egress": { + "description": "egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicyEgressRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ingress": { + "description": "ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1.NetworkPolicyIngressRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "podSelector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace." + }, + "policyTypes": { + "description": "policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "podSelector" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1.ServiceBackendPort": { + "description": "ServiceBackendPort is the service port being referenced.", + "properties": { + "name": { + "description": "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", + "type": [ + "string", + "null" + ] + }, + "number": { + "description": "number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.networking.v1beta1.IPAddress": { + "description": "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IPAddress" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.networking.v1beta1.IPAddressSpec", + "description": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.networking.v1beta1.IPAddressList": { + "description": "IPAddressList contains a list of IPAddress.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "items": { + "description": "items is the list of IPAddresses.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1beta1.IPAddress" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IPAddressList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddressList", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.networking.v1beta1.IPAddressSpec": { + "description": "IPAddressSpec describe the attributes in an IP Address.", + "properties": { + "parentRef": { + "$ref": "#/$defs/io.k8s.api.networking.v1beta1.ParentReference", + "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." + } + }, + "required": [ + "parentRef" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1beta1.ParentReference": { + "description": "ParentReference describes a reference to a parent object.", + "properties": { + "group": { + "description": "Group is the group of the object being referenced.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of the object being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of the object being referenced.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "Resource is the resource of the object being referenced.", + "type": "string" + } + }, + "required": [ + "resource", + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1beta1.ServiceCIDR": { + "description": "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceCIDR" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRSpec", + "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRStatus", + "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.networking.v1beta1.ServiceCIDRList": { + "description": "ServiceCIDRList contains a list of ServiceCIDR objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "items": { + "description": "items is the list of ServiceCIDRs.", + "items": { + "$ref": "#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDR" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceCIDRList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDRList", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.networking.v1beta1.ServiceCIDRSpec": { + "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", + "properties": { + "cidrs": { + "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.networking.v1beta1.ServiceCIDRStatus": { + "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", + "properties": { + "conditions": { + "description": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.node.v1.Overhead": { + "description": "Overhead structure represents the resource overhead associated with running a pod.", + "properties": { + "podFixed": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "podFixed represents the fixed resource overhead associated with running a pod.", + "type": [ + "object", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.node.v1.RuntimeClass": { + "description": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "node.k8s.io/v1" + ] + }, + "handler": { + "description": "handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RuntimeClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "overhead": { + "$ref": "#/$defs/io.k8s.api.node.v1.Overhead", + "description": "overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see\n https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/" + }, + "scheduling": { + "$ref": "#/$defs/io.k8s.api.node.v1.Scheduling", + "description": "scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." + } + }, + "required": [ + "handler" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + ] + }, + "io.k8s.api.node.v1.RuntimeClassList": { + "description": "RuntimeClassList is a list of RuntimeClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "node.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.node.v1.RuntimeClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RuntimeClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "node.k8s.io", + "kind": "RuntimeClassList", + "version": "v1" + } + ] + }, + "io.k8s.api.node.v1.Scheduling": { + "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", + "properties": { + "nodeSelector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "tolerations": { + "description": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.Toleration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.policy.v1.Eviction": { + "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "policy/v1" + ] + }, + "deleteOptions": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions", + "description": "DeleteOptions may be provided" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Eviction" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "ObjectMeta describes the pod that is being evicted." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "Eviction", + "version": "v1" + } + ] + }, + "io.k8s.api.policy.v1.PodDisruptionBudget": { + "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "policy/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodDisruptionBudget" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetSpec", + "description": "Specification of the desired behavior of the PodDisruptionBudget." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetStatus", + "description": "Most recently observed status of the PodDisruptionBudget." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + ] + }, + "io.k8s.api.policy.v1.PodDisruptionBudgetList": { + "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "policy/v1" + ] + }, + "items": { + "description": "Items is a list of PodDisruptionBudgets", + "items": { + "$ref": "#/$defs/io.k8s.api.policy.v1.PodDisruptionBudget" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodDisruptionBudgetList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "PodDisruptionBudgetList", + "version": "v1" + } + ] + }, + "io.k8s.api.policy.v1.PodDisruptionBudgetSpec": { + "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", + "properties": { + "maxUnavailable": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." + }, + "minAvailable": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." + }, + "selector": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", + "x-kubernetes-patch-strategy": "replace" + }, + "unhealthyPodEvictionPolicy": { + "description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.policy.v1.PodDisruptionBudgetStatus": { + "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", + "properties": { + "conditions": { + "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentHealthy": { + "description": "current number of healthy pods", + "format": "int32", + "type": "integer" + }, + "desiredHealthy": { + "description": "minimum desired number of healthy pods", + "format": "int32", + "type": "integer" + }, + "disruptedPods": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", + "type": [ + "object", + "null" + ] + }, + "disruptionsAllowed": { + "description": "Number of pod disruptions that are currently allowed.", + "format": "int32", + "type": "integer" + }, + "expectedPods": { + "description": "total number of pods counted by this disruption budget", + "format": "int32", + "type": "integer" + }, + "observedGeneration": { + "description": "Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "disruptionsAllowed", + "currentHealthy", + "desiredHealthy", + "expectedPods" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.rbac.v1.AggregationRule": { + "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", + "properties": { + "clusterRoleSelectors": { + "description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.rbac.v1.ClusterRole": { + "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", + "properties": { + "aggregationRule": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.AggregationRule", + "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRole" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "rules": { + "description": "Rules holds all the PolicyRules for this ClusterRole", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.PolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.ClusterRoleBinding": { + "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRoleBinding" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "roleRef": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.RoleRef", + "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.Subject" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "roleRef" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.ClusterRoleBindingList": { + "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of ClusterRoleBindings", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.ClusterRoleBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRoleBindingList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBindingList", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.ClusterRoleList": { + "description": "ClusterRoleList is a collection of ClusterRoles", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of ClusterRoles", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.ClusterRole" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRoleList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleList", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.PolicyRule": { + "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", + "properties": { + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nonResourceURLs": { + "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.rbac.v1.Role": { + "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Role" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "rules": { + "description": "Rules holds all the PolicyRules for this Role", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.PolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.RoleBinding": { + "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RoleBinding" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "roleRef": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.RoleRef", + "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.Subject" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "roleRef" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.RoleBindingList": { + "description": "RoleBindingList is a collection of RoleBindings", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of RoleBindings", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.RoleBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RoleBindingList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBindingList", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.RoleList": { + "description": "RoleList is a collection of Roles", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of Roles", + "items": { + "$ref": "#/$defs/io.k8s.api.rbac.v1.Role" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RoleList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleList", + "version": "v1" + } + ] + }, + "io.k8s.api.rbac.v1.RoleRef": { + "description": "RoleRef contains information that points to the role being used", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + } + }, + "required": [ + "apiGroup", + "kind", + "name" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.rbac.v1.Subject": { + "description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", + "properties": { + "apiGroup": { + "description": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.", + "type": "string" + }, + "name": { + "description": "Name of the object being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.resource.v1alpha3.AllocationResult": { + "description": "AllocationResult contains attributes of an allocated resource.", + "properties": { + "controller": { + "description": "Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.\n\nA driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.", + "type": [ + "string", + "null" + ] + }, + "devices": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceAllocationResult", + "description": "Devices is the result of allocating devices." + }, + "nodeSelector": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "NodeSelector defines where the allocated resources are available. If unset, they are available everywhere." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.BasicDevice": { + "description": "BasicDevice defines one device instance.", + "properties": { + "attributes": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceAttribute" + }, + "description": "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.", + "type": [ + "object", + "null" + ] + }, + "capacity": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.", + "type": [ + "object", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.CELDeviceSelector": { + "description": "CELDeviceSelector contains a CEL expression for selecting a device.", + "properties": { + "expression": { + "description": "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n\nExample: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.\n\nThe value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.\n\nIf an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)", + "type": "string" + } + }, + "required": [ + "expression" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.Device": { + "description": "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.", + "properties": { + "basic": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.BasicDevice", + "description": "Basic defines one device instance." + }, + "name": { + "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceAllocationConfiguration": { + "description": "DeviceAllocationConfiguration gets embedded in an AllocationResult.", + "properties": { + "opaque": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + }, + "requests": { + "description": "Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "source": { + "description": "Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.", + "type": "string" + } + }, + "required": [ + "source" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceAllocationResult": { + "description": "DeviceAllocationResult is the result of allocating devices.", + "properties": { + "config": { + "description": "This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.\n\nThis includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceAllocationConfiguration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "results": { + "description": "Results lists all allocated devices.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceRequestAllocationResult" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceAttribute": { + "description": "DeviceAttribute must have exactly one field set.", + "properties": { + "bool": { + "description": "BoolValue is a true/false value.", + "type": [ + "boolean", + "null" + ] + }, + "int": { + "description": "IntValue is a number.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "string": { + "description": "StringValue is a string. Must not be longer than 64 characters.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceClaim": { + "description": "DeviceClaim defines how to request devices with a ResourceClaim.", + "properties": { + "config": { + "description": "This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceClaimConfiguration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "constraints": { + "description": "These constraints must be satisfied by the set of devices that get allocated for the claim.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceConstraint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requests": { + "description": "Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceRequest" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceClaimConfiguration": { + "description": "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.", + "properties": { + "opaque": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + }, + "requests": { + "description": "Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceClass": { + "description": "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeviceClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassSpec", + "description": "Spec defines what can be allocated and how to configure it.\n\nThis is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.\n\nChanging the spec automatically increments the metadata.generation number." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceClassConfiguration": { + "description": "DeviceClassConfiguration is used in DeviceClass.", + "properties": { + "opaque": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceClassList": { + "description": "DeviceClassList is a collection of classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource classes.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeviceClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceClassList", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceClassSpec": { + "description": "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.", + "properties": { + "config": { + "description": "Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.\n\nThey are passed to the driver, but are not considered while allocating the claim.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassConfiguration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "selectors": { + "description": "Each selector must be satisfied by a device which is claimed via this class.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceSelector" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "suitableNodes": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet *and* that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation.\n\nSetting this field is optional. If unset, all Nodes are candidates.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceConstraint": { + "description": "DeviceConstraint must have exactly one field set besides Requests.", + "properties": { + "matchAttribute": { + "description": "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.\n\nFor example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.\n\nMust include the domain qualifier.", + "type": [ + "string", + "null" + ] + }, + "requests": { + "description": "Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceRequest": { + "description": "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.\n\nA DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.", + "properties": { + "adminAccess": { + "description": "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.", + "type": [ + "boolean", + "null" + ] + }, + "allocationMode": { + "description": "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:\n\n- ExactCount: This request is for a specific number of devices.\n This is the default. The exact number is provided in the\n count field.\n\n- All: This request is for all of the matching devices in a pool.\n Allocation will fail if some devices are already allocated,\n unless adminAccess is requested.\n\nIf AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.\n\nMore modes may get added in the future. Clients must refuse to handle requests with unknown modes.", + "type": [ + "string", + "null" + ] + }, + "count": { + "description": "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "deviceClassName": { + "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.", + "type": "string" + }, + "name": { + "description": "Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.\n\nMust be a DNS label.", + "type": "string" + }, + "selectors": { + "description": "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceSelector" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "deviceClassName" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceRequestAllocationResult": { + "description": "DeviceRequestAllocationResult contains the allocation result for one request.", + "properties": { + "device": { + "description": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.", + "type": "string" + }, + "driver": { + "description": "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.", + "type": "string" + }, + "pool": { + "description": "This name together with the driver name and the device name field identify which device was allocated (`//`).\n\nMust not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.", + "type": "string" + }, + "request": { + "description": "Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.", + "type": "string" + } + }, + "required": [ + "request", + "driver", + "pool", + "device" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.DeviceSelector": { + "description": "DeviceSelector must have exactly one field set.", + "properties": { + "cel": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.CELDeviceSelector", + "description": "CEL contains a CEL expression for selecting a device." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration": { + "description": "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.", + "properties": { + "driver": { + "description": "Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.\n\nAn admission policy provided by the driver developer could use this to decide whether it needs to validate them.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.", + "type": "string" + }, + "parameters": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version (\"kind\" + \"apiVersion\" for Kubernetes types), with conversion between different versions." + } + }, + "required": [ + "driver", + "parameters" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.PodSchedulingContext": { + "description": "PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DRAControlPlaneController feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodSchedulingContext" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextSpec", + "description": "Spec describes where resources for the Pod are needed." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextStatus", + "description": "Status describes where resources for the Pod can be allocated." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.resource.v1alpha3.PodSchedulingContextList": { + "description": "PodSchedulingContextList is a collection of Pod scheduling objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of PodSchedulingContext objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContext" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodSchedulingContextList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodSchedulingContextList", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.resource.v1alpha3.PodSchedulingContextSpec": { + "description": "PodSchedulingContextSpec describes where resources for the Pod are needed.", + "properties": { + "potentialNodes": { + "description": "PotentialNodes lists nodes where the Pod might be able to run.\n\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "selectedNode": { + "description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.PodSchedulingContextStatus": { + "description": "PodSchedulingContextStatus describes where resources for the Pod can be allocated.", + "properties": { + "resourceClaims": { + "description": "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSchedulingStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.ResourceClaim": { + "description": "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaim" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSpec", + "description": "Spec describes what is being requested and how to configure it. The spec is immutable." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimStatus", + "description": "Status describes whether the claim is ready to use and what has been allocated." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimConsumerReference": { + "description": "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + }, + "resource": { + "description": "Resource is the type of resource being referenced, for example \"pods\".", + "type": "string" + }, + "uid": { + "description": "UID identifies exactly one incarnation of the resource.", + "type": "string" + } + }, + "required": [ + "resource", + "name", + "uid" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimList": { + "description": "ResourceClaimList is a collection of claims.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource claims.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaim" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaimList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimList", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimSchedulingStatus": { + "description": "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.", + "properties": { + "name": { + "description": "Name matches the pod.spec.resourceClaims[*].Name field.", + "type": "string" + }, + "unsuitableNodes": { + "description": "UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\n\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimSpec": { + "description": "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.", + "properties": { + "controller": { + "description": "Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.", + "type": [ + "string", + "null" + ] + }, + "devices": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.DeviceClaim", + "description": "Devices defines how to request devices." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimStatus": { + "description": "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.", + "properties": { + "allocation": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.AllocationResult", + "description": "Allocation is set once the claim has been allocated successfully." + }, + "deallocationRequested": { + "description": "Indicates that a claim is to be deallocated. While this is set, no new consumers may be added to ReservedFor.\n\nThis is only used if the claim needs to be deallocated by a DRA driver. That driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.", + "type": [ + "boolean", + "null" + ] + }, + "reservedFor": { + "description": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.\n\nIn a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.\n\nBoth schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.\n\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimConsumerReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimTemplate": { + "description": "ResourceClaimTemplate is used to produce ResourceClaim objects.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaimTemplate" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplateSpec", + "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimTemplateList": { + "description": "ResourceClaimTemplateList is a collection of claim templates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource claim templates.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplate" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaimTemplateList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplateList", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.resource.v1alpha3.ResourceClaimTemplateSpec": { + "description": "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.", + "properties": { + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSpec", + "description": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.ResourcePool": { + "description": "ResourcePool describes the pool that ResourceSlices belong to.", + "properties": { + "generation": { + "description": "Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.\n\nCombined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.", + "format": "int64", + "type": "integer" + }, + "name": { + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "type": "string" + }, + "resourceSliceCount": { + "description": "ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.\n\nConsumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.", + "format": "int64", + "type": "integer" + } + }, + "required": [ + "name", + "generation", + "resourceSliceCount" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.resource.v1alpha3.ResourceSlice": { + "description": "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.\n\nAt the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , .\n\nWhenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.\n\nWhen allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.\n\nFor resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceSlice" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceSliceSpec", + "description": "Contains the information published by the driver.\n\nChanging the spec automatically increments the metadata.generation number." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.resource.v1alpha3.ResourceSliceList": { + "description": "ResourceSliceList is a collection of ResourceSlices.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource ResourceSlices.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourceSlice" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceSliceList" + ] + }, + "listMeta": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceSliceList", + "version": "v1alpha3" + } + ] + }, + "io.k8s.api.resource.v1alpha3.ResourceSliceSpec": { + "description": "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.", + "properties": { + "allNodes": { + "description": "AllNodes indicates that all nodes have access to the resources in the pool.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set.", + "type": [ + "boolean", + "null" + ] + }, + "devices": { + "description": "Devices lists some or all of the devices in this pool.\n\nMust not have more than 128 entries.", + "items": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.Device" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "driver": { + "description": "Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.", + "type": "string" + }, + "nodeName": { + "description": "NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.\n\nThis field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "nodeSelector": { + "$ref": "#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set." + }, + "pool": { + "$ref": "#/$defs/io.k8s.api.resource.v1alpha3.ResourcePool", + "description": "Pool describes the pool that this ResourceSlice belongs to." + } + }, + "required": [ + "driver", + "pool" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.scheduling.v1.PriorityClass": { + "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "scheduling.k8s.io/v1" + ] + }, + "description": { + "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", + "type": [ + "string", + "null" + ] + }, + "globalDefault": { + "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": [ + "string", + "null" + ] + }, + "value": { + "description": "value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "value" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + ] + }, + "io.k8s.api.scheduling.v1.PriorityClassList": { + "description": "PriorityClassList is a collection of priority classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "scheduling.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of PriorityClasses", + "items": { + "$ref": "#/$defs/io.k8s.api.scheduling.v1.PriorityClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClassList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriver": { + "description": "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIDriver" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.storage.v1.CSIDriverSpec", + "description": "spec represents the specification of the CSI Driver." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriverList": { + "description": "CSIDriverList is a collection of CSIDriver objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of CSIDriver", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.CSIDriver" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIDriverList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriverList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIDriverSpec": { + "description": "CSIDriverSpec is the specification of a CSIDriver.", + "properties": { + "attachRequired": { + "description": "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", + "type": [ + "boolean", + "null" + ] + }, + "fsGroupPolicy": { + "description": "fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.", + "type": [ + "string", + "null" + ] + }, + "podInfoOnMount": { + "description": "podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.\n\nThe CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.\n\nThe following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.", + "type": [ + "boolean", + "null" + ] + }, + "requiresRepublish": { + "description": "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", + "type": [ + "boolean", + "null" + ] + }, + "seLinuxMount": { + "description": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", + "type": [ + "boolean", + "null" + ] + }, + "storageCapacity": { + "description": "storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", + "type": [ + "boolean", + "null" + ] + }, + "tokenRequests": { + "description": "tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.TokenRequest" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "volumeLifecycleModes": { + "description": "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.\n\nThe other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.\n\nFor more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.\n\nThis field is beta. This field is immutable.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.storage.v1.CSINode": { + "description": "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSINode" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. metadata.name must be the Kubernetes node name." + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.storage.v1.CSINodeSpec", + "description": "spec is the specification of CSINode" + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSINodeDriver": { + "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", + "properties": { + "allocatable": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeNodeResources", + "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." + }, + "name": { + "description": "name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", + "type": "string" + }, + "nodeID": { + "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", + "type": "string" + }, + "topologyKeys": { + "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "nodeID" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.storage.v1.CSINodeList": { + "description": "CSINodeList is a collection of CSINode objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of CSINode", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.CSINode" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSINodeList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINodeList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSINodeSpec": { + "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", + "properties": { + "drivers": { + "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.CSINodeDriver" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "drivers" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.storage.v1.CSIStorageCapacity": { + "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "capacity": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIStorageCapacity" + ] + }, + "maximumVolumeSize": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "nodeTopology": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + }, + "storageClassName": { + "description": "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", + "type": "string" + } + }, + "required": [ + "storageClassName" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.CSIStorageCapacityList": { + "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of CSIStorageCapacity objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.CSIStorageCapacity" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIStorageCapacityList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacityList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.StorageClass": { + "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", + "properties": { + "allowVolumeExpansion": { + "description": "allowVolumeExpansion shows whether the storage class allow volume expand.", + "type": [ + "boolean", + "null" + ] + }, + "allowedTopologies": { + "description": "allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.", + "items": { + "$ref": "#/$defs/io.k8s.api.core.v1.TopologySelectorTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "mountOptions": { + "description": "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "parameters": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "parameters holds the parameters for the provisioner that should create volumes of this storage class.", + "type": [ + "object", + "null" + ] + }, + "provisioner": { + "description": "provisioner indicates the type of the provisioner.", + "type": "string" + }, + "reclaimPolicy": { + "description": "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.", + "type": [ + "string", + "null" + ] + }, + "volumeBindingMode": { + "description": "volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "provisioner" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.StorageClassList": { + "description": "StorageClassList is a collection of storage classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of StorageClasses", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.StorageClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClassList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.TokenRequest": { + "description": "TokenRequest contains parameters of a service account token.", + "properties": { + "audience": { + "description": "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", + "type": "string" + }, + "expirationSeconds": { + "description": "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "audience" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.storage.v1.VolumeAttachment": { + "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttachment" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeAttachmentSpec", + "description": "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeAttachmentStatus", + "description": "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.VolumeAttachmentList": { + "description": "VolumeAttachmentList is a collection of VolumeAttachment objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of VolumeAttachments", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeAttachment" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttachmentList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachmentList", + "version": "v1" + } + ] + }, + "io.k8s.api.storage.v1.VolumeAttachmentSource": { + "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", + "properties": { + "inlineVolumeSpec": { + "$ref": "#/$defs/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature." + }, + "persistentVolumeName": { + "description": "persistentVolumeName represents the name of the persistent volume to attach.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.storage.v1.VolumeAttachmentSpec": { + "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", + "properties": { + "attacher": { + "description": "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", + "type": "string" + }, + "nodeName": { + "description": "nodeName represents the node that the volume should be attached to.", + "type": "string" + }, + "source": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeAttachmentSource", + "description": "source represents the volume that should be attached." + } + }, + "required": [ + "attacher", + "source", + "nodeName" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.storage.v1.VolumeAttachmentStatus": { + "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", + "properties": { + "attachError": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeError", + "description": "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." + }, + "attached": { + "description": "attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "type": "boolean" + }, + "attachmentMetadata": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "type": [ + "object", + "null" + ] + }, + "detachError": { + "$ref": "#/$defs/io.k8s.api.storage.v1.VolumeError", + "description": "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." + } + }, + "required": [ + "attached" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.storage.v1.VolumeError": { + "description": "VolumeError captures an error encountered during a volume operation.", + "properties": { + "message": { + "description": "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", + "type": [ + "string", + "null" + ] + }, + "time": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "time represents the time the error was encountered." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.storage.v1.VolumeNodeResources": { + "description": "VolumeNodeResources is a set of resource limits for scheduling of volumes.", + "properties": { + "count": { + "description": "count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.storage.v1alpha1.VolumeAttributesClass": { + "description": "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1alpha1" + ] + }, + "driverName": { + "description": "Name of the CSI driver This field is immutable.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "parameters": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "driverName" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.storage.v1alpha1.VolumeAttributesClassList": { + "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "items is the list of VolumeAttributesClass objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClassList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.storage.v1beta1.VolumeAttributesClass": { + "description": "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1beta1" + ] + }, + "driverName": { + "description": "Name of the CSI driver This field is immutable.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClass" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "parameters": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "driverName" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.storage.v1beta1.VolumeAttributesClassList": { + "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1beta1" + ] + }, + "items": { + "description": "items is the list of VolumeAttributesClass objects.", + "items": { + "$ref": "#/$defs/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClassList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClassList", + "version": "v1beta1" + } + ] + }, + "io.k8s.api.storagemigration.v1alpha1.GroupVersionResource": { + "description": "The names of the group, the version, and the resource.", + "properties": { + "group": { + "description": "The name of the group.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "The name of the resource.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "The name of the version.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.storagemigration.v1alpha1.MigrationCondition": { + "description": "Describes the state of a migration at a certain point.", + "properties": { + "lastUpdateTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time this condition was updated." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of the condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.storagemigration.v1alpha1.StorageVersionMigration": { + "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storagemigration.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersionMigration" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationSpec", + "description": "Specification of the migration." + }, + "status": { + "$ref": "#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationStatus", + "description": "Status of the migration." + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationList": { + "description": "StorageVersionMigrationList is a collection of storage version migrations.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storagemigration.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "Items is the list of StorageVersionMigration", + "items": { + "$ref": "#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigration" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersionMigrationList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigrationList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationSpec": { + "description": "Spec of the storage version migration.", + "properties": { + "continueToken": { + "description": "The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is \"Running\", users can use this token to check the progress of the migration.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "$ref": "#/$defs/io.k8s.api.storagemigration.v1alpha1.GroupVersionResource", + "description": "The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable." + } + }, + "required": [ + "resource" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationStatus": { + "description": "Status of the storage version migration.", + "properties": { + "conditions": { + "description": "The latest available observations of the migration's current state.", + "items": { + "$ref": "#/$defs/io.k8s.api.storagemigration.v1alpha1.MigrationCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition": { + "description": "CustomResourceColumnDefinition specifies a column for server side printing.", + "properties": { + "description": { + "description": "description is a human readable description of this column.", + "type": [ + "string", + "null" + ] + }, + "format": { + "description": "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "type": [ + "string", + "null" + ] + }, + "jsonPath": { + "description": "jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.", + "type": "string" + }, + "name": { + "description": "name is a human readable name for the column.", + "type": "string" + }, + "priority": { + "description": "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "type": { + "description": "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "type": "string" + } + }, + "required": [ + "name", + "type", + "jsonPath" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion": { + "description": "CustomResourceConversion describes how to convert different versions of a CR.", + "properties": { + "strategy": { + "description": "strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.", + "type": "string" + }, + "webhook": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion", + "description": "webhook describes how to call the conversion webhook. Required when `strategy` is set to `\"Webhook\"`." + } + }, + "required": [ + "strategy" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition": { + "description": "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiextensions.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CustomResourceDefinition" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec", + "description": "spec describes how the user wants the resources to appear" + }, + "status": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionStatus", + "description": "status indicates the actual state of the CustomResourceDefinition" + } + }, + "required": [ + "spec" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionCondition": { + "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime last time the condition transitioned from one status to another." + }, + "message": { + "description": "message is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status is the status of the condition. Can be True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "type is the type of the condition. Types include Established, NamesAccepted and Terminating.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList": { + "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiextensions.k8s.io/v1" + ] + }, + "items": { + "description": "items list individual CustomResourceDefinition objects", + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CustomResourceDefinitionList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinitionList", + "version": "v1" + } + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames": { + "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", + "properties": { + "categories": { + "description": "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.", + "type": "string" + }, + "listKind": { + "description": "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".", + "type": [ + "string", + "null" + ] + }, + "plural": { + "description": "plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.", + "type": "string" + }, + "shortNames": { + "description": "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "singular": { + "description": "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "plural", + "kind" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec": { + "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", + "properties": { + "conversion": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion", + "description": "conversion defines conversion settings for the CRD." + }, + "group": { + "description": "group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`).", + "type": "string" + }, + "names": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames", + "description": "names specify the resource and kind names for the custom resource." + }, + "preserveUnknownFields": { + "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.", + "type": [ + "boolean", + "null" + ] + }, + "scope": { + "description": "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.", + "type": "string" + }, + "versions": { + "description": "versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "group", + "names", + "scope", + "versions" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionStatus": { + "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", + "properties": { + "acceptedNames": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames", + "description": "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec." + }, + "conditions": { + "description": "conditions indicate state for particular aspects of a CustomResourceDefinition", + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "storedVersions": { + "description": "storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion": { + "description": "CustomResourceDefinitionVersion describes a version for CRD.", + "properties": { + "additionalPrinterColumns": { + "description": "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.", + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "deprecated": { + "description": "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "deprecationWarning": { + "description": "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc. The custom resources are served under this version at `/apis///...` if `served` is true.", + "type": "string" + }, + "schema": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation", + "description": "schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource." + }, + "selectableFields": { + "description": "selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors", + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.SelectableField" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "served": { + "description": "served is a flag enabling/disabling this version from being served via REST APIs", + "type": "boolean" + }, + "storage": { + "description": "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.", + "type": "boolean" + }, + "subresources": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources", + "description": "subresources specify what subresources this version of the defined custom resource have." + } + }, + "required": [ + "name", + "served", + "storage" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale": { + "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", + "properties": { + "labelSelectorPath": { + "description": "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.", + "type": [ + "string", + "null" + ] + }, + "specReplicasPath": { + "description": "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.", + "type": "string" + }, + "statusReplicasPath": { + "description": "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.", + "type": "string" + } + }, + "required": [ + "specReplicasPath", + "statusReplicasPath" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus": { + "description": "CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza", + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources": { + "description": "CustomResourceSubresources defines the status and scale subresources for CustomResources.", + "properties": { + "scale": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale", + "description": "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object." + }, + "status": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus", + "description": "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation": { + "description": "CustomResourceValidation is a list of validation methods for CustomResources.", + "properties": { + "openAPIV3Schema": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps", + "description": "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation": { + "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", + "properties": { + "description": { + "type": [ + "string", + "null" + ] + }, + "url": { + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON": { + "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil." + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps": { + "description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).", + "properties": { + "$ref": { + "type": [ + "string", + "null" + ] + }, + "$schema": { + "type": [ + "string", + "null" + ] + }, + "additionalItems": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" + }, + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" + }, + "allOf": { + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "anyOf": { + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "default": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON", + "description": "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false." + }, + "definitions": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "object", + "null" + ] + }, + "dependencies": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrStringArray" + }, + "type": [ + "object", + "null" + ] + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "enum": { + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "example": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" + }, + "exclusiveMaximum": { + "type": [ + "boolean", + "null" + ] + }, + "exclusiveMinimum": { + "type": [ + "boolean", + "null" + ] + }, + "externalDocs": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation" + }, + "format": { + "description": "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like \"0321751043\" or \"978-0321751041\" - isbn10: an ISBN10 number string like \"0321751043\" - isbn13: an ISBN13 number string like \"978-0321751041\" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$ - hexcolor: an hexadecimal color code like \"#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like \"rgb(255,255,2559\" - byte: base64 encoded binary data - password: any kind of string - date: a date string like \"2006-01-02\" as defined by full-date in RFC3339 - duration: a duration string like \"22 ns\" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like \"2014-12-15T19:30:20.000Z\" as defined by date-time in RFC3339.", + "type": [ + "string", + "null" + ] + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrArray" + }, + "maxItems": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "maxLength": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "maxProperties": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "maximum": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "minItems": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "minLength": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "minProperties": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "minimum": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "multipleOf": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "not": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "nullable": { + "type": [ + "boolean", + "null" + ] + }, + "oneOf": { + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "pattern": { + "type": [ + "string", + "null" + ] + }, + "patternProperties": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "object", + "null" + ] + }, + "properties": { + "additionalProperties": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "object", + "null" + ] + }, + "required": { + "items": { + "type": "string" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "type": { + "type": [ + "string", + "null" + ] + }, + "uniqueItems": { + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-embedded-resource": { + "description": "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).", + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-int-or-string": { + "description": "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-list-map-keys": { + "description": "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.\n\nThis tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.", + "items": { + "type": "string" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "x-kubernetes-list-type": { + "description": "x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.", + "type": [ + "string", + "null" + ] + }, + "x-kubernetes-map-type": { + "description": "x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.", + "type": [ + "string", + "null" + ] + }, + "x-kubernetes-preserve-unknown-fields": { + "description": "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.", + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-validations": { + "description": "x-kubernetes-validations describes a list of validation rules written in the CEL expression language.", + "items": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "rule" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "rule", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrArray": { + "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes." + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool": { + "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property." + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrStringArray": { + "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array." + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.SelectableField": { + "description": "SelectableField specifies the JSON path of a field that may be used with field selectors.", + "properties": { + "jsonPath": { + "description": "jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.", + "type": "string" + } + }, + "required": [ + "jsonPath" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "name is the name of the service. Required", + "type": "string" + }, + "namespace": { + "description": "namespace is the namespace of the service. Required", + "type": "string" + }, + "path": { + "description": "path is an optional URL path at which the webhook will be contacted.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "namespace", + "name" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule": { + "description": "ValidationRule describes a validation rule written in the CEL expression language.", + "properties": { + "fieldPath": { + "description": "fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']`", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "optionalOldSelf": { + "description": "optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value.\n\nWhen enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created.\n\nYou may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes\n\nMay not be set unless `oldSelf` is used in `rule`.", + "type": [ + "boolean", + "null" + ] + }, + "reason": { + "description": "reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid.", + "type": [ + "string", + "null" + ] + }, + "rule": { + "description": "Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"}\n\nIf the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"}\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible.\n\nUnknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as:\n - A schema with no type and x-kubernetes-preserve-unknown-fields set to true\n - An array where the items schema is of an \"unknown type\"\n - An object where the additionalProperties schema is of an \"unknown type\"\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"}\n - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"}\n - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"}\n\nEquality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\n\nIf `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`.\n\nBy default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional\n variable whose value() is the same type as `self`.\nSee the documentation for the `optionalOldSelf` field for details.\n\nTransition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true.", + "type": "string" + } + }, + "required": [ + "rule" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookClientConfig": { + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook.", + "properties": { + "caBundle": { + "description": "caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "service": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference", + "description": "service is a reference to the service for this webhook. Either service or url must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + }, + "url": { + "description": "url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion": { + "description": "WebhookConversion describes how to call a conversion webhook", + "properties": { + "clientConfig": { + "$ref": "#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookClientConfig", + "description": "clientConfig is the instructions for how to call the webhook if strategy is `Webhook`." + }, + "conversionReviewVersions": { + "description": "conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "conversionReviewVersions" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.api.resource.Quantity": { + "oneOf": [ + { + "type": [ + "string", + "null" + ] + }, + { + "type": [ + "number", + "null" + ] + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup": { + "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIGroup" + ] + }, + "name": { + "description": "name is the name of the group.", + "type": "string" + }, + "preferredVersion": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery", + "description": "preferredVersion is the version preferred by the API server, which probably is the storage version." + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "versions": { + "description": "versions are the versions supported in this group.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "versions" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroup", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIGroupList": { + "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "groups": { + "description": "groups is a list of APIGroup.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIGroupList" + ] + } + }, + "required": [ + "groups" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroupList", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIResource": { + "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "properties": { + "categories": { + "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "type": "string" + }, + "name": { + "description": "name is the plural name of the resource.", + "type": "string" + }, + "namespaced": { + "description": "namespaced indicates if a resource is namespaced or not.", + "type": "boolean" + }, + "shortNames": { + "description": "shortNames is a list of suggested short names of the resource.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "singularName": { + "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", + "type": "string" + }, + "storageVersionHash": { + "description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", + "type": [ + "string", + "null" + ] + }, + "verbs": { + "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array" + }, + "version": { + "description": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "singularName", + "namespaced", + "kind", + "verbs" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList": { + "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "groupVersion": { + "description": "groupVersion is the group and version this APIResourceList is for.", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIResourceList" + ] + }, + "resources": { + "description": "resources contains the name of the resources and if they are namespaced.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "groupVersion", + "resources" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIResourceList", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.APIVersions": { + "description": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIVersions" + ] + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "versions": { + "description": "versions are the api versions that are available.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "versions", + "serverAddressByClientCIDRs" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIVersions", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Condition": { + "description": "Condition contains details for one aspect of the current state of this API Resource.", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable." + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "type": "string" + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "type": "string" + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase.", + "type": "string" + } + }, + "required": [ + "type", + "status", + "lastTransitionTime", + "reason", + "message" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions": { + "description": "DeleteOptions may be provided when deleting an API object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1", + "admission.k8s.io/v1", + "admission.k8s.io/v1beta1", + "admissionregistration.k8s.io/v1", + "admissionregistration.k8s.io/v1alpha1", + "admissionregistration.k8s.io/v1beta1", + "apiextensions.k8s.io/v1", + "apiextensions.k8s.io/v1beta1", + "apiregistration.k8s.io/v1", + "apiregistration.k8s.io/v1beta1", + "apps/v1", + "apps/v1beta1", + "apps/v1beta2", + "authentication.k8s.io/v1", + "authentication.k8s.io/v1alpha1", + "authentication.k8s.io/v1beta1", + "authorization.k8s.io/v1", + "authorization.k8s.io/v1beta1", + "autoscaling/v1", + "autoscaling/v2", + "autoscaling/v2beta1", + "autoscaling/v2beta2", + "batch/v1", + "batch/v1beta1", + "certificates.k8s.io/v1", + "certificates.k8s.io/v1alpha1", + "certificates.k8s.io/v1beta1", + "coordination.k8s.io/v1", + "coordination.k8s.io/v1alpha1", + "coordination.k8s.io/v1beta1", + "discovery.k8s.io/v1", + "discovery.k8s.io/v1beta1", + "events.k8s.io/v1", + "events.k8s.io/v1beta1", + "extensions/v1beta1", + "flowcontrol.apiserver.k8s.io/v1", + "flowcontrol.apiserver.k8s.io/v1beta1", + "flowcontrol.apiserver.k8s.io/v1beta2", + "flowcontrol.apiserver.k8s.io/v1beta3", + "imagepolicy.k8s.io/v1alpha1", + "internal.apiserver.k8s.io/v1alpha1", + "networking.k8s.io/v1", + "networking.k8s.io/v1alpha1", + "networking.k8s.io/v1beta1", + "node.k8s.io/v1", + "node.k8s.io/v1alpha1", + "node.k8s.io/v1beta1", + "policy/v1", + "policy/v1beta1", + "rbac.authorization.k8s.io/v1", + "rbac.authorization.k8s.io/v1alpha1", + "rbac.authorization.k8s.io/v1beta1", + "resource.k8s.io/v1alpha3", + "scheduling.k8s.io/v1", + "scheduling.k8s.io/v1alpha1", + "scheduling.k8s.io/v1beta1", + "storage.k8s.io/v1", + "storage.k8s.io/v1alpha1", + "storage.k8s.io/v1beta1", + "storagemigration.k8s.io/v1alpha1" + ] + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "gracePeriodSeconds": { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeleteOptions" + ] + }, + "orphanDependents": { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "type": [ + "boolean", + "null" + ] + }, + "preconditions": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions", + "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned." + }, + "propagationPolicy": { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1beta2" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2beta1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2beta2" + }, + { + "group": "batch", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "batch", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "discovery.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "discovery.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "events.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "events.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "extensions", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta2" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta3" + }, + { + "group": "imagepolicy.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "internal.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "policy", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "policy", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "resource.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha3" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.FieldSelectorRequirement": { + "description": "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the field selector key that the requirement applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1": { + "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery": { + "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "properties": { + "groupVersion": { + "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "type": "string" + }, + "version": { + "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "type": "string" + } + }, + "required": [ + "groupVersion", + "version" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector": { + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": [ + "object", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement": { + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": "string" + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string" + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta": { + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "properties": { + "continue": { + "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", + "type": [ + "string", + "null" + ] + }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "resourceVersion": { + "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": [ + "string", + "null" + ] + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry": { + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", + "type": [ + "string", + "null" + ] + }, + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "type": [ + "string", + "null" + ] + }, + "fieldsV1": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1", + "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type." + }, + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", + "type": [ + "string", + "null" + ] + }, + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "type": [ + "string", + "null" + ] + }, + "subresource": { + "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", + "type": [ + "string", + "null" + ] + }, + "time": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over." + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime": { + "description": "MicroTime is version of Time with microsecond level precision.", + "format": "date-time", + "type": [ + "string", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta": { + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "properties": { + "annotations": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations", + "type": [ + "object", + "null" + ] + }, + "creationTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "deletionTimestamp": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" + }, + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "type": [ + "string", + "null" + ] + }, + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "labels": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels", + "type": [ + "object", + "null" + ] + }, + "managedFields": { + "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces", + "type": [ + "string", + "null" + ] + }, + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": [ + "string", + "null" + ] + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference": { + "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": "string" + }, + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": [ + "boolean", + "null" + ] + }, + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "type": "string" + }, + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": "string" + } + }, + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Patch": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions": { + "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "properties": { + "resourceVersion": { + "description": "Specifies the target ResourceVersion", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "Specifies the target UID.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR": { + "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "properties": { + "clientCIDR": { + "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + "type": "string" + }, + "serverAddress": { + "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "type": "string" + } + }, + "required": [ + "clientCIDR", + "serverAddress" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Status": { + "description": "Status is a return value for calls that don't return other objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "code": { + "description": "Suggested HTTP return code for this status, 0 if not set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "details": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails", + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Status" + ] + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": [ + "string", + "null" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + }, + "reason": { + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Status", + "version": "v1" + } + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause": { + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "properties": { + "field": { + "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails": { + "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "properties": { + "causes": { + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "items": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "The group attribute of the resource associated with the status StatusReason.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "type": [ + "string", + "null" + ] + }, + "retryAfterSeconds": { + "description": "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "uid": { + "description": "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": [ + "string", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.Time": { + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": [ + "string", + "null" + ] + }, + "io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent": { + "description": "Event represents a single event to a watched resource.", + "properties": { + "object": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context." + }, + "type": { + "type": "string" + } + }, + "required": [ + "type", + "object" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta2" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2beta1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2beta2" + }, + { + "group": "batch", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "batch", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "extensions", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta2" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta3" + }, + { + "group": "imagepolicy.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "internal.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "policy", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "policy", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha3" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + } + ] + }, + "io.k8s.apimachinery.pkg.runtime.RawExtension": { + "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", + "type": [ + "object", + "null" + ] + }, + "io.k8s.apimachinery.pkg.util.intstr.IntOrString": { + "oneOf": [ + { + "type": [ + "string", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + } + ] + }, + "io.k8s.apimachinery.pkg.version.Info": { + "description": "Info contains versioning information. how we'll want to distribute that information.", + "properties": { + "buildDate": { + "type": "string" + }, + "compiler": { + "type": "string" + }, + "gitCommit": { + "type": "string" + }, + "gitTreeState": { + "type": "string" + }, + "gitVersion": { + "type": "string" + }, + "goVersion": { + "type": "string" + }, + "major": { + "type": "string" + }, + "minor": { + "type": "string" + }, + "platform": { + "type": "string" + } + }, + "required": [ + "major", + "minor", + "gitVersion", + "gitCommit", + "gitTreeState", + "buildDate", + "goVersion", + "compiler", + "platform" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService": { + "description": "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIService" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec", + "description": "Spec contains information for locating and communicating with a server" + }, + "status": { + "$ref": "#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceStatus", + "description": "Status contains derived information about an API server" + } + }, + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + ] + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceCondition": { + "description": "APIServiceCondition describes the state of an APIService at a particular point", + "properties": { + "lastTransitionTime": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type is the type of the condition.", + "type": "string" + } + }, + "required": [ + "type", + "status" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList": { + "description": "APIServiceList is a list of APIService objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiregistration.k8s.io/v1" + ] + }, + "items": { + "description": "Items is the list of APIService", + "items": { + "$ref": "#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIServiceList" + ] + }, + "metadata": { + "$ref": "#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": [ + "object", + "null" + ], + "x-kubernetes-group-version-kind": [ + { + "group": "apiregistration.k8s.io", + "kind": "APIServiceList", + "version": "v1" + } + ] + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec": { + "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", + "properties": { + "caBundle": { + "description": "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": [ + "string", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "Group is the API group name this server hosts", + "type": [ + "string", + "null" + ] + }, + "groupPriorityMinimum": { + "description": "GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s", + "format": "int32", + "type": "integer" + }, + "insecureSkipTLSVerify": { + "description": "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.", + "type": [ + "boolean", + "null" + ] + }, + "service": { + "$ref": "#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ServiceReference", + "description": "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled." + }, + "version": { + "description": "Version is the API version this server hosts. For example, \"v1\"", + "type": [ + "string", + "null" + ] + }, + "versionPriority": { + "description": "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "groupPriorityMinimum", + "versionPriority" + ], + "type": [ + "object", + "null" + ] + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceStatus": { + "description": "APIServiceStatus contains derived information about an API server", + "properties": { + "conditions": { + "description": "Current service state of apiService.", + "items": { + "$ref": "#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": [ + "object", + "null" + ] + }, + "io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ServiceReference": { + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "Name is the name of the service", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the namespace of the service", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": [ + "object", + "null" + ] + } + }, + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/_definitions.json" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/affinity-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/affinity-v1.json new file mode 100644 index 00000000..c1b4fc05 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/affinity-v1.json @@ -0,0 +1,20 @@ +{ + "description": "Affinity is a group of affinity scheduling rules.", + "properties": { + "nodeAffinity": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeAffinity", + "description": "Describes node affinity scheduling rules for the pod." + }, + "podAffinity": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinity", + "description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s))." + }, + "podAntiAffinity": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAntiAffinity", + "description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s))." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/affinity/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/aggregationrule-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/aggregationrule-rbac-v1.json new file mode 100644 index 00000000..9d0543e6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/aggregationrule-rbac-v1.json @@ -0,0 +1,19 @@ +{ + "description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", + "properties": { + "clusterRoleSelectors": { + "description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/aggregationrule/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/all.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/all.json new file mode 100644 index 00000000..1f0cb6af --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/all.json @@ -0,0 +1,1909 @@ +{ + "oneOf": [ + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.AuditAnnotation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ExpressionWarning" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchResources" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhook" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhookConfigurationList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ParamKind" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ParamRef" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.RuleWithOperations" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ServiceReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.TypeChecking" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicySpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhook" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfigurationList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.Validation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.Variable" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.WebhookClientConfig" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ExpressionWarning" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchResources" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ParamKind" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ParamRef" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.TypeChecking" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.Validation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.Variable" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.AuditAnnotation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ExpressionWarning" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchResources" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ParamKind" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ParamRef" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.TypeChecking" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.Validation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.Variable" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ControllerRevision" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ControllerRevisionList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSet" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetUpdateStrategy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.Deployment" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentStrategy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSet" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.RollingUpdateDaemonSet" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.RollingUpdateDeployment" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSet" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetOrdinals" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetUpdateStrategy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.BoundObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.SelfSubjectReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.SelfSubjectReviewStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenRequest" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenRequestSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenRequestStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenReviewSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenReviewStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.UserInfo" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1beta1.SelfSubjectReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1beta1.SelfSubjectReviewStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.FieldSelectorAttributes" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.LabelSelectorAttributes" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.LocalSubjectAccessReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.NonResourceAttributes" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.NonResourceRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.ResourceAttributes" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.ResourceRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SelfSubjectAccessReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SelfSubjectRulesReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReview" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectRulesReviewStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.CrossVersionObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.Scale" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.ScaleSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.ScaleStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ContainerResourceMetricSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ExternalMetricSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ExternalMetricStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HPAScalingPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HPAScalingRules" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricTarget" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ObjectMetricSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ObjectMetricStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.PodsMetricSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.PodsMetricStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ResourceMetricSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ResourceMetricStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJob" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJobList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJobSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJobStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.Job" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobTemplateSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.SuccessPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.SuccessPolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.UncountedTerminatedPods" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequest" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1.Lease" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1.LeaseList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1.LeaseSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidate" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidateList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidateSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Affinity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AppArmorProfile" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AttachedVolume" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureDiskVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureFilePersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureFileVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Binding" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CSIPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CSIVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Capabilities" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CephFSPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CephFSVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CinderPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CinderVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ClientIPConfig" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ClusterTrustBundleProjection" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ComponentCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ComponentStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ComponentStatusList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMap" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapEnvSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapKeySelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapNodeConfigSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapProjection" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Container" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerImage" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerPort" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerResizePolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerState" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStateRunning" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStateTerminated" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStateWaiting" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerUser" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DaemonEndpoint" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIProjection" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeFile" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EmptyDirVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointAddress" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointPort" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointSubset" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Endpoints" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointsList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvFromSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvVar" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvVarSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EphemeralContainer" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EphemeralVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Event" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EventList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EventSeries" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EventSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ExecAction" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FCVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlexPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlexVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlockerVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GRPCAction" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GitRepoVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GlusterfsPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GlusterfsVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HTTPGetAction" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HTTPHeader" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostAlias" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostIP" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostPathVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ISCSIPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ISCSIVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ImageVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Lifecycle" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LifecycleHandler" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRange" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRangeItem" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRangeList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRangeSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LinuxContainerUser" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LoadBalancerIngress" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LoadBalancerStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ModifyVolumeStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NFSVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Namespace" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Node" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeAddress" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeAffinity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeDaemonEndpoints" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeFeatures" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeRuntimeHandler" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeRuntimeHandlerFeatures" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelectorRequirement" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelectorTerm" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSystemInfo" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectFieldSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolume" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaim" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimTemplate" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Pod" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinityTerm" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAntiAffinity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodDNSConfig" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodDNSConfigOption" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodIP" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodOS" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodReadinessGate" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodResourceClaim" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodResourceClaimStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSchedulingGate" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSecurityContext" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplate" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PortStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PortworxVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PreferredSchedulingTerm" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ProjectedVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.QuobyteVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.RBDPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.RBDVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationController" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceClaim" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceFieldSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceHealth" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuota" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuotaList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuotaSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuotaStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceRequirements" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SELinuxOptions" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScaleIOPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScaleIOVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScopeSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScopedResourceSelectorRequirement" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SeccompProfile" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Secret" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretEnvSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretKeySelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretProjection" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecurityContext" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Service" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceAccount" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceAccountList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceAccountTokenProjection" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServicePort" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SessionAffinityConfig" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SleepAction" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.StorageOSPersistentVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.StorageOSVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Sysctl" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TCPSocketAction" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Taint" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Toleration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TopologySelectorLabelRequirement" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TopologySelectorTerm" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TopologySpreadConstraint" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TypedLocalObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TypedObjectReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Volume" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeDevice" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeMount" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeMountStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeNodeAffinity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeProjection" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeResourceRequirements" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.WindowsSecurityContextOptions" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.Endpoint" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointConditions" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointHints" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointPort" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointSlice" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointSliceList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.ForZone" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.events.v1.Event" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.events.v1.EventList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.events.v1.EventSeries" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchema" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.GroupSubject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.LimitResponse" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.NonResourcePolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.QueuingConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.ResourcePolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.ServiceAccountSubject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.Subject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.UserSubject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.GroupSubject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.LimitResponse" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.Subject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.UserSubject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.HTTPIngressPath" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.HTTPIngressRuleValue" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IPBlock" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.Ingress" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressBackend" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClassParametersReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClassSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressLoadBalancerIngress" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressLoadBalancerStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressPortStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressServiceBackend" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressTLS" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicy" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyEgressRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyIngressRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyPeer" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyPort" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicySpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.ServiceBackendPort" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.IPAddress" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.IPAddressList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.IPAddressSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ParentReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDR" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.Overhead" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.RuntimeClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.RuntimeClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.Scheduling" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.Eviction" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudget" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.AggregationRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.ClusterRole" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.ClusterRoleBinding" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.ClusterRoleBindingList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.ClusterRoleList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.PolicyRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.Role" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleBinding" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleBindingList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleRef" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.Subject" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.AllocationResult" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.BasicDevice" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.CELDeviceSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.Device" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceAllocationConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceAllocationResult" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceAttribute" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClaim" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClaimConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceConstraint" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceRequest" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceRequestAllocationResult" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContext" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaim" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimConsumerReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSchedulingStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplate" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplateList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplateSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourcePool" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceSlice" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceSliceList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceSliceSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.scheduling.v1.PriorityClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.scheduling.v1.PriorityClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIDriver" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIDriverList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIDriverSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINode" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINodeDriver" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINodeList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINodeSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIStorageCapacity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIStorageCapacityList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.StorageClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.StorageClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.TokenRequest" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachment" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentSource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeError" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeNodeResources" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1alpha1.VolumeAttributesClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1beta1.VolumeAttributesClassList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.GroupVersionResource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.MigrationCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigration" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrArray" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrStringArray" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.SelectableField" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookClientConfig" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroupList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIVersions" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.FieldSelectorRequirement" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.version.Info" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceCondition" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceList" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceStatus" + }, + { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ServiceReference" + } + ] +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/allocationresult-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/allocationresult-resource-v1alpha3.json new file mode 100644 index 00000000..6c562e38 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/allocationresult-resource-v1alpha3.json @@ -0,0 +1,23 @@ +{ + "description": "AllocationResult contains attributes of an allocated resource.", + "properties": { + "controller": { + "description": "Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.\n\nA driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.", + "type": [ + "string", + "null" + ] + }, + "devices": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceAllocationResult", + "description": "Devices is the result of allocating devices." + }, + "nodeSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "NodeSelector defines where the allocated resources are available. If unset, they are available everywhere." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/allocationresult/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apigroup-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apigroup-meta-v1.json new file mode 100644 index 00000000..c2a401bd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apigroup-meta-v1.json @@ -0,0 +1,72 @@ +{ + "description": "APIGroup contains the name, the supported versions, and the preferred version of a group.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIGroup" + ] + }, + "name": { + "description": "name is the name of the group.", + "type": [ + "string", + "null" + ] + }, + "preferredVersion": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery", + "description": "preferredVersion is the version preferred by the API server, which probably is the storage version." + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "versions": { + "description": "versions are the versions supported in this group.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "versions" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroup", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/apigroup/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apigrouplist-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apigrouplist-meta-v1.json new file mode 100644 index 00000000..0524daeb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apigrouplist-meta-v1.json @@ -0,0 +1,49 @@ +{ + "description": "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "groups": { + "description": "groups is a list of APIGroup.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIGroupList" + ] + } + }, + "required": [ + "groups" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIGroupList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/apigrouplist/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiresource-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiresource-meta-v1.json new file mode 100644 index 00000000..689a9453 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiresource-meta-v1.json @@ -0,0 +1,105 @@ +{ + "description": "APIResource specifies the name of a resource and whether it is namespaced.", + "properties": { + "categories": { + "description": "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the plural name of the resource.", + "type": [ + "string", + "null" + ] + }, + "namespaced": { + "description": "namespaced indicates if a resource is namespaced or not.", + "type": [ + "boolean", + "null" + ] + }, + "shortNames": { + "description": "shortNames is a list of suggested short names of the resource.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "singularName": { + "description": "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.", + "type": [ + "string", + "null" + ] + }, + "storageVersionHash": { + "description": "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.", + "type": [ + "string", + "null" + ] + }, + "verbs": { + "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "version": { + "description": "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "singularName", + "namespaced", + "kind", + "verbs" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/apiresource/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiresourcelist-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiresourcelist-meta-v1.json new file mode 100644 index 00000000..4cd9ec85 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiresourcelist-meta-v1.json @@ -0,0 +1,57 @@ +{ + "description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "groupVersion": { + "description": "groupVersion is the group and version this APIResourceList is for.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIResourceList" + ] + }, + "resources": { + "description": "resources contains the name of the resources and if they are namespaced.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.APIResource" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "groupVersion", + "resources" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIResourceList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/apiresourcelist/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservice-apiregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservice-apiregistration-v1.json new file mode 100644 index 00000000..264aeb8e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservice-apiregistration-v1.json @@ -0,0 +1,47 @@ +{ + "description": "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIService" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceSpec", + "description": "Spec contains information for locating and communicating with a server" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceStatus", + "description": "Status contains derived information about an API server" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiregistration.k8s.io", + "kind": "APIService", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/apiservice/apiregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicecondition-apiregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicecondition-apiregistration-v1.json new file mode 100644 index 00000000..5dc1e3e3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicecondition-apiregistration-v1.json @@ -0,0 +1,44 @@ +{ + "description": "APIServiceCondition describes the state of an APIService at a particular point", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type is the type of the condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/apiservicecondition/apiregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicelist-apiregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicelist-apiregistration-v1.json new file mode 100644 index 00000000..19c41a47 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicelist-apiregistration-v1.json @@ -0,0 +1,52 @@ +{ + "description": "APIServiceList is a list of APIService objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiregistration.k8s.io/v1" + ] + }, + "items": { + "description": "Items is the list of APIService", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIService" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIServiceList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiregistration.k8s.io", + "kind": "APIServiceList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/apiservicelist/apiregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicespec-apiregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicespec-apiregistration-v1.json new file mode 100644 index 00000000..a98b7092 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicespec-apiregistration-v1.json @@ -0,0 +1,62 @@ +{ + "description": "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.", + "properties": { + "caBundle": { + "description": "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": [ + "string", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "Group is the API group name this server hosts", + "type": [ + "string", + "null" + ] + }, + "groupPriorityMinimum": { + "description": "GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "insecureSkipTLSVerify": { + "description": "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.", + "type": [ + "boolean", + "null" + ] + }, + "service": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.ServiceReference", + "description": "Service is a reference to the service for this API server. It must communicate on port 443. If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled." + }, + "version": { + "description": "Version is the API version this server hosts. For example, \"v1\"", + "type": [ + "string", + "null" + ] + }, + "versionPriority": { + "description": "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "groupPriorityMinimum", + "versionPriority" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/apiservicespec/apiregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicestatus-apiregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicestatus-apiregistration-v1.json new file mode 100644 index 00000000..91111b0f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiservicestatus-apiregistration-v1.json @@ -0,0 +1,24 @@ +{ + "description": "APIServiceStatus contains derived information about an API server", + "properties": { + "conditions": { + "description": "Current service state of apiService.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.kube-aggregator.pkg.apis.apiregistration.v1.APIServiceCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/apiservicestatus/apiregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiversions-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiversions-meta-v1.json new file mode 100644 index 00000000..1c7e0260 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apiversions-meta-v1.json @@ -0,0 +1,64 @@ +{ + "description": "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "APIVersions" + ] + }, + "serverAddressByClientCIDRs": { + "description": "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "versions": { + "description": "versions are the api versions that are available.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "versions", + "serverAddressByClientCIDRs" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "APIVersions", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/apiversions/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apparmorprofile-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apparmorprofile-v1.json new file mode 100644 index 00000000..1cdf13ab --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/apparmorprofile-v1.json @@ -0,0 +1,33 @@ +{ + "description": "AppArmorProfile defines a pod or container's AppArmor settings.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is \"Localhost\".", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type indicates which kind of AppArmor profile will be applied. Valid options are:\n Localhost - a profile pre-loaded on the node.\n RuntimeDefault - the container runtime's default profile.\n Unconfined - no AppArmor enforcement.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/apparmorprofile/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/attachedvolume-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/attachedvolume-v1.json new file mode 100644 index 00000000..1c020cf5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/attachedvolume-v1.json @@ -0,0 +1,26 @@ +{ + "description": "AttachedVolume describes a volume attached to a node", + "properties": { + "devicePath": { + "description": "DevicePath represents the device path where the volume should be available", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the attached volume", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "devicePath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/attachedvolume/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/auditannotation-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/auditannotation-admissionregistration-v1.json new file mode 100644 index 00000000..3addd50f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/auditannotation-admissionregistration-v1.json @@ -0,0 +1,26 @@ +{ + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": [ + "string", + "null" + ] + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/auditannotation/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/auditannotation-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/auditannotation-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..6fcd7368 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/auditannotation-admissionregistration-v1alpha1.json @@ -0,0 +1,26 @@ +{ + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": [ + "string", + "null" + ] + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/auditannotation/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/auditannotation-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/auditannotation-admissionregistration-v1beta1.json new file mode 100644 index 00000000..40b618af --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/auditannotation-admissionregistration-v1beta1.json @@ -0,0 +1,26 @@ +{ + "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", + "properties": { + "key": { + "description": "key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.\n\nThe key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\".\n\nIf an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.\n\nRequired.", + "type": [ + "string", + "null" + ] + }, + "valueExpression": { + "description": "valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.\n\nIf multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.\n\nRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "key", + "valueExpression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/auditannotation/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/awselasticblockstorevolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/awselasticblockstorevolumesource-v1.json new file mode 100644 index 00000000..b4ee4055 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/awselasticblockstorevolumesource-v1.json @@ -0,0 +1,40 @@ +{ + "description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": [ + "string", + "null" + ] + }, + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "readOnly": { + "description": "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": [ + "boolean", + "null" + ] + }, + "volumeID": { + "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "volumeID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/awselasticblockstorevolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/azurediskvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/azurediskvolumesource-v1.json new file mode 100644 index 00000000..13d7db49 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/azurediskvolumesource-v1.json @@ -0,0 +1,54 @@ +{ + "description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "properties": { + "cachingMode": { + "description": "cachingMode is the Host Caching mode: None, Read Only, Read Write.", + "type": [ + "string", + "null" + ] + }, + "diskName": { + "description": "diskName is the Name of the data disk in the blob storage", + "type": [ + "string", + "null" + ] + }, + "diskURI": { + "description": "diskURI is the URI of data disk in the blob storage", + "type": [ + "string", + "null" + ] + }, + "fsType": { + "description": "fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "diskName", + "diskURI" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/azurediskvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/azurefilepersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/azurefilepersistentvolumesource-v1.json new file mode 100644 index 00000000..a352b393 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/azurefilepersistentvolumesource-v1.json @@ -0,0 +1,40 @@ +{ + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": [ + "string", + "null" + ] + }, + "secretNamespace": { + "description": "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", + "type": [ + "string", + "null" + ] + }, + "shareName": { + "description": "shareName is the azure Share Name", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/azurefilepersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/azurefilevolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/azurefilevolumesource-v1.json new file mode 100644 index 00000000..3d038ecf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/azurefilevolumesource-v1.json @@ -0,0 +1,33 @@ +{ + "description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", + "properties": { + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretName": { + "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", + "type": [ + "string", + "null" + ] + }, + "shareName": { + "description": "shareName is the azure share Name", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "secretName", + "shareName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/azurefilevolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/basicdevice-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/basicdevice-resource-v1alpha3.json new file mode 100644 index 00000000..2612eef3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/basicdevice-resource-v1alpha3.json @@ -0,0 +1,28 @@ +{ + "description": "BasicDevice defines one device instance.", + "properties": { + "attributes": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceAttribute" + }, + "description": "Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.", + "type": [ + "object", + "null" + ] + }, + "capacity": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.\n\nThe maximum number of attributes and capacities combined is 32.", + "type": [ + "object", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/basicdevice/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/binding-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/binding-v1.json new file mode 100644 index 00000000..41c879ad --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/binding-v1.json @@ -0,0 +1,46 @@ +{ + "description": "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Binding" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "target": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "The target object that you want to bind to the standard object." + } + }, + "required": [ + "target" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Binding", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/binding/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/boundobjectreference-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/boundobjectreference-authentication-v1.json new file mode 100644 index 00000000..fa27aa36 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/boundobjectreference-authentication-v1.json @@ -0,0 +1,36 @@ +{ + "description": "BoundObjectReference is a reference to an object that a token is bound to.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID of the referent.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/boundobjectreference/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/capabilities-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/capabilities-v1.json new file mode 100644 index 00000000..5bd7e59e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/capabilities-v1.json @@ -0,0 +1,36 @@ +{ + "description": "Adds and removes POSIX capabilities from running containers.", + "properties": { + "add": { + "description": "Added capabilities", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "drop": { + "description": "Removed capabilities", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/capabilities/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/celdeviceselector-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/celdeviceselector-resource-v1alpha3.json new file mode 100644 index 00000000..0f04f612 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/celdeviceselector-resource-v1alpha3.json @@ -0,0 +1,18 @@ +{ + "description": "CELDeviceSelector contains a CEL expression for selecting a device.", + "properties": { + "expression": { + "description": "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n\nExample: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.\n\nThe value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.\n\nIf an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/celdeviceselector/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cephfspersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cephfspersistentvolumesource-v1.json new file mode 100644 index 00000000..ba6d0e37 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cephfspersistentvolumesource-v1.json @@ -0,0 +1,57 @@ +{ + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/cephfspersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cephfsvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cephfsvolumesource-v1.json new file mode 100644 index 00000000..bda9ce53 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cephfsvolumesource-v1.json @@ -0,0 +1,57 @@ +{ + "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "monitors": { + "description": "monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretFile": { + "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it" + }, + "user": { + "description": "user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/cephfsvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequest-certificates-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequest-certificates-v1.json new file mode 100644 index 00000000..f094ddba --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequest-certificates-v1.json @@ -0,0 +1,49 @@ +{ + "description": "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued.\n\nKubelets use this API to obtain:\n 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName).\n 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName).\n\nThis API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CertificateSigningRequest" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestSpec", + "description": "spec contains the certificate request, and is immutable after creation. Only the request, signerName, expirationSeconds, and usages fields can be set on creation. Other fields are derived by Kubernetes and cannot be modified by users." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestStatus", + "description": "status contains information about whether the request is approved or denied, and the certificate issued by the signer, or the failure condition indicating signer failure." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequest", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/certificatesigningrequest/certificates/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequestcondition-certificates-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequestcondition-certificates-v1.json new file mode 100644 index 00000000..dfcaed49 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequestcondition-certificates-v1.json @@ -0,0 +1,48 @@ +{ + "description": "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the time the condition last transitioned from one status to another. If unset, when a new condition type is added or an existing condition's status is changed, the server defaults this to the current time." + }, + "lastUpdateTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastUpdateTime is the time of the last update to this condition" + }, + "message": { + "description": "message contains a human readable message with details about the request state", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason indicates a brief reason for the request state", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status of the condition, one of True, False, Unknown. Approved, Denied, and Failed conditions may not be \"False\" or \"Unknown\".", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\".\n\nAn \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer.\n\nA \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer.\n\nA \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate.\n\nApproved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added.\n\nOnly one condition of a given type is allowed.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/certificatesigningrequestcondition/certificates/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequestlist-certificates-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequestlist-certificates-v1.json new file mode 100644 index 00000000..7bec00e6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequestlist-certificates-v1.json @@ -0,0 +1,51 @@ +{ + "description": "CertificateSigningRequestList is a collection of CertificateSigningRequest objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1" + ] + }, + "items": { + "description": "items is a collection of CertificateSigningRequest objects", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequest" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CertificateSigningRequestList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "CertificateSigningRequestList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/certificatesigningrequestlist/certificates/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequestspec-certificates-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequestspec-certificates-v1.json new file mode 100644 index 00000000..84462204 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequestspec-certificates-v1.json @@ -0,0 +1,97 @@ +{ + "description": "CertificateSigningRequestSpec contains the certificate request.", + "properties": { + "expirationSeconds": { + "description": "expirationSeconds is the requested duration of validity of the issued certificate. The certificate signer may issue a certificate with a different validity duration so a client must check the delta between the notBefore and and notAfter fields in the issued certificate to determine the actual duration.\n\nThe v1.22+ in-tree implementations of the well-known Kubernetes signers will honor this field as long as the requested duration is not greater than the maximum duration they will honor per the --cluster-signing-duration CLI flag to the Kubernetes controller manager.\n\nCertificate signers may not honor this field for various reasons:\n\n 1. Old signer that is unaware of the field (such as the in-tree\n implementations prior to v1.22)\n 2. Signer whose configured maximum is shorter than the requested duration\n 3. Signer whose configured minimum is longer than the requested duration\n\nThe minimum valid value for expirationSeconds is 600, i.e. 10 minutes.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "extra": { + "additionalProperties": { + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "description": "extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": [ + "object", + "null" + ] + }, + "groups": { + "description": "groups contains group membership of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "request": { + "description": "request contains an x509 certificate signing request encoded in a \"CERTIFICATE REQUEST\" PEM block. When serialized as JSON or YAML, the data is additionally base64-encoded.", + "format": "byte", + "type": [ + "string", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "signerName": { + "description": "signerName indicates the requested signer, and is a qualified name.\n\nList/watch requests for CertificateSigningRequests can filter on this field using a \"spec.signerName=NAME\" fieldSelector.\n\nWell-known Kubernetes signers are:\n 1. \"kubernetes.io/kube-apiserver-client\": issues client certificates that can be used to authenticate to kube-apiserver.\n Requests for this signer are never auto-approved by kube-controller-manager, can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 2. \"kubernetes.io/kube-apiserver-client-kubelet\": issues client certificates that kubelets use to authenticate to kube-apiserver.\n Requests for this signer can be auto-approved by the \"csrapproving\" controller in kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n 3. \"kubernetes.io/kubelet-serving\" issues serving certificates that kubelets use to serve TLS endpoints, which kube-apiserver can connect to securely.\n Requests for this signer are never auto-approved by kube-controller-manager, and can be issued by the \"csrsigning\" controller in kube-controller-manager.\n\nMore details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers\n\nCustom signerNames can also be specified. The signer defines:\n 1. Trust distribution: how trust (CA bundles) are distributed.\n 2. Permitted subjects: and behavior when a disallowed subject is requested.\n 3. Required, permitted, or forbidden x509 extensions in the request (including whether subjectAltNames are allowed, which types, restrictions on allowed values) and behavior when a disallowed extension is requested.\n 4. Required, permitted, or forbidden key usages / extended key usages.\n 5. Expiration/certificate lifetime: whether it is fixed by the signer, configurable by the admin.\n 6. Whether or not requests for CA certificates are allowed.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "uid contains the uid of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": [ + "string", + "null" + ] + }, + "usages": { + "description": "usages specifies a set of key usages requested in the issued certificate.\n\nRequests for TLS client certificates typically request: \"digital signature\", \"key encipherment\", \"client auth\".\n\nRequests for TLS serving certificates typically request: \"key encipherment\", \"digital signature\", \"server auth\".\n\nValid values are:\n \"signing\", \"digital signature\", \"content commitment\",\n \"key encipherment\", \"key agreement\", \"data encipherment\",\n \"cert sign\", \"crl sign\", \"encipher only\", \"decipher only\", \"any\",\n \"server auth\", \"client auth\",\n \"code signing\", \"email protection\", \"s/mime\",\n \"ipsec end system\", \"ipsec tunnel\", \"ipsec user\",\n \"timestamping\", \"ocsp signing\", \"microsoft sgc\", \"netscape sgc\"", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "username": { + "description": "username contains the name of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "request", + "signerName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/certificatesigningrequestspec/certificates/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequeststatus-certificates-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequeststatus-certificates-v1.json new file mode 100644 index 00000000..1df8bd31 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/certificatesigningrequeststatus-certificates-v1.json @@ -0,0 +1,31 @@ +{ + "description": "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.", + "properties": { + "certificate": { + "description": "certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable.\n\nIf the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty.\n\nValidation requirements:\n 1. certificate must contain one or more PEM blocks.\n 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data\n must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280.\n 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated,\n to allow for explanatory text as described in section 5.2 of RFC7468.\n\nIf more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes.\n\nThe certificate is encoded in PEM format.\n\nWhen serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of:\n\n base64(\n -----BEGIN CERTIFICATE-----\n ...\n -----END CERTIFICATE-----\n )", + "format": "byte", + "type": [ + "string", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "conditions": { + "description": "conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1.CertificateSigningRequestCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/certificatesigningrequeststatus/certificates/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cinderpersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cinderpersistentvolumesource-v1.json new file mode 100644 index 00000000..71d13d58 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cinderpersistentvolumesource-v1.json @@ -0,0 +1,36 @@ +{ + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "volumeID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/cinderpersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cindervolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cindervolumesource-v1.json new file mode 100644 index 00000000..ba2e64c2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cindervolumesource-v1.json @@ -0,0 +1,36 @@ +{ + "description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack." + }, + "volumeID": { + "description": "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "volumeID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/cindervolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clientipconfig-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clientipconfig-v1.json new file mode 100644 index 00000000..1c168d97 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clientipconfig-v1.json @@ -0,0 +1,16 @@ +{ + "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", + "properties": { + "timeoutSeconds": { + "description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/clientipconfig/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrole-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrole-rbac-v1.json new file mode 100644 index 00000000..044e0f66 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrole-rbac-v1.json @@ -0,0 +1,54 @@ +{ + "description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", + "properties": { + "aggregationRule": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.AggregationRule", + "description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller." + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRole" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "rules": { + "description": "Rules holds all the PolicyRules for this ClusterRole", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.PolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/clusterrole/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrolebinding-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrolebinding-rbac-v1.json new file mode 100644 index 00000000..76c02a57 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrolebinding-rbac-v1.json @@ -0,0 +1,57 @@ +{ + "description": "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRoleBinding" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "roleRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleRef", + "description": "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.Subject" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "roleRef" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBinding", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/clusterrolebinding/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrolebindinglist-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrolebindinglist-rbac-v1.json new file mode 100644 index 00000000..7c6753fc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrolebindinglist-rbac-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ClusterRoleBindingList is a collection of ClusterRoleBindings", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of ClusterRoleBindings", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.ClusterRoleBinding" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRoleBindingList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleBindingList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/clusterrolebindinglist/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrolelist-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrolelist-rbac-v1.json new file mode 100644 index 00000000..366347d5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clusterrolelist-rbac-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ClusterRoleList is a collection of ClusterRoles", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of ClusterRoles", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.ClusterRole" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterRoleList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "ClusterRoleList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/clusterrolelist/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundle-certificates-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundle-certificates-v1alpha1.json new file mode 100644 index 00000000..741c5acf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundle-certificates-v1alpha1.json @@ -0,0 +1,46 @@ +{ + "description": "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates).\n\nClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to.\n\nIt can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterTrustBundle" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata contains the object metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundleSpec", + "description": "spec contains the signer (if any) and trust anchors." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/clustertrustbundle/certificates/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundlelist-certificates-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundlelist-certificates-v1alpha1.json new file mode 100644 index 00000000..2c58aa4b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundlelist-certificates-v1alpha1.json @@ -0,0 +1,52 @@ +{ + "description": "ClusterTrustBundleList is a collection of ClusterTrustBundle objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "certificates.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "items is a collection of ClusterTrustBundle objects", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.certificates.v1alpha1.ClusterTrustBundle" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ClusterTrustBundleList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata contains the list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundleList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/clustertrustbundlelist/certificates/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundleprojection-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundleprojection-v1.json new file mode 100644 index 00000000..c57bb695 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundleprojection-v1.json @@ -0,0 +1,43 @@ +{ + "description": "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.", + "properties": { + "labelSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as \"match nothing\". If set but empty, interpreted as \"match everything\"." + }, + "name": { + "description": "Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "If true, don't block pod startup if the referenced ClusterTrustBundle(s) aren't available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.", + "type": [ + "boolean", + "null" + ] + }, + "path": { + "description": "Relative path from the volume root to write the bundle.", + "type": [ + "string", + "null" + ] + }, + "signerName": { + "description": "Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/clustertrustbundleprojection/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundlespec-certificates-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundlespec-certificates-v1alpha1.json new file mode 100644 index 00000000..16590182 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/clustertrustbundlespec-certificates-v1alpha1.json @@ -0,0 +1,25 @@ +{ + "description": "ClusterTrustBundleSpec contains the signer and trust anchors.", + "properties": { + "signerName": { + "description": "signerName indicates the associated signer, if any.\n\nIn order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName= verb=attest.\n\nIf signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`.\n\nIf signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix.\n\nList/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.", + "type": [ + "string", + "null" + ] + }, + "trustBundle": { + "description": "trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.\n\nThe data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers.\n\nUsers of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "trustBundle" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/clustertrustbundlespec/certificates/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/componentcondition-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/componentcondition-v1.json new file mode 100644 index 00000000..2c644bc7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/componentcondition-v1.json @@ -0,0 +1,40 @@ +{ + "description": "Information about the condition of a component.", + "properties": { + "error": { + "description": "Condition error code for a component. For example, a health check error code.", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message about the condition for a component. For example, information about a health check.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of condition for a component. Valid value: \"Healthy\"", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/componentcondition/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/componentstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/componentstatus-v1.json new file mode 100644 index 00000000..29488d88 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/componentstatus-v1.json @@ -0,0 +1,55 @@ +{ + "description": "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "conditions": { + "description": "List of component conditions observed", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ComponentCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ComponentStatus" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatus", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/componentstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/componentstatuslist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/componentstatuslist-v1.json new file mode 100644 index 00000000..c0f0bbcf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/componentstatuslist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of ComponentStatus objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ComponentStatus" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ComponentStatusList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ComponentStatusList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/componentstatuslist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/condition-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/condition-meta-v1.json new file mode 100644 index 00000000..3bd1aff7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/condition-meta-v1.json @@ -0,0 +1,55 @@ +{ + "description": "Condition contains details for one aspect of the current state of this API Resource.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable." + }, + "message": { + "description": "message is a human readable message indicating details about the transition. This may be an empty string.", + "type": [ + "string", + "null" + ] + }, + "observedGeneration": { + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "reason": { + "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type of condition in CamelCase or in foo.example.com/CamelCase.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status", + "lastTransitionTime", + "reason", + "message" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/condition/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmap-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmap-v1.json new file mode 100644 index 00000000..e8067d40 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmap-v1.json @@ -0,0 +1,73 @@ +{ + "description": "ConfigMap holds configuration data for pods to consume.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "binaryData": { + "additionalProperties": { + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "description": "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.", + "type": [ + "object", + "null" + ] + }, + "data": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.", + "type": [ + "object", + "null" + ] + }, + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ConfigMap" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMap", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/configmap/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapenvsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapenvsource-v1.json new file mode 100644 index 00000000..b50fdbca --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapenvsource-v1.json @@ -0,0 +1,22 @@ +{ + "description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the ConfigMap must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/configmapenvsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapkeyselector-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapkeyselector-v1.json new file mode 100644 index 00000000..04a12d23 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapkeyselector-v1.json @@ -0,0 +1,33 @@ +{ + "description": "Selects a key from a ConfigMap.", + "properties": { + "key": { + "description": "The key to select.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the ConfigMap or its key must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "key" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/configmapkeyselector/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmaplist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmaplist-v1.json new file mode 100644 index 00000000..ce1b3810 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmaplist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ConfigMapList is a resource containing a list of ConfigMap objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is the list of ConfigMaps.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMap" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ConfigMapList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ConfigMapList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/configmaplist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapnodeconfigsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapnodeconfigsource-v1.json new file mode 100644 index 00000000..c8e84172 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapnodeconfigsource-v1.json @@ -0,0 +1,48 @@ +{ + "description": "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration", + "properties": { + "kubeletConfigKey": { + "description": "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", + "type": [ + "string", + "null" + ] + }, + "resourceVersion": { + "description": "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "namespace", + "name", + "kubeletConfigKey" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/configmapnodeconfigsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapprojection-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapprojection-v1.json new file mode 100644 index 00000000..628860af --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapprojection-v1.json @@ -0,0 +1,33 @@ +{ + "description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.", + "properties": { + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/configmapprojection/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapvolumesource-v1.json new file mode 100644 index 00000000..0967b144 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/configmapvolumesource-v1.json @@ -0,0 +1,41 @@ +{ + "description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "optional specify whether the ConfigMap or its keys must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/configmapvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/container-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/container-v1.json new file mode 100644 index 00000000..3a99c5a5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/container-v1.json @@ -0,0 +1,220 @@ +{ + "description": "A single application container that you want to run within a pod.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvVar" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvFromSource" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", + "type": [ + "string", + "null" + ] + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "type": [ + "string", + "null" + ] + }, + "lifecycle": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Lifecycle", + "description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated." + }, + "livenessProbe": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe", + "description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "name": { + "description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe", + "description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerResizePolicy" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceRequirements", + "description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + }, + "restartPolicy": { + "description": "RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed.", + "type": [ + "string", + "null" + ] + }, + "securityContext": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecurityContext", + "description": "SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" + }, + "startupProbe": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe", + "description": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": [ + "boolean", + "null" + ] + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeDevice" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "devicePath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeMount" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/container/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerimage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerimage-v1.json new file mode 100644 index 00000000..07a37262 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerimage-v1.json @@ -0,0 +1,30 @@ +{ + "description": "Describe a container image", + "properties": { + "names": { + "description": "Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "sizeBytes": { + "description": "The size of the image in bytes.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/containerimage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerport-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerport-v1.json new file mode 100644 index 00000000..cb47bf9f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerport-v1.json @@ -0,0 +1,48 @@ +{ + "description": "ContainerPort represents a network port in a single container.", + "properties": { + "containerPort": { + "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "hostIP": { + "description": "What host IP to bind the external port to.", + "type": [ + "string", + "null" + ] + }, + "hostPort": { + "description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "name": { + "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.", + "type": [ + "string", + "null" + ] + }, + "protocol": { + "description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "containerPort" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/containerport/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerresizepolicy-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerresizepolicy-v1.json new file mode 100644 index 00000000..6e8ab698 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerresizepolicy-v1.json @@ -0,0 +1,26 @@ +{ + "description": "ContainerResizePolicy represents resource resize policy for the container.", + "properties": { + "resourceName": { + "description": "Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.", + "type": [ + "string", + "null" + ] + }, + "restartPolicy": { + "description": "Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "resourceName", + "restartPolicy" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/containerresizepolicy/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerresourcemetricsource-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerresourcemetricsource-autoscaling-v2.json new file mode 100644 index 00000000..28d3d53e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerresourcemetricsource-autoscaling-v2.json @@ -0,0 +1,31 @@ +{ + "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "properties": { + "container": { + "description": "container is the name of the container in the pods of the scaling target", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the name of the resource in question.", + "type": [ + "string", + "null" + ] + }, + "target": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "name", + "target", + "container" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/containerresourcemetricsource/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerresourcemetricstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerresourcemetricstatus-autoscaling-v2.json new file mode 100644 index 00000000..72180470 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerresourcemetricstatus-autoscaling-v2.json @@ -0,0 +1,31 @@ +{ + "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "properties": { + "container": { + "description": "container is the name of the container in the pods of the scaling target", + "type": [ + "string", + "null" + ] + }, + "current": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "current", + "container" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/containerresourcemetricstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstate-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstate-v1.json new file mode 100644 index 00000000..9b11d6f3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstate-v1.json @@ -0,0 +1,20 @@ +{ + "description": "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.", + "properties": { + "running": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStateRunning", + "description": "Details about a running container" + }, + "terminated": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStateTerminated", + "description": "Details about a terminated container" + }, + "waiting": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStateWaiting", + "description": "Details about a waiting container" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/containerstate/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstaterunning-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstaterunning-v1.json new file mode 100644 index 00000000..cd50ded6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstaterunning-v1.json @@ -0,0 +1,12 @@ +{ + "description": "ContainerStateRunning is a running state of a container.", + "properties": { + "startedAt": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container was last (re-)started" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/containerstaterunning/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstateterminated-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstateterminated-v1.json new file mode 100644 index 00000000..21579040 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstateterminated-v1.json @@ -0,0 +1,56 @@ +{ + "description": "ContainerStateTerminated is a terminated state of a container.", + "properties": { + "containerID": { + "description": "Container's ID in the format '://'", + "type": [ + "string", + "null" + ] + }, + "exitCode": { + "description": "Exit status from the last termination of the container", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "finishedAt": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which the container last terminated" + }, + "message": { + "description": "Message regarding the last termination of the container", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason from the last termination of the container", + "type": [ + "string", + "null" + ] + }, + "signal": { + "description": "Signal from the last termination of the container", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "startedAt": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time at which previous execution of the container started" + } + }, + "required": [ + "exitCode" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/containerstateterminated/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstatewaiting-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstatewaiting-v1.json new file mode 100644 index 00000000..a254acf3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstatewaiting-v1.json @@ -0,0 +1,22 @@ +{ + "description": "ContainerStateWaiting is a waiting state of a container.", + "properties": { + "message": { + "description": "Message regarding why the container is not yet running.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason the container is not yet running.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/containerstatewaiting/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstatus-v1.json new file mode 100644 index 00000000..b15139dc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containerstatus-v1.json @@ -0,0 +1,123 @@ +{ + "description": "ContainerStatus contains details for the current status of this container.", + "properties": { + "allocatedResources": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.", + "type": [ + "object", + "null" + ] + }, + "allocatedResourcesStatus": { + "description": "AllocatedResourcesStatus represents the status of various resources allocated for this Pod.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "containerID": { + "description": "ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.", + "type": [ + "string", + "null" + ] + }, + "imageID": { + "description": "ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.", + "type": [ + "string", + "null" + ] + }, + "lastState": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerState", + "description": "LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0." + }, + "name": { + "description": "Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "ready": { + "description": "Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic.", + "type": [ + "boolean", + "null" + ] + }, + "resources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceRequirements", + "description": "Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized." + }, + "restartCount": { + "description": "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "started": { + "description": "Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.", + "type": [ + "boolean", + "null" + ] + }, + "state": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerState", + "description": "State holds details about the container's current condition." + }, + "user": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerUser", + "description": "User represents user identity information initially attached to the first process of the container" + }, + "volumeMounts": { + "description": "Status of volume mounts.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeMountStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "name", + "ready", + "restartCount", + "image", + "imageID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/containerstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containeruser-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containeruser-v1.json new file mode 100644 index 00000000..8fa7bca4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/containeruser-v1.json @@ -0,0 +1,12 @@ +{ + "description": "ContainerUser represents user identity information", + "properties": { + "linux": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LinuxContainerUser", + "description": "Linux holds user identity information initially attached to the first process of the containers in Linux. Note that the actual running identity can be changed if the process has enough privilege to do so." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/containeruser/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/controllerrevision-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/controllerrevision-apps-v1.json new file mode 100644 index 00000000..209d7a2b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/controllerrevision-apps-v1.json @@ -0,0 +1,54 @@ +{ + "description": "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "data": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Data is the serialized representation of the state." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ControllerRevision" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "revision": { + "description": "Revision indicates the revision of the state represented by Data.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "revision" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/controllerrevision/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/controllerrevisionlist-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/controllerrevisionlist-apps-v1.json new file mode 100644 index 00000000..edbef8f1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/controllerrevisionlist-apps-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "Items is the list of ControllerRevisions", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ControllerRevision" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ControllerRevisionList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ControllerRevisionList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/controllerrevisionlist/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjob-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjob-batch-v1.json new file mode 100644 index 00000000..925b7204 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjob-batch-v1.json @@ -0,0 +1,47 @@ +{ + "description": "CronJob represents the configuration of a single cron job.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CronJob" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJobSpec", + "description": "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJobStatus", + "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/cronjob/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjoblist-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjoblist-batch-v1.json new file mode 100644 index 00000000..259bbcfb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjoblist-batch-v1.json @@ -0,0 +1,52 @@ +{ + "description": "CronJobList is a collection of cron jobs.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "items": { + "description": "items is the list of CronJobs.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.CronJob" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CronJobList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "CronJobList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/cronjoblist/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjobspec-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjobspec-batch-v1.json new file mode 100644 index 00000000..35384668 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjobspec-batch-v1.json @@ -0,0 +1,68 @@ +{ + "description": "CronJobSpec describes how the job execution will look like and when it will actually run.", + "properties": { + "concurrencyPolicy": { + "description": "Specifies how to treat concurrent executions of a Job. Valid values are:\n\n- \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one", + "type": [ + "string", + "null" + ] + }, + "failedJobsHistoryLimit": { + "description": "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "jobTemplate": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobTemplateSpec", + "description": "Specifies the job that will be created when executing a CronJob." + }, + "schedule": { + "description": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + "type": [ + "string", + "null" + ] + }, + "startingDeadlineSeconds": { + "description": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "successfulJobsHistoryLimit": { + "description": "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "suspend": { + "description": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "timeZone": { + "description": "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "schedule", + "jobTemplate" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/cronjobspec/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjobstatus-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjobstatus-batch-v1.json new file mode 100644 index 00000000..7bd581cb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/cronjobstatus-batch-v1.json @@ -0,0 +1,27 @@ +{ + "description": "CronJobStatus represents the current state of a cron job.", + "properties": { + "active": { + "description": "A list of pointers to currently running jobs.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "lastScheduleTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Information when was the last time the job was successfully scheduled." + }, + "lastSuccessfulTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Information when was the last time the job successfully completed." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/cronjobstatus/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/crossversionobjectreference-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/crossversionobjectreference-autoscaling-v1.json new file mode 100644 index 00000000..7527f6f2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/crossversionobjectreference-autoscaling-v1.json @@ -0,0 +1,34 @@ +{ + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "properties": { + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/crossversionobjectreference/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/crossversionobjectreference-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/crossversionobjectreference-autoscaling-v2.json new file mode 100644 index 00000000..7b0f607f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/crossversionobjectreference-autoscaling-v2.json @@ -0,0 +1,33 @@ +{ + "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", + "properties": { + "apiVersion": { + "description": "apiVersion is the API version of the referent", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/crossversionobjectreference/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csidriver-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csidriver-storage-v1.json new file mode 100644 index 00000000..3f0c0959 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csidriver-storage-v1.json @@ -0,0 +1,46 @@ +{ + "description": "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIDriver" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIDriverSpec", + "description": "spec represents the specification of the CSI Driver." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriver", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/csidriver/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csidriverlist-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csidriverlist-storage-v1.json new file mode 100644 index 00000000..e47660f3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csidriverlist-storage-v1.json @@ -0,0 +1,52 @@ +{ + "description": "CSIDriverList is a collection of CSIDriver objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of CSIDriver", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIDriver" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIDriverList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIDriverList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/csidriverlist/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csidriverspec-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csidriverspec-storage-v1.json new file mode 100644 index 00000000..82176ad3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csidriverspec-storage-v1.json @@ -0,0 +1,75 @@ +{ + "description": "CSIDriverSpec is the specification of a CSIDriver.", + "properties": { + "attachRequired": { + "description": "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", + "type": [ + "boolean", + "null" + ] + }, + "fsGroupPolicy": { + "description": "fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.", + "type": [ + "string", + "null" + ] + }, + "podInfoOnMount": { + "description": "podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.\n\nThe CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.\n\nThe following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.", + "type": [ + "boolean", + "null" + ] + }, + "requiresRepublish": { + "description": "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", + "type": [ + "boolean", + "null" + ] + }, + "seLinuxMount": { + "description": "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", + "type": [ + "boolean", + "null" + ] + }, + "storageCapacity": { + "description": "storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", + "type": [ + "boolean", + "null" + ] + }, + "tokenRequests": { + "description": "tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.TokenRequest" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "volumeLifecycleModes": { + "description": "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.\n\nThe other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.\n\nFor more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.\n\nThis field is beta. This field is immutable.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/csidriverspec/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinode-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinode-storage-v1.json new file mode 100644 index 00000000..3b481efd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinode-storage-v1.json @@ -0,0 +1,46 @@ +{ + "description": "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSINode" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. metadata.name must be the Kubernetes node name." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINodeSpec", + "description": "spec is the specification of CSINode" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINode", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/csinode/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinodedriver-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinodedriver-storage-v1.json new file mode 100644 index 00000000..df527c5e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinodedriver-storage-v1.json @@ -0,0 +1,44 @@ +{ + "description": "CSINodeDriver holds information about the specification of one CSI driver installed on a node", + "properties": { + "allocatable": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeNodeResources", + "description": "allocatable represents the volume resources of a node that are available for scheduling. This field is beta." + }, + "name": { + "description": "name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", + "type": [ + "string", + "null" + ] + }, + "nodeID": { + "description": "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", + "type": [ + "string", + "null" + ] + }, + "topologyKeys": { + "description": "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "nodeID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/csinodedriver/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinodelist-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinodelist-storage-v1.json new file mode 100644 index 00000000..21bc71cb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinodelist-storage-v1.json @@ -0,0 +1,52 @@ +{ + "description": "CSINodeList is a collection of CSINode objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of CSINode", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINode" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSINodeList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSINodeList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/csinodelist/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinodespec-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinodespec-storage-v1.json new file mode 100644 index 00000000..6e2d2f94 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csinodespec-storage-v1.json @@ -0,0 +1,27 @@ +{ + "description": "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", + "properties": { + "drivers": { + "description": "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSINodeDriver" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "required": [ + "drivers" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/csinodespec/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csipersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csipersistentvolumesource-v1.json new file mode 100644 index 00000000..8e998d7f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csipersistentvolumesource-v1.json @@ -0,0 +1,73 @@ +{ + "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", + "properties": { + "controllerExpandSecretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "controllerPublishSecretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "driver": { + "description": "driver is the name of the driver to use for this volume. Required.", + "type": [ + "string", + "null" + ] + }, + "fsType": { + "description": "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", + "type": [ + "string", + "null" + ] + }, + "nodeExpandSecretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "nodePublishSecretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "nodeStageSecretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, + "readOnly": { + "description": "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", + "type": [ + "boolean", + "null" + ] + }, + "volumeAttributes": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "volumeAttributes of the volume to publish.", + "type": [ + "object", + "null" + ] + }, + "volumeHandle": { + "description": "volumeHandle is the unique volume name returned by the CSI volume plugin\u2019s CreateVolume to refer to the volume on all subsequent calls. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "driver", + "volumeHandle" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/csipersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csistoragecapacity-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csistoragecapacity-storage-v1.json new file mode 100644 index 00000000..e251b0f5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csistoragecapacity-storage-v1.json @@ -0,0 +1,61 @@ +{ + "description": "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "capacity": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIStorageCapacity" + ] + }, + "maximumVolumeSize": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim." + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "nodeTopology": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable." + }, + "storageClassName": { + "description": "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "storageClassName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacity", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/csistoragecapacity/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csistoragecapacitylist-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csistoragecapacitylist-storage-v1.json new file mode 100644 index 00000000..e4205e1e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csistoragecapacitylist-storage-v1.json @@ -0,0 +1,52 @@ +{ + "description": "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of CSIStorageCapacity objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.CSIStorageCapacity" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CSIStorageCapacityList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "CSIStorageCapacityList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/csistoragecapacitylist/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csivolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csivolumesource-v1.json new file mode 100644 index 00000000..83dc31aa --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/csivolumesource-v1.json @@ -0,0 +1,49 @@ +{ + "description": "Represents a source location of a volume to mount, managed by an external CSI driver", + "properties": { + "driver": { + "description": "driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.", + "type": [ + "string", + "null" + ] + }, + "fsType": { + "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.", + "type": [ + "string", + "null" + ] + }, + "nodePublishSecretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed." + }, + "readOnly": { + "description": "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", + "type": [ + "boolean", + "null" + ] + }, + "volumeAttributes": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "driver" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/csivolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcecolumndefinition-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcecolumndefinition-apiextensions-v1.json new file mode 100644 index 00000000..8d32fee5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcecolumndefinition-apiextensions-v1.json @@ -0,0 +1,56 @@ +{ + "description": "CustomResourceColumnDefinition specifies a column for server side printing.", + "properties": { + "description": { + "description": "description is a human readable description of this column.", + "type": [ + "string", + "null" + ] + }, + "format": { + "description": "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "type": [ + "string", + "null" + ] + }, + "jsonPath": { + "description": "jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is a human readable name for the column.", + "type": [ + "string", + "null" + ] + }, + "priority": { + "description": "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "type": { + "description": "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "type", + "jsonPath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourcecolumndefinition/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourceconversion-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourceconversion-apiextensions-v1.json new file mode 100644 index 00000000..a0572dbf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourceconversion-apiextensions-v1.json @@ -0,0 +1,22 @@ +{ + "description": "CustomResourceConversion describes how to convert different versions of a CR.", + "properties": { + "strategy": { + "description": "strategy specifies how custom resources are converted between versions. Allowed values are: - `\"None\"`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `\"Webhook\"`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhook to be set.", + "type": [ + "string", + "null" + ] + }, + "webhook": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookConversion", + "description": "webhook describes how to call the conversion webhook. Required when `strategy` is set to `\"Webhook\"`." + } + }, + "required": [ + "strategy" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourceconversion/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinition-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinition-apiextensions-v1.json new file mode 100644 index 00000000..e96d6e5e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinition-apiextensions-v1.json @@ -0,0 +1,50 @@ +{ + "description": "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiextensions.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CustomResourceDefinition" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionSpec", + "description": "spec describes how the user wants the resources to appear" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionStatus", + "description": "status indicates the actual state of the CustomResourceDefinition" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourcedefinition/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitioncondition-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitioncondition-apiextensions-v1.json new file mode 100644 index 00000000..2379bcca --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitioncondition-apiextensions-v1.json @@ -0,0 +1,44 @@ +{ + "description": "CustomResourceDefinitionCondition contains details for the current condition of this pod.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime last time the condition transitioned from one status to another." + }, + "message": { + "description": "message is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status is the status of the condition. Can be True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type is the type of the condition. Types include Established, NamesAccepted and Terminating.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourcedefinitioncondition/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionlist-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionlist-apiextensions-v1.json new file mode 100644 index 00000000..3cb50626 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionlist-apiextensions-v1.json @@ -0,0 +1,52 @@ +{ + "description": "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apiextensions.k8s.io/v1" + ] + }, + "items": { + "description": "items list individual CustomResourceDefinition objects", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinition" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "CustomResourceDefinitionList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinitionList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourcedefinitionlist/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionnames-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionnames-apiextensions-v1.json new file mode 100644 index 00000000..2ab03cb2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionnames-apiextensions-v1.json @@ -0,0 +1,68 @@ +{ + "description": "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition", + "properties": { + "categories": { + "description": "categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.", + "type": [ + "string", + "null" + ] + }, + "listKind": { + "description": "listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".", + "type": [ + "string", + "null" + ] + }, + "plural": { + "description": "plural is the plural name of the resource to serve. The custom resources are served under `/apis///.../`. Must match the name of the CustomResourceDefinition (in the form `.`). Must be all lowercase.", + "type": [ + "string", + "null" + ] + }, + "shortNames": { + "description": "shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get `. It must be all lowercase.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "singular": { + "description": "singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "plural", + "kind" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourcedefinitionnames/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionspec-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionspec-apiextensions-v1.json new file mode 100644 index 00000000..ca449c77 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionspec-apiextensions-v1.json @@ -0,0 +1,54 @@ +{ + "description": "CustomResourceDefinitionSpec describes how a user wants their resource to appear", + "properties": { + "conversion": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceConversion", + "description": "conversion defines conversion settings for the CRD." + }, + "group": { + "description": "group is the API group of the defined custom resource. The custom resources are served under `/apis//...`. Must match the name of the CustomResourceDefinition (in the form `.`).", + "type": [ + "string", + "null" + ] + }, + "names": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames", + "description": "names specify the resource and kind names for the custom resource." + }, + "preserveUnknownFields": { + "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.", + "type": [ + "boolean", + "null" + ] + }, + "scope": { + "description": "scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.", + "type": [ + "string", + "null" + ] + }, + "versions": { + "description": "versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionVersion" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "group", + "names", + "scope", + "versions" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourcedefinitionspec/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionstatus-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionstatus-apiextensions-v1.json new file mode 100644 index 00000000..b40e52ac --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionstatus-apiextensions-v1.json @@ -0,0 +1,40 @@ +{ + "description": "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition", + "properties": { + "acceptedNames": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionNames", + "description": "acceptedNames are the names that are actually being used to serve discovery. They may be different than the names in spec." + }, + "conditions": { + "description": "conditions indicate state for particular aspects of a CustomResourceDefinition", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceDefinitionCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "storedVersions": { + "description": "storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourcedefinitionstatus/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionversion-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionversion-apiextensions-v1.json new file mode 100644 index 00000000..28ca28c1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcedefinitionversion-apiextensions-v1.json @@ -0,0 +1,78 @@ +{ + "description": "CustomResourceDefinitionVersion describes a version for CRD.", + "properties": { + "additionalPrinterColumns": { + "description": "additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceColumnDefinition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "deprecated": { + "description": "deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "deprecationWarning": { + "description": "deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the version name, e.g. \u201cv1\u201d, \u201cv2beta1\u201d, etc. The custom resources are served under this version at `/apis///...` if `served` is true.", + "type": [ + "string", + "null" + ] + }, + "schema": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceValidation", + "description": "schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource." + }, + "selectableFields": { + "description": "selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.SelectableField" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "served": { + "description": "served is a flag enabling/disabling this version from being served via REST APIs", + "type": [ + "boolean", + "null" + ] + }, + "storage": { + "description": "storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.", + "type": [ + "boolean", + "null" + ] + }, + "subresources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresources", + "description": "subresources specify what subresources this version of the defined custom resource have." + } + }, + "required": [ + "name", + "served", + "storage" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourcedefinitionversion/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcesubresources-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcesubresources-apiextensions-v1.json new file mode 100644 index 00000000..15815619 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcesubresources-apiextensions-v1.json @@ -0,0 +1,16 @@ +{ + "description": "CustomResourceSubresources defines the status and scale subresources for CustomResources.", + "properties": { + "scale": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceScale", + "description": "scale indicates the custom resource should serve a `/scale` subresource that returns an `autoscaling/v1` Scale object." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.CustomResourceSubresourceStatus", + "description": "status indicates the custom resource should serve a `/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourcesubresources/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcesubresourcescale-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcesubresourcescale-apiextensions-v1.json new file mode 100644 index 00000000..1860ccec --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcesubresourcescale-apiextensions-v1.json @@ -0,0 +1,33 @@ +{ + "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", + "properties": { + "labelSelectorPath": { + "description": "labelSelectorPath defines the JSON path inside of a custom resource that corresponds to Scale `status.selector`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status` or `.spec`. Must be set to work with HorizontalPodAutoscaler. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the custom resource, the `status.selector` value in the `/scale` subresource will default to the empty string.", + "type": [ + "string", + "null" + ] + }, + "specReplicasPath": { + "description": "specReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `spec.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.spec`. If there is no value under the given path in the custom resource, the `/scale` subresource will return an error on GET.", + "type": [ + "string", + "null" + ] + }, + "statusReplicasPath": { + "description": "statusReplicasPath defines the JSON path inside of a custom resource that corresponds to Scale `status.replicas`. Only JSON paths without the array notation are allowed. Must be a JSON Path under `.status`. If there is no value under the given path in the custom resource, the `status.replicas` value in the `/scale` subresource will default to 0.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "specReplicasPath", + "statusReplicasPath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourcesubresourcescale/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcesubresourcestatus-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcesubresourcestatus-apiextensions-v1.json new file mode 100644 index 00000000..5f9ab640 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcesubresourcestatus-apiextensions-v1.json @@ -0,0 +1,6 @@ +{ + "description": "CustomResourceSubresourceStatus defines how to serve the status subresource for CustomResources. Status is represented by the `.status` JSON path inside of a CustomResource. When set, * exposes a /status subresource for the custom resource * PUT requests to the /status subresource take a custom resource object, and ignore changes to anything except the status stanza * PUT/POST/PATCH requests to the custom resource ignore changes to the status stanza", + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourcesubresourcestatus/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcevalidation-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcevalidation-apiextensions-v1.json new file mode 100644 index 00000000..d7f0e981 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/customresourcevalidation-apiextensions-v1.json @@ -0,0 +1,12 @@ +{ + "description": "CustomResourceValidation is a list of validation methods for CustomResources.", + "properties": { + "openAPIV3Schema": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps", + "description": "openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/customresourcevalidation/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonendpoint-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonendpoint-v1.json new file mode 100644 index 00000000..51e02b5f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonendpoint-v1.json @@ -0,0 +1,19 @@ +{ + "description": "DaemonEndpoint contains information about a single Daemon endpoint.", + "properties": { + "Port": { + "description": "Port number of the given endpoint.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "Port" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/daemonendpoint/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonset-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonset-apps-v1.json new file mode 100644 index 00000000..369f0e47 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonset-apps-v1.json @@ -0,0 +1,47 @@ +{ + "description": "DaemonSet represents the configuration of a daemon set.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DaemonSet" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetSpec", + "description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetStatus", + "description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/daemonset/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetcondition-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetcondition-apps-v1.json new file mode 100644 index 00000000..fe5bd297 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetcondition-apps-v1.json @@ -0,0 +1,44 @@ +{ + "description": "DaemonSetCondition describes the state of a DaemonSet at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of DaemonSet condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/daemonsetcondition/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetlist-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetlist-apps-v1.json new file mode 100644 index 00000000..a40a1382 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetlist-apps-v1.json @@ -0,0 +1,52 @@ +{ + "description": "DaemonSetList is a collection of daemon sets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "A list of daemon sets.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSet" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DaemonSetList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DaemonSetList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/daemonsetlist/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetspec-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetspec-apps-v1.json new file mode 100644 index 00000000..3fd38b86 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetspec-apps-v1.json @@ -0,0 +1,40 @@ +{ + "description": "DaemonSetSpec is the specification of a daemon set.", + "properties": { + "minReadySeconds": { + "description": "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "revisionHistoryLimit": { + "description": "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + }, + "updateStrategy": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetUpdateStrategy", + "description": "An update strategy to replace existing DaemonSet pods with new pods." + } + }, + "required": [ + "selector", + "template" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/daemonsetspec/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetstatus-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetstatus-apps-v1.json new file mode 100644 index 00000000..99410b06 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetstatus-apps-v1.json @@ -0,0 +1,102 @@ +{ + "description": "DaemonSetStatus represents the current status of a daemon set.", + "properties": { + "collisionCount": { + "description": "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a DaemonSet's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DaemonSetCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentNumberScheduled": { + "description": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "desiredNumberScheduled": { + "description": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "numberAvailable": { + "description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "numberMisscheduled": { + "description": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "numberReady": { + "description": "numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "numberUnavailable": { + "description": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "The most recent generation observed by the daemon set controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "updatedNumberScheduled": { + "description": "The total number of nodes that are running updated daemon pod", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "currentNumberScheduled", + "numberMisscheduled", + "desiredNumberScheduled", + "numberReady" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/daemonsetstatus/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetupdatestrategy-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetupdatestrategy-apps-v1.json new file mode 100644 index 00000000..78b84182 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/daemonsetupdatestrategy-apps-v1.json @@ -0,0 +1,19 @@ +{ + "description": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", + "properties": { + "rollingUpdate": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.RollingUpdateDaemonSet", + "description": "Rolling update config params. Present only if type = \"RollingUpdate\"." + }, + "type": { + "description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/daemonsetupdatestrategy/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deleteoptions-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deleteoptions-meta-v1.json new file mode 100644 index 00000000..75984cef --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deleteoptions-meta-v1.json @@ -0,0 +1,429 @@ +{ + "description": "DeleteOptions may be provided when deleting an API object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1", + "admission.k8s.io/v1", + "admission.k8s.io/v1beta1", + "admissionregistration.k8s.io/v1", + "admissionregistration.k8s.io/v1alpha1", + "admissionregistration.k8s.io/v1beta1", + "apiextensions.k8s.io/v1", + "apiextensions.k8s.io/v1beta1", + "apiregistration.k8s.io/v1", + "apiregistration.k8s.io/v1beta1", + "apps/v1", + "apps/v1beta1", + "apps/v1beta2", + "authentication.k8s.io/v1", + "authentication.k8s.io/v1alpha1", + "authentication.k8s.io/v1beta1", + "authorization.k8s.io/v1", + "authorization.k8s.io/v1beta1", + "autoscaling/v1", + "autoscaling/v2", + "autoscaling/v2beta1", + "autoscaling/v2beta2", + "batch/v1", + "batch/v1beta1", + "certificates.k8s.io/v1", + "certificates.k8s.io/v1alpha1", + "certificates.k8s.io/v1beta1", + "coordination.k8s.io/v1", + "coordination.k8s.io/v1alpha1", + "coordination.k8s.io/v1beta1", + "discovery.k8s.io/v1", + "discovery.k8s.io/v1beta1", + "events.k8s.io/v1", + "events.k8s.io/v1beta1", + "extensions/v1beta1", + "flowcontrol.apiserver.k8s.io/v1", + "flowcontrol.apiserver.k8s.io/v1beta1", + "flowcontrol.apiserver.k8s.io/v1beta2", + "flowcontrol.apiserver.k8s.io/v1beta3", + "imagepolicy.k8s.io/v1alpha1", + "internal.apiserver.k8s.io/v1alpha1", + "networking.k8s.io/v1", + "networking.k8s.io/v1alpha1", + "networking.k8s.io/v1beta1", + "node.k8s.io/v1", + "node.k8s.io/v1alpha1", + "node.k8s.io/v1beta1", + "policy/v1", + "policy/v1beta1", + "rbac.authorization.k8s.io/v1", + "rbac.authorization.k8s.io/v1alpha1", + "rbac.authorization.k8s.io/v1beta1", + "resource.k8s.io/v1alpha3", + "scheduling.k8s.io/v1", + "scheduling.k8s.io/v1alpha1", + "scheduling.k8s.io/v1beta1", + "storage.k8s.io/v1", + "storage.k8s.io/v1alpha1", + "storage.k8s.io/v1beta1", + "storagemigration.k8s.io/v1alpha1" + ] + }, + "dryRun": { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "gracePeriodSeconds": { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeleteOptions" + ] + }, + "orphanDependents": { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "type": [ + "boolean", + "null" + ] + }, + "preconditions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions", + "description": "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned." + }, + "propagationPolicy": { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "DeleteOptions", + "version": "v1beta2" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2beta1" + }, + { + "group": "autoscaling", + "kind": "DeleteOptions", + "version": "v2beta2" + }, + { + "group": "batch", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "batch", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "certificates.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "coordination.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "discovery.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "discovery.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "events.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "events.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "extensions", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta2" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta3" + }, + { + "group": "imagepolicy.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "internal.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "node.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "policy", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "policy", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "resource.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha3" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "scheduling.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, + { + "group": "storage.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deleteoptions/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deployment-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deployment-apps-v1.json new file mode 100644 index 00000000..f2c52192 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deployment-apps-v1.json @@ -0,0 +1,47 @@ +{ + "description": "Deployment enables declarative updates for Pods and ReplicaSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Deployment" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentSpec", + "description": "Specification of the desired behavior of the Deployment." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentStatus", + "description": "Most recently observed status of the Deployment." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "Deployment", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deployment/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentcondition-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentcondition-apps-v1.json new file mode 100644 index 00000000..781024e7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentcondition-apps-v1.json @@ -0,0 +1,48 @@ +{ + "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "lastUpdateTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time this condition was updated." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of deployment condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deploymentcondition/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentlist-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentlist-apps-v1.json new file mode 100644 index 00000000..ccf69f12 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentlist-apps-v1.json @@ -0,0 +1,52 @@ +{ + "description": "DeploymentList is a list of Deployments.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "Items is the list of Deployments.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.Deployment" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeploymentList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "DeploymentList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deploymentlist/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentspec-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentspec-apps-v1.json new file mode 100644 index 00000000..ba362b8c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentspec-apps-v1.json @@ -0,0 +1,64 @@ +{ + "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "paused": { + "description": "Indicates that the deployment is paused.", + "type": [ + "boolean", + "null" + ] + }, + "progressDeadlineSeconds": { + "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "revisionHistoryLimit": { + "description": "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels." + }, + "strategy": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentStrategy", + "description": "The deployment strategy to use to replace existing pods with new ones.", + "x-kubernetes-patch-strategy": "retainKeys" + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\"." + } + }, + "required": [ + "selector", + "template" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deploymentspec/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentstatus-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentstatus-apps-v1.json new file mode 100644 index 00000000..1ad25304 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentstatus-apps-v1.json @@ -0,0 +1,80 @@ +{ + "description": "DeploymentStatus is the most recently observed status of the Deployment.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "collisionCount": { + "description": "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a deployment's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.DeploymentCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "observedGeneration": { + "description": "The generation observed by the deployment controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "unavailableReplicas": { + "description": "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "updatedReplicas": { + "description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deploymentstatus/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentstrategy-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentstrategy-apps-v1.json new file mode 100644 index 00000000..061a320c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deploymentstrategy-apps-v1.json @@ -0,0 +1,19 @@ +{ + "description": "DeploymentStrategy describes how to replace existing pods with new ones.", + "properties": { + "rollingUpdate": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.RollingUpdateDeployment", + "description": "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate." + }, + "type": { + "description": "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deploymentstrategy/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/device-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/device-resource-v1alpha3.json new file mode 100644 index 00000000..166e96e9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/device-resource-v1alpha3.json @@ -0,0 +1,22 @@ +{ + "description": "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.", + "properties": { + "basic": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.BasicDevice", + "description": "Basic defines one device instance." + }, + "name": { + "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/device/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceallocationconfiguration-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceallocationconfiguration-resource-v1alpha3.json new file mode 100644 index 00000000..0cc39762 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceallocationconfiguration-resource-v1alpha3.json @@ -0,0 +1,36 @@ +{ + "description": "DeviceAllocationConfiguration gets embedded in an AllocationResult.", + "properties": { + "opaque": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + }, + "requests": { + "description": "Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "source": { + "description": "Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "source" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deviceallocationconfiguration/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceallocationresult-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceallocationresult-resource-v1alpha3.json new file mode 100644 index 00000000..d42d99db --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceallocationresult-resource-v1alpha3.json @@ -0,0 +1,30 @@ +{ + "description": "DeviceAllocationResult is the result of allocating devices.", + "properties": { + "config": { + "description": "This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.\n\nThis includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceAllocationConfiguration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "results": { + "description": "Results lists all allocated devices.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceRequestAllocationResult" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deviceallocationresult/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceattribute-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceattribute-resource-v1alpha3.json new file mode 100644 index 00000000..c24771e5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceattribute-resource-v1alpha3.json @@ -0,0 +1,37 @@ +{ + "description": "DeviceAttribute must have exactly one field set.", + "properties": { + "bool": { + "description": "BoolValue is a true/false value.", + "type": [ + "boolean", + "null" + ] + }, + "int": { + "description": "IntValue is a number.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "string": { + "description": "StringValue is a string. Must not be longer than 64 characters.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deviceattribute/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclaim-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclaim-resource-v1alpha3.json new file mode 100644 index 00000000..7b39b6c6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclaim-resource-v1alpha3.json @@ -0,0 +1,41 @@ +{ + "description": "DeviceClaim defines how to request devices with a ResourceClaim.", + "properties": { + "config": { + "description": "This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClaimConfiguration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "constraints": { + "description": "These constraints must be satisfied by the set of devices that get allocated for the claim.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceConstraint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requests": { + "description": "Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceRequest" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deviceclaim/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclaimconfiguration-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclaimconfiguration-resource-v1alpha3.json new file mode 100644 index 00000000..d1cbfce3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclaimconfiguration-resource-v1alpha3.json @@ -0,0 +1,26 @@ +{ + "description": "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.", + "properties": { + "opaque": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + }, + "requests": { + "description": "Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deviceclaimconfiguration/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclass-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclass-resource-v1alpha3.json new file mode 100644 index 00000000..982d1a34 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclass-resource-v1alpha3.json @@ -0,0 +1,46 @@ +{ + "description": "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeviceClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassSpec", + "description": "Spec defines what can be allocated and how to configure it.\n\nThis is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.\n\nChanging the spec automatically increments the metadata.generation number." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deviceclass/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclassconfiguration-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclassconfiguration-resource-v1alpha3.json new file mode 100644 index 00000000..3175e706 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclassconfiguration-resource-v1alpha3.json @@ -0,0 +1,12 @@ +{ + "description": "DeviceClassConfiguration is used in DeviceClass.", + "properties": { + "opaque": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.OpaqueDeviceConfiguration", + "description": "Opaque provides driver-specific configuration parameters." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deviceclassconfiguration/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclasslist-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclasslist-resource-v1alpha3.json new file mode 100644 index 00000000..5223cc44 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclasslist-resource-v1alpha3.json @@ -0,0 +1,52 @@ +{ + "description": "DeviceClassList is a collection of classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource classes.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "DeviceClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceClassList", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deviceclasslist/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclassspec-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclassspec-resource-v1alpha3.json new file mode 100644 index 00000000..63d0c452 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceclassspec-resource-v1alpha3.json @@ -0,0 +1,34 @@ +{ + "description": "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.", + "properties": { + "config": { + "description": "Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.\n\nThey are passed to the driver, but are not considered while allocating the claim.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClassConfiguration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "selectors": { + "description": "Each selector must be satisfied by a device which is claimed via this class.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceSelector" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "suitableNodes": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet *and* that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation.\n\nSetting this field is optional. If unset, all Nodes are candidates.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deviceclassspec/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceconstraint-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceconstraint-resource-v1alpha3.json new file mode 100644 index 00000000..f8856eaf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceconstraint-resource-v1alpha3.json @@ -0,0 +1,29 @@ +{ + "description": "DeviceConstraint must have exactly one field set besides Requests.", + "properties": { + "matchAttribute": { + "description": "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.\n\nFor example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.\n\nMust include the domain qualifier.", + "type": [ + "string", + "null" + ] + }, + "requests": { + "description": "Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deviceconstraint/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/devicerequest-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/devicerequest-resource-v1alpha3.json new file mode 100644 index 00000000..37be6948 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/devicerequest-resource-v1alpha3.json @@ -0,0 +1,59 @@ +{ + "description": "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.\n\nA DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.", + "properties": { + "adminAccess": { + "description": "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.", + "type": [ + "boolean", + "null" + ] + }, + "allocationMode": { + "description": "AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:\n\n- ExactCount: This request is for a specific number of devices.\n This is the default. The exact number is provided in the\n count field.\n\n- All: This request is for all of the matching devices in a pool.\n Allocation will fail if some devices are already allocated,\n unless adminAccess is requested.\n\nIf AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.\n\nMore modes may get added in the future. Clients must refuse to handle requests with unknown modes.", + "type": [ + "string", + "null" + ] + }, + "count": { + "description": "Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "deviceClassName": { + "description": "DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.\n\nA class is required. Which classes are available depends on the cluster.\n\nAdministrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.\n\nMust be a DNS label.", + "type": [ + "string", + "null" + ] + }, + "selectors": { + "description": "Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceSelector" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name", + "deviceClassName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/devicerequest/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/devicerequestallocationresult-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/devicerequestallocationresult-resource-v1alpha3.json new file mode 100644 index 00000000..4f13e624 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/devicerequestallocationresult-resource-v1alpha3.json @@ -0,0 +1,42 @@ +{ + "description": "DeviceRequestAllocationResult contains the allocation result for one request.", + "properties": { + "device": { + "description": "Device references one device instance via its name in the driver's resource pool. It must be a DNS label.", + "type": [ + "string", + "null" + ] + }, + "driver": { + "description": "Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.", + "type": [ + "string", + "null" + ] + }, + "pool": { + "description": "This name together with the driver name and the device name field identify which device was allocated (`//`).\n\nMust not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.", + "type": [ + "string", + "null" + ] + }, + "request": { + "description": "Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "request", + "driver", + "pool", + "device" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/devicerequestallocationresult/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceselector-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceselector-resource-v1alpha3.json new file mode 100644 index 00000000..3958c0cb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/deviceselector-resource-v1alpha3.json @@ -0,0 +1,12 @@ +{ + "description": "DeviceSelector must have exactly one field set.", + "properties": { + "cel": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.CELDeviceSelector", + "description": "CEL contains a CEL expression for selecting a device." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/deviceselector/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/downwardapiprojection-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/downwardapiprojection-v1.json new file mode 100644 index 00000000..3c2473e6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/downwardapiprojection-v1.json @@ -0,0 +1,19 @@ +{ + "description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.", + "properties": { + "items": { + "description": "Items is a list of DownwardAPIVolume file", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeFile" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/downwardapiprojection/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/downwardapivolumefile-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/downwardapivolumefile-v1.json new file mode 100644 index 00000000..ce32532f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/downwardapivolumefile-v1.json @@ -0,0 +1,34 @@ +{ + "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", + "properties": { + "fieldRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectFieldSelector", + "description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported." + }, + "mode": { + "description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "path": { + "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", + "type": [ + "string", + "null" + ] + }, + "resourceFieldRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported." + } + }, + "required": [ + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/downwardapivolumefile/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/downwardapivolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/downwardapivolumesource-v1.json new file mode 100644 index 00000000..54ba3f8c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/downwardapivolumesource-v1.json @@ -0,0 +1,27 @@ +{ + "description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "items": { + "description": "Items is a list of downward API volume file", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeFile" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/downwardapivolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/emptydirvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/emptydirvolumesource-v1.json new file mode 100644 index 00000000..15b4b010 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/emptydirvolumesource-v1.json @@ -0,0 +1,19 @@ +{ + "description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", + "properties": { + "medium": { + "description": "medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", + "type": [ + "string", + "null" + ] + }, + "sizeLimit": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/emptydirvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpoint-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpoint-discovery-v1.json new file mode 100644 index 00000000..e54ef3e3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpoint-discovery-v1.json @@ -0,0 +1,71 @@ +{ + "description": "Endpoint represents a single logical \"backend\" implementing a service.", + "properties": { + "addresses": { + "description": "addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "conditions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointConditions", + "description": "conditions contains information about the current status of the endpoint." + }, + "deprecatedTopology": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.", + "type": [ + "object", + "null" + ] + }, + "hints": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointHints", + "description": "hints contains information associated with how an endpoint should be consumed." + }, + "hostname": { + "description": "hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.", + "type": [ + "string", + "null" + ] + }, + "nodeName": { + "description": "nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.", + "type": [ + "string", + "null" + ] + }, + "targetRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "targetRef is a reference to a Kubernetes object that represents this endpoint." + }, + "zone": { + "description": "zone is the name of the Zone this endpoint exists in.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "addresses" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/endpoint/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointaddress-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointaddress-v1.json new file mode 100644 index 00000000..c248e927 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointaddress-v1.json @@ -0,0 +1,37 @@ +{ + "description": "EndpointAddress is a tuple that describes single IP address.", + "properties": { + "hostname": { + "description": "The Hostname of this endpoint", + "type": [ + "string", + "null" + ] + }, + "ip": { + "description": "The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).", + "type": [ + "string", + "null" + ] + }, + "nodeName": { + "description": "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", + "type": [ + "string", + "null" + ] + }, + "targetRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "Reference to object providing the endpoint." + } + }, + "required": [ + "ip" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/endpointaddress/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointconditions-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointconditions-discovery-v1.json new file mode 100644 index 00000000..8b763529 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointconditions-discovery-v1.json @@ -0,0 +1,29 @@ +{ + "description": "EndpointConditions represents the current condition of an endpoint.", + "properties": { + "ready": { + "description": "ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.", + "type": [ + "boolean", + "null" + ] + }, + "serving": { + "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.", + "type": [ + "boolean", + "null" + ] + }, + "terminating": { + "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/endpointconditions/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointhints-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointhints-discovery-v1.json new file mode 100644 index 00000000..e3e6908a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointhints-discovery-v1.json @@ -0,0 +1,19 @@ +{ + "description": "EndpointHints provides hints describing how an endpoint should be consumed.", + "properties": { + "forZones": { + "description": "forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.ForZone" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/endpointhints/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointport-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointport-discovery-v1.json new file mode 100644 index 00000000..6cd39182 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointport-discovery-v1.json @@ -0,0 +1,38 @@ +{ + "description": "EndpointPort represents a Port used by an EndpointSlice", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "protocol": { + "description": "protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/endpointport/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointport-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointport-v1.json new file mode 100644 index 00000000..31f301c3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointport-v1.json @@ -0,0 +1,41 @@ +{ + "description": "EndpointPort is a tuple that describes a single port.", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "The port number of the endpoint.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "protocol": { + "description": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/endpointport/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpoints-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpoints-v1.json new file mode 100644 index 00000000..53d0f653 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpoints-v1.json @@ -0,0 +1,50 @@ +{ + "description": "Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Endpoints" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "subsets": { + "description": "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointSubset" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Endpoints", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/endpoints/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointslice-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointslice-discovery-v1.json new file mode 100644 index 00000000..d23c890a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointslice-discovery-v1.json @@ -0,0 +1,72 @@ +{ + "description": "EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.", + "properties": { + "addressType": { + "description": "addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.", + "type": [ + "string", + "null" + ] + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "discovery.k8s.io/v1" + ] + }, + "endpoints": { + "description": "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.Endpoint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EndpointSlice" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "ports": { + "description": "ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates \"all ports\". Each slice may include a maximum of 100 ports.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "addressType", + "endpoints" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/endpointslice/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointslicelist-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointslicelist-discovery-v1.json new file mode 100644 index 00000000..ae292410 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointslicelist-discovery-v1.json @@ -0,0 +1,52 @@ +{ + "description": "EndpointSliceList represents a list of endpoint slices", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "discovery.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of endpoint slices", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.discovery.v1.EndpointSlice" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EndpointSliceList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "discovery.k8s.io", + "kind": "EndpointSliceList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/endpointslicelist/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointslist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointslist-v1.json new file mode 100644 index 00000000..d4d480e1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointslist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "EndpointsList is a list of endpoints.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of endpoints.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Endpoints" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EndpointsList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EndpointsList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/endpointslist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointsubset-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointsubset-v1.json new file mode 100644 index 00000000..344098b4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/endpointsubset-v1.json @@ -0,0 +1,41 @@ +{ + "description": "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]", + "properties": { + "addresses": { + "description": "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointAddress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "notReadyAddresses": { + "description": "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointAddress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "Port numbers available on the related IP addresses.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EndpointPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/endpointsubset/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/envfromsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/envfromsource-v1.json new file mode 100644 index 00000000..b83f236b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/envfromsource-v1.json @@ -0,0 +1,23 @@ +{ + "description": "EnvFromSource represents the source of a set of ConfigMaps", + "properties": { + "configMapRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapEnvSource", + "description": "The ConfigMap to select from" + }, + "prefix": { + "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "type": [ + "string", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretEnvSource", + "description": "The Secret to select from" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/envfromsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/envvar-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/envvar-v1.json new file mode 100644 index 00000000..e459d41c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/envvar-v1.json @@ -0,0 +1,29 @@ +{ + "description": "EnvVar represents an environment variable present in a Container.", + "properties": { + "name": { + "description": "Name of the environment variable. Must be a C_IDENTIFIER.", + "type": [ + "string", + "null" + ] + }, + "value": { + "description": "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".", + "type": [ + "string", + "null" + ] + }, + "valueFrom": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvVarSource", + "description": "Source for the environment variable's value. Cannot be used if value is not empty." + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/envvar/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/envvarsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/envvarsource-v1.json new file mode 100644 index 00000000..ce561c30 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/envvarsource-v1.json @@ -0,0 +1,24 @@ +{ + "description": "EnvVarSource represents a source for the value of an EnvVar.", + "properties": { + "configMapKeyRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapKeySelector", + "description": "Selects a key of a ConfigMap." + }, + "fieldRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectFieldSelector", + "description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs." + }, + "resourceFieldRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceFieldSelector", + "description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported." + }, + "secretKeyRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretKeySelector", + "description": "Selects a key of a secret in the pod's namespace" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/envvarsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ephemeralcontainer-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ephemeralcontainer-v1.json new file mode 100644 index 00000000..2c317ba9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ephemeralcontainer-v1.json @@ -0,0 +1,227 @@ +{ + "description": "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.", + "properties": { + "args": { + "description": "Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "command": { + "description": "Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "env": { + "description": "List of environment variables to set in the container. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvVar" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "envFrom": { + "description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EnvFromSource" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "image": { + "description": "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", + "type": [ + "string", + "null" + ] + }, + "imagePullPolicy": { + "description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images", + "type": [ + "string", + "null" + ] + }, + "lifecycle": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Lifecycle", + "description": "Lifecycle is not allowed for ephemeral containers." + }, + "livenessProbe": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "name": { + "description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "Ports are not allowed for ephemeral containers.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "containerPort", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "containerPort", + "x-kubernetes-patch-strategy": "merge" + }, + "readinessProbe": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "resizePolicy": { + "description": "Resources resize policy for the container.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerResizePolicy" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceRequirements", + "description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod." + }, + "restartPolicy": { + "description": "Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.", + "type": [ + "string", + "null" + ] + }, + "securityContext": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecurityContext", + "description": "Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext." + }, + "startupProbe": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Probe", + "description": "Probes are not allowed for ephemeral containers." + }, + "stdin": { + "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "stdinOnce": { + "description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false", + "type": [ + "boolean", + "null" + ] + }, + "targetContainerName": { + "description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.", + "type": [ + "string", + "null" + ] + }, + "terminationMessagePath": { + "description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "terminationMessagePolicy": { + "description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.", + "type": [ + "string", + "null" + ] + }, + "tty": { + "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", + "type": [ + "boolean", + "null" + ] + }, + "volumeDevices": { + "description": "volumeDevices is the list of block devices to be used by the container.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeDevice" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "devicePath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "devicePath", + "x-kubernetes-patch-strategy": "merge" + }, + "volumeMounts": { + "description": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeMount" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "mountPath" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "mountPath", + "x-kubernetes-patch-strategy": "merge" + }, + "workingDir": { + "description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ephemeralcontainer/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ephemeralvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ephemeralvolumesource-v1.json new file mode 100644 index 00000000..94b23c59 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ephemeralvolumesource-v1.json @@ -0,0 +1,12 @@ +{ + "description": "Represents an ephemeral volume that is handled by a normal storage driver.", + "properties": { + "volumeClaimTemplate": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimTemplate", + "description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `-` where `` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ephemeralvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/event-events-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/event-events-v1.json new file mode 100644 index 00000000..9fdcec0d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/event-events-v1.json @@ -0,0 +1,120 @@ +{ + "description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "properties": { + "action": { + "description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": [ + "string", + "null" + ] + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "events.k8s.io/v1" + ] + }, + "deprecatedCount": { + "description": "deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "deprecatedFirstTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "deprecatedLastTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "deprecatedSource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EventSource", + "description": "deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type." + }, + "eventTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "eventTime is the time when this Event was first observed. It is required." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Event" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "note": { + "description": "note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": [ + "string", + "null" + ] + }, + "regarding": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object." + }, + "related": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object." + }, + "reportingController": { + "description": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.", + "type": [ + "string", + "null" + ] + }, + "reportingInstance": { + "description": "reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.", + "type": [ + "string", + "null" + ] + }, + "series": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.events.v1.EventSeries", + "description": "series is data about the Event series this event represents or nil if it's a singleton Event." + }, + "type": { + "description": "type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "eventTime" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "events.k8s.io", + "kind": "Event", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/event/events/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/event-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/event-v1.json new file mode 100644 index 00000000..ff10fa9e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/event-v1.json @@ -0,0 +1,121 @@ +{ + "description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.", + "properties": { + "action": { + "description": "What action was taken/failed regarding to the Regarding object.", + "type": [ + "string", + "null" + ] + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "count": { + "description": "The number of times this event has occurred.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "eventTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "Time when this Event was first observed." + }, + "firstTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)" + }, + "involvedObject": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "The object that this event is about." + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Event" + ] + }, + "lastTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The time at which the most recent occurrence of this event was recorded." + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": [ + "string", + "null" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "reason": { + "description": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + "type": [ + "string", + "null" + ] + }, + "related": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "Optional secondary object for more complex actions." + }, + "reportingComponent": { + "description": "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", + "type": [ + "string", + "null" + ] + }, + "reportingInstance": { + "description": "ID of the controller instance, e.g. `kubelet-xyzf`.", + "type": [ + "string", + "null" + ] + }, + "series": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EventSeries", + "description": "Data about the Event series this event represents or nil if it's a singleton Event." + }, + "source": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EventSource", + "description": "The component reporting this event. Should be a short machine understandable string." + }, + "type": { + "description": "Type of this event (Normal, Warning), new types could be added in the future", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "metadata", + "involvedObject" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Event", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/event/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventlist-events-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventlist-events-v1.json new file mode 100644 index 00000000..5268ba39 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventlist-events-v1.json @@ -0,0 +1,52 @@ +{ + "description": "EventList is a list of Event objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "events.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.events.v1.Event" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EventList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "events.k8s.io", + "kind": "EventList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/eventlist/events/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventlist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventlist-v1.json new file mode 100644 index 00000000..2ddbf0cd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventlist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "EventList is a list of events.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of events", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Event" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "EventList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "EventList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/eventlist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventseries-events-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventseries-events-v1.json new file mode 100644 index 00000000..166efc63 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventseries-events-v1.json @@ -0,0 +1,24 @@ +{ + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations.", + "properties": { + "count": { + "description": "count is the number of occurrences in this series up to the last heartbeat time.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lastObservedTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "lastObservedTime is the time when last Event from the series was seen before last heartbeat." + } + }, + "required": [ + "count", + "lastObservedTime" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/eventseries/events/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventseries-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventseries-v1.json new file mode 100644 index 00000000..fd9810d0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventseries-v1.json @@ -0,0 +1,20 @@ +{ + "description": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", + "properties": { + "count": { + "description": "Number of occurrences in this series up to the last heartbeat time", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lastObservedTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "Time of the last occurrence observed" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/eventseries/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventsource-v1.json new file mode 100644 index 00000000..3fd65e7c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eventsource-v1.json @@ -0,0 +1,22 @@ +{ + "description": "EventSource contains information for an event.", + "properties": { + "component": { + "description": "Component from which the event is generated.", + "type": [ + "string", + "null" + ] + }, + "host": { + "description": "Node name on which the event is generated.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/eventsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eviction-policy-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eviction-policy-v1.json new file mode 100644 index 00000000..5b2c8926 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/eviction-policy-v1.json @@ -0,0 +1,43 @@ +{ + "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "policy/v1" + ] + }, + "deleteOptions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions", + "description": "DeleteOptions may be provided" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Eviction" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "ObjectMeta describes the pod that is being evicted." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "Eviction", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/eviction/policy/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/execaction-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/execaction-v1.json new file mode 100644 index 00000000..13061e07 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/execaction-v1.json @@ -0,0 +1,22 @@ +{ + "description": "ExecAction describes a \"run in container\" action.", + "properties": { + "command": { + "description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/execaction/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/exemptprioritylevelconfiguration-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/exemptprioritylevelconfiguration-flowcontrol-v1.json new file mode 100644 index 00000000..c6ee1cf8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/exemptprioritylevelconfiguration-flowcontrol-v1.json @@ -0,0 +1,24 @@ +{ + "description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", + "properties": { + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/exemptprioritylevelconfiguration/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/exemptprioritylevelconfiguration-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/exemptprioritylevelconfiguration-flowcontrol-v1beta3.json new file mode 100644 index 00000000..fae363d8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/exemptprioritylevelconfiguration-flowcontrol-v1beta3.json @@ -0,0 +1,24 @@ +{ + "description": "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.", + "properties": { + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. This value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats nominally reserved for this priority level. This DOES NOT limit the dispatching from this priority level but affects the other priority levels through the borrowing mechanism. The server's concurrency limit (ServerCL) is divided among all the priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of zero.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/exemptprioritylevelconfiguration/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/expressionwarning-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/expressionwarning-admissionregistration-v1.json new file mode 100644 index 00000000..f6e2f883 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/expressionwarning-admissionregistration-v1.json @@ -0,0 +1,26 @@ +{ + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": [ + "string", + "null" + ] + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/expressionwarning/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/expressionwarning-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/expressionwarning-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..5d09f6eb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/expressionwarning-admissionregistration-v1alpha1.json @@ -0,0 +1,26 @@ +{ + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": [ + "string", + "null" + ] + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/expressionwarning/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/expressionwarning-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/expressionwarning-admissionregistration-v1beta1.json new file mode 100644 index 00000000..2125243c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/expressionwarning-admissionregistration-v1beta1.json @@ -0,0 +1,26 @@ +{ + "description": "ExpressionWarning is a warning information that targets a specific expression.", + "properties": { + "fieldRef": { + "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "type": [ + "string", + "null" + ] + }, + "warning": { + "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "fieldRef", + "warning" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/expressionwarning/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/externaldocumentation-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/externaldocumentation-apiextensions-v1.json new file mode 100644 index 00000000..82f1611c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/externaldocumentation-apiextensions-v1.json @@ -0,0 +1,20 @@ +{ + "description": "ExternalDocumentation allows referencing an external resource for extended documentation.", + "properties": { + "description": { + "type": [ + "string", + "null" + ] + }, + "url": { + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/externaldocumentation/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/externalmetricsource-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/externalmetricsource-autoscaling-v2.json new file mode 100644 index 00000000..d6d5e101 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/externalmetricsource-autoscaling-v2.json @@ -0,0 +1,20 @@ +{ + "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", + "properties": { + "metric": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "metric", + "target" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/externalmetricsource/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/externalmetricstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/externalmetricstatus-autoscaling-v2.json new file mode 100644 index 00000000..119c7025 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/externalmetricstatus-autoscaling-v2.json @@ -0,0 +1,20 @@ +{ + "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", + "properties": { + "current": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "metric": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/externalmetricstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fcvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fcvolumesource-v1.json new file mode 100644 index 00000000..d7c4b7ff --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fcvolumesource-v1.json @@ -0,0 +1,58 @@ +{ + "description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "lun": { + "description": "lun is Optional: FC target lun number", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "targetWWNs": { + "description": "targetWWNs is Optional: FC target worldwide names (WWNs)", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "wwids": { + "description": "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/fcvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fieldselectorattributes-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fieldselectorattributes-authorization-v1.json new file mode 100644 index 00000000..c0bc1ee7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fieldselectorattributes-authorization-v1.json @@ -0,0 +1,26 @@ +{ + "description": "FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.", + "properties": { + "rawSelector": { + "description": "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.", + "type": [ + "string", + "null" + ] + }, + "requirements": { + "description": "requirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.FieldSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/fieldselectorattributes/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fieldselectorrequirement-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fieldselectorrequirement-meta-v1.json new file mode 100644 index 00000000..22dacef0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fieldselectorrequirement-meta-v1.json @@ -0,0 +1,40 @@ +{ + "description": "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the field selector key that the requirement applies to.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.", + "type": [ + "string", + "null" + ] + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/fieldselectorrequirement/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fieldsv1-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fieldsv1-meta-v1.json new file mode 100644 index 00000000..519fa28e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/fieldsv1-meta-v1.json @@ -0,0 +1,6 @@ +{ + "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff", + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/fieldsv1/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flexpersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flexpersistentvolumesource-v1.json new file mode 100644 index 00000000..de1e2f75 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flexpersistentvolumesource-v1.json @@ -0,0 +1,49 @@ +{ + "description": "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", + "type": [ + "string", + "null" + ] + }, + "fsType": { + "description": "fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": [ + "string", + "null" + ] + }, + "options": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": [ + "object", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + } + }, + "required": [ + "driver" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flexpersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flexvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flexvolumesource-v1.json new file mode 100644 index 00000000..30a280fa --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flexvolumesource-v1.json @@ -0,0 +1,49 @@ +{ + "description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", + "properties": { + "driver": { + "description": "driver is the name of the driver to use for this volume.", + "type": [ + "string", + "null" + ] + }, + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.", + "type": [ + "string", + "null" + ] + }, + "options": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "options is Optional: this field holds extra command options if any.", + "type": [ + "object", + "null" + ] + }, + "readOnly": { + "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts." + } + }, + "required": [ + "driver" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flexvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flockervolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flockervolumesource-v1.json new file mode 100644 index 00000000..417a21a9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flockervolumesource-v1.json @@ -0,0 +1,22 @@ +{ + "description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.", + "properties": { + "datasetName": { + "description": "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", + "type": [ + "string", + "null" + ] + }, + "datasetUUID": { + "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flockervolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowdistinguishermethod-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowdistinguishermethod-flowcontrol-v1.json new file mode 100644 index 00000000..28f6e792 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowdistinguishermethod-flowcontrol-v1.json @@ -0,0 +1,18 @@ +{ + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", + "properties": { + "type": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flowdistinguishermethod/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowdistinguishermethod-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowdistinguishermethod-flowcontrol-v1beta3.json new file mode 100644 index 00000000..24b31005 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowdistinguishermethod-flowcontrol-v1beta3.json @@ -0,0 +1,18 @@ +{ + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", + "properties": { + "type": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flowdistinguishermethod/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschema-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschema-flowcontrol-v1.json new file mode 100644 index 00000000..ecf51a47 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschema-flowcontrol-v1.json @@ -0,0 +1,47 @@ +{ + "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchema" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flowschema/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschema-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschema-flowcontrol-v1beta3.json new file mode 100644 index 00000000..777116ce --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschema-flowcontrol-v1beta3.json @@ -0,0 +1,47 @@ +{ + "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchema" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flowschema/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemacondition-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemacondition-flowcontrol-v1.json new file mode 100644 index 00000000..db3c7988 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemacondition-flowcontrol-v1.json @@ -0,0 +1,40 @@ +{ + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flowschemacondition/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemacondition-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemacondition-flowcontrol-v1beta3.json new file mode 100644 index 00000000..625df894 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemacondition-flowcontrol-v1beta3.json @@ -0,0 +1,40 @@ +{ + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flowschemacondition/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemalist-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemalist-flowcontrol-v1.json new file mode 100644 index 00000000..8c695f8d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemalist-flowcontrol-v1.json @@ -0,0 +1,52 @@ +{ + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "items": { + "description": "`items` is a list of FlowSchemas.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchema" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchemaList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flowschemalist/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemalist-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemalist-flowcontrol-v1beta3.json new file mode 100644 index 00000000..39ab525e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemalist-flowcontrol-v1beta3.json @@ -0,0 +1,52 @@ +{ + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "items": { + "description": "`items` is a list of FlowSchemas.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "FlowSchemaList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1beta3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flowschemalist/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemaspec-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemaspec-flowcontrol-v1.json new file mode 100644 index 00000000..e32229de --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemaspec-flowcontrol-v1.json @@ -0,0 +1,38 @@ +{ + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + }, + "matchingPrecedence": { + "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "priorityLevelConfiguration": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + }, + "rules": { + "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PolicyRulesWithSubjects" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flowschemaspec/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemaspec-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemaspec-flowcontrol-v1beta3.json new file mode 100644 index 00000000..af0c4727 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemaspec-flowcontrol-v1beta3.json @@ -0,0 +1,38 @@ +{ + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + }, + "matchingPrecedence": { + "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "priorityLevelConfiguration": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + }, + "rules": { + "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flowschemaspec/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemastatus-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemastatus-flowcontrol-v1.json new file mode 100644 index 00000000..5975bdb7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemastatus-flowcontrol-v1.json @@ -0,0 +1,24 @@ +{ + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.FlowSchemaCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flowschemastatus/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemastatus-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemastatus-flowcontrol-v1beta3.json new file mode 100644 index 00000000..8edf28b1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/flowschemastatus-flowcontrol-v1beta3.json @@ -0,0 +1,24 @@ +{ + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/flowschemastatus/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/forzone-discovery-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/forzone-discovery-v1.json new file mode 100644 index 00000000..e64e3ac1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/forzone-discovery-v1.json @@ -0,0 +1,18 @@ +{ + "description": "ForZone provides information about which zones should consume this endpoint.", + "properties": { + "name": { + "description": "name represents the name of the zone.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/forzone/discovery/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/gcepersistentdiskvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/gcepersistentdiskvolumesource-v1.json new file mode 100644 index 00000000..8716a0ae --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/gcepersistentdiskvolumesource-v1.json @@ -0,0 +1,40 @@ +{ + "description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": [ + "string", + "null" + ] + }, + "partition": { + "description": "partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "pdName": { + "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "pdName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/gcepersistentdiskvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/gitrepovolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/gitrepovolumesource-v1.json new file mode 100644 index 00000000..1f4cbd91 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/gitrepovolumesource-v1.json @@ -0,0 +1,32 @@ +{ + "description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + "properties": { + "directory": { + "description": "directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.", + "type": [ + "string", + "null" + ] + }, + "repository": { + "description": "repository is the URL", + "type": [ + "string", + "null" + ] + }, + "revision": { + "description": "revision is the commit hash for the specified revision.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "repository" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/gitrepovolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/glusterfspersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/glusterfspersistentvolumesource-v1.json new file mode 100644 index 00000000..d39ada17 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/glusterfspersistentvolumesource-v1.json @@ -0,0 +1,40 @@ +{ + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "string", + "null" + ] + }, + "endpointsNamespace": { + "description": "endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "endpoints", + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/glusterfspersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/glusterfsvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/glusterfsvolumesource-v1.json new file mode 100644 index 00000000..dde99cfd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/glusterfsvolumesource-v1.json @@ -0,0 +1,33 @@ +{ + "description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", + "properties": { + "endpoints": { + "description": "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "endpoints", + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/glusterfsvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupsubject-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupsubject-flowcontrol-v1.json new file mode 100644 index 00000000..537cba64 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupsubject-flowcontrol-v1.json @@ -0,0 +1,18 @@ +{ + "description": "GroupSubject holds detailed information for group-kind subject.", + "properties": { + "name": { + "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/groupsubject/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupsubject-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupsubject-flowcontrol-v1beta3.json new file mode 100644 index 00000000..2a690297 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupsubject-flowcontrol-v1beta3.json @@ -0,0 +1,18 @@ +{ + "description": "GroupSubject holds detailed information for group-kind subject.", + "properties": { + "name": { + "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/groupsubject/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupversionfordiscovery-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupversionfordiscovery-meta-v1.json new file mode 100644 index 00000000..491a3bc7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupversionfordiscovery-meta-v1.json @@ -0,0 +1,26 @@ +{ + "description": "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", + "properties": { + "groupVersion": { + "description": "groupVersion specifies the API group and version in the form \"group/version\"", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "groupVersion", + "version" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/groupversionfordiscovery/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupversionresource-storagemigration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupversionresource-storagemigration-v1alpha1.json new file mode 100644 index 00000000..a222b877 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/groupversionresource-storagemigration-v1alpha1.json @@ -0,0 +1,29 @@ +{ + "description": "The names of the group, the version, and the resource.", + "properties": { + "group": { + "description": "The name of the group.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "The name of the resource.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "The name of the version.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/groupversionresource/storagemigration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/grpcaction-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/grpcaction-v1.json new file mode 100644 index 00000000..7de62bab --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/grpcaction-v1.json @@ -0,0 +1,25 @@ +{ + "properties": { + "port": { + "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "service": { + "description": "Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/grpcaction/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscaler-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscaler-autoscaling-v1.json new file mode 100644 index 00000000..fc1c8e30 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscaler-autoscaling-v1.json @@ -0,0 +1,47 @@ +{ + "description": "configuration of a horizontal pod autoscaler.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscaler" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec", + "description": "spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/horizontalpodautoscaler/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscaler-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscaler-autoscaling-v2.json new file mode 100644 index 00000000..ae480109 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscaler-autoscaling-v2.json @@ -0,0 +1,47 @@ +{ + "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v2" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscaler" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerSpec", + "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerStatus", + "description": "status is the current information about the autoscaler." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/horizontalpodautoscaler/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerbehavior-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerbehavior-autoscaling-v2.json new file mode 100644 index 00000000..217d3d7e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerbehavior-autoscaling-v2.json @@ -0,0 +1,16 @@ +{ + "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", + "properties": { + "scaleDown": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HPAScalingRules", + "description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)." + }, + "scaleUp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HPAScalingRules", + "description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/horizontalpodautoscalerbehavior/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalercondition-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalercondition-autoscaling-v2.json new file mode 100644 index 00000000..4d969f2a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalercondition-autoscaling-v2.json @@ -0,0 +1,44 @@ +{ + "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the last time the condition transitioned from one status to another" + }, + "message": { + "description": "message is a human-readable explanation containing details about the transition", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is the reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "status is the status of the condition (True, False, Unknown)", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type describes the current condition", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/horizontalpodautoscalercondition/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerlist-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerlist-autoscaling-v1.json new file mode 100644 index 00000000..bdcde37f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerlist-autoscaling-v1.json @@ -0,0 +1,52 @@ +{ + "description": "list of horizontal pod autoscaler objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v1" + ] + }, + "items": { + "description": "items is the list of horizontal pod autoscaler objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscalerList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/horizontalpodautoscalerlist/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerlist-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerlist-autoscaling-v2.json new file mode 100644 index 00000000..2dc07f0a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerlist-autoscaling-v2.json @@ -0,0 +1,52 @@ +{ + "description": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v2" + ] + }, + "items": { + "description": "items is the list of horizontal pod autoscaler objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscaler" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "HorizontalPodAutoscalerList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "metadata is the standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "HorizontalPodAutoscalerList", + "version": "v2" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/horizontalpodautoscalerlist/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerspec-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerspec-autoscaling-v1.json new file mode 100644 index 00000000..139b4706 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerspec-autoscaling-v1.json @@ -0,0 +1,40 @@ +{ + "description": "specification of a horizontal pod autoscaler.", + "properties": { + "maxReplicas": { + "description": "maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "scaleTargetRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.CrossVersionObjectReference", + "description": "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource." + }, + "targetCPUUtilizationPercentage": { + "description": "targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "scaleTargetRef", + "maxReplicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/horizontalpodautoscalerspec/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerspec-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerspec-autoscaling-v2.json new file mode 100644 index 00000000..e0b27dce --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerspec-autoscaling-v2.json @@ -0,0 +1,47 @@ +{ + "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", + "properties": { + "behavior": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerBehavior", + "description": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used." + }, + "maxReplicas": { + "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "metrics": { + "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricSpec" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "minReplicas": { + "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "scaleTargetRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." + } + }, + "required": [ + "scaleTargetRef", + "maxReplicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/horizontalpodautoscalerspec/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerstatus-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerstatus-autoscaling-v1.json new file mode 100644 index 00000000..e483ae04 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerstatus-autoscaling-v1.json @@ -0,0 +1,48 @@ +{ + "description": "current status of a horizontal pod autoscaler", + "properties": { + "currentCPUUtilizationPercentage": { + "description": "currentCPUUtilizationPercentage is the current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "currentReplicas": { + "description": "currentReplicas is the current number of replicas of pods managed by this autoscaler.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lastScaleTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed." + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "currentReplicas", + "desiredReplicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/horizontalpodautoscalerstatus/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerstatus-autoscaling-v2.json new file mode 100644 index 00000000..0097ac7e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/horizontalpodautoscalerstatus-autoscaling-v2.json @@ -0,0 +1,66 @@ +{ + "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", + "properties": { + "conditions": { + "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HorizontalPodAutoscalerCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentMetrics": { + "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "currentReplicas": { + "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "desiredReplicas": { + "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lastScaleTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed." + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed by this autoscaler.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "desiredReplicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/horizontalpodautoscalerstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hostalias-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hostalias-v1.json new file mode 100644 index 00000000..61af8d55 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hostalias-v1.json @@ -0,0 +1,32 @@ +{ + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "properties": { + "hostnames": { + "description": "Hostnames for the above IP address.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ip": { + "description": "IP address of the host file entry.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "ip" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/hostalias/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hostip-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hostip-v1.json new file mode 100644 index 00000000..4881616a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hostip-v1.json @@ -0,0 +1,18 @@ +{ + "description": "HostIP represents a single IP address allocated to the host.", + "properties": { + "ip": { + "description": "IP is the IP address assigned to the host", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "ip" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/hostip/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hostpathvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hostpathvolumesource-v1.json new file mode 100644 index 00000000..ff958387 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hostpathvolumesource-v1.json @@ -0,0 +1,25 @@ +{ + "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/hostpathvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hpascalingpolicy-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hpascalingpolicy-autoscaling-v2.json new file mode 100644 index 00000000..e8fbf843 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hpascalingpolicy-autoscaling-v2.json @@ -0,0 +1,36 @@ +{ + "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", + "properties": { + "periodSeconds": { + "description": "periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "type": { + "description": "type is used to specify the scaling policy.", + "type": [ + "string", + "null" + ] + }, + "value": { + "description": "value contains the amount of change which is permitted by the policy. It must be greater than zero", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "type", + "value", + "periodSeconds" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/hpascalingpolicy/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hpascalingrules-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hpascalingrules-autoscaling-v2.json new file mode 100644 index 00000000..65f05c58 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/hpascalingrules-autoscaling-v2.json @@ -0,0 +1,34 @@ +{ + "description": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.", + "properties": { + "policies": { + "description": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.HPAScalingPolicy" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "selectPolicy": { + "description": "selectPolicy is used to specify which policy should be used. If not set, the default value Max is used.", + "type": [ + "string", + "null" + ] + }, + "stabilizationWindowSeconds": { + "description": "stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/hpascalingrules/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpgetaction-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpgetaction-v1.json new file mode 100644 index 00000000..fae96f83 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpgetaction-v1.json @@ -0,0 +1,47 @@ +{ + "description": "HTTPGetAction describes an action based on HTTP Get requests.", + "properties": { + "host": { + "description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", + "type": [ + "string", + "null" + ] + }, + "httpHeaders": { + "description": "Custom headers to set in the request. HTTP allows repeated headers.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HTTPHeader" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "path": { + "description": "Path to access on the HTTP server.", + "type": [ + "string", + "null" + ] + }, + "port": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + }, + "scheme": { + "description": "Scheme to use for connecting to the host. Defaults to HTTP.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/httpgetaction/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpheader-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpheader-v1.json new file mode 100644 index 00000000..8fa37962 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpheader-v1.json @@ -0,0 +1,26 @@ +{ + "description": "HTTPHeader describes a custom header to be used in HTTP probes", + "properties": { + "name": { + "description": "The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.", + "type": [ + "string", + "null" + ] + }, + "value": { + "description": "The header field value", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "value" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/httpheader/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpingresspath-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpingresspath-networking-v1.json new file mode 100644 index 00000000..beb18cfd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpingresspath-networking-v1.json @@ -0,0 +1,30 @@ +{ + "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", + "properties": { + "backend": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressBackend", + "description": "backend defines the referenced service endpoint to which the traffic will be forwarded to." + }, + "path": { + "description": "path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".", + "type": [ + "string", + "null" + ] + }, + "pathType": { + "description": "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "pathType", + "backend" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/httpingresspath/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpingressrulevalue-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpingressrulevalue-networking-v1.json new file mode 100644 index 00000000..1e42a3a4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/httpingressrulevalue-networking-v1.json @@ -0,0 +1,22 @@ +{ + "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", + "properties": { + "paths": { + "description": "paths is a collection of paths that map requests to backends.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.HTTPIngressPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "paths" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/httpingressrulevalue/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/imagevolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/imagevolumesource-v1.json new file mode 100644 index 00000000..3fecd5e8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/imagevolumesource-v1.json @@ -0,0 +1,22 @@ +{ + "description": "ImageVolumeSource represents a image volume resource.", + "properties": { + "pullPolicy": { + "description": "Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.", + "type": [ + "string", + "null" + ] + }, + "reference": { + "description": "Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/imagevolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/info-pkg-version.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/info-pkg-version.json new file mode 100644 index 00000000..caf41be9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/info-pkg-version.json @@ -0,0 +1,73 @@ +{ + "description": "Info contains versioning information. how we'll want to distribute that information.", + "properties": { + "buildDate": { + "type": [ + "string", + "null" + ] + }, + "compiler": { + "type": [ + "string", + "null" + ] + }, + "gitCommit": { + "type": [ + "string", + "null" + ] + }, + "gitTreeState": { + "type": [ + "string", + "null" + ] + }, + "gitVersion": { + "type": [ + "string", + "null" + ] + }, + "goVersion": { + "type": [ + "string", + "null" + ] + }, + "major": { + "type": [ + "string", + "null" + ] + }, + "minor": { + "type": [ + "string", + "null" + ] + }, + "platform": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "major", + "minor", + "gitVersion", + "gitCommit", + "gitTreeState", + "buildDate", + "goVersion", + "compiler", + "platform" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/info/pkg/version" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingress-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingress-networking-v1.json new file mode 100644 index 00000000..64f2db84 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingress-networking-v1.json @@ -0,0 +1,47 @@ +{ + "description": "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Ingress" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressSpec", + "description": "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressStatus", + "description": "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingress/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressbackend-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressbackend-networking-v1.json new file mode 100644 index 00000000..6b312489 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressbackend-networking-v1.json @@ -0,0 +1,16 @@ +{ + "description": "IngressBackend describes all endpoints for a given service and port.", + "properties": { + "resource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TypedLocalObjectReference", + "description": "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\"." + }, + "service": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressServiceBackend", + "description": "service references a service as a backend. This is a mutually exclusive setting with \"Resource\"." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingressbackend/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclass-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclass-networking-v1.json new file mode 100644 index 00000000..d2a69a78 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclass-networking-v1.json @@ -0,0 +1,43 @@ +{ + "description": "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IngressClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClassSpec", + "description": "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClass", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingressclass/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclasslist-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclasslist-networking-v1.json new file mode 100644 index 00000000..14a7e9f3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclasslist-networking-v1.json @@ -0,0 +1,52 @@ +{ + "description": "IngressClassList is a collection of IngressClasses.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of IngressClasses.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IngressClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressClassList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingressclasslist/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclassparametersreference-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclassparametersreference-networking-v1.json new file mode 100644 index 00000000..cf876f0c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclassparametersreference-networking-v1.json @@ -0,0 +1,47 @@ +{ + "description": "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", + "properties": { + "apiGroup": { + "description": "apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "kind is the type of resource being referenced.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name is the name of resource being referenced.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", + "type": [ + "string", + "null" + ] + }, + "scope": { + "description": "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingressclassparametersreference/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclassspec-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclassspec-networking-v1.json new file mode 100644 index 00000000..4ef19e2a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressclassspec-networking-v1.json @@ -0,0 +1,19 @@ +{ + "description": "IngressClassSpec provides information about the class of an Ingress.", + "properties": { + "controller": { + "description": "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "parameters": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressClassParametersReference", + "description": "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingressclassspec/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingresslist-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingresslist-networking-v1.json new file mode 100644 index 00000000..18c2bbe8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingresslist-networking-v1.json @@ -0,0 +1,52 @@ +{ + "description": "IngressList is a collection of Ingress.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of Ingress.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.Ingress" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IngressList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IngressList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingresslist/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressloadbalanceringress-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressloadbalanceringress-networking-v1.json new file mode 100644 index 00000000..4ea44175 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressloadbalanceringress-networking-v1.json @@ -0,0 +1,33 @@ +{ + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "properties": { + "hostname": { + "description": "hostname is set for load-balancer ingress points that are DNS based.", + "type": [ + "string", + "null" + ] + }, + "ip": { + "description": "ip is set for load-balancer ingress points that are IP based.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "ports provides information about the ports exposed by this LoadBalancer.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressPortStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingressloadbalanceringress/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressloadbalancerstatus-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressloadbalancerstatus-networking-v1.json new file mode 100644 index 00000000..f773b23f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressloadbalancerstatus-networking-v1.json @@ -0,0 +1,19 @@ +{ + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "ingress is a list containing ingress points for the load-balancer.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressLoadBalancerIngress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingressloadbalancerstatus/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressportstatus-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressportstatus-networking-v1.json new file mode 100644 index 00000000..9146d45e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressportstatus-networking-v1.json @@ -0,0 +1,34 @@ +{ + "description": "IngressPortStatus represents the error condition of a service port", + "properties": { + "error": { + "description": "error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "port is the port number of the ingress port.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "protocol": { + "description": "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingressportstatus/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressrule-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressrule-networking-v1.json new file mode 100644 index 00000000..0f7a5099 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressrule-networking-v1.json @@ -0,0 +1,18 @@ +{ + "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", + "properties": { + "host": { + "description": "host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nhost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", + "type": [ + "string", + "null" + ] + }, + "http": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.HTTPIngressRuleValue" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingressrule/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressservicebackend-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressservicebackend-networking-v1.json new file mode 100644 index 00000000..755840b3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressservicebackend-networking-v1.json @@ -0,0 +1,22 @@ +{ + "description": "IngressServiceBackend references a Kubernetes Service as a Backend.", + "properties": { + "name": { + "description": "name is the referenced service. The service must exist in the same namespace as the Ingress object.", + "type": [ + "string", + "null" + ] + }, + "port": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.ServiceBackendPort", + "description": "port of the referenced service. A port name or port number is required for a IngressServiceBackend." + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingressservicebackend/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressspec-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressspec-networking-v1.json new file mode 100644 index 00000000..33b09ebc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressspec-networking-v1.json @@ -0,0 +1,41 @@ +{ + "description": "IngressSpec describes the Ingress the user wishes to exist.", + "properties": { + "defaultBackend": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressBackend", + "description": "defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller." + }, + "ingressClassName": { + "description": "ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.", + "type": [ + "string", + "null" + ] + }, + "rules": { + "description": "rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "tls": { + "description": "tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressTLS" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingressspec/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressstatus-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressstatus-networking-v1.json new file mode 100644 index 00000000..e408918f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingressstatus-networking-v1.json @@ -0,0 +1,12 @@ +{ + "description": "IngressStatus describe the current state of the Ingress.", + "properties": { + "loadBalancer": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IngressLoadBalancerStatus", + "description": "loadBalancer contains the current status of the load-balancer." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingressstatus/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingresstls-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingresstls-networking-v1.json new file mode 100644 index 00000000..e57ceba2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ingresstls-networking-v1.json @@ -0,0 +1,29 @@ +{ + "description": "IngressTLS describes the transport layer security associated with an ingress.", + "properties": { + "hosts": { + "description": "hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "secretName": { + "description": "secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the \"Host\" header is used for routing.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ingresstls/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/intorstring-util-intstr.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/intorstring-util-intstr.json new file mode 100644 index 00000000..2a8d6eff --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/intorstring-util-intstr.json @@ -0,0 +1,13 @@ +{ + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "$id": "https://kubernetes.io/api/intorstring/util/intstr" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipaddress-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipaddress-networking-v1beta1.json new file mode 100644 index 00000000..350ac3d9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipaddress-networking-v1beta1.json @@ -0,0 +1,43 @@ +{ + "description": "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IPAddress" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.IPAddressSpec", + "description": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddress", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ipaddress/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipaddresslist-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipaddresslist-networking-v1beta1.json new file mode 100644 index 00000000..6326db32 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipaddresslist-networking-v1beta1.json @@ -0,0 +1,52 @@ +{ + "description": "IPAddressList contains a list of IPAddress.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "items": { + "description": "items is the list of IPAddresses.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.IPAddress" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "IPAddressList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "IPAddressList", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ipaddresslist/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipaddressspec-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipaddressspec-networking-v1beta1.json new file mode 100644 index 00000000..7221fcc9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipaddressspec-networking-v1beta1.json @@ -0,0 +1,15 @@ +{ + "description": "IPAddressSpec describe the attributes in an IP Address.", + "properties": { + "parentRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ParentReference", + "description": "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object." + } + }, + "required": [ + "parentRef" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ipaddressspec/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipblock-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipblock-networking-v1.json new file mode 100644 index 00000000..327db594 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ipblock-networking-v1.json @@ -0,0 +1,32 @@ +{ + "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + "properties": { + "cidr": { + "description": "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", + "type": [ + "string", + "null" + ] + }, + "except": { + "description": "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "cidr" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ipblock/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/iscsipersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/iscsipersistentvolumesource-v1.json new file mode 100644 index 00000000..94cba1e5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/iscsipersistentvolumesource-v1.json @@ -0,0 +1,95 @@ +{ + "description": "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": [ + "string", + "null" + ] + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": [ + "string", + "null" + ] + }, + "iqn": { + "description": "iqn is Target iSCSI Qualified Name.", + "type": [ + "string", + "null" + ] + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": [ + "string", + "null" + ] + }, + "lun": { + "description": "lun is iSCSI Target Lun number.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/iscsipersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/iscsivolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/iscsivolumesource-v1.json new file mode 100644 index 00000000..b148bccd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/iscsivolumesource-v1.json @@ -0,0 +1,95 @@ +{ + "description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", + "properties": { + "chapAuthDiscovery": { + "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "chapAuthSession": { + "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication", + "type": [ + "boolean", + "null" + ] + }, + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi", + "type": [ + "string", + "null" + ] + }, + "initiatorName": { + "description": "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.", + "type": [ + "string", + "null" + ] + }, + "iqn": { + "description": "iqn is the target iSCSI Qualified Name.", + "type": [ + "string", + "null" + ] + }, + "iscsiInterface": { + "description": "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", + "type": [ + "string", + "null" + ] + }, + "lun": { + "description": "lun represents iSCSI Target Lun number.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "portals": { + "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is the CHAP Secret for iSCSI target and initiator authentication" + }, + "targetPortal": { + "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "targetPortal", + "iqn", + "lun" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/iscsivolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/job-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/job-batch-v1.json new file mode 100644 index 00000000..c626ba77 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/job-batch-v1.json @@ -0,0 +1,47 @@ +{ + "description": "Job represents the configuration of a single job.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Job" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobSpec", + "description": "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobStatus", + "description": "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "Job", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/job/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobcondition-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobcondition-batch-v1.json new file mode 100644 index 00000000..2e2612ed --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobcondition-batch-v1.json @@ -0,0 +1,48 @@ +{ + "description": "JobCondition describes current state of a job.", + "properties": { + "lastProbeTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition was checked." + }, + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transit from one status to another." + }, + "message": { + "description": "Human readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of job condition, Complete or Failed.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/jobcondition/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/joblist-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/joblist-batch-v1.json new file mode 100644 index 00000000..85533036 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/joblist-batch-v1.json @@ -0,0 +1,52 @@ +{ + "description": "JobList is a collection of jobs.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "batch/v1" + ] + }, + "items": { + "description": "items is the list of Jobs.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.Job" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "JobList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "batch", + "kind": "JobList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/joblist/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobspec-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobspec-batch-v1.json new file mode 100644 index 00000000..2e5025d4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobspec-batch-v1.json @@ -0,0 +1,118 @@ +{ + "description": "JobSpec describes how the job execution will look like.", + "properties": { + "activeDeadlineSeconds": { + "description": "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "backoffLimit": { + "description": "Specifies the number of retries before marking this job failed. Defaults to 6", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "backoffLimitPerIndex": { + "description": "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "completionMode": { + "description": "completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.", + "type": [ + "string", + "null" + ] + }, + "completions": { + "description": "Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "managedBy": { + "description": "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.\n\nThis field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default).", + "type": [ + "string", + "null" + ] + }, + "manualSelector": { + "description": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector", + "type": [ + "boolean", + "null" + ] + }, + "maxFailedIndexes": { + "description": "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "parallelism": { + "description": "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "podFailurePolicy": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicy", + "description": "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure." + }, + "podReplacementPolicy": { + "description": "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "successPolicy": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.SuccessPolicy", + "description": "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.\n\nThis field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default)." + }, + "suspend": { + "description": "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are \"Never\" or \"OnFailure\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/" + }, + "ttlSecondsAfterFinished": { + "description": "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "template" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/jobspec/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobstatus-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobstatus-batch-v1.json new file mode 100644 index 00000000..312c90e1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobstatus-batch-v1.json @@ -0,0 +1,87 @@ +{ + "description": "JobStatus represents the current state of a Job.", + "properties": { + "active": { + "description": "The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "completedIndexes": { + "description": "completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", + "type": [ + "string", + "null" + ] + }, + "completionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field." + }, + "conditions": { + "description": "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true.\n\nA job is considered finished when it is in a terminal condition, either \"Complete\" or \"Failed\". A Job cannot have both the \"Complete\" and \"Failed\" conditions. Additionally, it cannot be in the \"Complete\" and \"FailureTarget\" conditions. The \"Complete\", \"Failed\" and \"FailureTarget\" conditions cannot be disabled.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "failed": { + "description": "The number of pods which reached phase Failed. The value increases monotonically.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "failedIndexes": { + "description": "FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes.\n\nThis field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).", + "type": [ + "string", + "null" + ] + }, + "ready": { + "description": "The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "startTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.\n\nOnce set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished." + }, + "succeeded": { + "description": "The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "terminating": { + "description": "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "uncountedTerminatedPods": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.UncountedTerminatedPods", + "description": "uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/jobstatus/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobtemplatespec-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobtemplatespec-batch-v1.json new file mode 100644 index 00000000..65bf7a7b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jobtemplatespec-batch-v1.json @@ -0,0 +1,16 @@ +{ + "description": "JobTemplateSpec describes the data a Job should have when created from a template", + "properties": { + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.JobSpec", + "description": "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/jobtemplatespec/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/json-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/json-apiextensions-v1.json new file mode 100644 index 00000000..164d22bc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/json-apiextensions-v1.json @@ -0,0 +1,6 @@ +{ + "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "$id": "https://kubernetes.io/api/json/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemaprops-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemaprops-apiextensions-v1.json new file mode 100644 index 00000000..a29b44d3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemaprops-apiextensions-v1.json @@ -0,0 +1,314 @@ +{ + "description": "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).", + "properties": { + "$ref": { + "type": [ + "string", + "null" + ] + }, + "$schema": { + "type": [ + "string", + "null" + ] + }, + "additionalItems": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" + }, + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrBool" + }, + "allOf": { + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "anyOf": { + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "default": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON", + "description": "default is a default value for undefined object fields. Defaulting is a beta feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false." + }, + "definitions": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "object", + "null" + ] + }, + "dependencies": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrStringArray" + }, + "type": [ + "object", + "null" + ] + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "enum": { + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "example": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSON" + }, + "exclusiveMaximum": { + "type": [ + "boolean", + "null" + ] + }, + "exclusiveMinimum": { + "type": [ + "boolean", + "null" + ] + }, + "externalDocs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ExternalDocumentation" + }, + "format": { + "description": "format is an OpenAPI v3 format string. Unknown formats are ignored. The following formats are validated:\n\n- bsonobjectid: a bson object ID, i.e. a 24 characters hex string - uri: an URI as parsed by Golang net/url.ParseRequestURI - email: an email address as parsed by Golang net/mail.ParseAddress - hostname: a valid representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034]. - ipv4: an IPv4 IP as parsed by Golang net.ParseIP - ipv6: an IPv6 IP as parsed by Golang net.ParseIP - cidr: a CIDR as parsed by Golang net.ParseCIDR - mac: a MAC address as parsed by Golang net.ParseMAC - uuid: an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid3: an UUID3 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$ - uuid4: an UUID4 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - uuid5: an UUID5 that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$ - isbn: an ISBN10 or ISBN13 number string like \"0321751043\" or \"978-0321751041\" - isbn10: an ISBN10 number string like \"0321751043\" - isbn13: an ISBN13 number string like \"978-0321751041\" - creditcard: a credit card number defined by the regex ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$ with any non digit characters mixed in - ssn: a U.S. social security number following the regex ^\\d{3}[- ]?\\d{2}[- ]?\\d{4}$ - hexcolor: an hexadecimal color code like \"#FFFFFF: following the regex ^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$ - rgbcolor: an RGB color code like rgb like \"rgb(255,255,2559\" - byte: base64 encoded binary data - password: any kind of string - date: a date string like \"2006-01-02\" as defined by full-date in RFC3339 - duration: a duration string like \"22 ns\" as parsed by Golang time.ParseDuration or compatible with Scala duration format - datetime: a date time string like \"2014-12-15T19:30:20.000Z\" as defined by date-time in RFC3339.", + "type": [ + "string", + "null" + ] + }, + "id": { + "type": [ + "string", + "null" + ] + }, + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaPropsOrArray" + }, + "maxItems": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "maxLength": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "maxProperties": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "maximum": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "minItems": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "minLength": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "minProperties": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "minimum": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "multipleOf": { + "format": "double", + "type": [ + "number", + "null" + ] + }, + "not": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "nullable": { + "type": [ + "boolean", + "null" + ] + }, + "oneOf": { + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "pattern": { + "type": [ + "string", + "null" + ] + }, + "patternProperties": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "object", + "null" + ] + }, + "properties": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.JSONSchemaProps" + }, + "type": [ + "object", + "null" + ] + }, + "required": { + "items": { + "type": "string" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "type": { + "type": [ + "string", + "null" + ] + }, + "uniqueItems": { + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-embedded-resource": { + "description": "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).", + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-int-or-string": { + "description": "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-list-map-keys": { + "description": "x-kubernetes-list-map-keys annotates an array with the x-kubernetes-list-type `map` by specifying the keys used as the index of the map.\n\nThis tag MUST only be used on lists that have the \"x-kubernetes-list-type\" extension set to \"map\". Also, the values specified for this attribute must be a scalar typed field of the child structure (no nesting is supported).\n\nThe properties specified must either be required or have a default value, to ensure those properties are present for all list items.", + "items": { + "type": "string" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "x-kubernetes-list-type": { + "description": "x-kubernetes-list-type annotates an array to further describe its topology. This extension must only be used on lists and may have 3 possible values:\n\n1) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic lists will be entirely replaced when updated. This extension\n may be used on any type of list (struct, scalar, ...).\n2) `set`:\n Sets are lists that must not have multiple items with the same value. Each\n value must be a scalar, an object with x-kubernetes-map-type `atomic` or an\n array with x-kubernetes-list-type `atomic`.\n3) `map`:\n These lists are like maps in that their elements have a non-index key\n used to identify them. Order is preserved upon merge. The map tag\n must only be used on a list with elements of type object.\nDefaults to atomic for arrays.", + "type": [ + "string", + "null" + ] + }, + "x-kubernetes-map-type": { + "description": "x-kubernetes-map-type annotates an object to further describe its topology. This extension must only be used when type is object and may have 2 possible values:\n\n1) `granular`:\n These maps are actual maps (key-value pairs) and each fields are independent\n from each other (they can each be manipulated by separate actors). This is\n the default behaviour for all maps.\n2) `atomic`: the list is treated as a single entity, like a scalar.\n Atomic maps will be entirely replaced when updated.", + "type": [ + "string", + "null" + ] + }, + "x-kubernetes-preserve-unknown-fields": { + "description": "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.", + "type": [ + "boolean", + "null" + ] + }, + "x-kubernetes-validations": { + "description": "x-kubernetes-validations describes a list of validation rules written in the CEL expression language.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ValidationRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "rule" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "rule", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/jsonschemaprops/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemapropsorarray-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemapropsorarray-apiextensions-v1.json new file mode 100644 index 00000000..f83cac04 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemapropsorarray-apiextensions-v1.json @@ -0,0 +1,6 @@ +{ + "description": "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "$id": "https://kubernetes.io/api/jsonschemapropsorarray/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemapropsorbool-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemapropsorbool-apiextensions-v1.json new file mode 100644 index 00000000..12aa4d59 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemapropsorbool-apiextensions-v1.json @@ -0,0 +1,6 @@ +{ + "description": "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "$id": "https://kubernetes.io/api/jsonschemapropsorbool/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemapropsorstringarray-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemapropsorstringarray-apiextensions-v1.json new file mode 100644 index 00000000..07f50ae2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/jsonschemapropsorstringarray-apiextensions-v1.json @@ -0,0 +1,6 @@ +{ + "description": "JSONSchemaPropsOrStringArray represents a JSONSchemaProps or a string array.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "$id": "https://kubernetes.io/api/jsonschemapropsorstringarray/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/keytopath-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/keytopath-v1.json new file mode 100644 index 00000000..2e056503 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/keytopath-v1.json @@ -0,0 +1,34 @@ +{ + "description": "Maps a string key to a path within a volume.", + "properties": { + "key": { + "description": "key is the key to project.", + "type": [ + "string", + "null" + ] + }, + "mode": { + "description": "mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "path": { + "description": "path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "key", + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/keytopath/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/labelselector-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/labelselector-meta-v1.json new file mode 100644 index 00000000..0130b024 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/labelselector-meta-v1.json @@ -0,0 +1,33 @@ +{ + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "properties": { + "matchExpressions": { + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchLabels": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": [ + "object", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/labelselector/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/labelselectorattributes-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/labelselectorattributes-authorization-v1.json new file mode 100644 index 00000000..4e4f3ce3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/labelselectorattributes-authorization-v1.json @@ -0,0 +1,26 @@ +{ + "description": "LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.", + "properties": { + "rawSelector": { + "description": "rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.", + "type": [ + "string", + "null" + ] + }, + "requirements": { + "description": "requirements is the parsed interpretation of a label selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/labelselectorattributes/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/labelselectorrequirement-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/labelselectorrequirement-meta-v1.json new file mode 100644 index 00000000..c7024d6a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/labelselectorrequirement-meta-v1.json @@ -0,0 +1,40 @@ +{ + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "key is the label key that the selector applies to.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": [ + "string", + "null" + ] + }, + "values": { + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/labelselectorrequirement/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/lease-coordination-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/lease-coordination-v1.json new file mode 100644 index 00000000..24cc09b7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/lease-coordination-v1.json @@ -0,0 +1,43 @@ +{ + "description": "Lease defines a lease concept.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Lease" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1.LeaseSpec", + "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/lease/coordination/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasecandidate-coordination-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasecandidate-coordination-v1alpha1.json new file mode 100644 index 00000000..4d03b373 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasecandidate-coordination-v1alpha1.json @@ -0,0 +1,43 @@ +{ + "description": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LeaseCandidate" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidateSpec", + "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/leasecandidate/coordination/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasecandidatelist-coordination-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasecandidatelist-coordination-v1alpha1.json new file mode 100644 index 00000000..f5707523 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasecandidatelist-coordination-v1alpha1.json @@ -0,0 +1,52 @@ +{ + "description": "LeaseCandidateList is a list of Lease objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1alpha1.LeaseCandidate" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LeaseCandidateList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseCandidateList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/leasecandidatelist/coordination/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasecandidatespec-coordination-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasecandidatespec-coordination-v1alpha1.json new file mode 100644 index 00000000..f83ce6fd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasecandidatespec-coordination-v1alpha1.json @@ -0,0 +1,55 @@ +{ + "description": "LeaseCandidateSpec is a specification of a Lease.", + "properties": { + "binaryVersion": { + "description": "BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required when strategy is \"OldestEmulationVersion\"", + "type": [ + "string", + "null" + ] + }, + "emulationVersion": { + "description": "EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is \"OldestEmulationVersion\"", + "type": [ + "string", + "null" + ] + }, + "leaseName": { + "description": "LeaseName is the name of the lease for which this candidate is contending. This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "pingTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime." + }, + "preferredStrategies": { + "description": "PreferredStrategies indicates the list of strategies for picking the leader for coordinated leader election. The list is ordered, and the first strategy supersedes all other strategies. The list is used by coordinated leader election to make a decision about the final election strategy. This follows as - If all clients have strategy X as the first element in this list, strategy X will be used. - If a candidate has strategy [X] and another candidate has strategy [Y, X], Y supersedes X and strategy Y\n will be used.\n- If a candidate has strategy [X, Y] and another candidate has strategy [Y, X], this is a user error and leader\n election will not operate the Lease until resolved.\n(Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "renewTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates." + } + }, + "required": [ + "leaseName", + "preferredStrategies" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/leasecandidatespec/coordination/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leaselist-coordination-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leaselist-coordination-v1.json new file mode 100644 index 00000000..c7cb246a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leaselist-coordination-v1.json @@ -0,0 +1,52 @@ +{ + "description": "LeaseList is a list of Lease objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "coordination.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.coordination.v1.Lease" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LeaseList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "coordination.k8s.io", + "kind": "LeaseList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/leaselist/coordination/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasespec-coordination-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasespec-coordination-v1.json new file mode 100644 index 00000000..88f2516f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/leasespec-coordination-v1.json @@ -0,0 +1,53 @@ +{ + "description": "LeaseSpec is a specification of a Lease.", + "properties": { + "acquireTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "acquireTime is a time when the current lease was acquired." + }, + "holderIdentity": { + "description": "holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.", + "type": [ + "string", + "null" + ] + }, + "leaseDurationSeconds": { + "description": "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "leaseTransitions": { + "description": "leaseTransitions is the number of transitions of a lease between holders.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "preferredHolder": { + "description": "PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.", + "type": [ + "string", + "null" + ] + }, + "renewTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.MicroTime", + "description": "renewTime is a time when the current holder of a lease has last updated the lease." + }, + "strategy": { + "description": "Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/leasespec/coordination/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/lifecycle-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/lifecycle-v1.json new file mode 100644 index 00000000..5fdb4d0d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/lifecycle-v1.json @@ -0,0 +1,16 @@ +{ + "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", + "properties": { + "postStart": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LifecycleHandler", + "description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + }, + "preStop": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LifecycleHandler", + "description": "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/lifecycle/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/lifecyclehandler-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/lifecyclehandler-v1.json new file mode 100644 index 00000000..60eedae4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/lifecyclehandler-v1.json @@ -0,0 +1,24 @@ +{ + "description": "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.", + "properties": { + "exec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ExecAction", + "description": "Exec specifies the action to take." + }, + "httpGet": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." + }, + "sleep": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SleepAction", + "description": "Sleep represents the duration that the container should sleep before being terminated." + }, + "tcpSocket": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TCPSocketAction", + "description": "Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/lifecyclehandler/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitedprioritylevelconfiguration-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitedprioritylevelconfiguration-flowcontrol-v1.json new file mode 100644 index 00000000..2342f977 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitedprioritylevelconfiguration-flowcontrol-v1.json @@ -0,0 +1,36 @@ +{ + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "properties": { + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "limitResponse": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level.\n\nIf not specified, this field defaults to a value of 30.\n\nSetting this field to zero supports the construction of a \"jail\" for this priority level that is used to hold some request(s)", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/limitedprioritylevelconfiguration/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitedprioritylevelconfiguration-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitedprioritylevelconfiguration-flowcontrol-v1beta3.json new file mode 100644 index 00000000..02dd8de5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitedprioritylevelconfiguration-flowcontrol-v1beta3.json @@ -0,0 +1,36 @@ +{ + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "properties": { + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "limitResponse": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other priority level. This field has a default value of 30.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/limitedprioritylevelconfiguration/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrange-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrange-v1.json new file mode 100644 index 00000000..61738a13 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrange-v1.json @@ -0,0 +1,43 @@ +{ + "description": "LimitRange sets resource usage limits for each kind of resource in a Namespace.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LimitRange" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRangeSpec", + "description": "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "LimitRange", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/limitrange/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrangeitem-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrangeitem-v1.json new file mode 100644 index 00000000..deaa995c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrangeitem-v1.json @@ -0,0 +1,68 @@ +{ + "description": "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", + "properties": { + "default": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Default resource requirement limit value by resource name if resource limit is omitted.", + "type": [ + "object", + "null" + ] + }, + "defaultRequest": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", + "type": [ + "object", + "null" + ] + }, + "max": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Max usage constraints on this kind by resource name.", + "type": [ + "object", + "null" + ] + }, + "maxLimitRequestRatio": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", + "type": [ + "object", + "null" + ] + }, + "min": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Min usage constraints on this kind by resource name.", + "type": [ + "object", + "null" + ] + }, + "type": { + "description": "Type of resource that this limit applies to.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/limitrangeitem/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrangelist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrangelist-v1.json new file mode 100644 index 00000000..ba1e5d9d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrangelist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "LimitRangeList is a list of LimitRange items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRange" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LimitRangeList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "LimitRangeList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/limitrangelist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrangespec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrangespec-v1.json new file mode 100644 index 00000000..8ee5c1ad --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitrangespec-v1.json @@ -0,0 +1,22 @@ +{ + "description": "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", + "properties": { + "limits": { + "description": "Limits is the list of LimitRangeItem objects that are enforced.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LimitRangeItem" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "limits" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/limitrangespec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitresponse-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitresponse-flowcontrol-v1.json new file mode 100644 index 00000000..0bc79e63 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitresponse-flowcontrol-v1.json @@ -0,0 +1,30 @@ +{ + "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "properties": { + "queuing": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + }, + "type": { + "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "queuing": "Queuing" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/limitresponse/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitresponse-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitresponse-flowcontrol-v1beta3.json new file mode 100644 index 00000000..9a4e595a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/limitresponse-flowcontrol-v1beta3.json @@ -0,0 +1,30 @@ +{ + "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "properties": { + "queuing": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + }, + "type": { + "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "queuing": "Queuing" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/limitresponse/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/linuxcontaineruser-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/linuxcontaineruser-v1.json new file mode 100644 index 00000000..2c730fd2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/linuxcontaineruser-v1.json @@ -0,0 +1,43 @@ +{ + "description": "LinuxContainerUser represents user identity information in Linux containers", + "properties": { + "gid": { + "description": "GID is the primary gid initially attached to the first process in the container", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "supplementalGroups": { + "description": "SupplementalGroups are the supplemental groups initially attached to the first process in the container", + "items": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "uid": { + "description": "UID is the primary uid initially attached to the first process in the container", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "uid", + "gid" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/linuxcontaineruser/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/listmeta-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/listmeta-meta-v1.json new file mode 100644 index 00000000..202fbe5d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/listmeta-meta-v1.json @@ -0,0 +1,37 @@ +{ + "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", + "properties": { + "continue": { + "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", + "type": [ + "string", + "null" + ] + }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "resourceVersion": { + "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": [ + "string", + "null" + ] + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/listmeta/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/loadbalanceringress-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/loadbalanceringress-v1.json new file mode 100644 index 00000000..db698b51 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/loadbalanceringress-v1.json @@ -0,0 +1,40 @@ +{ + "description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", + "properties": { + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", + "type": [ + "string", + "null" + ] + }, + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", + "type": [ + "string", + "null" + ] + }, + "ipMode": { + "description": "IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.", + "type": [ + "string", + "null" + ] + }, + "ports": { + "description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PortStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/loadbalanceringress/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/loadbalancerstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/loadbalancerstatus-v1.json new file mode 100644 index 00000000..4d4945ed --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/loadbalancerstatus-v1.json @@ -0,0 +1,19 @@ +{ + "description": "LoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LoadBalancerIngress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/loadbalancerstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/localobjectreference-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/localobjectreference-v1.json new file mode 100644 index 00000000..824b4ad0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/localobjectreference-v1.json @@ -0,0 +1,16 @@ +{ + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "properties": { + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/localobjectreference/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/localsubjectaccessreview-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/localsubjectaccessreview-authorization-v1.json new file mode 100644 index 00000000..01ecbb8e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/localsubjectaccessreview-authorization-v1.json @@ -0,0 +1,50 @@ +{ + "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "LocalSubjectAccessReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "LocalSubjectAccessReview", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/localsubjectaccessreview/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/localvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/localvolumesource-v1.json new file mode 100644 index 00000000..c7d94288 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/localvolumesource-v1.json @@ -0,0 +1,25 @@ +{ + "description": "Local represents directly-attached storage with node affinity (Beta feature)", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/localvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/managedfieldsentry-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/managedfieldsentry-meta-v1.json new file mode 100644 index 00000000..9ac378f4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/managedfieldsentry-meta-v1.json @@ -0,0 +1,51 @@ +{ + "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.", + "type": [ + "string", + "null" + ] + }, + "fieldsType": { + "description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", + "type": [ + "string", + "null" + ] + }, + "fieldsV1": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.FieldsV1", + "description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type." + }, + "manager": { + "description": "Manager is an identifier of the workflow managing these fields.", + "type": [ + "string", + "null" + ] + }, + "operation": { + "description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.", + "type": [ + "string", + "null" + ] + }, + "subresource": { + "description": "Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.", + "type": [ + "string", + "null" + ] + }, + "time": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/managedfieldsentry/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchcondition-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchcondition-admissionregistration-v1.json new file mode 100644 index 00000000..0643c27f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchcondition-admissionregistration-v1.json @@ -0,0 +1,26 @@ +{ + "description": "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/matchcondition/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchcondition-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchcondition-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..fd40917b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchcondition-admissionregistration-v1alpha1.json @@ -0,0 +1,25 @@ +{ + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/matchcondition/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchcondition-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchcondition-admissionregistration-v1beta1.json new file mode 100644 index 00000000..e873a68a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchcondition-admissionregistration-v1beta1.json @@ -0,0 +1,26 @@ +{ + "description": "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/matchcondition/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchresources-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchresources-admissionregistration-v1.json new file mode 100644 index 00000000..28072d84 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchresources-admissionregistration-v1.json @@ -0,0 +1,46 @@ +{ + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/matchresources/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchresources-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchresources-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..5bd4df66 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchresources-admissionregistration-v1alpha1.json @@ -0,0 +1,46 @@ +{ + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/matchresources/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchresources-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchresources-admissionregistration-v1beta1.json new file mode 100644 index 00000000..f6cb6082 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/matchresources-admissionregistration-v1beta1.json @@ -0,0 +1,46 @@ +{ + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.NamedRuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/matchresources/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricidentifier-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricidentifier-autoscaling-v2.json new file mode 100644 index 00000000..37d7ab7e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricidentifier-autoscaling-v2.json @@ -0,0 +1,22 @@ +{ + "description": "MetricIdentifier defines the name and optionally selector for a metric", + "properties": { + "name": { + "description": "name is the name of the given metric", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/metricidentifier/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricspec-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricspec-autoscaling-v2.json new file mode 100644 index 00000000..0ec44bbc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricspec-autoscaling-v2.json @@ -0,0 +1,38 @@ +{ + "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", + "properties": { + "containerResource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ContainerResourceMetricSource", + "description": "containerResource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." + }, + "external": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ExternalMetricSource", + "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." + }, + "object": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ObjectMetricSource", + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." + }, + "pods": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.PodsMetricSource", + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + }, + "resource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ResourceMetricSource", + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "type": { + "description": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/metricspec/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricstatus-autoscaling-v2.json new file mode 100644 index 00000000..66d06e09 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricstatus-autoscaling-v2.json @@ -0,0 +1,38 @@ +{ + "description": "MetricStatus describes the last-read state of a single metric.", + "properties": { + "containerResource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ContainerResourceMetricStatus", + "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "external": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ExternalMetricStatus", + "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." + }, + "object": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ObjectMetricStatus", + "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." + }, + "pods": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.PodsMetricStatus", + "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." + }, + "resource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.ResourceMetricStatus", + "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." + }, + "type": { + "description": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/metricstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metrictarget-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metrictarget-autoscaling-v2.json new file mode 100644 index 00000000..3ced6d0f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metrictarget-autoscaling-v2.json @@ -0,0 +1,34 @@ +{ + "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric", + "properties": { + "averageUtilization": { + "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "averageValue": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)" + }, + "type": { + "description": "type represents whether the metric type is Utilization, Value, or AverageValue", + "type": [ + "string", + "null" + ] + }, + "value": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "value is the target value of the metric (as a quantity)." + } + }, + "required": [ + "type" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/metrictarget/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricvaluestatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricvaluestatus-autoscaling-v2.json new file mode 100644 index 00000000..d9265bb2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/metricvaluestatus-autoscaling-v2.json @@ -0,0 +1,24 @@ +{ + "description": "MetricValueStatus holds the current value for a metric", + "properties": { + "averageUtilization": { + "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "averageValue": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" + }, + "value": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "value is the current value of the metric (as a quantity)." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/metricvaluestatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/microtime-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/microtime-meta-v1.json new file mode 100644 index 00000000..1d7b8033 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/microtime-meta-v1.json @@ -0,0 +1,7 @@ +{ + "description": "MicroTime is version of Time with microsecond level precision.", + "format": "date-time", + "type": "string", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/microtime/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/migrationcondition-storagemigration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/migrationcondition-storagemigration-v1alpha1.json new file mode 100644 index 00000000..c9065135 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/migrationcondition-storagemigration-v1alpha1.json @@ -0,0 +1,44 @@ +{ + "description": "Describes the state of a migration at a certain point.", + "properties": { + "lastUpdateTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time this condition was updated." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of the condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/migrationcondition/storagemigration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/modifyvolumestatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/modifyvolumestatus-v1.json new file mode 100644 index 00000000..452a80dd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/modifyvolumestatus-v1.json @@ -0,0 +1,25 @@ +{ + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation", + "properties": { + "status": { + "description": "status is the status of the ControllerModifyVolume operation. It can be in any of following states:\n - Pending\n Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as\n the specified VolumeAttributesClass not existing.\n - InProgress\n InProgress indicates that the volume is being modified.\n - Infeasible\n Infeasible indicates that the request has been rejected as invalid by the CSI driver. To\n\t resolve the error, a valid VolumeAttributesClass needs to be specified.\nNote: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.", + "type": [ + "string", + "null" + ] + }, + "targetVolumeAttributesClassName": { + "description": "targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/modifyvolumestatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/mutatingwebhook-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/mutatingwebhook-admissionregistration-v1.json new file mode 100644 index 00000000..8e0a43c4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/mutatingwebhook-admissionregistration-v1.json @@ -0,0 +1,110 @@ +{ + "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "clientConfig": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "reinvocationPolicy": { + "description": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", + "type": [ + "string", + "null" + ] + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.RuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "sideEffects": { + "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", + "type": [ + "string", + "null" + ] + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/mutatingwebhook/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/mutatingwebhookconfiguration-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/mutatingwebhookconfiguration-admissionregistration-v1.json new file mode 100644 index 00000000..0c231162 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/mutatingwebhookconfiguration-admissionregistration-v1.json @@ -0,0 +1,55 @@ +{ + "description": "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "MutatingWebhookConfiguration" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "webhooks": { + "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhook" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfiguration", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/mutatingwebhookconfiguration/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/mutatingwebhookconfigurationlist-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/mutatingwebhookconfigurationlist-admissionregistration-v1.json new file mode 100644 index 00000000..edf86c20 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/mutatingwebhookconfigurationlist-admissionregistration-v1.json @@ -0,0 +1,52 @@ +{ + "description": "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of MutatingWebhookConfiguration.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "MutatingWebhookConfigurationList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingWebhookConfigurationList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/mutatingwebhookconfigurationlist/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namedrulewithoperations-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namedrulewithoperations-admissionregistration-v1.json new file mode 100644 index 00000000..d5df215b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namedrulewithoperations-admissionregistration-v1.json @@ -0,0 +1,86 @@ +{ + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/namedrulewithoperations/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namedrulewithoperations-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namedrulewithoperations-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..466a5c3d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namedrulewithoperations-admissionregistration-v1alpha1.json @@ -0,0 +1,86 @@ +{ + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/namedrulewithoperations/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namedrulewithoperations-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namedrulewithoperations-admissionregistration-v1beta1.json new file mode 100644 index 00000000..02858c3f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namedrulewithoperations-admissionregistration-v1beta1.json @@ -0,0 +1,86 @@ +{ + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/namedrulewithoperations/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespace-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespace-v1.json new file mode 100644 index 00000000..64bcba20 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespace-v1.json @@ -0,0 +1,47 @@ +{ + "description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Namespace" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceSpec", + "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceStatus", + "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Namespace", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/namespace/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacecondition-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacecondition-v1.json new file mode 100644 index 00000000..0cefa409 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacecondition-v1.json @@ -0,0 +1,41 @@ +{ + "description": "NamespaceCondition contains details about state of namespace.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "type": [ + "string", + "null" + ] + }, + "reason": { + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of namespace controller condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/namespacecondition/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacelist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacelist-v1.json new file mode 100644 index 00000000..22038cf5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacelist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "NamespaceList is a list of Namespaces.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Namespace" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NamespaceList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "NamespaceList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/namespacelist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacespec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacespec-v1.json new file mode 100644 index 00000000..6a7265ce --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacespec-v1.json @@ -0,0 +1,22 @@ +{ + "description": "NamespaceSpec describes the attributes on a Namespace.", + "properties": { + "finalizers": { + "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/namespacespec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacestatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacestatus-v1.json new file mode 100644 index 00000000..7132875b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/namespacestatus-v1.json @@ -0,0 +1,31 @@ +{ + "description": "NamespaceStatus is information about the current status of a Namespace.", + "properties": { + "conditions": { + "description": "Represents the latest available observations of a namespace's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NamespaceCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "phase": { + "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/namespacestatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicy-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicy-networking-v1.json new file mode 100644 index 00000000..19e38b2f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicy-networking-v1.json @@ -0,0 +1,43 @@ +{ + "description": "NetworkPolicy describes what network traffic is allowed for a set of Pods", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NetworkPolicy" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicySpec", + "description": "spec represents the specification of the desired behavior for this NetworkPolicy." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/networkpolicy/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyegressrule-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyegressrule-networking-v1.json new file mode 100644 index 00000000..ec9913f0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyegressrule-networking-v1.json @@ -0,0 +1,30 @@ +{ + "description": "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", + "properties": { + "ports": { + "description": "ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "to": { + "description": "to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyPeer" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/networkpolicyegressrule/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyingressrule-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyingressrule-networking-v1.json new file mode 100644 index 00000000..7f68843d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyingressrule-networking-v1.json @@ -0,0 +1,30 @@ +{ + "description": "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.", + "properties": { + "from": { + "description": "from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyPeer" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyPort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/networkpolicyingressrule/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicylist-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicylist-networking-v1.json new file mode 100644 index 00000000..7c6bdb51 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicylist-networking-v1.json @@ -0,0 +1,52 @@ +{ + "description": "NetworkPolicyList is a list of NetworkPolicy objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicy" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NetworkPolicyList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "NetworkPolicyList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/networkpolicylist/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicypeer-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicypeer-networking-v1.json new file mode 100644 index 00000000..accf0871 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicypeer-networking-v1.json @@ -0,0 +1,20 @@ +{ + "description": "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", + "properties": { + "ipBlock": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.IPBlock", + "description": "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be." + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector." + }, + "podSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/networkpolicypeer/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyport-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyport-networking-v1.json new file mode 100644 index 00000000..2d057845 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyport-networking-v1.json @@ -0,0 +1,27 @@ +{ + "description": "NetworkPolicyPort describes a port to allow traffic on", + "properties": { + "endPort": { + "description": "endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "port": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched." + }, + "protocol": { + "description": "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/networkpolicyport/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyspec-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyspec-networking-v1.json new file mode 100644 index 00000000..993271be --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/networkpolicyspec-networking-v1.json @@ -0,0 +1,51 @@ +{ + "description": "NetworkPolicySpec provides the specification of a NetworkPolicy", + "properties": { + "egress": { + "description": "egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyEgressRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ingress": { + "description": "ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1.NetworkPolicyIngressRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "podSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "podSelector selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace." + }, + "policyTypes": { + "description": "policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "podSelector" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/networkpolicyspec/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nfsvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nfsvolumesource-v1.json new file mode 100644 index 00000000..9b093603 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nfsvolumesource-v1.json @@ -0,0 +1,33 @@ +{ + "description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", + "properties": { + "path": { + "description": "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": [ + "boolean", + "null" + ] + }, + "server": { + "description": "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "server", + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nfsvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/node-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/node-v1.json new file mode 100644 index 00000000..723b0589 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/node-v1.json @@ -0,0 +1,47 @@ +{ + "description": "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Node" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSpec", + "description": "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeStatus", + "description": "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Node", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/node/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeaddress-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeaddress-v1.json new file mode 100644 index 00000000..63f89520 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeaddress-v1.json @@ -0,0 +1,26 @@ +{ + "description": "NodeAddress contains information for the node's address.", + "properties": { + "address": { + "description": "The node address.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Node address type, one of Hostname, ExternalIP or InternalIP.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "address" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodeaddress/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeaffinity-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeaffinity-v1.json new file mode 100644 index 00000000..c030d611 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeaffinity-v1.json @@ -0,0 +1,23 @@ +{ + "description": "Node affinity is a group of node affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PreferredSchedulingTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodeaffinity/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodecondition-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodecondition-v1.json new file mode 100644 index 00000000..babdfaba --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodecondition-v1.json @@ -0,0 +1,48 @@ +{ + "description": "NodeCondition contains condition information for a node.", + "properties": { + "lastHeartbeatTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time we got an update on a given condition." + }, + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transit from one status to another." + }, + "message": { + "description": "Human readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "(brief) reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of node condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodecondition/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeconfigsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeconfigsource-v1.json new file mode 100644 index 00000000..8a917ea2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeconfigsource-v1.json @@ -0,0 +1,12 @@ +{ + "description": "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", + "properties": { + "configMap": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapNodeConfigSource", + "description": "ConfigMap is a reference to a Node's ConfigMap" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodeconfigsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeconfigstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeconfigstatus-v1.json new file mode 100644 index 00000000..14fea335 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeconfigstatus-v1.json @@ -0,0 +1,27 @@ +{ + "description": "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", + "properties": { + "active": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error." + }, + "assigned": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned." + }, + "error": { + "description": "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.", + "type": [ + "string", + "null" + ] + }, + "lastKnownGood": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodeconfigstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodedaemonendpoints-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodedaemonendpoints-v1.json new file mode 100644 index 00000000..4593252e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodedaemonendpoints-v1.json @@ -0,0 +1,12 @@ +{ + "description": "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", + "properties": { + "kubeletEndpoint": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DaemonEndpoint", + "description": "Endpoint on which Kubelet is listening." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodedaemonendpoints/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodefeatures-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodefeatures-v1.json new file mode 100644 index 00000000..97781d45 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodefeatures-v1.json @@ -0,0 +1,15 @@ +{ + "description": "NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.", + "properties": { + "supplementalGroupsPolicy": { + "description": "SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodefeatures/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodelist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodelist-v1.json new file mode 100644 index 00000000..19263980 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodelist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "NodeList is the whole list of all Nodes which have been registered with master.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of nodes", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Node" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "NodeList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "NodeList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodelist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/noderuntimehandler-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/noderuntimehandler-v1.json new file mode 100644 index 00000000..28fbdb89 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/noderuntimehandler-v1.json @@ -0,0 +1,19 @@ +{ + "description": "NodeRuntimeHandler is a set of runtime handler information.", + "properties": { + "features": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeRuntimeHandlerFeatures", + "description": "Supported features." + }, + "name": { + "description": "Runtime handler name. Empty for the default runtime handler.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/noderuntimehandler/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/noderuntimehandlerfeatures-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/noderuntimehandlerfeatures-v1.json new file mode 100644 index 00000000..62b111b2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/noderuntimehandlerfeatures-v1.json @@ -0,0 +1,22 @@ +{ + "description": "NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.", + "properties": { + "recursiveReadOnlyMounts": { + "description": "RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.", + "type": [ + "boolean", + "null" + ] + }, + "userNamespaces": { + "description": "UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/noderuntimehandlerfeatures/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeselector-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeselector-v1.json new file mode 100644 index 00000000..502c6e46 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeselector-v1.json @@ -0,0 +1,23 @@ +{ + "description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.", + "properties": { + "nodeSelectorTerms": { + "description": "Required. A list of node selector terms. The terms are ORed.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelectorTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "nodeSelectorTerms" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodeselector/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeselectorrequirement-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeselectorrequirement-v1.json new file mode 100644 index 00000000..fc6e7d89 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeselectorrequirement-v1.json @@ -0,0 +1,40 @@ +{ + "description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.", + "type": [ + "string", + "null" + ] + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "operator" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodeselectorrequirement/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeselectorterm-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeselectorterm-v1.json new file mode 100644 index 00000000..4bc284ec --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodeselectorterm-v1.json @@ -0,0 +1,31 @@ +{ + "description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.", + "properties": { + "matchExpressions": { + "description": "A list of node selector requirements by node's labels.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "matchFields": { + "description": "A list of node selector requirements by node's fields.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodeselectorterm/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodespec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodespec-v1.json new file mode 100644 index 00000000..89315216 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodespec-v1.json @@ -0,0 +1,66 @@ +{ + "description": "NodeSpec describes the attributes that a node is created with.", + "properties": { + "configSource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigSource", + "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed." + }, + "externalID": { + "description": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", + "type": [ + "string", + "null" + ] + }, + "podCIDR": { + "description": "PodCIDR represents the pod IP range assigned to the node.", + "type": [ + "string", + "null" + ] + }, + "podCIDRs": { + "description": "podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" + }, + "providerID": { + "description": "ID of the node assigned by the cloud provider in the format: ://", + "type": [ + "string", + "null" + ] + }, + "taints": { + "description": "If specified, the node's taints.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Taint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "unschedulable": { + "description": "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodespec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodestatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodestatus-v1.json new file mode 100644 index 00000000..97050f13 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodestatus-v1.json @@ -0,0 +1,130 @@ +{ + "description": "NodeStatus is information about the current status of a node.", + "properties": { + "addresses": { + "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeAddress" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "allocatable": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", + "type": [ + "object", + "null" + ] + }, + "capacity": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity", + "type": [ + "object", + "null" + ] + }, + "conditions": { + "description": "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "config": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeConfigStatus", + "description": "Status of the config assigned to the node via the dynamic Kubelet config feature." + }, + "daemonEndpoints": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeDaemonEndpoints", + "description": "Endpoints of daemons running on the Node." + }, + "features": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeFeatures", + "description": "Features describes the set of features implemented by the CRI implementation." + }, + "images": { + "description": "List of container images on this node", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerImage" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nodeInfo": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSystemInfo", + "description": "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info" + }, + "phase": { + "description": "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.", + "type": [ + "string", + "null" + ] + }, + "runtimeHandlers": { + "description": "The available runtime handlers.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeRuntimeHandler" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "volumesAttached": { + "description": "List of volumes that are attached to the node.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AttachedVolume" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "volumesInUse": { + "description": "List of attachable volumes in use (mounted) by the node.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodestatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodesysteminfo-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodesysteminfo-v1.json new file mode 100644 index 00000000..880ff1b3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nodesysteminfo-v1.json @@ -0,0 +1,90 @@ +{ + "description": "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", + "properties": { + "architecture": { + "description": "The Architecture reported by the node", + "type": [ + "string", + "null" + ] + }, + "bootID": { + "description": "Boot ID reported by the node.", + "type": [ + "string", + "null" + ] + }, + "containerRuntimeVersion": { + "description": "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).", + "type": [ + "string", + "null" + ] + }, + "kernelVersion": { + "description": "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", + "type": [ + "string", + "null" + ] + }, + "kubeProxyVersion": { + "description": "Deprecated: KubeProxy Version reported by the node.", + "type": [ + "string", + "null" + ] + }, + "kubeletVersion": { + "description": "Kubelet Version reported by the node.", + "type": [ + "string", + "null" + ] + }, + "machineID": { + "description": "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html", + "type": [ + "string", + "null" + ] + }, + "operatingSystem": { + "description": "The Operating System reported by the node", + "type": [ + "string", + "null" + ] + }, + "osImage": { + "description": "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", + "type": [ + "string", + "null" + ] + }, + "systemUUID": { + "description": "SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "machineID", + "systemUUID", + "bootID", + "kernelVersion", + "osImage", + "containerRuntimeVersion", + "kubeletVersion", + "kubeProxyVersion", + "operatingSystem", + "architecture" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nodesysteminfo/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourceattributes-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourceattributes-authorization-v1.json new file mode 100644 index 00000000..788db199 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourceattributes-authorization-v1.json @@ -0,0 +1,22 @@ +{ + "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", + "properties": { + "path": { + "description": "Path is the URL path of the request", + "type": [ + "string", + "null" + ] + }, + "verb": { + "description": "Verb is the standard HTTP verb", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nonresourceattributes/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourcepolicyrule-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourcepolicyrule-flowcontrol-v1.json new file mode 100644 index 00000000..dac56b31 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourcepolicyrule-flowcontrol-v1.json @@ -0,0 +1,40 @@ +{ + "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", + "properties": { + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "nonResourceURLs" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nonresourcepolicyrule/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourcepolicyrule-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourcepolicyrule-flowcontrol-v1beta3.json new file mode 100644 index 00000000..4617ac36 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourcepolicyrule-flowcontrol-v1beta3.json @@ -0,0 +1,40 @@ +{ + "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", + "properties": { + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "nonResourceURLs" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nonresourcepolicyrule/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourcerule-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourcerule-authorization-v1.json new file mode 100644 index 00000000..20728432 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/nonresourcerule-authorization-v1.json @@ -0,0 +1,39 @@ +{ + "description": "NonResourceRule holds information that describes a rule for the non-resource", + "properties": { + "nonResourceURLs": { + "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/nonresourcerule/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectfieldselector-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectfieldselector-v1.json new file mode 100644 index 00000000..2683cea2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectfieldselector-v1.json @@ -0,0 +1,26 @@ +{ + "description": "ObjectFieldSelector selects an APIVersioned field of an object.", + "properties": { + "apiVersion": { + "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", + "type": [ + "string", + "null" + ] + }, + "fieldPath": { + "description": "Path of the field to select in the specified API version.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "fieldPath" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/objectfieldselector/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectmeta-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectmeta-meta-v1.json new file mode 100644 index 00000000..9b14a384 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectmeta-meta-v1.json @@ -0,0 +1,142 @@ +{ + "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", + "properties": { + "annotations": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations", + "type": [ + "object", + "null" + ] + }, + "creationTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "deletionGracePeriodSeconds": { + "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "deletionTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "finalizers": { + "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set", + "x-kubernetes-patch-strategy": "merge" + }, + "generateName": { + "description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency", + "type": [ + "string", + "null" + ] + }, + "generation": { + "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "labels": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels", + "type": [ + "object", + "null" + ] + }, + "managedFields": { + "description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces", + "type": [ + "string", + "null" + ] + }, + "ownerReferences": { + "description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": [ + "string", + "null" + ] + }, + "selfLink": { + "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/objectmeta/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectmetricsource-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectmetricsource-autoscaling-v2.json new file mode 100644 index 00000000..cfe95849 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectmetricsource-autoscaling-v2.json @@ -0,0 +1,25 @@ +{ + "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "properties": { + "describedObject": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "describedObject specifies the descriptions of a object,such as kind,name apiVersion" + }, + "metric": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "describedObject", + "target", + "metric" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/objectmetricsource/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectmetricstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectmetricstatus-autoscaling-v2.json new file mode 100644 index 00000000..e8c10046 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectmetricstatus-autoscaling-v2.json @@ -0,0 +1,25 @@ +{ + "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", + "properties": { + "current": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "describedObject": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.CrossVersionObjectReference", + "description": "DescribedObject specifies the descriptions of a object,such as kind,name apiVersion" + }, + "metric": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current", + "describedObject" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/objectmetricstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectreference-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectreference-v1.json new file mode 100644 index 00000000..80a23384 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/objectreference-v1.json @@ -0,0 +1,58 @@ +{ + "description": "ObjectReference contains enough information to let you inspect or modify the referred object.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": [ + "string", + "null" + ] + }, + "fieldPath": { + "description": "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", + "type": [ + "string", + "null" + ] + }, + "resourceVersion": { + "description": "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/objectreference/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/opaquedeviceconfiguration-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/opaquedeviceconfiguration-resource-v1alpha3.json new file mode 100644 index 00000000..afb79c72 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/opaquedeviceconfiguration-resource-v1alpha3.json @@ -0,0 +1,23 @@ +{ + "description": "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.", + "properties": { + "driver": { + "description": "Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.\n\nAn admission policy provided by the driver developer could use this to decide whether it needs to validate them.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.", + "type": [ + "string", + "null" + ] + }, + "parameters": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version (\"kind\" + \"apiVersion\" for Kubernetes types), with conversion between different versions." + } + }, + "required": [ + "driver", + "parameters" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/opaquedeviceconfiguration/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/overhead-node-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/overhead-node-v1.json new file mode 100644 index 00000000..165ae075 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/overhead-node-v1.json @@ -0,0 +1,18 @@ +{ + "description": "Overhead structure represents the resource overhead associated with running a pod.", + "properties": { + "podFixed": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "podFixed represents the fixed resource overhead associated with running a pod.", + "type": [ + "object", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/overhead/node/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ownerreference-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ownerreference-meta-v1.json new file mode 100644 index 00000000..0a1c5a54 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/ownerreference-meta-v1.json @@ -0,0 +1,57 @@ +{ + "description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.", + "properties": { + "apiVersion": { + "description": "API version of the referent.", + "type": [ + "string", + "null" + ] + }, + "blockOwnerDeletion": { + "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.", + "type": [ + "boolean", + "null" + ] + }, + "controller": { + "description": "If true, this reference points to the managing controller.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "apiVersion", + "kind", + "name", + "uid" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/ownerreference/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramkind-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramkind-admissionregistration-v1.json new file mode 100644 index 00000000..feacb8b6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramkind-admissionregistration-v1.json @@ -0,0 +1,23 @@ +{ + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/paramkind/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramkind-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramkind-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..dbe2df66 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramkind-admissionregistration-v1alpha1.json @@ -0,0 +1,23 @@ +{ + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/paramkind/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramkind-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramkind-admissionregistration-v1beta1.json new file mode 100644 index 00000000..49b780ad --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramkind-admissionregistration-v1beta1.json @@ -0,0 +1,23 @@ +{ + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/paramkind/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramref-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramref-admissionregistration-v1.json new file mode 100644 index 00000000..2c8cebed --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramref-admissionregistration-v1.json @@ -0,0 +1,34 @@ +{ + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": [ + "string", + "null" + ] + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/paramref/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramref-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramref-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..95d75a9d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramref-admissionregistration-v1alpha1.json @@ -0,0 +1,34 @@ +{ + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "`name` is the name of the resource being referenced.\n\n`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": [ + "string", + "null" + ] + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny` Default to `Deny`", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/paramref/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramref-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramref-admissionregistration-v1beta1.json new file mode 100644 index 00000000..736bab51 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/paramref-admissionregistration-v1beta1.json @@ -0,0 +1,34 @@ +{ + "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", + "properties": { + "name": { + "description": "name is the name of the resource being referenced.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.\n\nA single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.\n\nA per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.\n\n- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.\n\n- If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.", + "type": [ + "string", + "null" + ] + }, + "parameterNotFoundAction": { + "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "type": [ + "string", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.\n\nIf multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.\n\nOne of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset." + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/paramref/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/parentreference-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/parentreference-networking-v1beta1.json new file mode 100644 index 00000000..2b97f46e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/parentreference-networking-v1beta1.json @@ -0,0 +1,40 @@ +{ + "description": "ParentReference describes a reference to a parent object.", + "properties": { + "group": { + "description": "Group is the group of the object being referenced.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of the object being referenced.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the namespace of the object being referenced.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "Resource is the resource of the object being referenced.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "resource", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/parentreference/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/patch-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/patch-meta-v1.json new file mode 100644 index 00000000..9bfc9b10 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/patch-meta-v1.json @@ -0,0 +1,6 @@ +{ + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/patch/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolume-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolume-v1.json new file mode 100644 index 00000000..e461f8a2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolume-v1.json @@ -0,0 +1,47 @@ +{ + "description": "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolume" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeStatus", + "description": "status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolume", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/persistentvolume/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaim-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaim-v1.json new file mode 100644 index 00000000..3ba6c8fe --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaim-v1.json @@ -0,0 +1,47 @@ +{ + "description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolumeClaim" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimSpec", + "description": "spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimStatus", + "description": "status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeClaim", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/persistentvolumeclaim/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimcondition-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimcondition-v1.json new file mode 100644 index 00000000..445cc710 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimcondition-v1.json @@ -0,0 +1,46 @@ +{ + "description": "PersistentVolumeClaimCondition contains details about state of pvc", + "properties": { + "lastProbeTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastProbeTime is the time we probed the condition." + }, + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastTransitionTime is the time the condition transitioned from one status to another." + }, + "message": { + "description": "message is the human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"Resizing\" that means the underlying persistent volume is being resized.", + "type": [ + "string", + "null" + ] + }, + "status": { + "type": [ + "string", + "null" + ] + }, + "type": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/persistentvolumeclaimcondition/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimlist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimlist-v1.json new file mode 100644 index 00000000..4ce10bea --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimlist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaim" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolumeClaimList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeClaimList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/persistentvolumeclaimlist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimspec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimspec-v1.json new file mode 100644 index 00000000..cdd3387e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimspec-v1.json @@ -0,0 +1,66 @@ +{ + "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", + "properties": { + "accessModes": { + "description": "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "dataSource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TypedLocalObjectReference", + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource." + }, + "dataSourceRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TypedObjectReference", + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." + }, + "resources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeResourceRequirements", + "description": "resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources" + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is a label query over volumes to consider for binding." + }, + "storageClassName": { + "description": "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", + "type": [ + "string", + "null" + ] + }, + "volumeAttributesClassName": { + "description": "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).", + "type": [ + "string", + "null" + ] + }, + "volumeMode": { + "description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", + "type": [ + "string", + "null" + ] + }, + "volumeName": { + "description": "volumeName is the binding reference to the PersistentVolume backing this claim.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/persistentvolumeclaimspec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimstatus-v1.json new file mode 100644 index 00000000..78f95aa1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimstatus-v1.json @@ -0,0 +1,90 @@ +{ + "description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", + "properties": { + "accessModes": { + "description": "accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "allocatedResourceStatuses": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "allocatedResourceStatuses stores status of resource being resized for the given PVC. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nClaimResourceStatus can be in any of following states:\n\t- ControllerResizeInProgress:\n\t\tState set when resize controller starts resizing the volume in control-plane.\n\t- ControllerResizeFailed:\n\t\tState set when resize has failed in resize controller with a terminal error.\n\t- NodeResizePending:\n\t\tState set when resize controller has finished resizing the volume but further resizing of\n\t\tvolume is needed on the node.\n\t- NodeResizeInProgress:\n\t\tState set when kubelet starts resizing the volume.\n\t- NodeResizeFailed:\n\t\tState set when resizing has failed in kubelet with a terminal error. Transient errors don't set\n\t\tNodeResizeFailed.\nFor example: if expanding a PVC for more capacity - this field can be one of the following states:\n\t- pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"ControllerResizeFailed\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizePending\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeInProgress\"\n - pvc.status.allocatedResourceStatus['storage'] = \"NodeResizeFailed\"\nWhen this field is not set, it means that no resize operation is in progress for the given PVC.\n\nA controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "granular" + }, + "allocatedResources": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "allocatedResources tracks the resources allocated to a PVC including its capacity. Key names follow standard Kubernetes label syntax. Valid values are either:\n\t* Un-prefixed keys:\n\t\t- storage - the capacity of the volume.\n\t* Custom resources must use implementation-defined prefixed names such as \"example.com/my-custom-resource\"\nApart from above values - keys that are unprefixed or have kubernetes.io prefix are considered reserved and hence may not be used.\n\nCapacity reported here may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity.\n\nA controller that receives PVC update with previously unknown resourceName should ignore the update for the purpose it was designed. For example - a controller that only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid resources associated with PVC.\n\nThis is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.", + "type": [ + "object", + "null" + ] + }, + "capacity": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "capacity represents the actual resources of the underlying volume.", + "type": [ + "object", + "null" + ] + }, + "conditions": { + "description": "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentVolumeAttributesClassName": { + "description": "currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + "type": [ + "string", + "null" + ] + }, + "modifyVolumeStatus": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ModifyVolumeStatus", + "description": "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default)." + }, + "phase": { + "description": "phase represents the current phase of PersistentVolumeClaim.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/persistentvolumeclaimstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimtemplate-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimtemplate-v1.json new file mode 100644 index 00000000..c271a784 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimtemplate-v1.json @@ -0,0 +1,19 @@ +{ + "description": "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", + "properties": { + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimSpec", + "description": "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here." + } + }, + "required": [ + "spec" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/persistentvolumeclaimtemplate/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimvolumesource-v1.json new file mode 100644 index 00000000..48699a80 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumeclaimvolumesource-v1.json @@ -0,0 +1,25 @@ +{ + "description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).", + "properties": { + "claimName": { + "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "claimName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/persistentvolumeclaimvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumelist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumelist-v1.json new file mode 100644 index 00000000..fd723be8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumelist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "PersistentVolumeList is a list of PersistentVolume items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolume" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PersistentVolumeList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PersistentVolumeList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/persistentvolumelist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumespec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumespec-v1.json new file mode 100644 index 00000000..e685e829 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumespec-v1.json @@ -0,0 +1,171 @@ +{ + "description": "PersistentVolumeSpec is the specification of a persistent volume.", + "properties": { + "accessModes": { + "description": "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "awsElasticBlockStore": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource", + "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore" + }, + "azureDisk": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureDiskVolumeSource", + "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." + }, + "azureFile": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureFilePersistentVolumeSource", + "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod." + }, + "capacity": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", + "type": [ + "object", + "null" + ] + }, + "cephfs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CephFSPersistentVolumeSource", + "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "cinder": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CinderPersistentVolumeSource", + "description": "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + }, + "claimRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding", + "x-kubernetes-map-type": "granular" + }, + "csi": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CSIPersistentVolumeSource", + "description": "csi represents storage that is handled by an external CSI driver (Beta feature)." + }, + "fc": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FCVolumeSource", + "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flexVolume": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlexPersistentVolumeSource", + "description": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." + }, + "flocker": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlockerVolumeSource", + "description": "flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running" + }, + "gcePersistentDisk": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource", + "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + }, + "glusterfs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GlusterfsPersistentVolumeSource", + "description": "glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + }, + "hostPath": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostPathVolumeSource", + "description": "hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" + }, + "iscsi": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ISCSIPersistentVolumeSource", + "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin." + }, + "local": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalVolumeSource", + "description": "local represents directly-attached storage with node affinity" + }, + "mountOptions": { + "description": "mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nfs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NFSVolumeSource", + "description": "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + }, + "nodeAffinity": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeNodeAffinity", + "description": "nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume." + }, + "persistentVolumeReclaimPolicy": { + "description": "persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming", + "type": [ + "string", + "null" + ] + }, + "photonPersistentDisk": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource", + "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" + }, + "portworxVolume": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PortworxVolumeSource", + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine" + }, + "quobyte": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.QuobyteVolumeSource", + "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime" + }, + "rbd": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.RBDPersistentVolumeSource", + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md" + }, + "scaleIO": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScaleIOPersistentVolumeSource", + "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." + }, + "storageClassName": { + "description": "storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.", + "type": [ + "string", + "null" + ] + }, + "storageos": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.StorageOSPersistentVolumeSource", + "description": "storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md" + }, + "volumeAttributesClassName": { + "description": "Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).", + "type": [ + "string", + "null" + ] + }, + "volumeMode": { + "description": "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.", + "type": [ + "string", + "null" + ] + }, + "vsphereVolume": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource", + "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/persistentvolumespec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumestatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumestatus-v1.json new file mode 100644 index 00000000..34d4e178 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/persistentvolumestatus-v1.json @@ -0,0 +1,33 @@ +{ + "description": "PersistentVolumeStatus is the current status of a persistent volume.", + "properties": { + "lastPhaseTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions." + }, + "message": { + "description": "message is a human-readable message indicating details about why the volume is in this state.", + "type": [ + "string", + "null" + ] + }, + "phase": { + "description": "phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/persistentvolumestatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/photonpersistentdiskvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/photonpersistentdiskvolumesource-v1.json new file mode 100644 index 00000000..7b65ac7a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/photonpersistentdiskvolumesource-v1.json @@ -0,0 +1,25 @@ +{ + "description": "Represents a Photon Controller persistent disk resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "pdID": { + "description": "pdID is the ID that identifies Photon Controller persistent disk", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "pdID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/photonpersistentdiskvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/pod-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/pod-v1.json new file mode 100644 index 00000000..b4bfdec9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/pod-v1.json @@ -0,0 +1,47 @@ +{ + "description": "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Pod" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodStatus", + "description": "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Pod", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/pod/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podaffinity-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podaffinity-v1.json new file mode 100644 index 00000000..6eae10a2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podaffinity-v1.json @@ -0,0 +1,30 @@ +{ + "description": "Pod affinity is a group of inter pod affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podaffinity/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podaffinityterm-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podaffinityterm-v1.json new file mode 100644 index 00000000..57745716 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podaffinityterm-v1.json @@ -0,0 +1,68 @@ +{ + "description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running", + "properties": { + "labelSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods." + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "mismatchLabelKeys": { + "description": "MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces." + }, + "namespaces": { + "description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "topologyKey": { + "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "topologyKey" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podaffinityterm/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podantiaffinity-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podantiaffinity-v1.json new file mode 100644 index 00000000..e64db544 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podantiaffinity-v1.json @@ -0,0 +1,30 @@ +{ + "description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", + "properties": { + "preferredDuringSchedulingIgnoredDuringExecution": { + "description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "requiredDuringSchedulingIgnoredDuringExecution": { + "description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinityTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podantiaffinity/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podcondition-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podcondition-v1.json new file mode 100644 index 00000000..bf14d9fe --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podcondition-v1.json @@ -0,0 +1,48 @@ +{ + "description": "PodCondition contains details for the current condition of this pod.", + "properties": { + "lastProbeTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time we probed the condition." + }, + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "Human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podcondition/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudget-policy-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudget-policy-v1.json new file mode 100644 index 00000000..7f82f4c8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudget-policy-v1.json @@ -0,0 +1,47 @@ +{ + "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "policy/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodDisruptionBudget" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetSpec", + "description": "Specification of the desired behavior of the PodDisruptionBudget." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudgetStatus", + "description": "Most recently observed status of the PodDisruptionBudget." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "PodDisruptionBudget", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/poddisruptionbudget/policy/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudgetlist-policy-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudgetlist-policy-v1.json new file mode 100644 index 00000000..f1827294 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudgetlist-policy-v1.json @@ -0,0 +1,52 @@ +{ + "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "policy/v1" + ] + }, + "items": { + "description": "Items is a list of PodDisruptionBudgets", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.policy.v1.PodDisruptionBudget" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodDisruptionBudgetList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "policy", + "kind": "PodDisruptionBudgetList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/poddisruptionbudgetlist/policy/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudgetspec-policy-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudgetspec-policy-v1.json new file mode 100644 index 00000000..ac0473f9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudgetspec-policy-v1.json @@ -0,0 +1,28 @@ +{ + "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", + "properties": { + "maxUnavailable": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\"." + }, + "minAvailable": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\"." + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", + "x-kubernetes-patch-strategy": "replace" + }, + "unhealthyPodEvictionPolicy": { + "description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is beta-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (enabled by default).", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/poddisruptionbudgetspec/policy/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudgetstatus-policy-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudgetstatus-policy-v1.json new file mode 100644 index 00000000..6541b389 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddisruptionbudgetstatus-policy-v1.json @@ -0,0 +1,80 @@ +{ + "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", + "properties": { + "conditions": { + "description": "Conditions contain conditions for PDB. The disruption controller sets the DisruptionAllowed condition. The following are known values for the reason field (additional reasons could be added in the future): - SyncFailed: The controller encountered an error and wasn't able to compute\n the number of allowed disruptions. Therefore no disruptions are\n allowed and the status of the condition will be False.\n- InsufficientPods: The number of pods are either at or below the number\n required by the PodDisruptionBudget. No disruptions are\n allowed and the status of the condition will be False.\n- SufficientPods: There are more pods than required by the PodDisruptionBudget.\n The condition will be True, and the number of allowed\n disruptions are provided by the disruptionsAllowed property.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentHealthy": { + "description": "current number of healthy pods", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "desiredHealthy": { + "description": "minimum desired number of healthy pods", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "disruptedPods": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", + "type": [ + "object", + "null" + ] + }, + "disruptionsAllowed": { + "description": "Number of pod disruptions that are currently allowed.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "expectedPods": { + "description": "total number of pods counted by this disruption budget", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "Most recent generation observed when updating this PDB status. DisruptionsAllowed and other status information is valid only if observedGeneration equals to PDB's object generation.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "disruptionsAllowed", + "currentHealthy", + "desiredHealthy", + "expectedPods" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/poddisruptionbudgetstatus/policy/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddnsconfig-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddnsconfig-v1.json new file mode 100644 index 00000000..5d8be414 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddnsconfig-v1.json @@ -0,0 +1,47 @@ +{ + "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", + "properties": { + "nameservers": { + "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "options": { + "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodDNSConfigOption" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "searches": { + "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/poddnsconfig/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddnsconfigoption-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddnsconfigoption-v1.json new file mode 100644 index 00000000..c416655d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/poddnsconfigoption-v1.json @@ -0,0 +1,21 @@ +{ + "description": "PodDNSConfigOption defines DNS resolver options of a pod.", + "properties": { + "name": { + "description": "Required.", + "type": [ + "string", + "null" + ] + }, + "value": { + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/poddnsconfigoption/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicy-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicy-batch-v1.json new file mode 100644 index 00000000..c4d3331d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicy-batch-v1.json @@ -0,0 +1,22 @@ +{ + "description": "PodFailurePolicy describes how failed pods influence the backoffLimit.", + "properties": { + "rules": { + "description": "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podfailurepolicy/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicyonexitcodesrequirement-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicyonexitcodesrequirement-batch-v1.json new file mode 100644 index 00000000..44f95a32 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicyonexitcodesrequirement-batch-v1.json @@ -0,0 +1,41 @@ +{ + "description": "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", + "properties": { + "containerName": { + "description": "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:\n\n- In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.", + "type": [ + "string", + "null" + ] + }, + "values": { + "description": "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", + "items": { + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "operator", + "values" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podfailurepolicyonexitcodesrequirement/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicyonpodconditionspattern-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicyonpodconditionspattern-batch-v1.json new file mode 100644 index 00000000..f6583754 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicyonpodconditionspattern-batch-v1.json @@ -0,0 +1,26 @@ +{ + "description": "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", + "properties": { + "status": { + "description": "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podfailurepolicyonpodconditionspattern/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicyrule-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicyrule-batch-v1.json new file mode 100644 index 00000000..0bc21cf9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podfailurepolicyrule-batch-v1.json @@ -0,0 +1,33 @@ +{ + "description": "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.", + "properties": { + "action": { + "description": "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:\n\n- FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- FailIndex: indicates that the pod's index is marked as Failed and will\n not be restarted.\n This value is beta-level. It can be used when the\n `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.", + "type": [ + "string", + "null" + ] + }, + "onExitCodes": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicyOnExitCodesRequirement", + "description": "Represents the requirement on the container exit codes." + }, + "onPodConditions": { + "description": "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.PodFailurePolicyOnPodConditionsPattern" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "action" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podfailurepolicyrule/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podip-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podip-v1.json new file mode 100644 index 00000000..04ff2e27 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podip-v1.json @@ -0,0 +1,18 @@ +{ + "description": "PodIP represents a single IP address allocated to the pod.", + "properties": { + "ip": { + "description": "IP is the IP address assigned to the pod", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "ip" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podip/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podlist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podlist-v1.json new file mode 100644 index 00000000..1b7bd9c3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podlist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "PodList is a list of Pods.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Pod" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podlist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podos-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podos-v1.json new file mode 100644 index 00000000..457f440a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podos-v1.json @@ -0,0 +1,18 @@ +{ + "description": "PodOS defines the OS parameters of a pod.", + "properties": { + "name": { + "description": "Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podos/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podreadinessgate-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podreadinessgate-v1.json new file mode 100644 index 00000000..a5a0be92 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podreadinessgate-v1.json @@ -0,0 +1,18 @@ +{ + "description": "PodReadinessGate contains the reference to a pod condition", + "properties": { + "conditionType": { + "description": "ConditionType refers to a condition in the pod's condition list with matching type.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "conditionType" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podreadinessgate/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podresourceclaim-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podresourceclaim-v1.json new file mode 100644 index 00000000..36db292b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podresourceclaim-v1.json @@ -0,0 +1,32 @@ +{ + "description": "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod.\n\nIt adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", + "type": [ + "string", + "null" + ] + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "type": [ + "string", + "null" + ] + }, + "resourceClaimTemplateName": { + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podresourceclaim/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podresourceclaimstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podresourceclaimstatus-v1.json new file mode 100644 index 00000000..654f1a78 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podresourceclaimstatus-v1.json @@ -0,0 +1,25 @@ +{ + "description": "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL.", + "type": [ + "string", + "null" + ] + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podresourceclaimstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontext-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontext-resource-v1alpha3.json new file mode 100644 index 00000000..ad3b39e9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontext-resource-v1alpha3.json @@ -0,0 +1,50 @@ +{ + "description": "PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DRAControlPlaneController feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodSchedulingContext" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextSpec", + "description": "Spec describes where resources for the Pod are needed." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContextStatus", + "description": "Status describes where resources for the Pod can be allocated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodSchedulingContext", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podschedulingcontext/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontextlist-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontextlist-resource-v1alpha3.json new file mode 100644 index 00000000..7e84a946 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontextlist-resource-v1alpha3.json @@ -0,0 +1,52 @@ +{ + "description": "PodSchedulingContextList is a collection of Pod scheduling objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of PodSchedulingContext objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.PodSchedulingContext" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodSchedulingContextList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodSchedulingContextList", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podschedulingcontextlist/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontextspec-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontextspec-resource-v1alpha3.json new file mode 100644 index 00000000..b453f17e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontextspec-resource-v1alpha3.json @@ -0,0 +1,29 @@ +{ + "description": "PodSchedulingContextSpec describes where resources for the Pod are needed.", + "properties": { + "potentialNodes": { + "description": "PotentialNodes lists nodes where the Pod might be able to run.\n\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "selectedNode": { + "description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podschedulingcontextspec/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontextstatus-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontextstatus-resource-v1alpha3.json new file mode 100644 index 00000000..723d4b32 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulingcontextstatus-resource-v1alpha3.json @@ -0,0 +1,22 @@ +{ + "description": "PodSchedulingContextStatus describes where resources for the Pod can be allocated.", + "properties": { + "resourceClaims": { + "description": "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSchedulingStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podschedulingcontextstatus/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulinggate-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulinggate-v1.json new file mode 100644 index 00000000..af7fe803 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podschedulinggate-v1.json @@ -0,0 +1,18 @@ +{ + "description": "PodSchedulingGate is associated to a Pod to guard its scheduling.", + "properties": { + "name": { + "description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podschedulinggate/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podsecuritycontext-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podsecuritycontext-v1.json new file mode 100644 index 00000000..51d780db --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podsecuritycontext-v1.json @@ -0,0 +1,95 @@ +{ + "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", + "properties": { + "appArmorProfile": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AppArmorProfile", + "description": "appArmorProfile is the AppArmor options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." + }, + "fsGroup": { + "description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "fsGroupChangePolicy": { + "description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "string", + "null" + ] + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": [ + "boolean", + "null" + ] + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "seLinuxOptions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SELinuxOptions", + "description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows." + }, + "seccompProfile": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SeccompProfile", + "description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." + }, + "supplementalGroups": { + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.", + "items": { + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "supplementalGroupsPolicy": { + "description": "Defines how supplemental groups of the first container processes are calculated. Valid values are \"Merge\" and \"Strict\". If not specified, \"Merge\" is used. (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled and the container runtime must implement support for this feature. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "string", + "null" + ] + }, + "sysctls": { + "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Sysctl" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "windowsOptions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.WindowsSecurityContextOptions", + "description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podsecuritycontext/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podsmetricsource-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podsmetricsource-autoscaling-v2.json new file mode 100644 index 00000000..d9ce9e6f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podsmetricsource-autoscaling-v2.json @@ -0,0 +1,20 @@ +{ + "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", + "properties": { + "metric": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + }, + "target": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "metric", + "target" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podsmetricsource/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podsmetricstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podsmetricstatus-autoscaling-v2.json new file mode 100644 index 00000000..333773f8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podsmetricstatus-autoscaling-v2.json @@ -0,0 +1,20 @@ +{ + "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "properties": { + "current": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "metric": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricIdentifier", + "description": "metric identifies the target metric by name and selector" + } + }, + "required": [ + "metric", + "current" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podsmetricstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podspec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podspec-v1.json new file mode 100644 index 00000000..634da3d8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podspec-v1.json @@ -0,0 +1,375 @@ +{ + "description": "PodSpec is a description of a pod.", + "properties": { + "activeDeadlineSeconds": { + "description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "affinity": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Affinity", + "description": "If specified, the pod's scheduling constraints" + }, + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", + "type": [ + "boolean", + "null" + ] + }, + "containers": { + "description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Container" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "dnsConfig": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodDNSConfig", + "description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy." + }, + "dnsPolicy": { + "description": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.", + "type": [ + "string", + "null" + ] + }, + "enableServiceLinks": { + "description": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.", + "type": [ + "boolean", + "null" + ] + }, + "ephemeralContainers": { + "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EphemeralContainer" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "hostAliases": { + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostAlias" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "ip" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "hostIPC": { + "description": "Use the host's ipc namespace. Optional: Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "hostNetwork": { + "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "hostPID": { + "description": "Use the host's pid namespace. Optional: Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "hostUsers": { + "description": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.", + "type": [ + "boolean", + "null" + ] + }, + "hostname": { + "description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", + "type": [ + "string", + "null" + ] + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "initContainers": { + "description": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Container" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "nodeName": { + "description": "NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename", + "type": [ + "string", + "null" + ] + }, + "nodeSelector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "os": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodOS", + "description": "Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.appArmorProfile - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.securityContext.supplementalGroupsPolicy - spec.containers[*].securityContext.appArmorProfile - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup" + }, + "overhead": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md", + "type": [ + "object", + "null" + ] + }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": [ + "string", + "null" + ] + }, + "priority": { + "description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "priorityClassName": { + "description": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.", + "type": [ + "string", + "null" + ] + }, + "readinessGates": { + "description": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodReadinessGate" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodResourceClaim" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "restartPolicy": { + "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy", + "type": [ + "string", + "null" + ] + }, + "runtimeClassName": { + "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class", + "type": [ + "string", + "null" + ] + }, + "schedulerName": { + "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", + "type": [ + "string", + "null" + ] + }, + "schedulingGates": { + "description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\n\nSchedulingGates can only be set at pod creation time, and be removed only afterwards.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSchedulingGate" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "securityContext": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSecurityContext", + "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." + }, + "serviceAccount": { + "description": "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", + "type": [ + "string", + "null" + ] + }, + "serviceAccountName": { + "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "type": [ + "string", + "null" + ] + }, + "setHostnameAsFQDN": { + "description": "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "shareProcessNamespace": { + "description": "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.", + "type": [ + "boolean", + "null" + ] + }, + "subdomain": { + "description": "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.", + "type": [ + "string", + "null" + ] + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "tolerations": { + "description": "If specified, the pod's tolerations.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Toleration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "topologySpreadConstraints": { + "description": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TopologySpreadConstraint" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "topologyKey", + "whenUnsatisfiable" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "topologyKey", + "x-kubernetes-patch-strategy": "merge" + }, + "volumes": { + "description": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Volume" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + } + }, + "required": [ + "containers" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podspec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podstatus-v1.json new file mode 100644 index 00000000..8df885e2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podstatus-v1.json @@ -0,0 +1,162 @@ +{ + "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.", + "properties": { + "conditions": { + "description": "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "containerStatuses": { + "description": "The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ephemeralContainerStatuses": { + "description": "Status for any ephemeral containers that have run in this pod.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "hostIP": { + "description": "hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod", + "type": [ + "string", + "null" + ] + }, + "hostIPs": { + "description": "hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostIP" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "initContainerStatuses": { + "description": "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ContainerStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "message": { + "description": "A human readable message indicating details about why the pod is in this condition.", + "type": [ + "string", + "null" + ] + }, + "nominatedNodeName": { + "description": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", + "type": [ + "string", + "null" + ] + }, + "phase": { + "description": "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase", + "type": [ + "string", + "null" + ] + }, + "podIP": { + "description": "podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", + "type": [ + "string", + "null" + ] + }, + "podIPs": { + "description": "podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodIP" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "ip" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "ip", + "x-kubernetes-patch-strategy": "merge" + }, + "qosClass": { + "description": "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", + "type": [ + "string", + "null" + ] + }, + "resize": { + "description": "Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"", + "type": [ + "string", + "null" + ] + }, + "resourceClaimStatuses": { + "description": "Status of resource claims.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodResourceClaimStatus" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "startTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podtemplate-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podtemplate-v1.json new file mode 100644 index 00000000..d5653720 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podtemplate-v1.json @@ -0,0 +1,43 @@ +{ + "description": "PodTemplate describes a template for creating copies of a predefined pod.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodTemplate" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodTemplate", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podtemplate/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podtemplatelist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podtemplatelist-v1.json new file mode 100644 index 00000000..490e63c0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podtemplatelist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "PodTemplateList is a list of PodTemplates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of pod templates", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplate" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PodTemplateList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "PodTemplateList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podtemplatelist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podtemplatespec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podtemplatespec-v1.json new file mode 100644 index 00000000..6fad832b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/podtemplatespec-v1.json @@ -0,0 +1,16 @@ +{ + "description": "PodTemplateSpec describes the data a pod should have when created from a template", + "properties": { + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodSpec", + "description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/podtemplatespec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/policyrule-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/policyrule-rbac-v1.json new file mode 100644 index 00000000..46d72dcc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/policyrule-rbac-v1.json @@ -0,0 +1,81 @@ +{ + "description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", + "properties": { + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nonResourceURLs": { + "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. '*' represents all resources.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/policyrule/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/policyruleswithsubjects-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/policyruleswithsubjects-flowcontrol-v1.json new file mode 100644 index 00000000..c4184963 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/policyruleswithsubjects-flowcontrol-v1.json @@ -0,0 +1,44 @@ +{ + "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", + "properties": { + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.NonResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.ResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "subjects": { + "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.Subject" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "subjects" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/policyruleswithsubjects/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/policyruleswithsubjects-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/policyruleswithsubjects-flowcontrol-v1beta3.json new file mode 100644 index 00000000..f29693cc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/policyruleswithsubjects-flowcontrol-v1beta3.json @@ -0,0 +1,44 @@ +{ + "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", + "properties": { + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "subjects": { + "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.Subject" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "subjects" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/policyruleswithsubjects/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/portstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/portstatus-v1.json new file mode 100644 index 00000000..b5f3c8a8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/portstatus-v1.json @@ -0,0 +1,33 @@ +{ + "properties": { + "error": { + "description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "Port is the port number of the service port of which status is recorded here", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "protocol": { + "description": "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/portstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/portworxvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/portworxvolumesource-v1.json new file mode 100644 index 00000000..3e66d756 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/portworxvolumesource-v1.json @@ -0,0 +1,32 @@ +{ + "description": "PortworxVolumeSource represents a Portworx volume resource.", + "properties": { + "fsType": { + "description": "fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "volumeID": { + "description": "volumeID uniquely identifies a Portworx volume", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "volumeID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/portworxvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/preconditions-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/preconditions-meta-v1.json new file mode 100644 index 00000000..9a87ea3b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/preconditions-meta-v1.json @@ -0,0 +1,22 @@ +{ + "description": "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", + "properties": { + "resourceVersion": { + "description": "Specifies the target ResourceVersion", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "Specifies the target UID.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/preconditions/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/preferredschedulingterm-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/preferredschedulingterm-v1.json new file mode 100644 index 00000000..758663db --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/preferredschedulingterm-v1.json @@ -0,0 +1,24 @@ +{ + "description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", + "properties": { + "preference": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelectorTerm", + "description": "A node selector term, associated with the corresponding weight." + }, + "weight": { + "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "weight", + "preference" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/preferredschedulingterm/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/priorityclass-scheduling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/priorityclass-scheduling-v1.json new file mode 100644 index 00000000..6faf2df3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/priorityclass-scheduling-v1.json @@ -0,0 +1,71 @@ +{ + "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "scheduling.k8s.io/v1" + ] + }, + "description": { + "description": "description is an arbitrary string that usually provides guidelines on when this priority class should be used.", + "type": [ + "string", + "null" + ] + }, + "globalDefault": { + "description": "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "preemptionPolicy": { + "description": "preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", + "type": [ + "string", + "null" + ] + }, + "value": { + "description": "value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "value" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/priorityclass/scheduling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/priorityclasslist-scheduling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/priorityclasslist-scheduling-v1.json new file mode 100644 index 00000000..589e2863 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/priorityclasslist-scheduling-v1.json @@ -0,0 +1,52 @@ +{ + "description": "PriorityClassList is a collection of priority classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "scheduling.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of PriorityClasses", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.scheduling.v1.PriorityClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PriorityClassList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/priorityclasslist/scheduling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfiguration-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfiguration-flowcontrol-v1.json new file mode 100644 index 00000000..766ad05c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfiguration-flowcontrol-v1.json @@ -0,0 +1,47 @@ +{ + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfiguration" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/prioritylevelconfiguration/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfiguration-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfiguration-flowcontrol-v1beta3.json new file mode 100644 index 00000000..ff779a75 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfiguration-flowcontrol-v1beta3.json @@ -0,0 +1,47 @@ +{ + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfiguration" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/prioritylevelconfiguration/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationcondition-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationcondition-flowcontrol-v1.json new file mode 100644 index 00000000..ebbfb51d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationcondition-flowcontrol-v1.json @@ -0,0 +1,40 @@ +{ + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/prioritylevelconfigurationcondition/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationcondition-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationcondition-flowcontrol-v1beta3.json new file mode 100644 index 00000000..996335d2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationcondition-flowcontrol-v1beta3.json @@ -0,0 +1,40 @@ +{ + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/prioritylevelconfigurationcondition/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationlist-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationlist-flowcontrol-v1.json new file mode 100644 index 00000000..0c77abc0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationlist-flowcontrol-v1.json @@ -0,0 +1,52 @@ +{ + "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1" + ] + }, + "items": { + "description": "`items` is a list of request-priorities.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfiguration" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfigurationList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/prioritylevelconfigurationlist/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationlist-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationlist-flowcontrol-v1beta3.json new file mode 100644 index 00000000..fd0f0179 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationlist-flowcontrol-v1beta3.json @@ -0,0 +1,52 @@ +{ + "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "flowcontrol.apiserver.k8s.io/v1beta3" + ] + }, + "items": { + "description": "`items` is a list of request-priorities.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "PriorityLevelConfigurationList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1beta3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/prioritylevelconfigurationlist/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationreference-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationreference-flowcontrol-v1.json new file mode 100644 index 00000000..00d095df --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationreference-flowcontrol-v1.json @@ -0,0 +1,18 @@ +{ + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "properties": { + "name": { + "description": "`name` is the name of the priority level configuration being referenced Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/prioritylevelconfigurationreference/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationreference-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationreference-flowcontrol-v1beta3.json new file mode 100644 index 00000000..f0465e5a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationreference-flowcontrol-v1beta3.json @@ -0,0 +1,18 @@ +{ + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "properties": { + "name": { + "description": "`name` is the name of the priority level configuration being referenced Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/prioritylevelconfigurationreference/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationspec-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationspec-flowcontrol-v1.json new file mode 100644 index 00000000..93db6e59 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationspec-flowcontrol-v1.json @@ -0,0 +1,35 @@ +{ + "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", + "properties": { + "exempt": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.ExemptPriorityLevelConfiguration", + "description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply." + }, + "limited": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "type": { + "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "exempt": "Exempt", + "limited": "Limited" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/prioritylevelconfigurationspec/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationspec-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationspec-flowcontrol-v1beta3.json new file mode 100644 index 00000000..3d90ae53 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationspec-flowcontrol-v1beta3.json @@ -0,0 +1,35 @@ +{ + "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", + "properties": { + "exempt": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.ExemptPriorityLevelConfiguration", + "description": "`exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `\"Limited\"`. This field MAY be non-empty if `type` is `\"Exempt\"`. If empty and `type` is `\"Exempt\"` then the default values for `ExemptPriorityLevelConfiguration` apply." + }, + "limited": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "type": { + "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "exempt": "Exempt", + "limited": "Limited" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/prioritylevelconfigurationspec/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationstatus-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationstatus-flowcontrol-v1.json new file mode 100644 index 00000000..19a8c4f1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationstatus-flowcontrol-v1.json @@ -0,0 +1,24 @@ +{ + "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.PriorityLevelConfigurationCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/prioritylevelconfigurationstatus/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationstatus-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationstatus-flowcontrol-v1beta3.json new file mode 100644 index 00000000..7828822f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/prioritylevelconfigurationstatus-flowcontrol-v1beta3.json @@ -0,0 +1,24 @@ +{ + "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/prioritylevelconfigurationstatus/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/probe-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/probe-v1.json new file mode 100644 index 00000000..b18354af --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/probe-v1.json @@ -0,0 +1,72 @@ +{ + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "properties": { + "exec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ExecAction", + "description": "Exec specifies the action to take." + }, + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "grpc": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GRPCAction", + "description": "GRPC specifies an action involving a GRPC port." + }, + "httpGet": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HTTPGetAction", + "description": "HTTPGet specifies the http request to perform." + }, + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "tcpSocket": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TCPSocketAction", + "description": "TCPSocket specifies an action involving a TCP port." + }, + "terminationGracePeriodSeconds": { + "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/probe/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/projectedvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/projectedvolumesource-v1.json new file mode 100644 index 00000000..c0cc54d9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/projectedvolumesource-v1.json @@ -0,0 +1,27 @@ +{ + "description": "Represents a projected volume source", + "properties": { + "defaultMode": { + "description": "defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "sources": { + "description": "sources is the list of volume projections. Each entry in this list handles one source.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VolumeProjection" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/projectedvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/quantity-resource.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/quantity-resource.json new file mode 100644 index 00000000..43d5a7e0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/quantity-resource.json @@ -0,0 +1,13 @@ +{ + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "$id": "https://kubernetes.io/api/quantity/resource" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/queuingconfiguration-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/queuingconfiguration-flowcontrol-v1.json new file mode 100644 index 00000000..03aefcde --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/queuingconfiguration-flowcontrol-v1.json @@ -0,0 +1,32 @@ +{ + "description": "QueuingConfiguration holds the configuration parameters for queuing", + "properties": { + "handSize": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/queuingconfiguration/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/queuingconfiguration-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/queuingconfiguration-flowcontrol-v1beta3.json new file mode 100644 index 00000000..90eba658 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/queuingconfiguration-flowcontrol-v1beta3.json @@ -0,0 +1,32 @@ +{ + "description": "QueuingConfiguration holds the configuration parameters for queuing", + "properties": { + "handSize": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/queuingconfiguration/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/quobytevolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/quobytevolumesource-v1.json new file mode 100644 index 00000000..1efddaee --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/quobytevolumesource-v1.json @@ -0,0 +1,54 @@ +{ + "description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", + "properties": { + "group": { + "description": "group to map volume access to Default is no group", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "registry": { + "description": "registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", + "type": [ + "string", + "null" + ] + }, + "tenant": { + "description": "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "user to map volume access to Defaults to serivceaccount user", + "type": [ + "string", + "null" + ] + }, + "volume": { + "description": "volume is a string that references an already created Quobyte volume by name.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "registry", + "volume" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/quobytevolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rawextension-pkg-runtime.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rawextension-pkg-runtime.json new file mode 100644 index 00000000..7e409b8d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rawextension-pkg-runtime.json @@ -0,0 +1,6 @@ +{ + "description": "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/rawextension/pkg/runtime" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rbdpersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rbdpersistentvolumesource-v1.json new file mode 100644 index 00000000..a4794b2b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rbdpersistentvolumesource-v1.json @@ -0,0 +1,72 @@ +{ + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "keyring": { + "description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "pool": { + "description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + }, + "user": { + "description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors", + "image" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/rbdpersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rbdvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rbdvolumesource-v1.json new file mode 100644 index 00000000..45a0c1fe --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rbdvolumesource-v1.json @@ -0,0 +1,72 @@ +{ + "description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd", + "type": [ + "string", + "null" + ] + }, + "image": { + "description": "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "keyring": { + "description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "monitors": { + "description": "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "pool": { + "description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it" + }, + "user": { + "description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "monitors", + "image" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/rbdvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicaset-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicaset-apps-v1.json new file mode 100644 index 00000000..960414f8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicaset-apps-v1.json @@ -0,0 +1,47 @@ +{ + "description": "ReplicaSet ensures that a specified number of pod replicas are running at any given time.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicaSet" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetSpec", + "description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetStatus", + "description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/replicaset/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetcondition-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetcondition-apps-v1.json new file mode 100644 index 00000000..63b06d78 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetcondition-apps-v1.json @@ -0,0 +1,44 @@ +{ + "description": "ReplicaSetCondition describes the state of a replica set at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of replica set condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/replicasetcondition/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetlist-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetlist-apps-v1.json new file mode 100644 index 00000000..dbcba8b1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetlist-apps-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ReplicaSetList is a collection of ReplicaSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSet" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicaSetList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "ReplicaSetList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/replicasetlist/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetspec-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetspec-apps-v1.json new file mode 100644 index 00000000..9cfff567 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetspec-apps-v1.json @@ -0,0 +1,35 @@ +{ + "description": "ReplicaSetSpec is the specification of a ReplicaSet.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + } + }, + "required": [ + "selector" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/replicasetspec/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetstatus-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetstatus-apps-v1.json new file mode 100644 index 00000000..aba23370 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicasetstatus-apps-v1.json @@ -0,0 +1,67 @@ +{ + "description": "ReplicaSetStatus represents the current status of a ReplicaSet.", + "properties": { + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a replica set's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.ReplicaSetCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replicaset.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "replicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/replicasetstatus/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontroller-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontroller-v1.json new file mode 100644 index 00000000..efd2059a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontroller-v1.json @@ -0,0 +1,47 @@ +{ + "description": "ReplicationController represents the configuration of a replication controller.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicationController" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerSpec", + "description": "Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerStatus", + "description": "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ReplicationController", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/replicationcontroller/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollercondition-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollercondition-v1.json new file mode 100644 index 00000000..2a8f3b85 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollercondition-v1.json @@ -0,0 +1,44 @@ +{ + "description": "ReplicationControllerCondition describes the state of a replication controller at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "The last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of replication controller condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/replicationcontrollercondition/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollerlist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollerlist-v1.json new file mode 100644 index 00000000..49c34d8b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollerlist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ReplicationControllerList is a collection of replication controllers.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationController" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ReplicationControllerList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ReplicationControllerList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/replicationcontrollerlist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollerspec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollerspec-v1.json new file mode 100644 index 00000000..d531c261 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollerspec-v1.json @@ -0,0 +1,42 @@ +{ + "description": "ReplicationControllerSpec is the specification of a replication controller.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/replicationcontrollerspec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollerstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollerstatus-v1.json new file mode 100644 index 00000000..e0f54773 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/replicationcontrollerstatus-v1.json @@ -0,0 +1,67 @@ +{ + "description": "ReplicationControllerStatus represents the current status of a replication controller.", + "properties": { + "availableReplicas": { + "description": "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a replication controller's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ReplicationControllerCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "fullyLabeledReplicas": { + "description": "The number of pods that have labels matching the labels of the pod template of the replication controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "observedGeneration": { + "description": "ObservedGeneration reflects the generation of the most recently observed replication controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "The number of ready replicas for this replication controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "replicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/replicationcontrollerstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceattributes-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceattributes-authorization-v1.json new file mode 100644 index 00000000..2fefbf00 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceattributes-authorization-v1.json @@ -0,0 +1,65 @@ +{ + "description": "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface", + "properties": { + "fieldSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.FieldSelectorAttributes", + "description": "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default)." + }, + "group": { + "description": "Group is the API Group of the Resource. \"*\" means all.", + "type": [ + "string", + "null" + ] + }, + "labelSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.LabelSelectorAttributes", + "description": "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.\n\nThis field is alpha-level. To use this field, you must enable the `AuthorizeWithSelectors` feature gate (disabled by default)." + }, + "name": { + "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "Resource is one of the existing resource types. \"*\" means all.", + "type": [ + "string", + "null" + ] + }, + "subresource": { + "description": "Subresource is one of the existing resource types. \"\" means none.", + "type": [ + "string", + "null" + ] + }, + "verb": { + "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "type": [ + "string", + "null" + ] + }, + "version": { + "description": "Version is the API Version of the Resource. \"*\" means all.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceattributes/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaim-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaim-resource-v1alpha3.json new file mode 100644 index 00000000..c26b628e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaim-resource-v1alpha3.json @@ -0,0 +1,50 @@ +{ + "description": "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaim" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSpec", + "description": "Spec describes what is being requested and how to configure it. The spec is immutable." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimStatus", + "description": "Status describes whether the claim is ready to use and what has been allocated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceclaim/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaim-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaim-v1.json new file mode 100644 index 00000000..5fa23b03 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaim-v1.json @@ -0,0 +1,25 @@ +{ + "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", + "properties": { + "name": { + "description": "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.", + "type": [ + "string", + "null" + ] + }, + "request": { + "description": "Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceclaim/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimconsumerreference-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimconsumerreference-resource-v1alpha3.json new file mode 100644 index 00000000..0259ba5a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimconsumerreference-resource-v1alpha3.json @@ -0,0 +1,41 @@ +{ + "description": "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "description": "Resource is the type of resource being referenced, for example \"pods\".", + "type": [ + "string", + "null" + ] + }, + "uid": { + "description": "UID identifies exactly one incarnation of the resource.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "resource", + "name", + "uid" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceclaimconsumerreference/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimlist-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimlist-resource-v1alpha3.json new file mode 100644 index 00000000..94682e55 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimlist-resource-v1alpha3.json @@ -0,0 +1,52 @@ +{ + "description": "ResourceClaimList is a collection of claims.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource claims.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaim" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaimList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimList", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceclaimlist/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimschedulingstatus-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimschedulingstatus-resource-v1alpha3.json new file mode 100644 index 00000000..b6f879c7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimschedulingstatus-resource-v1alpha3.json @@ -0,0 +1,32 @@ +{ + "description": "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.", + "properties": { + "name": { + "description": "Name matches the pod.spec.resourceClaims[*].Name field.", + "type": [ + "string", + "null" + ] + }, + "unsuitableNodes": { + "description": "UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\n\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceclaimschedulingstatus/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimspec-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimspec-resource-v1alpha3.json new file mode 100644 index 00000000..49f7544f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimspec-resource-v1alpha3.json @@ -0,0 +1,19 @@ +{ + "description": "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.", + "properties": { + "controller": { + "description": "Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.", + "type": [ + "string", + "null" + ] + }, + "devices": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.DeviceClaim", + "description": "Devices defines how to request devices." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceclaimspec/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimstatus-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimstatus-resource-v1alpha3.json new file mode 100644 index 00000000..5573520d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimstatus-resource-v1alpha3.json @@ -0,0 +1,35 @@ +{ + "description": "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.", + "properties": { + "allocation": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.AllocationResult", + "description": "Allocation is set once the claim has been allocated successfully." + }, + "deallocationRequested": { + "description": "Indicates that a claim is to be deallocated. While this is set, no new consumers may be added to ReservedFor.\n\nThis is only used if the claim needs to be deallocated by a DRA driver. That driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nThis is an alpha field and requires enabling the DRAControlPlaneController feature gate.", + "type": [ + "boolean", + "null" + ] + }, + "reservedFor": { + "description": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.\n\nIn a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.\n\nBoth schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.\n\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimConsumerReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "uid", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceclaimstatus/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimtemplate-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimtemplate-resource-v1alpha3.json new file mode 100644 index 00000000..a62acb07 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimtemplate-resource-v1alpha3.json @@ -0,0 +1,46 @@ +{ + "description": "ResourceClaimTemplate is used to produce ResourceClaim objects.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaimTemplate" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplateSpec", + "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceclaimtemplate/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimtemplatelist-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimtemplatelist-resource-v1alpha3.json new file mode 100644 index 00000000..1d2e5913 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimtemplatelist-resource-v1alpha3.json @@ -0,0 +1,52 @@ +{ + "description": "ResourceClaimTemplateList is a collection of claim templates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource claim templates.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimTemplate" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceClaimTemplateList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplateList", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceclaimtemplatelist/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimtemplatespec-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimtemplatespec-resource-v1alpha3.json new file mode 100644 index 00000000..f63d9f50 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceclaimtemplatespec-resource-v1alpha3.json @@ -0,0 +1,19 @@ +{ + "description": "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.", + "properties": { + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceClaimSpec", + "description": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here." + } + }, + "required": [ + "spec" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceclaimtemplatespec/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcefieldselector-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcefieldselector-v1.json new file mode 100644 index 00000000..e7ba25b0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcefieldselector-v1.json @@ -0,0 +1,30 @@ +{ + "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", + "properties": { + "containerName": { + "description": "Container name: required for volumes, optional for env vars", + "type": [ + "string", + "null" + ] + }, + "divisor": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity", + "description": "Specifies the output format of the exposed resources, defaults to \"1\"" + }, + "resource": { + "description": "Required: resource to select", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "resource" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcefieldselector/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcehealth-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcehealth-v1.json new file mode 100644 index 00000000..806275ef --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcehealth-v1.json @@ -0,0 +1,25 @@ +{ + "description": "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680 and historical health changes are planned to be added in future iterations of a KEP.", + "properties": { + "health": { + "description": "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.", + "type": [ + "string", + "null" + ] + }, + "resourceID": { + "description": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "resourceID" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcehealth/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcemetricsource-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcemetricsource-autoscaling-v2.json new file mode 100644 index 00000000..8c4025fc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcemetricsource-autoscaling-v2.json @@ -0,0 +1,23 @@ +{ + "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", + "properties": { + "name": { + "description": "name is the name of the resource in question.", + "type": [ + "string", + "null" + ] + }, + "target": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricTarget", + "description": "target specifies the target value for the given metric" + } + }, + "required": [ + "name", + "target" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcemetricsource/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcemetricstatus-autoscaling-v2.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcemetricstatus-autoscaling-v2.json new file mode 100644 index 00000000..6dba00d9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcemetricstatus-autoscaling-v2.json @@ -0,0 +1,23 @@ +{ + "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", + "properties": { + "current": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v2.MetricValueStatus", + "description": "current contains the current value for the given metric" + }, + "name": { + "description": "name is the name of the resource in question.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "current" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcemetricstatus/autoscaling/v2" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcepolicyrule-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcepolicyrule-flowcontrol-v1.json new file mode 100644 index 00000000..2c7821c3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcepolicyrule-flowcontrol-v1.json @@ -0,0 +1,76 @@ +{ + "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", + "properties": { + "apiGroups": { + "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "clusterScope": { + "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", + "type": [ + "boolean", + "null" + ] + }, + "namespaces": { + "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "resources": { + "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "apiGroups", + "resources" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcepolicyrule/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcepolicyrule-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcepolicyrule-flowcontrol-v1beta3.json new file mode 100644 index 00000000..5443b410 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcepolicyrule-flowcontrol-v1beta3.json @@ -0,0 +1,76 @@ +{ + "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", + "properties": { + "apiGroups": { + "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "clusterScope": { + "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", + "type": [ + "boolean", + "null" + ] + }, + "namespaces": { + "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "resources": { + "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "apiGroups", + "resources" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcepolicyrule/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcepool-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcepool-resource-v1alpha3.json new file mode 100644 index 00000000..c198f515 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcepool-resource-v1alpha3.json @@ -0,0 +1,36 @@ +{ + "description": "ResourcePool describes the pool that ResourceSlices belong to.", + "properties": { + "generation": { + "description": "Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.\n\nCombined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "name": { + "description": "Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.\n\nIt must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "resourceSliceCount": { + "description": "ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.\n\nConsumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "name", + "generation", + "resourceSliceCount" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcepool/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequota-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequota-v1.json new file mode 100644 index 00000000..4387ef88 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequota-v1.json @@ -0,0 +1,47 @@ +{ + "description": "ResourceQuota sets aggregate quota restrictions enforced per namespace", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceQuota" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuotaSpec", + "description": "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuotaStatus", + "description": "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ResourceQuota", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcequota/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequotalist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequotalist-v1.json new file mode 100644 index 00000000..1cfe4c5c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequotalist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ResourceQuotaList is a list of ResourceQuota items.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceQuota" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceQuotaList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ResourceQuotaList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcequotalist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequotaspec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequotaspec-v1.json new file mode 100644 index 00000000..92b4de98 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequotaspec-v1.json @@ -0,0 +1,36 @@ +{ + "description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", + "properties": { + "hard": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "type": [ + "object", + "null" + ] + }, + "scopeSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScopeSelector", + "description": "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched." + }, + "scopes": { + "description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcequotaspec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequotastatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequotastatus-v1.json new file mode 100644 index 00000000..b3e9f278 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcequotastatus-v1.json @@ -0,0 +1,28 @@ +{ + "description": "ResourceQuotaStatus defines the enforced hard limits and observed use.", + "properties": { + "hard": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + "type": [ + "object", + "null" + ] + }, + "used": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Used is the current observed total usage of the resource in the namespace.", + "type": [ + "object", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcequotastatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcerequirements-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcerequirements-v1.json new file mode 100644 index 00000000..77de0c71 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcerequirements-v1.json @@ -0,0 +1,42 @@ +{ + "description": "ResourceRequirements describes the compute resource requirements.", + "properties": { + "claims": { + "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceClaim" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, + "limits": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + }, + "requests": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcerequirements/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcerule-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcerule-authorization-v1.json new file mode 100644 index 00000000..4a096030 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcerule-authorization-v1.json @@ -0,0 +1,67 @@ +{ + "description": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "properties": { + "apiGroups": { + "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "verbs": { + "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "verbs" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcerule/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceslice-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceslice-resource-v1alpha3.json new file mode 100644 index 00000000..e4f7c952 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceslice-resource-v1alpha3.json @@ -0,0 +1,46 @@ +{ + "description": "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.\n\nAt the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , .\n\nWhenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.\n\nWhen allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.\n\nFor resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceSlice" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceSliceSpec", + "description": "Contains the information published by the driver.\n\nChanging the spec automatically increments the metadata.generation number." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceslice/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceslicelist-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceslicelist-resource-v1alpha3.json new file mode 100644 index 00000000..527d49ac --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceslicelist-resource-v1alpha3.json @@ -0,0 +1,52 @@ +{ + "description": "ResourceSliceList is a collection of ResourceSlices.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "resource.k8s.io/v1alpha3" + ] + }, + "items": { + "description": "Items is the list of resource ResourceSlices.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourceSlice" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ResourceSliceList" + ] + }, + "listMeta": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceSliceList", + "version": "v1alpha3" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceslicelist/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceslicespec-resource-v1alpha3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceslicespec-resource-v1alpha3.json new file mode 100644 index 00000000..ad14a9d6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourceslicespec-resource-v1alpha3.json @@ -0,0 +1,52 @@ +{ + "description": "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.", + "properties": { + "allNodes": { + "description": "AllNodes indicates that all nodes have access to the resources in the pool.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set.", + "type": [ + "boolean", + "null" + ] + }, + "devices": { + "description": "Devices lists some or all of the devices in this pool.\n\nMust not have more than 128 entries.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.Device" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "driver": { + "description": "Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.\n\nMust be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "nodeName": { + "description": "NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.\n\nThis field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "nodeSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.\n\nMust use exactly one term.\n\nExactly one of NodeName, NodeSelector and AllNodes must be set." + }, + "pool": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.resource.v1alpha3.ResourcePool", + "description": "Pool describes the pool that this ResourceSlice belongs to." + } + }, + "required": [ + "driver", + "pool" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourceslicespec/resource/v1alpha3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcestatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcestatus-v1.json new file mode 100644 index 00000000..4ae506c9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/resourcestatus-v1.json @@ -0,0 +1,31 @@ +{ + "properties": { + "name": { + "description": "Name of the resource. Must be unique within the pod and match one of the resources from the pod spec.", + "type": [ + "string", + "null" + ] + }, + "resources": { + "description": "List of unique Resources health. Each element in the list contains an unique resource ID and resource health. At a minimum, ResourceID must uniquely identify the Resource allocated to the Pod on the Node for the lifetime of a Pod. See ResourceID type for it's definition.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ResourceHealth" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "resourceID" + ], + "x-kubernetes-list-type": "map" + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/resourcestatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/role-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/role-rbac-v1.json new file mode 100644 index 00000000..1da637d7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/role-rbac-v1.json @@ -0,0 +1,50 @@ +{ + "description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Role" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "rules": { + "description": "Rules holds all the PolicyRules for this Role", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.PolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "Role", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/role/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rolebinding-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rolebinding-rbac-v1.json new file mode 100644 index 00000000..d5502df4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rolebinding-rbac-v1.json @@ -0,0 +1,57 @@ +{ + "description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RoleBinding" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata." + }, + "roleRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleRef", + "description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable." + }, + "subjects": { + "description": "Subjects holds references to the objects the role applies to.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.Subject" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "roleRef" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBinding", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/rolebinding/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rolebindinglist-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rolebindinglist-rbac-v1.json new file mode 100644 index 00000000..597ada57 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rolebindinglist-rbac-v1.json @@ -0,0 +1,52 @@ +{ + "description": "RoleBindingList is a collection of RoleBindings", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of RoleBindings", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.RoleBinding" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RoleBindingList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleBindingList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/rolebindinglist/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rolelist-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rolelist-rbac-v1.json new file mode 100644 index 00000000..d5c21fa1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rolelist-rbac-v1.json @@ -0,0 +1,52 @@ +{ + "description": "RoleList is a collection of Roles", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "rbac.authorization.k8s.io/v1" + ] + }, + "items": { + "description": "Items is a list of Roles", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.rbac.v1.Role" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RoleList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "rbac.authorization.k8s.io", + "kind": "RoleList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/rolelist/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/roleref-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/roleref-rbac-v1.json new file mode 100644 index 00000000..fba5eea9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/roleref-rbac-v1.json @@ -0,0 +1,35 @@ +{ + "description": "RoleRef contains information that points to the role being used", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "apiGroup", + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/roleref/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rollingupdatedaemonset-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rollingupdatedaemonset-apps-v1.json new file mode 100644 index 00000000..9573d12a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rollingupdatedaemonset-apps-v1.json @@ -0,0 +1,16 @@ +{ + "description": "Spec to control the desired behavior of daemon set rolling update.", + "properties": { + "maxSurge": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption." + }, + "maxUnavailable": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/rollingupdatedaemonset/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rollingupdatedeployment-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rollingupdatedeployment-apps-v1.json new file mode 100644 index 00000000..2ec9391d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rollingupdatedeployment-apps-v1.json @@ -0,0 +1,16 @@ +{ + "description": "Spec to control the desired behavior of rolling update.", + "properties": { + "maxSurge": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods." + }, + "maxUnavailable": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/rollingupdatedeployment/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rollingupdatestatefulsetstrategy-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rollingupdatestatefulsetstrategy-apps-v1.json new file mode 100644 index 00000000..96b7b687 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rollingupdatestatefulsetstrategy-apps-v1.json @@ -0,0 +1,20 @@ +{ + "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", + "properties": { + "maxUnavailable": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable." + }, + "partition": { + "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/rollingupdatestatefulsetstrategy/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rulewithoperations-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rulewithoperations-admissionregistration-v1.json new file mode 100644 index 00000000..02c8cfff --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/rulewithoperations-admissionregistration-v1.json @@ -0,0 +1,71 @@ +{ + "description": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/rulewithoperations/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/runtimeclass-node-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/runtimeclass-node-v1.json new file mode 100644 index 00000000..6f380f79 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/runtimeclass-node-v1.json @@ -0,0 +1,57 @@ +{ + "description": "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "node.k8s.io/v1" + ] + }, + "handler": { + "description": "handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RuntimeClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "overhead": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.Overhead", + "description": "overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see\n https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/" + }, + "scheduling": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.Scheduling", + "description": "scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes." + } + }, + "required": [ + "handler" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "node.k8s.io", + "kind": "RuntimeClass", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/runtimeclass/node/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/runtimeclasslist-node-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/runtimeclasslist-node-v1.json new file mode 100644 index 00000000..d853f7f3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/runtimeclasslist-node-v1.json @@ -0,0 +1,52 @@ +{ + "description": "RuntimeClassList is a list of RuntimeClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "node.k8s.io/v1" + ] + }, + "items": { + "description": "items is a list of schema objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.node.v1.RuntimeClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "RuntimeClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "node.k8s.io", + "kind": "RuntimeClassList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/runtimeclasslist/node/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scale-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scale-autoscaling-v1.json new file mode 100644 index 00000000..2c10d859 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scale-autoscaling-v1.json @@ -0,0 +1,47 @@ +{ + "description": "Scale represents a scaling request for a resource.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "autoscaling/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Scale" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.ScaleSpec", + "description": "spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.autoscaling.v1.ScaleStatus", + "description": "status is the current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/scale/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scaleiopersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scaleiopersistentvolumesource-v1.json new file mode 100644 index 00000000..dfaa81a4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scaleiopersistentvolumesource-v1.json @@ -0,0 +1,80 @@ +{ + "description": "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"", + "type": [ + "string", + "null" + ] + }, + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": [ + "string", + "null" + ] + }, + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretReference", + "description": "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + }, + "sslEnabled": { + "description": "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false", + "type": [ + "boolean", + "null" + ] + }, + "storageMode": { + "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "type": [ + "string", + "null" + ] + }, + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": [ + "string", + "null" + ] + }, + "system": { + "description": "system is the name of the storage system as configured in ScaleIO.", + "type": [ + "string", + "null" + ] + }, + "volumeName": { + "description": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/scaleiopersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scaleiovolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scaleiovolumesource-v1.json new file mode 100644 index 00000000..1956f702 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scaleiovolumesource-v1.json @@ -0,0 +1,80 @@ +{ + "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".", + "type": [ + "string", + "null" + ] + }, + "gateway": { + "description": "gateway is the host address of the ScaleIO API Gateway.", + "type": [ + "string", + "null" + ] + }, + "protectionDomain": { + "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail." + }, + "sslEnabled": { + "description": "sslEnabled Flag enable/disable SSL communication with Gateway, default false", + "type": [ + "boolean", + "null" + ] + }, + "storageMode": { + "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + "type": [ + "string", + "null" + ] + }, + "storagePool": { + "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + "type": [ + "string", + "null" + ] + }, + "system": { + "description": "system is the name of the storage system as configured in ScaleIO.", + "type": [ + "string", + "null" + ] + }, + "volumeName": { + "description": "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "gateway", + "system", + "secretRef" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/scaleiovolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scalespec-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scalespec-autoscaling-v1.json new file mode 100644 index 00000000..e4d81f17 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scalespec-autoscaling-v1.json @@ -0,0 +1,16 @@ +{ + "description": "ScaleSpec describes the attributes of a scale subresource.", + "properties": { + "replicas": { + "description": "replicas is the desired number of instances for the scaled object.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/scalespec/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scalestatus-autoscaling-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scalestatus-autoscaling-v1.json new file mode 100644 index 00000000..e60b7bcb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scalestatus-autoscaling-v1.json @@ -0,0 +1,26 @@ +{ + "description": "ScaleStatus represents the current status of a scale subresource.", + "properties": { + "replicas": { + "description": "replicas is the actual number of observed instances of the scaled object.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "description": "selector is the label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "replicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/scalestatus/autoscaling/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scheduling-node-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scheduling-node-v1.json new file mode 100644 index 00000000..59db2088 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scheduling-node-v1.json @@ -0,0 +1,33 @@ +{ + "description": "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.", + "properties": { + "nodeSelector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "tolerations": { + "description": "tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Toleration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/scheduling/node/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scopedresourceselectorrequirement-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scopedresourceselectorrequirement-v1.json new file mode 100644 index 00000000..cb5294ad --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scopedresourceselectorrequirement-v1.json @@ -0,0 +1,40 @@ +{ + "description": "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.", + "properties": { + "operator": { + "description": "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.", + "type": [ + "string", + "null" + ] + }, + "scopeName": { + "description": "The name of the scope that the selector applies to.", + "type": [ + "string", + "null" + ] + }, + "values": { + "description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "scopeName", + "operator" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/scopedresourceselectorrequirement/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scopeselector-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scopeselector-v1.json new file mode 100644 index 00000000..7c0cec01 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/scopeselector-v1.json @@ -0,0 +1,20 @@ +{ + "description": "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", + "properties": { + "matchExpressions": { + "description": "A list of scope selector requirements by scope of the resources.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScopedResourceSelectorRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/scopeselector/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/seccompprofile-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/seccompprofile-v1.json new file mode 100644 index 00000000..9f936a64 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/seccompprofile-v1.json @@ -0,0 +1,33 @@ +{ + "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", + "properties": { + "localhostProfile": { + "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "localhostProfile": "LocalhostProfile" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/seccompprofile/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secret-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secret-v1.json new file mode 100644 index 00000000..cc7deb3c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secret-v1.json @@ -0,0 +1,80 @@ +{ + "description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "data": { + "additionalProperties": { + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "description": "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + "type": [ + "object", + "null" + ] + }, + "immutable": { + "description": "Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + "type": [ + "boolean", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Secret" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "stringData": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.", + "type": [ + "object", + "null" + ] + }, + "type": { + "description": "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Secret", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/secret/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretenvsource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretenvsource-v1.json new file mode 100644 index 00000000..895b0491 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretenvsource-v1.json @@ -0,0 +1,22 @@ +{ + "description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", + "properties": { + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the Secret must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/secretenvsource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretkeyselector-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretkeyselector-v1.json new file mode 100644 index 00000000..b5ae4219 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretkeyselector-v1.json @@ -0,0 +1,33 @@ +{ + "description": "SecretKeySelector selects a key of a Secret.", + "properties": { + "key": { + "description": "The key of the secret to select from. Must be a valid secret key.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "Specify whether the Secret or its key must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "required": [ + "key" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/secretkeyselector/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretlist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretlist-v1.json new file mode 100644 index 00000000..46aa6dcf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretlist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "SecretList is a list of Secret.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Secret" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SecretList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "SecretList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/secretlist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretprojection-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretprojection-v1.json new file mode 100644 index 00000000..feebf081 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretprojection-v1.json @@ -0,0 +1,33 @@ +{ + "description": "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.", + "properties": { + "items": { + "description": "items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "name": { + "description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "optional": { + "description": "optional field specify whether the Secret or its key must be defined", + "type": [ + "boolean", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/secretprojection/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretreference-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretreference-v1.json new file mode 100644 index 00000000..04294f80 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretreference-v1.json @@ -0,0 +1,23 @@ +{ + "description": "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", + "properties": { + "name": { + "description": "name is unique within a namespace to reference a secret resource.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace defines the space within which the secret name must be unique.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/secretreference/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretvolumesource-v1.json new file mode 100644 index 00000000..1166095d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/secretvolumesource-v1.json @@ -0,0 +1,41 @@ +{ + "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + "properties": { + "defaultMode": { + "description": "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "items": { + "description": "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.KeyToPath" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "optional": { + "description": "optional field specify whether the Secret or its keys must be defined", + "type": [ + "boolean", + "null" + ] + }, + "secretName": { + "description": "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/secretvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/securitycontext-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/securitycontext-v1.json new file mode 100644 index 00000000..a0378796 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/securitycontext-v1.json @@ -0,0 +1,79 @@ +{ + "description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", + "properties": { + "allowPrivilegeEscalation": { + "description": "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "boolean", + "null" + ] + }, + "appArmorProfile": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AppArmorProfile", + "description": "appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows." + }, + "capabilities": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Capabilities", + "description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows." + }, + "privileged": { + "description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "boolean", + "null" + ] + }, + "procMount": { + "description": "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "string", + "null" + ] + }, + "readOnlyRootFilesystem": { + "description": "Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.", + "type": [ + "boolean", + "null" + ] + }, + "runAsGroup": { + "description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "runAsNonRoot": { + "description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": [ + "boolean", + "null" + ] + }, + "runAsUser": { + "description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "seLinuxOptions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SELinuxOptions", + "description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows." + }, + "seccompProfile": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SeccompProfile", + "description": "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows." + }, + "windowsOptions": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.WindowsSecurityContextOptions", + "description": "The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/securitycontext/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selectablefield-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selectablefield-apiextensions-v1.json new file mode 100644 index 00000000..cd487449 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selectablefield-apiextensions-v1.json @@ -0,0 +1,18 @@ +{ + "description": "SelectableField specifies the JSON path of a field that may be used with field selectors.", + "properties": { + "jsonPath": { + "description": "jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "jsonPath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/selectablefield/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectaccessreview-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectaccessreview-authorization-v1.json new file mode 100644 index 00000000..19fc84ee --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectaccessreview-authorization-v1.json @@ -0,0 +1,50 @@ +{ + "description": "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectAccessReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SelfSubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated. user and groups must be empty" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectAccessReview", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/selfsubjectaccessreview/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectaccessreviewspec-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectaccessreviewspec-authorization-v1.json new file mode 100644 index 00000000..91362205 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectaccessreviewspec-authorization-v1.json @@ -0,0 +1,16 @@ +{ + "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "nonResourceAttributes": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.NonResourceAttributes", + "description": "NonResourceAttributes describes information for a non-resource access request" + }, + "resourceAttributes": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.ResourceAttributes", + "description": "ResourceAuthorizationAttributes describes information for a resource access request" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/selfsubjectaccessreviewspec/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreview-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreview-authentication-v1.json new file mode 100644 index 00000000..706ae575 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreview-authentication-v1.json @@ -0,0 +1,43 @@ +{ + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/selfsubjectreview/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreview-authentication-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreview-authentication-v1alpha1.json new file mode 100644 index 00000000..72a67a02 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreview-authentication-v1alpha1.json @@ -0,0 +1,43 @@ +{ + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/selfsubjectreview/authentication/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreview-authentication-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreview-authentication-v1beta1.json new file mode 100644 index 00000000..14efe11a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreview-authentication-v1beta1.json @@ -0,0 +1,43 @@ +{ + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1beta1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/selfsubjectreview/authentication/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreviewstatus-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreviewstatus-authentication-v1.json new file mode 100644 index 00000000..b4b1e47e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreviewstatus-authentication-v1.json @@ -0,0 +1,12 @@ +{ + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/selfsubjectreviewstatus/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreviewstatus-authentication-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreviewstatus-authentication-v1alpha1.json new file mode 100644 index 00000000..9b4efd43 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreviewstatus-authentication-v1alpha1.json @@ -0,0 +1,12 @@ +{ + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/selfsubjectreviewstatus/authentication/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreviewstatus-authentication-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreviewstatus-authentication-v1beta1.json new file mode 100644 index 00000000..e7c62014 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectreviewstatus-authentication-v1beta1.json @@ -0,0 +1,12 @@ +{ + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/selfsubjectreviewstatus/authentication/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectrulesreview-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectrulesreview-authorization-v1.json new file mode 100644 index 00000000..e6e20e6d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectrulesreview-authorization-v1.json @@ -0,0 +1,50 @@ +{ + "description": "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SelfSubjectRulesReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SelfSubjectRulesReviewSpec", + "description": "Spec holds information about the request being evaluated." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectRulesReviewStatus", + "description": "Status is filled in by the server and indicates the set of actions a user can perform." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SelfSubjectRulesReview", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/selfsubjectrulesreview/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectrulesreviewspec-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectrulesreviewspec-authorization-v1.json new file mode 100644 index 00000000..0c2b9edc --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selfsubjectrulesreviewspec-authorization-v1.json @@ -0,0 +1,15 @@ +{ + "description": "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.", + "properties": { + "namespace": { + "description": "Namespace to evaluate rules for. Required.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/selfsubjectrulesreviewspec/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selinuxoptions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selinuxoptions-v1.json new file mode 100644 index 00000000..2988fe5a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/selinuxoptions-v1.json @@ -0,0 +1,36 @@ +{ + "description": "SELinuxOptions are the labels to be applied to the container", + "properties": { + "level": { + "description": "Level is SELinux level label that applies to the container.", + "type": [ + "string", + "null" + ] + }, + "role": { + "description": "Role is a SELinux role label that applies to the container.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type is a SELinux type label that applies to the container.", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "User is a SELinux user label that applies to the container.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/selinuxoptions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serveraddressbyclientcidr-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serveraddressbyclientcidr-meta-v1.json new file mode 100644 index 00000000..94d8fff3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serveraddressbyclientcidr-meta-v1.json @@ -0,0 +1,26 @@ +{ + "description": "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", + "properties": { + "clientCIDR": { + "description": "The CIDR with which clients can match their IP to figure out the server address that they should use.", + "type": [ + "string", + "null" + ] + }, + "serverAddress": { + "description": "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "clientCIDR", + "serverAddress" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/serveraddressbyclientcidr/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serverstorageversion-apiserverinternal-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serverstorageversion-apiserverinternal-v1alpha1.json new file mode 100644 index 00000000..c8cc40c3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serverstorageversion-apiserverinternal-v1alpha1.json @@ -0,0 +1,50 @@ +{ + "description": "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.", + "properties": { + "apiServerID": { + "description": "The ID of the reporting API server.", + "type": [ + "string", + "null" + ] + }, + "decodableVersions": { + "description": "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "encodingVersion": { + "description": "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).", + "type": [ + "string", + "null" + ] + }, + "servedVersions": { + "description": "The API server can serve these versions. DecodableVersions must include all ServedVersions.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/serverstorageversion/apiserverinternal/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/service-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/service-v1.json new file mode 100644 index 00000000..ff3c1df9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/service-v1.json @@ -0,0 +1,47 @@ +{ + "description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Service" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceSpec", + "description": "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceStatus", + "description": "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Service", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/service/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccount-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccount-v1.json new file mode 100644 index 00000000..58106309 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccount-v1.json @@ -0,0 +1,73 @@ +{ + "description": "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "automountServiceAccountToken": { + "description": "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", + "type": [ + "boolean", + "null" + ] + }, + "imagePullSecrets": { + "description": "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceAccount" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "secrets": { + "description": "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceAccount", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/serviceaccount/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccountlist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccountlist-v1.json new file mode 100644 index 00000000..21fa89aa --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccountlist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ServiceAccountList is a list of ServiceAccount objects", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceAccount" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceAccountList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceAccountList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/serviceaccountlist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccountsubject-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccountsubject-flowcontrol-v1.json new file mode 100644 index 00000000..e7dd3c0d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccountsubject-flowcontrol-v1.json @@ -0,0 +1,26 @@ +{ + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", + "properties": { + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/serviceaccountsubject/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccountsubject-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccountsubject-flowcontrol-v1beta3.json new file mode 100644 index 00000000..cde14161 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccountsubject-flowcontrol-v1beta3.json @@ -0,0 +1,26 @@ +{ + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", + "properties": { + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/serviceaccountsubject/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccounttokenprojection-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccounttokenprojection-v1.json new file mode 100644 index 00000000..2229fbab --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceaccounttokenprojection-v1.json @@ -0,0 +1,33 @@ +{ + "description": "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).", + "properties": { + "audience": { + "description": "audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.", + "type": [ + "string", + "null" + ] + }, + "expirationSeconds": { + "description": "expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "path": { + "description": "path is the path relative to the mount point of the file to project the token into.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "path" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/serviceaccounttokenprojection/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicebackendport-networking-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicebackendport-networking-v1.json new file mode 100644 index 00000000..17949fb9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicebackendport-networking-v1.json @@ -0,0 +1,24 @@ +{ + "description": "ServiceBackendPort is the service port being referenced.", + "properties": { + "name": { + "description": "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", + "type": [ + "string", + "null" + ] + }, + "number": { + "description": "number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/servicebackendport/networking/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidr-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidr-networking-v1beta1.json new file mode 100644 index 00000000..62f2a05a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidr-networking-v1beta1.json @@ -0,0 +1,47 @@ +{ + "description": "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceCIDR" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRSpec", + "description": "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDRStatus", + "description": "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/servicecidr/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidrlist-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidrlist-networking-v1beta1.json new file mode 100644 index 00000000..114a8ab0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidrlist-networking-v1beta1.json @@ -0,0 +1,52 @@ +{ + "description": "ServiceCIDRList contains a list of ServiceCIDR objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "networking.k8s.io/v1beta1" + ] + }, + "items": { + "description": "items is the list of ServiceCIDRs.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.networking.v1beta1.ServiceCIDR" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceCIDRList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "networking.k8s.io", + "kind": "ServiceCIDRList", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/servicecidrlist/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidrspec-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidrspec-networking-v1beta1.json new file mode 100644 index 00000000..03e5a66c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidrspec-networking-v1beta1.json @@ -0,0 +1,22 @@ +{ + "description": "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", + "properties": { + "cidrs": { + "description": "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/servicecidrspec/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidrstatus-networking-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidrstatus-networking-v1beta1.json new file mode 100644 index 00000000..92836faf --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicecidrstatus-networking-v1beta1.json @@ -0,0 +1,24 @@ +{ + "description": "ServiceCIDRStatus describes the current state of the ServiceCIDR.", + "properties": { + "conditions": { + "description": "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/servicecidrstatus/networking/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicelist-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicelist-v1.json new file mode 100644 index 00000000..0f738502 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicelist-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ServiceList holds a list of services.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "items": { + "description": "List of services", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.Service" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ServiceList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "ServiceList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/servicelist/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceport-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceport-v1.json new file mode 100644 index 00000000..9da43078 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/serviceport-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ServicePort contains information on service's port.", + "properties": { + "appProtocol": { + "description": "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.", + "type": [ + "string", + "null" + ] + }, + "nodePort": { + "description": "The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "port": { + "description": "The port that will be exposed by this service.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "protocol": { + "description": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.", + "type": [ + "string", + "null" + ] + }, + "targetPort": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service" + } + }, + "required": [ + "port" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/serviceport/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicereference-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicereference-admissionregistration-v1.json new file mode 100644 index 00000000..638b33d4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicereference-admissionregistration-v1.json @@ -0,0 +1,41 @@ +{ + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "`name` is the name of the service. Required", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "`namespace` is the namespace of the service. Required", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "`path` is an optional URL path which will be sent in any request to this service.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/servicereference/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicereference-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicereference-apiextensions-v1.json new file mode 100644 index 00000000..e58a33f6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicereference-apiextensions-v1.json @@ -0,0 +1,41 @@ +{ + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "name is the name of the service. Required", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "namespace is the namespace of the service. Required", + "type": [ + "string", + "null" + ] + }, + "path": { + "description": "path is an optional URL path at which the webhook will be contacted.", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "port is an optional service port at which the webhook will be contacted. `port` should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/servicereference/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicereference-apiregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicereference-apiregistration-v1.json new file mode 100644 index 00000000..1b109b05 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicereference-apiregistration-v1.json @@ -0,0 +1,30 @@ +{ + "description": "ServiceReference holds a reference to Service.legacy.k8s.io", + "properties": { + "name": { + "description": "Name is the name of the service", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the namespace of the service", + "type": [ + "string", + "null" + ] + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/servicereference/apiregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicespec-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicespec-v1.json new file mode 100644 index 00000000..fa91f9da --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicespec-v1.json @@ -0,0 +1,191 @@ +{ + "description": "ServiceSpec describes the attributes that a user creates on a service.", + "properties": { + "allocateLoadBalancerNodePorts": { + "description": "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.", + "type": [ + "boolean", + "null" + ] + }, + "clusterIP": { + "description": "clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "type": [ + "string", + "null" + ] + }, + "clusterIPs": { + "description": "ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\n\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "externalIPs": { + "description": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "externalName": { + "description": "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".", + "type": [ + "string", + "null" + ] + }, + "externalTrafficPolicy": { + "description": "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.", + "type": [ + "string", + "null" + ] + }, + "healthCheckNodePort": { + "description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "internalTrafficPolicy": { + "description": "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).", + "type": [ + "string", + "null" + ] + }, + "ipFamilies": { + "description": "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ipFamilyPolicy": { + "description": "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.", + "type": [ + "string", + "null" + ] + }, + "loadBalancerClass": { + "description": "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.", + "type": [ + "string", + "null" + ] + }, + "loadBalancerIP": { + "description": "Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available.", + "type": [ + "string", + "null" + ] + }, + "loadBalancerSourceRanges": { + "description": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "ports": { + "description": "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServicePort" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "port", + "protocol" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "port", + "x-kubernetes-patch-strategy": "merge" + }, + "publishNotReadyAddresses": { + "description": "publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.", + "type": [ + "boolean", + "null" + ] + }, + "selector": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/", + "type": [ + "object", + "null" + ], + "x-kubernetes-map-type": "atomic" + }, + "sessionAffinity": { + "description": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + "type": [ + "string", + "null" + ] + }, + "sessionAffinityConfig": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SessionAffinityConfig", + "description": "sessionAffinityConfig contains the configurations of session affinity." + }, + "trafficDistribution": { + "description": "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/servicespec/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicestatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicestatus-v1.json new file mode 100644 index 00000000..56006e18 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/servicestatus-v1.json @@ -0,0 +1,28 @@ +{ + "description": "ServiceStatus represents the current status of a service.", + "properties": { + "conditions": { + "description": "Current service state", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "loadBalancer": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LoadBalancerStatus", + "description": "LoadBalancer contains the current status of the load-balancer, if one is present." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/servicestatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/sessionaffinityconfig-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/sessionaffinityconfig-v1.json new file mode 100644 index 00000000..fd24c64b --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/sessionaffinityconfig-v1.json @@ -0,0 +1,12 @@ +{ + "description": "SessionAffinityConfig represents the configurations of session affinity.", + "properties": { + "clientIP": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ClientIPConfig", + "description": "clientIP contains the configurations of Client IP based session affinity." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/sessionaffinityconfig/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/sleepaction-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/sleepaction-v1.json new file mode 100644 index 00000000..62899c2a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/sleepaction-v1.json @@ -0,0 +1,19 @@ +{ + "description": "SleepAction describes a \"sleep\" action.", + "properties": { + "seconds": { + "description": "Seconds is the number of seconds to sleep.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "seconds" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/sleepaction/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulset-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulset-apps-v1.json new file mode 100644 index 00000000..4904f29c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulset-apps-v1.json @@ -0,0 +1,47 @@ +{ + "description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StatefulSet" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetSpec", + "description": "Spec defines the desired identities of pods in this set." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetStatus", + "description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/statefulset/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetcondition-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetcondition-apps-v1.json new file mode 100644 index 00000000..8e539b26 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetcondition-apps-v1.json @@ -0,0 +1,44 @@ +{ + "description": "StatefulSetCondition describes the state of a statefulset at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of statefulset condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/statefulsetcondition/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetlist-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetlist-apps-v1.json new file mode 100644 index 00000000..fd743395 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetlist-apps-v1.json @@ -0,0 +1,52 @@ +{ + "description": "StatefulSetList is a collection of StatefulSets.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "apps/v1" + ] + }, + "items": { + "description": "Items is the list of stateful sets.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSet" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StatefulSetList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "apps", + "kind": "StatefulSetList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/statefulsetlist/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetordinals-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetordinals-apps-v1.json new file mode 100644 index 00000000..d9f1e958 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetordinals-apps-v1.json @@ -0,0 +1,16 @@ +{ + "description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", + "properties": { + "start": { + "description": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/statefulsetordinals/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetpersistentvolumeclaimretentionpolicy-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetpersistentvolumeclaimretentionpolicy-apps-v1.json new file mode 100644 index 00000000..cb3b1167 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetpersistentvolumeclaimretentionpolicy-apps-v1.json @@ -0,0 +1,22 @@ +{ + "description": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", + "properties": { + "whenDeleted": { + "description": "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.", + "type": [ + "string", + "null" + ] + }, + "whenScaled": { + "description": "WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/statefulsetpersistentvolumeclaimretentionpolicy/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetspec-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetspec-apps-v1.json new file mode 100644 index 00000000..204f1cf3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetspec-apps-v1.json @@ -0,0 +1,82 @@ +{ + "description": "A StatefulSetSpec is the specification of a StatefulSet.", + "properties": { + "minReadySeconds": { + "description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "ordinals": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetOrdinals", + "description": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested." + }, + "persistentVolumeClaimRetentionPolicy": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy", + "description": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is beta." + }, + "podManagementPolicy": { + "description": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.", + "type": [ + "string", + "null" + ] + }, + "replicas": { + "description": "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "revisionHistoryLimit": { + "description": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "selector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors" + }, + "serviceName": { + "description": "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.", + "type": [ + "string", + "null" + ] + }, + "template": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodTemplateSpec", + "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\". The only allowed template.spec.restartPolicy value is \"Always\"." + }, + "updateStrategy": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetUpdateStrategy", + "description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template." + }, + "volumeClaimTemplates": { + "description": "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaim" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "selector", + "template", + "serviceName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/statefulsetspec/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetstatus-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetstatus-apps-v1.json new file mode 100644 index 00000000..56badc87 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetstatus-apps-v1.json @@ -0,0 +1,97 @@ +{ + "description": "StatefulSetStatus represents the current state of a StatefulSet.", + "properties": { + "availableReplicas": { + "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "collisionCount": { + "description": "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "conditions": { + "description": "Represents the latest available observations of a statefulset's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.StatefulSetCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "currentReplicas": { + "description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "currentRevision": { + "description": "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).", + "type": [ + "string", + "null" + ] + }, + "observedGeneration": { + "description": "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "readyReplicas": { + "description": "readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "replicas": { + "description": "replicas is the number of Pods created by the StatefulSet controller.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "updateRevision": { + "description": "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)", + "type": [ + "string", + "null" + ] + }, + "updatedReplicas": { + "description": "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "replicas" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/statefulsetstatus/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetupdatestrategy-apps-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetupdatestrategy-apps-v1.json new file mode 100644 index 00000000..7ccd99ad --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statefulsetupdatestrategy-apps-v1.json @@ -0,0 +1,19 @@ +{ + "description": "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", + "properties": { + "rollingUpdate": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy", + "description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType." + }, + "type": { + "description": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/statefulsetupdatestrategy/apps/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/status-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/status-meta-v1.json new file mode 100644 index 00000000..63fb7e0f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/status-meta-v1.json @@ -0,0 +1,73 @@ +{ + "description": "Status is a return value for calls that don't return other objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "v1" + ] + }, + "code": { + "description": "Suggested HTTP return code for this status, 0 if not set.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "details": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.StatusDetails", + "description": "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.", + "x-kubernetes-list-type": "atomic" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "Status" + ] + }, + "message": { + "description": "A human-readable description of the status of this operation.", + "type": [ + "string", + "null" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + }, + "reason": { + "description": "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "Status", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/status/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statuscause-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statuscause-meta-v1.json new file mode 100644 index 00000000..84868531 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statuscause-meta-v1.json @@ -0,0 +1,29 @@ +{ + "description": "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", + "properties": { + "field": { + "description": "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "A machine-readable description of the cause of the error. If this value is empty there is no information available.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/statuscause/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statusdetails-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statusdetails-meta-v1.json new file mode 100644 index 00000000..908f33db --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/statusdetails-meta-v1.json @@ -0,0 +1,55 @@ +{ + "description": "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.", + "properties": { + "causes": { + "description": "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.StatusCause" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "group": { + "description": "The group attribute of the resource associated with the status StatusReason.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", + "type": [ + "string", + "null" + ] + }, + "retryAfterSeconds": { + "description": "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "uid": { + "description": "UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/statusdetails/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageclass-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageclass-storage-v1.json new file mode 100644 index 00000000..1765dd98 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageclass-storage-v1.json @@ -0,0 +1,108 @@ +{ + "description": "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", + "properties": { + "allowVolumeExpansion": { + "description": "allowVolumeExpansion shows whether the storage class allow volume expand.", + "type": [ + "boolean", + "null" + ] + }, + "allowedTopologies": { + "description": "allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TopologySelectorTerm" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "mountOptions": { + "description": "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "parameters": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "parameters holds the parameters for the provisioner that should create volumes of this storage class.", + "type": [ + "object", + "null" + ] + }, + "provisioner": { + "description": "provisioner indicates the type of the provisioner.", + "type": [ + "string", + "null" + ] + }, + "reclaimPolicy": { + "description": "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.", + "type": [ + "string", + "null" + ] + }, + "volumeBindingMode": { + "description": "volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "provisioner" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClass", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageclass/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageclasslist-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageclasslist-storage-v1.json new file mode 100644 index 00000000..86f5fb76 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageclasslist-storage-v1.json @@ -0,0 +1,52 @@ +{ + "description": "StorageClassList is a collection of storage classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of StorageClasses", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.StorageClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "StorageClassList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageclasslist/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageospersistentvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageospersistentvolumesource-v1.json new file mode 100644 index 00000000..22ca36ac --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageospersistentvolumesource-v1.json @@ -0,0 +1,40 @@ +{ + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ObjectReference", + "description": "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." + }, + "volumeName": { + "description": "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + "type": [ + "string", + "null" + ] + }, + "volumeNamespace": { + "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageospersistentvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageosvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageosvolumesource-v1.json new file mode 100644 index 00000000..17d06af2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageosvolumesource-v1.json @@ -0,0 +1,40 @@ +{ + "description": "Represents a StorageOS persistent volume resource.", + "properties": { + "fsType": { + "description": "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + "type": [ + "boolean", + "null" + ] + }, + "secretRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.LocalObjectReference", + "description": "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted." + }, + "volumeName": { + "description": "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + "type": [ + "string", + "null" + ] + }, + "volumeNamespace": { + "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageosvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversion-apiserverinternal-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversion-apiserverinternal-v1alpha1.json new file mode 100644 index 00000000..35b09744 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversion-apiserverinternal-v1alpha1.json @@ -0,0 +1,51 @@ +{ + "description": "Storage version of a specific resource.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "internal.apiserver.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersion" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "The name is .." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionSpec", + "description": "Spec is an empty spec. It is here to comply with Kubernetes API style." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionStatus", + "description": "API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend." + } + }, + "required": [ + "spec", + "status" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageversion/apiserverinternal/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversioncondition-apiserverinternal-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversioncondition-apiserverinternal-v1alpha1.json new file mode 100644 index 00000000..900611fb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversioncondition-apiserverinternal-v1alpha1.json @@ -0,0 +1,54 @@ +{ + "description": "Describes the state of the storageVersion at a certain point.", + "properties": { + "lastTransitionTime": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "Last time the condition transitioned from one status to another." + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": [ + "string", + "null" + ] + }, + "observedGeneration": { + "description": "If set, this represents the .metadata.generation that the condition was set based upon.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": [ + "string", + "null" + ] + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": [ + "string", + "null" + ] + }, + "type": { + "description": "Type of the condition.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "status", + "reason", + "message" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageversioncondition/apiserverinternal/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionlist-apiserverinternal-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionlist-apiserverinternal-v1alpha1.json new file mode 100644 index 00000000..e81378de --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionlist-apiserverinternal-v1alpha1.json @@ -0,0 +1,52 @@ +{ + "description": "A list of StorageVersions.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "internal.apiserver.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "Items holds a list of StorageVersion", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersion" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersionList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersionList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageversionlist/apiserverinternal/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigration-storagemigration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigration-storagemigration-v1alpha1.json new file mode 100644 index 00000000..3ad8ddf3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigration-storagemigration-v1alpha1.json @@ -0,0 +1,47 @@ +{ + "description": "StorageVersionMigration represents a migration of stored data to the latest storage version.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storagemigration.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersionMigration" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationSpec", + "description": "Specification of the migration." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigrationStatus", + "description": "Status of the migration." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigration", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageversionmigration/storagemigration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigrationlist-storagemigration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigrationlist-storagemigration-v1alpha1.json new file mode 100644 index 00000000..2bd7b5f7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigrationlist-storagemigration-v1alpha1.json @@ -0,0 +1,58 @@ +{ + "description": "StorageVersionMigrationList is a collection of storage version migrations.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storagemigration.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "Items is the list of StorageVersionMigration", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.StorageVersionMigration" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "StorageVersionMigrationList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storagemigration.k8s.io", + "kind": "StorageVersionMigrationList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageversionmigrationlist/storagemigration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigrationspec-storagemigration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigrationspec-storagemigration-v1alpha1.json new file mode 100644 index 00000000..e6422414 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigrationspec-storagemigration-v1alpha1.json @@ -0,0 +1,22 @@ +{ + "description": "Spec of the storage version migration.", + "properties": { + "continueToken": { + "description": "The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is \"Running\", users can use this token to check the progress of the migration.", + "type": [ + "string", + "null" + ] + }, + "resource": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.GroupVersionResource", + "description": "The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable." + } + }, + "required": [ + "resource" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageversionmigrationspec/storagemigration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigrationstatus-storagemigration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigrationstatus-storagemigration-v1alpha1.json new file mode 100644 index 00000000..52781c24 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionmigrationstatus-storagemigration-v1alpha1.json @@ -0,0 +1,31 @@ +{ + "description": "Status of the storage version migration.", + "properties": { + "conditions": { + "description": "The latest available observations of the migration's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storagemigration.v1alpha1.MigrationCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceVersion": { + "description": "ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageversionmigrationstatus/storagemigration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionspec-apiserverinternal-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionspec-apiserverinternal-v1alpha1.json new file mode 100644 index 00000000..f519ed73 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionspec-apiserverinternal-v1alpha1.json @@ -0,0 +1,6 @@ +{ + "description": "StorageVersionSpec is an empty spec.", + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageversionspec/apiserverinternal/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionstatus-apiserverinternal-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionstatus-apiserverinternal-v1alpha1.json new file mode 100644 index 00000000..3ce1e6f2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/storageversionstatus-apiserverinternal-v1alpha1.json @@ -0,0 +1,43 @@ +{ + "description": "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.", + "properties": { + "commonEncodingVersion": { + "description": "If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.", + "type": [ + "string", + "null" + ] + }, + "conditions": { + "description": "The latest available observations of the storageVersion's state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.StorageVersionCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "storageVersions": { + "description": "The reported versions per API server instance.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "apiServerID" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/storageversionstatus/apiserverinternal/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subject-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subject-flowcontrol-v1.json new file mode 100644 index 00000000..703ccf0d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subject-flowcontrol-v1.json @@ -0,0 +1,40 @@ +{ + "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", + "properties": { + "group": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.GroupSubject", + "description": "`group` matches based on user group name." + }, + "kind": { + "description": "`kind` indicates which one of the other fields is non-empty. Required", + "type": [ + "string", + "null" + ] + }, + "serviceAccount": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1.UserSubject", + "description": "`user` matches based on username." + } + }, + "required": [ + "kind" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/subject/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subject-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subject-flowcontrol-v1beta3.json new file mode 100644 index 00000000..5020ec6a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subject-flowcontrol-v1beta3.json @@ -0,0 +1,40 @@ +{ + "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", + "properties": { + "group": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.GroupSubject", + "description": "`group` matches based on user group name." + }, + "kind": { + "description": "`kind` indicates which one of the other fields is non-empty. Required", + "type": [ + "string", + "null" + ] + }, + "serviceAccount": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.flowcontrol.v1beta3.UserSubject", + "description": "`user` matches based on username." + } + }, + "required": [ + "kind" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/subject/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subject-rbac-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subject-rbac-v1.json new file mode 100644 index 00000000..f8a96343 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subject-rbac-v1.json @@ -0,0 +1,41 @@ +{ + "description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", + "properties": { + "apiGroup": { + "description": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name of the object being referenced.", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/subject/rbac/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectaccessreview-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectaccessreview-authorization-v1.json new file mode 100644 index 00000000..fae388c2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectaccessreview-authorization-v1.json @@ -0,0 +1,50 @@ +{ + "description": "SubjectAccessReview checks whether or not a user or group can perform an action.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authorization.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "SubjectAccessReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.SubjectAccessReviewStatus", + "description": "Status is filled in by the server and indicates whether the request is allowed or not" + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authorization.k8s.io", + "kind": "SubjectAccessReview", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/subjectaccessreview/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectaccessreviewspec-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectaccessreviewspec-authorization-v1.json new file mode 100644 index 00000000..1962486f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectaccessreviewspec-authorization-v1.json @@ -0,0 +1,63 @@ +{ + "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "properties": { + "extra": { + "additionalProperties": { + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", + "type": [ + "object", + "null" + ] + }, + "groups": { + "description": "Groups is the groups you're testing for.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "nonResourceAttributes": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.NonResourceAttributes", + "description": "NonResourceAttributes describes information for a non-resource access request" + }, + "resourceAttributes": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.ResourceAttributes", + "description": "ResourceAuthorizationAttributes describes information for a resource access request" + }, + "uid": { + "description": "UID information about the requesting user.", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/subjectaccessreviewspec/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectaccessreviewstatus-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectaccessreviewstatus-authorization-v1.json new file mode 100644 index 00000000..5d4df0ba --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectaccessreviewstatus-authorization-v1.json @@ -0,0 +1,39 @@ +{ + "description": "SubjectAccessReviewStatus", + "properties": { + "allowed": { + "description": "Allowed is required. True if the action would be allowed, false otherwise.", + "type": [ + "boolean", + "null" + ] + }, + "denied": { + "description": "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", + "type": [ + "boolean", + "null" + ] + }, + "evaluationError": { + "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason is optional. It indicates why a request was allowed or denied.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "allowed" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/subjectaccessreviewstatus/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectrulesreviewstatus-authorization-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectrulesreviewstatus-authorization-v1.json new file mode 100644 index 00000000..16a0fa9d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/subjectrulesreviewstatus-authorization-v1.json @@ -0,0 +1,49 @@ +{ + "description": "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.", + "properties": { + "evaluationError": { + "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", + "type": [ + "string", + "null" + ] + }, + "incomplete": { + "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", + "type": [ + "boolean", + "null" + ] + }, + "nonResourceRules": { + "description": "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.NonResourceRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authorization.v1.ResourceRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "resourceRules", + "nonResourceRules", + "incomplete" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/subjectrulesreviewstatus/authorization/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/successpolicy-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/successpolicy-batch-v1.json new file mode 100644 index 00000000..4f184068 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/successpolicy-batch-v1.json @@ -0,0 +1,22 @@ +{ + "description": "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.", + "properties": { + "rules": { + "description": "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.batch.v1.SuccessPolicyRule" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "rules" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/successpolicy/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/successpolicyrule-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/successpolicyrule-batch-v1.json new file mode 100644 index 00000000..dafdf42c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/successpolicyrule-batch-v1.json @@ -0,0 +1,23 @@ +{ + "description": "SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified.", + "properties": { + "succeededCount": { + "description": "succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is \"1-4\", succeededCount is \"3\", and completed indexes are \"1\", \"3\", and \"5\", the Job isn't declared as succeeded because only \"1\" and \"3\" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "succeededIndexes": { + "description": "succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to \".spec.completions-1\" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". When this field is null, this field doesn't default to any value and is never evaluated at any time.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/successpolicyrule/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/sysctl-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/sysctl-v1.json new file mode 100644 index 00000000..17f9212d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/sysctl-v1.json @@ -0,0 +1,26 @@ +{ + "description": "Sysctl defines a kernel parameter to be set", + "properties": { + "name": { + "description": "Name of a property to set", + "type": [ + "string", + "null" + ] + }, + "value": { + "description": "Value of a property to set", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "value" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/sysctl/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/taint-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/taint-v1.json new file mode 100644 index 00000000..87dbac58 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/taint-v1.json @@ -0,0 +1,37 @@ +{ + "description": "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", + "properties": { + "effect": { + "description": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.", + "type": [ + "string", + "null" + ] + }, + "key": { + "description": "Required. The taint key to be applied to a node.", + "type": [ + "string", + "null" + ] + }, + "timeAdded": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints." + }, + "value": { + "description": "The taint value corresponding to the taint key.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "key", + "effect" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/taint/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tcpsocketaction-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tcpsocketaction-v1.json new file mode 100644 index 00000000..2cdb20a0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tcpsocketaction-v1.json @@ -0,0 +1,22 @@ +{ + "description": "TCPSocketAction describes an action based on opening a socket", + "properties": { + "host": { + "description": "Optional: Host name to connect to, defaults to the pod IP.", + "type": [ + "string", + "null" + ] + }, + "port": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.util.intstr.IntOrString", + "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME." + } + }, + "required": [ + "port" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/tcpsocketaction/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/time-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/time-meta-v1.json new file mode 100644 index 00000000..2093616a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/time-meta-v1.json @@ -0,0 +1,7 @@ +{ + "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.", + "format": "date-time", + "type": "string", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/time/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequest-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequest-authentication-v1.json new file mode 100644 index 00000000..d3cc6d04 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequest-authentication-v1.json @@ -0,0 +1,50 @@ +{ + "description": "TokenRequest requests a token for a given service account.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "TokenRequest" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenRequestSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenRequestStatus", + "description": "Status is filled in by the server and indicates whether the token can be authenticated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "TokenRequest", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/tokenrequest/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequest-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequest-storage-v1.json new file mode 100644 index 00000000..727aeaee --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequest-storage-v1.json @@ -0,0 +1,26 @@ +{ + "description": "TokenRequest contains parameters of a service account token.", + "properties": { + "audience": { + "description": "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", + "type": [ + "string", + "null" + ] + }, + "expirationSeconds": { + "description": "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "audience" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/tokenrequest/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequestspec-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequestspec-authentication-v1.json new file mode 100644 index 00000000..93179f1d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequestspec-authentication-v1.json @@ -0,0 +1,37 @@ +{ + "description": "TokenRequestSpec contains client provided parameters of a token request.", + "properties": { + "audiences": { + "description": "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "boundObjectRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.BoundObjectReference", + "description": "BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation." + }, + "expirationSeconds": { + "description": "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.", + "format": "int64", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "audiences" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/tokenrequestspec/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequeststatus-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequeststatus-authentication-v1.json new file mode 100644 index 00000000..bceb97a7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenrequeststatus-authentication-v1.json @@ -0,0 +1,23 @@ +{ + "description": "TokenRequestStatus is the result of a token request.", + "properties": { + "expirationTimestamp": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "ExpirationTimestamp is the time of expiration of the returned token." + }, + "token": { + "description": "Token is the opaque bearer token.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "token", + "expirationTimestamp" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/tokenrequeststatus/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenreview-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenreview-authentication-v1.json new file mode 100644 index 00000000..3a17b5ba --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenreview-authentication-v1.json @@ -0,0 +1,50 @@ +{ + "description": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "authentication.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "TokenReview" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenReviewSpec", + "description": "Spec holds information about the request being evaluated" + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.TokenReviewStatus", + "description": "Status is filled in by the server and indicates whether the request can be authenticated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "TokenReview", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/tokenreview/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenreviewspec-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenreviewspec-authentication-v1.json new file mode 100644 index 00000000..a884ee2d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenreviewspec-authentication-v1.json @@ -0,0 +1,29 @@ +{ + "description": "TokenReviewSpec is a description of the token authentication request.", + "properties": { + "audiences": { + "description": "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "token": { + "description": "Token is the opaque bearer token.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/tokenreviewspec/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenreviewstatus-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenreviewstatus-authentication-v1.json new file mode 100644 index 00000000..ab251746 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/tokenreviewstatus-authentication-v1.json @@ -0,0 +1,40 @@ +{ + "description": "TokenReviewStatus is the result of the token authentication request.", + "properties": { + "audiences": { + "description": "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "authenticated": { + "description": "Authenticated indicates that the token was associated with a known user.", + "type": [ + "boolean", + "null" + ] + }, + "error": { + "description": "Error indicates that the token couldn't be checked", + "type": [ + "string", + "null" + ] + }, + "user": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.authentication.v1.UserInfo", + "description": "User is the UserInfo associated with the provided token." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/tokenreviewstatus/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/toleration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/toleration-v1.json new file mode 100644 index 00000000..bf78b3bd --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/toleration-v1.json @@ -0,0 +1,44 @@ +{ + "description": "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", + "properties": { + "effect": { + "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.", + "type": [ + "string", + "null" + ] + }, + "key": { + "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", + "type": [ + "string", + "null" + ] + }, + "operator": { + "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.", + "type": [ + "string", + "null" + ] + }, + "tolerationSeconds": { + "description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "value": { + "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/toleration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/topologyselectorlabelrequirement-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/topologyselectorlabelrequirement-v1.json new file mode 100644 index 00000000..5ca5bd4d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/topologyselectorlabelrequirement-v1.json @@ -0,0 +1,33 @@ +{ + "description": "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.", + "properties": { + "key": { + "description": "The label key that the selector applies to.", + "type": [ + "string", + "null" + ] + }, + "values": { + "description": "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "key", + "values" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/topologyselectorlabelrequirement/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/topologyselectorterm-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/topologyselectorterm-v1.json new file mode 100644 index 00000000..f540cab2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/topologyselectorterm-v1.json @@ -0,0 +1,20 @@ +{ + "description": "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.", + "properties": { + "matchLabelExpressions": { + "description": "A list of topology selector requirements by labels.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.TopologySelectorLabelRequirement" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/topologyselectorterm/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/topologyspreadconstraint-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/topologyspreadconstraint-v1.json new file mode 100644 index 00000000..b406104d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/topologyspreadconstraint-v1.json @@ -0,0 +1,75 @@ +{ + "description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", + "properties": { + "labelSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain." + }, + "matchLabelKeys": { + "description": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "maxSkew": { + "description": "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "minDomains": { + "description": "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.", + "format": "int32", + "type": [ + "integer", + "null" + ] + }, + "nodeAffinityPolicy": { + "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "type": [ + "string", + "null" + ] + }, + "nodeTaintsPolicy": { + "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "type": [ + "string", + "null" + ] + }, + "topologyKey": { + "description": "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.", + "type": [ + "string", + "null" + ] + }, + "whenUnsatisfiable": { + "description": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "maxSkew", + "topologyKey", + "whenUnsatisfiable" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/topologyspreadconstraint/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typechecking-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typechecking-admissionregistration-v1.json new file mode 100644 index 00000000..af9cfaba --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typechecking-admissionregistration-v1.json @@ -0,0 +1,19 @@ +{ + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ExpressionWarning" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/typechecking/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typechecking-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typechecking-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..31d3ab16 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typechecking-admissionregistration-v1alpha1.json @@ -0,0 +1,19 @@ +{ + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ExpressionWarning" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/typechecking/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typechecking-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typechecking-admissionregistration-v1beta1.json new file mode 100644 index 00000000..6121755a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typechecking-admissionregistration-v1beta1.json @@ -0,0 +1,19 @@ +{ + "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", + "properties": { + "expressionWarnings": { + "description": "The type checking warnings for each expression.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ExpressionWarning" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/typechecking/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typedlocalobjectreference-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typedlocalobjectreference-v1.json new file mode 100644 index 00000000..7df24cc4 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typedlocalobjectreference-v1.json @@ -0,0 +1,34 @@ +{ + "description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/typedlocalobjectreference/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typedobjectreference-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typedobjectreference-v1.json new file mode 100644 index 00000000..ee581ab2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/typedobjectreference-v1.json @@ -0,0 +1,39 @@ +{ + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": [ + "string", + "null" + ] + }, + "namespace": { + "description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "kind", + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/typedobjectreference/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/uncountedterminatedpods-batch-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/uncountedterminatedpods-batch-v1.json new file mode 100644 index 00000000..56c8a5b8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/uncountedterminatedpods-batch-v1.json @@ -0,0 +1,36 @@ +{ + "description": "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", + "properties": { + "failed": { + "description": "failed holds UIDs of failed Pods.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + }, + "succeeded": { + "description": "succeeded holds UIDs of succeeded Pods.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/uncountedterminatedpods/batch/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/userinfo-authentication-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/userinfo-authentication-v1.json new file mode 100644 index 00000000..2102b199 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/userinfo-authentication-v1.json @@ -0,0 +1,55 @@ +{ + "description": "UserInfo holds the information about the user needed to implement the user.Info interface.", + "properties": { + "extra": { + "additionalProperties": { + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ] + }, + "description": "Any additional information provided by the authenticator.", + "type": [ + "object", + "null" + ] + }, + "groups": { + "description": "The names of groups this user is a part of.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "uid": { + "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", + "type": [ + "string", + "null" + ] + }, + "username": { + "description": "The name that uniquely identifies this user among all active users.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/userinfo/authentication/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/usersubject-flowcontrol-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/usersubject-flowcontrol-v1.json new file mode 100644 index 00000000..639e9fae --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/usersubject-flowcontrol-v1.json @@ -0,0 +1,18 @@ +{ + "description": "UserSubject holds detailed information for user-kind subject.", + "properties": { + "name": { + "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/usersubject/flowcontrol/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/usersubject-flowcontrol-v1beta3.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/usersubject-flowcontrol-v1beta3.json new file mode 100644 index 00000000..9b514628 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/usersubject-flowcontrol-v1beta3.json @@ -0,0 +1,18 @@ +{ + "description": "UserSubject holds detailed information for user-kind subject.", + "properties": { + "name": { + "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/usersubject/flowcontrol/v1beta3" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicy-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicy-admissionregistration-v1.json new file mode 100644 index 00000000..8cff5f14 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicy-admissionregistration-v1.json @@ -0,0 +1,47 @@ +{ + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicy" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicy/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicy-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicy-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..a5ab46af --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicy-admissionregistration-v1alpha1.json @@ -0,0 +1,47 @@ +{ + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicy" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicy/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicy-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicy-admissionregistration-v1beta1.json new file mode 100644 index 00000000..6a668eea --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicy-admissionregistration-v1beta1.json @@ -0,0 +1,47 @@ +{ + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicy" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyStatus", + "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicy/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybinding-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybinding-admissionregistration-v1.json new file mode 100644 index 00000000..3fafb47c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybinding-admissionregistration-v1.json @@ -0,0 +1,43 @@ +{ + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBinding" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicybinding/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybinding-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybinding-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..0fcf7b10 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybinding-admissionregistration-v1alpha1.json @@ -0,0 +1,43 @@ +{ + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBinding" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicybinding/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybinding-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybinding-admissionregistration-v1beta1.json new file mode 100644 index 00000000..294ff409 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybinding-admissionregistration-v1beta1.json @@ -0,0 +1,43 @@ +{ + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.\n\nThe CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBinding" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicybinding/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindinglist-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindinglist-admissionregistration-v1.json new file mode 100644 index 00000000..9a3f99b3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindinglist-admissionregistration-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBindingList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicybindinglist/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindinglist-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindinglist-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..4d149fb9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindinglist-admissionregistration-v1alpha1.json @@ -0,0 +1,52 @@ +{ + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBindingList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicybindinglist/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindinglist-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindinglist-admissionregistration-v1beta1.json new file mode 100644 index 00000000..ab62b4f0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindinglist-admissionregistration-v1beta1.json @@ -0,0 +1,52 @@ +{ + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyBindingList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicybindinglist/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindingspec-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindingspec-admissionregistration-v1.json new file mode 100644 index 00000000..0d789bad --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindingspec-admissionregistration-v1.json @@ -0,0 +1,37 @@ +{ + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": [ + "string", + "null" + ] + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicybindingspec/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindingspec-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindingspec-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..f30ae03f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindingspec-admissionregistration-v1alpha1.json @@ -0,0 +1,37 @@ +{ + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": [ + "string", + "null" + ] + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicybindingspec/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindingspec-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindingspec-admissionregistration-v1beta1.json new file mode 100644 index 00000000..09656c99 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicybindingspec-admissionregistration-v1beta1.json @@ -0,0 +1,37 @@ +{ + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": [ + "string", + "null" + ] + }, + "validationActions": { + "description": "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.\n\nFailures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.\n\nvalidationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.\n\nThe supported actions values are:\n\n\"Deny\" specifies that a validation failure results in a denied request.\n\n\"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.\n\n\"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\"message\": \"Invalid value\", {\"policy\": \"policy.example.com\", {\"binding\": \"policybinding.example.com\", {\"expressionIndex\": \"1\", {\"validationActions\": [\"Audit\"]}]\"`\n\nClients should expect to handle additional values by ignoring any values not recognized.\n\n\"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.\n\nRequired.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "set" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicybindingspec/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicylist-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicylist-admissionregistration-v1.json new file mode 100644 index 00000000..aa2d5699 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicylist-admissionregistration-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicylist/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicylist-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicylist-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..31951023 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicylist-admissionregistration-v1alpha1.json @@ -0,0 +1,52 @@ +{ + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicylist/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicylist-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicylist-admissionregistration-v1beta1.json new file mode 100644 index 00000000..589e2367 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicylist-admissionregistration-v1beta1.json @@ -0,0 +1,52 @@ +{ + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1beta1" + ] + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ValidatingAdmissionPolicy" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingAdmissionPolicyList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicylist/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicyspec-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicyspec-admissionregistration-v1.json new file mode 100644 index 00000000..5eb656d6 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicyspec-admissionregistration-v1.json @@ -0,0 +1,77 @@ +{ + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.AuditAnnotation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.Validation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.Variable" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicyspec/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicyspec-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicyspec-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..bd301ad9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicyspec-admissionregistration-v1alpha1.json @@ -0,0 +1,77 @@ +{ + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.AuditAnnotation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.Validation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.Variable" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicyspec/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicyspec-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicyspec-admissionregistration-v1beta1.json new file mode 100644 index 00000000..4c79526d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicyspec-admissionregistration-v1beta1.json @@ -0,0 +1,77 @@ +{ + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "auditAnnotations": { + "description": "auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.AuditAnnotation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nWhen failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.Validation" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "variables": { + "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.Variable" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicyspec/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicystatus-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicystatus-admissionregistration-v1.json new file mode 100644 index 00000000..a85a15da --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicystatus-admissionregistration-v1.json @@ -0,0 +1,34 @@ +{ + "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "typeChecking": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicystatus/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicystatus-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicystatus-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..53e0cbf3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicystatus-admissionregistration-v1alpha1.json @@ -0,0 +1,34 @@ +{ + "description": "ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "typeChecking": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1alpha1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicystatus/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicystatus-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicystatus-admissionregistration-v1beta1.json new file mode 100644 index 00000000..0d2646f5 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingadmissionpolicystatus-admissionregistration-v1beta1.json @@ -0,0 +1,34 @@ +{ + "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", + "properties": { + "conditions": { + "description": "The conditions represent the latest available observations of a policy's current state.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Condition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map" + }, + "observedGeneration": { + "description": "The generation observed by the controller.", + "format": "int64", + "type": [ + "integer", + "null" + ] + }, + "typeChecking": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1beta1.TypeChecking", + "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingadmissionpolicystatus/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingwebhook-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingwebhook-admissionregistration-v1.json new file mode 100644 index 00000000..d6dba2e9 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingwebhook-admissionregistration-v1.json @@ -0,0 +1,103 @@ +{ + "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "clientConfig": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "type": [ + "string", + "null" + ] + }, + "matchConditions": { + "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.MatchCondition" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Equivalent\"", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": [ + "string", + "null" + ] + }, + "namespaceSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.RuleWithOperations" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + }, + "sideEffects": { + "description": "SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some.", + "type": [ + "string", + "null" + ] + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "name", + "clientConfig", + "sideEffects", + "admissionReviewVersions" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingwebhook/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingwebhookconfiguration-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingwebhookconfiguration-admissionregistration-v1.json new file mode 100644 index 00000000..94166599 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingwebhookconfiguration-admissionregistration-v1.json @@ -0,0 +1,55 @@ +{ + "description": "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingWebhookConfiguration" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "webhooks": { + "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhook" + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingwebhookconfiguration/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingwebhookconfigurationlist-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingwebhookconfigurationlist-admissionregistration-v1.json new file mode 100644 index 00000000..39ed1e4d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validatingwebhookconfigurationlist-admissionregistration-v1.json @@ -0,0 +1,52 @@ +{ + "description": "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "admissionregistration.k8s.io/v1" + ] + }, + "items": { + "description": "List of ValidatingWebhookConfiguration.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "ValidatingWebhookConfigurationList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfigurationList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validatingwebhookconfigurationlist/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validation-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validation-admissionregistration-v1.json new file mode 100644 index 00000000..e3a7ee03 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validation-admissionregistration-v1.json @@ -0,0 +1,39 @@ +{ + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validation/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validation-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validation-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..251d4bc8 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validation-admissionregistration-v1alpha1.json @@ -0,0 +1,39 @@ +{ + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validation/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validation-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validation-admissionregistration-v1beta1.json new file mode 100644 index 00000000..90dc5f25 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validation-admissionregistration-v1beta1.json @@ -0,0 +1,39 @@ +{ + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validation/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validationrule-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validationrule-apiextensions-v1.json new file mode 100644 index 00000000..9921c61d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/validationrule-apiextensions-v1.json @@ -0,0 +1,53 @@ +{ + "description": "ValidationRule describes a validation rule written in the CEL expression language.", + "properties": { + "fieldPath": { + "description": "fieldPath represents the field path returned when the validation fails. It must be a relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing field currently. Refer to [JSONPath support in Kubernetes](https://kubernetes.io/docs/reference/kubectl/jsonpath/) for more info. Numeric index of array is not supported. For field name which contains special characters, use `['specialName']` to refer the field name. e.g. for attribute `foo.34$` appears in a list `testList`, the fieldPath could be set to `.testList['foo.34$']`", + "type": [ + "string", + "null" + ] + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Rule contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"", + "type": [ + "string", + "null" + ] + }, + "messageExpression": { + "description": "MessageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a rule, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the rule; the only difference is the return type. Example: \"x must be less than max (\"+string(self.max)+\")\"", + "type": [ + "string", + "null" + ] + }, + "optionalOldSelf": { + "description": "optionalOldSelf is used to opt a transition rule into evaluation even when the object is first created, or if the old object is missing the value.\n\nWhen enabled `oldSelf` will be a CEL optional whose value will be `None` if there is no old value, or when the object is initially created.\n\nYou may check for presence of oldSelf using `oldSelf.hasValue()` and unwrap it after checking using `oldSelf.value()`. Check the CEL documentation for Optional types for more information: https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes\n\nMay not be set unless `oldSelf` is used in `rule`.", + "type": [ + "boolean", + "null" + ] + }, + "reason": { + "description": "reason provides a machine-readable validation failure reason that is returned to the caller when a request fails this validation rule. The HTTP status code returned to the caller will match the reason of the reason of the first failed validation rule. The currently supported reasons are: \"FieldValueInvalid\", \"FieldValueForbidden\", \"FieldValueRequired\", \"FieldValueDuplicate\". If not set, default to use \"FieldValueInvalid\". All future added reasons must be accepted by clients when reading this value and unknown reasons should be treated as FieldValueInvalid.", + "type": [ + "string", + "null" + ] + }, + "rule": { + "description": "Rule represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec The Rule is scoped to the location of the x-kubernetes-validations extension in the schema. The `self` variable in the CEL expression is bound to the scoped value. Example: - Rule scoped to the root of a resource with a status subresource: {\"rule\": \"self.status.actual <= self.spec.maxDesired\"}\n\nIf the Rule is scoped to an object with properties, the accessible properties of the object are field selectable via `self.field` and field presence can be checked via `has(self.field)`. Null valued fields are treated as absent fields in CEL expressions. If the Rule is scoped to an object with additionalProperties (i.e. a map) the value of the map are accessible via `self[mapKey]`, map containment can be checked via `mapKey in self` and all entries of the map are accessible via CEL macros and functions such as `self.all(...)`. If the Rule is scoped to an array, the elements of the array are accessible via `self[i]` and also by macros and functions. If the Rule is scoped to a scalar, `self` is bound to the scalar value. Examples: - Rule scoped to a map of objects: {\"rule\": \"self.components['Widget'].priority < 10\"} - Rule scoped to a list of integers: {\"rule\": \"self.values.all(value, value >= 0 && value < 100)\"} - Rule scoped to a string value: {\"rule\": \"self.startsWith('kube')\"}\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object and from any x-kubernetes-embedded-resource annotated objects. No other metadata properties are accessible.\n\nUnknown data preserved in custom resources via x-kubernetes-preserve-unknown-fields is not accessible in CEL expressions. This includes: - Unknown field values that are preserved by object schemas with x-kubernetes-preserve-unknown-fields. - Object properties where the property schema is of an \"unknown type\". An \"unknown type\" is recursively defined as:\n - A schema with no type and x-kubernetes-preserve-unknown-fields set to true\n - An array where the items schema is of an \"unknown type\"\n - An object where the additionalProperties schema is of an \"unknown type\"\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Rule accessing a property named \"namespace\": {\"rule\": \"self.__namespace__ > 0\"}\n - Rule accessing a property named \"x-prop\": {\"rule\": \"self.x__dash__prop > 0\"}\n - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d > 0\"}\n\nEquality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\n\nIf `rule` makes use of the `oldSelf` variable it is implicitly a `transition rule`.\n\nBy default, the `oldSelf` variable is the same type as `self`. When `optionalOldSelf` is true, the `oldSelf` variable is a CEL optional\n variable whose value() is the same type as `self`.\nSee the documentation for the `optionalOldSelf` field for details.\n\nTransition rules by default are applied only on UPDATE requests and are skipped if an old value could not be found. You can opt a transition rule into unconditional evaluation by setting `optionalOldSelf` to true.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "rule" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/validationrule/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/variable-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/variable-admissionregistration-v1.json new file mode 100644 index 00000000..9968eb6f --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/variable-admissionregistration-v1.json @@ -0,0 +1,27 @@ +{ + "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/variable/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/variable-admissionregistration-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/variable-admissionregistration-v1alpha1.json new file mode 100644 index 00000000..4fa81f50 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/variable-admissionregistration-v1alpha1.json @@ -0,0 +1,26 @@ +{ + "description": "Variable is the definition of a variable that is used for composition.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/variable/admissionregistration/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/variable-admissionregistration-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/variable-admissionregistration-v1beta1.json new file mode 100644 index 00000000..59a0a5b2 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/variable-admissionregistration-v1beta1.json @@ -0,0 +1,27 @@ +{ + "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", + "properties": { + "expression": { + "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "expression" + ], + "type": "object", + "x-kubernetes-map-type": "atomic", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/variable/admissionregistration/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volume-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volume-v1.json new file mode 100644 index 00000000..dbcb0b0a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volume-v1.json @@ -0,0 +1,138 @@ +{ + "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + "properties": { + "awsElasticBlockStore": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AWSElasticBlockStoreVolumeSource", + "description": "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore" + }, + "azureDisk": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureDiskVolumeSource", + "description": "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod." + }, + "azureFile": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.AzureFileVolumeSource", + "description": "azureFile represents an Azure File Service mount on the host and bind mount to the pod." + }, + "cephfs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CephFSVolumeSource", + "description": "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime" + }, + "cinder": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CinderVolumeSource", + "description": "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md" + }, + "configMap": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapVolumeSource", + "description": "configMap represents a configMap that should populate this volume" + }, + "csi": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.CSIVolumeSource", + "description": "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature)." + }, + "downwardAPI": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIVolumeSource", + "description": "downwardAPI represents downward API about the pod that should populate this volume" + }, + "emptyDir": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EmptyDirVolumeSource", + "description": "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir" + }, + "ephemeral": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.EphemeralVolumeSource", + "description": "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time." + }, + "fc": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FCVolumeSource", + "description": "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod." + }, + "flexVolume": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlexVolumeSource", + "description": "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin." + }, + "flocker": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.FlockerVolumeSource", + "description": "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running" + }, + "gcePersistentDisk": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GCEPersistentDiskVolumeSource", + "description": "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk" + }, + "gitRepo": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GitRepoVolumeSource", + "description": "gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container." + }, + "glusterfs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.GlusterfsVolumeSource", + "description": "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md" + }, + "hostPath": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.HostPathVolumeSource", + "description": "hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath" + }, + "image": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ImageVolumeSource", + "description": "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type." + }, + "iscsi": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ISCSIVolumeSource", + "description": "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md" + }, + "name": { + "description": "name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "type": [ + "string", + "null" + ] + }, + "nfs": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NFSVolumeSource", + "description": "nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs" + }, + "persistentVolumeClaim": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeClaimVolumeSource", + "description": "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + }, + "photonPersistentDisk": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PhotonPersistentDiskVolumeSource", + "description": "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine" + }, + "portworxVolume": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PortworxVolumeSource", + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine" + }, + "projected": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ProjectedVolumeSource", + "description": "projected items for all in one resources secrets, configmaps, and downward API" + }, + "quobyte": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.QuobyteVolumeSource", + "description": "quobyte represents a Quobyte mount on the host that shares a pod's lifetime" + }, + "rbd": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.RBDVolumeSource", + "description": "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md" + }, + "scaleIO": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ScaleIOVolumeSource", + "description": "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes." + }, + "secret": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretVolumeSource", + "description": "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret" + }, + "storageos": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.StorageOSVolumeSource", + "description": "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes." + }, + "vsphereVolume": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.VsphereVirtualDiskVolumeSource", + "description": "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine" + } + }, + "required": [ + "name" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volume/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachment-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachment-storage-v1.json new file mode 100644 index 00000000..1b843d72 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachment-storage-v1.json @@ -0,0 +1,50 @@ +{ + "description": "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttachment" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentSpec", + "description": "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system." + }, + "status": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentStatus", + "description": "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachment", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumeattachment/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentlist-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentlist-storage-v1.json new file mode 100644 index 00000000..918e5eb7 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentlist-storage-v1.json @@ -0,0 +1,52 @@ +{ + "description": "VolumeAttachmentList is a collection of VolumeAttachment objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1" + ] + }, + "items": { + "description": "items is the list of VolumeAttachments", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachment" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttachmentList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttachmentList", + "version": "v1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumeattachmentlist/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentsource-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentsource-storage-v1.json new file mode 100644 index 00000000..87738609 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentsource-storage-v1.json @@ -0,0 +1,19 @@ +{ + "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", + "properties": { + "inlineVolumeSpec": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature." + }, + "persistentVolumeName": { + "description": "persistentVolumeName represents the name of the persistent volume to attach.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumeattachmentsource/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentspec-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentspec-storage-v1.json new file mode 100644 index 00000000..aa1e5853 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentspec-storage-v1.json @@ -0,0 +1,31 @@ +{ + "description": "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", + "properties": { + "attacher": { + "description": "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", + "type": [ + "string", + "null" + ] + }, + "nodeName": { + "description": "nodeName represents the node that the volume should be attached to.", + "type": [ + "string", + "null" + ] + }, + "source": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeAttachmentSource", + "description": "source represents the volume that should be attached." + } + }, + "required": [ + "attacher", + "source", + "nodeName" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumeattachmentspec/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentstatus-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentstatus-storage-v1.json new file mode 100644 index 00000000..2b373000 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattachmentstatus-storage-v1.json @@ -0,0 +1,39 @@ +{ + "description": "VolumeAttachmentStatus is the status of a VolumeAttachment request.", + "properties": { + "attachError": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeError", + "description": "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher." + }, + "attached": { + "description": "attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "type": [ + "boolean", + "null" + ] + }, + "attachmentMetadata": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + "type": [ + "object", + "null" + ] + }, + "detachError": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1.VolumeError", + "description": "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher." + } + }, + "required": [ + "attached" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumeattachmentstatus/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclass-storage-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclass-storage-v1alpha1.json new file mode 100644 index 00000000..3efe493d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclass-storage-v1alpha1.json @@ -0,0 +1,62 @@ +{ + "description": "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1alpha1" + ] + }, + "driverName": { + "description": "Name of the CSI driver This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "parameters": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "driverName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumeattributesclass/storage/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclass-storage-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclass-storage-v1beta1.json new file mode 100644 index 00000000..97fb2c3d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclass-storage-v1beta1.json @@ -0,0 +1,62 @@ +{ + "description": "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1beta1" + ] + }, + "driverName": { + "description": "Name of the CSI driver This field is immutable.", + "type": [ + "string", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClass" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "parameters": { + "additionalProperties": { + "type": [ + "string", + "null" + ] + }, + "description": "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + "type": [ + "object", + "null" + ] + } + }, + "required": [ + "driverName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClass", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumeattributesclass/storage/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclasslist-storage-v1alpha1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclasslist-storage-v1alpha1.json new file mode 100644 index 00000000..9056fe1e --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclasslist-storage-v1alpha1.json @@ -0,0 +1,52 @@ +{ + "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1alpha1" + ] + }, + "items": { + "description": "items is the list of VolumeAttributesClass objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1alpha1.VolumeAttributesClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClassList", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumeattributesclasslist/storage/v1alpha1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclasslist-storage-v1beta1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclasslist-storage-v1beta1.json new file mode 100644 index 00000000..9b2392bb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeattributesclasslist-storage-v1beta1.json @@ -0,0 +1,52 @@ +{ + "description": "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": [ + "string", + "null" + ], + "enum": [ + "storage.k8s.io/v1beta1" + ] + }, + "items": { + "description": "items is the list of VolumeAttributesClass objects.", + "items": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.storage.v1beta1.VolumeAttributesClass" + }, + "type": [ + "array", + "null" + ] + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": [ + "string", + "null" + ], + "enum": [ + "VolumeAttributesClassList" + ] + }, + "metadata": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "storage.k8s.io", + "kind": "VolumeAttributesClassList", + "version": "v1beta1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumeattributesclasslist/storage/v1beta1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumedevice-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumedevice-v1.json new file mode 100644 index 00000000..ff6ec60d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumedevice-v1.json @@ -0,0 +1,26 @@ +{ + "description": "volumeDevice describes a mapping of a raw block device within a container.", + "properties": { + "devicePath": { + "description": "devicePath is the path inside of the container that the device will be mapped to.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "name must match the name of a persistentVolumeClaim in the pod", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "devicePath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumedevice/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeerror-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeerror-storage-v1.json new file mode 100644 index 00000000..1f032b78 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeerror-storage-v1.json @@ -0,0 +1,19 @@ +{ + "description": "VolumeError captures an error encountered during a volume operation.", + "properties": { + "message": { + "description": "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", + "type": [ + "string", + "null" + ] + }, + "time": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "time represents the time the error was encountered." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumeerror/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumemount-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumemount-v1.json new file mode 100644 index 00000000..0419fd45 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumemount-v1.json @@ -0,0 +1,61 @@ +{ + "description": "VolumeMount describes a mounting of a Volume within a container.", + "properties": { + "mountPath": { + "description": "Path within the container at which the volume should be mounted. Must not contain ':'.", + "type": [ + "string", + "null" + ] + }, + "mountPropagation": { + "description": "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "This must match the Name of a Volume.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + "type": [ + "boolean", + "null" + ] + }, + "recursiveReadOnly": { + "description": "RecursiveReadOnly specifies whether read-only mounts should be handled recursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", + "type": [ + "string", + "null" + ] + }, + "subPath": { + "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", + "type": [ + "string", + "null" + ] + }, + "subPathExpr": { + "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "mountPath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumemount/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumemountstatus-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumemountstatus-v1.json new file mode 100644 index 00000000..b885a909 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumemountstatus-v1.json @@ -0,0 +1,40 @@ +{ + "description": "VolumeMountStatus shows status of volume mounts.", + "properties": { + "mountPath": { + "description": "MountPath corresponds to the original VolumeMount.", + "type": [ + "string", + "null" + ] + }, + "name": { + "description": "Name corresponds to the name of the original VolumeMount.", + "type": [ + "string", + "null" + ] + }, + "readOnly": { + "description": "ReadOnly corresponds to the original VolumeMount.", + "type": [ + "boolean", + "null" + ] + }, + "recursiveReadOnly": { + "description": "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "name", + "mountPath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumemountstatus/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumenodeaffinity-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumenodeaffinity-v1.json new file mode 100644 index 00000000..52c55bb0 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumenodeaffinity-v1.json @@ -0,0 +1,12 @@ +{ + "description": "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", + "properties": { + "required": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.NodeSelector", + "description": "required specifies hard node constraints that must be met." + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumenodeaffinity/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumenoderesources-storage-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumenoderesources-storage-v1.json new file mode 100644 index 00000000..309df4a1 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumenoderesources-storage-v1.json @@ -0,0 +1,16 @@ +{ + "description": "VolumeNodeResources is a set of resource limits for scheduling of volumes.", + "properties": { + "count": { + "description": "count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumenoderesources/storage/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeprojection-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeprojection-v1.json new file mode 100644 index 00000000..4df97fca --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeprojection-v1.json @@ -0,0 +1,28 @@ +{ + "description": "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.", + "properties": { + "clusterTrustBundle": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ClusterTrustBundleProjection", + "description": "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time." + }, + "configMap": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ConfigMapProjection", + "description": "configMap information about the configMap data to project" + }, + "downwardAPI": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.DownwardAPIProjection", + "description": "downwardAPI information about the downwardAPI data to project" + }, + "secret": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.SecretProjection", + "description": "secret information about the secret data to project" + }, + "serviceAccountToken": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.ServiceAccountTokenProjection", + "description": "serviceAccountToken is information about the serviceAccountToken data to project" + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumeprojection/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeresourcerequirements-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeresourcerequirements-v1.json new file mode 100644 index 00000000..6d87af60 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/volumeresourcerequirements-v1.json @@ -0,0 +1,28 @@ +{ + "description": "VolumeResourceRequirements describes the storage resource requirements for a volume.", + "properties": { + "limits": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + }, + "requests": { + "additionalProperties": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.api.resource.Quantity" + }, + "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + "type": [ + "object", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/volumeresourcerequirements/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/vspherevirtualdiskvolumesource-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/vspherevirtualdiskvolumesource-v1.json new file mode 100644 index 00000000..ed3f02e3 --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/vspherevirtualdiskvolumesource-v1.json @@ -0,0 +1,39 @@ +{ + "description": "Represents a vSphere volume resource.", + "properties": { + "fsType": { + "description": "fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "type": [ + "string", + "null" + ] + }, + "storagePolicyID": { + "description": "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", + "type": [ + "string", + "null" + ] + }, + "storagePolicyName": { + "description": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", + "type": [ + "string", + "null" + ] + }, + "volumePath": { + "description": "volumePath is the path that identifies vSphere volume vmdk", + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "volumePath" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/vspherevirtualdiskvolumesource/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/watchevent-meta-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/watchevent-meta-v1.json new file mode 100644 index 00000000..edcd8cef --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/watchevent-meta-v1.json @@ -0,0 +1,324 @@ +{ + "description": "Event represents a single event to a watched resource.", + "properties": { + "object": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apimachinery.pkg.runtime.RawExtension", + "description": "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context." + }, + "type": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "object" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admission.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apiextensions.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apiregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "apps", + "kind": "WatchEvent", + "version": "v1beta2" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2beta1" + }, + { + "group": "autoscaling", + "kind": "WatchEvent", + "version": "v2beta2" + }, + { + "group": "batch", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "batch", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "certificates.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "coordination.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "discovery.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "events.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "extensions", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta2" + }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta3" + }, + { + "group": "imagepolicy.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "internal.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "networking.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "node.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "policy", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "policy", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "rbac.authorization.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha3" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "scheduling.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, + { + "group": "storage.k8s.io", + "kind": "WatchEvent", + "version": "v1beta1" + }, + { + "group": "storagemigration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + } + ], + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/watchevent/meta/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/webhookclientconfig-admissionregistration-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/webhookclientconfig-admissionregistration-v1.json new file mode 100644 index 00000000..e807485c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/webhookclientconfig-admissionregistration-v1.json @@ -0,0 +1,27 @@ +{ + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook", + "properties": { + "caBundle": { + "description": "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "service": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.admissionregistration.v1.ServiceReference", + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + }, + "url": { + "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/webhookclientconfig/admissionregistration/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/webhookclientconfig-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/webhookclientconfig-apiextensions-v1.json new file mode 100644 index 00000000..7cb765cb --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/webhookclientconfig-apiextensions-v1.json @@ -0,0 +1,27 @@ +{ + "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook.", + "properties": { + "caBundle": { + "description": "caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + "format": "byte", + "type": [ + "string", + "null" + ] + }, + "service": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.ServiceReference", + "description": "service is a reference to the service for this webhook. Either service or url must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + }, + "url": { + "description": "url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/webhookclientconfig/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/webhookconversion-apiextensions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/webhookconversion-apiextensions-v1.json new file mode 100644 index 00000000..f547223d --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/webhookconversion-apiextensions-v1.json @@ -0,0 +1,29 @@ +{ + "description": "WebhookConversion describes how to call a conversion webhook", + "properties": { + "clientConfig": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1.WebhookClientConfig", + "description": "clientConfig is the instructions for how to call the webhook if strategy is `Webhook`." + }, + "conversionReviewVersions": { + "description": "conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.", + "items": { + "type": [ + "string", + "null" + ] + }, + "type": [ + "array", + "null" + ], + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "conversionReviewVersions" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/webhookconversion/apiextensions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/weightedpodaffinityterm-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/weightedpodaffinityterm-v1.json new file mode 100644 index 00000000..cd4fdd5a --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/weightedpodaffinityterm-v1.json @@ -0,0 +1,24 @@ +{ + "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + "properties": { + "podAffinityTerm": { + "$ref": "/api/_definitions.json#/$defs/io.k8s.api.core.v1.PodAffinityTerm", + "description": "Required. A pod affinity term, associated with the corresponding weight." + }, + "weight": { + "description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + "format": "int32", + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "weight", + "podAffinityTerm" + ], + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/weightedpodaffinityterm/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/windowssecuritycontextoptions-v1.json b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/windowssecuritycontextoptions-v1.json new file mode 100644 index 00000000..9ed9c27c --- /dev/null +++ b/src/kubernetes_validate/kubernetes-json-schema/v1.31.0-local/windowssecuritycontextoptions-v1.json @@ -0,0 +1,36 @@ +{ + "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", + "properties": { + "gmsaCredentialSpec": { + "description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.", + "type": [ + "string", + "null" + ] + }, + "gmsaCredentialSpecName": { + "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.", + "type": [ + "string", + "null" + ] + }, + "hostProcess": { + "description": "HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.", + "type": [ + "boolean", + "null" + ] + }, + "runAsUserName": { + "description": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + "type": [ + "string", + "null" + ] + } + }, + "type": "object", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://kubernetes.io/api/windowssecuritycontextoptions/v1" +} \ No newline at end of file diff --git a/src/kubernetes_validate/version.py b/src/kubernetes_validate/version.py index 0a4b874b..1160b075 100644 --- a/src/kubernetes_validate/version.py +++ b/src/kubernetes_validate/version.py @@ -1 +1 @@ -__version__ = '1.30.0' +__version__ = '1.31.0'