kubesphere.io/api@v0.0.0-20231107125330-c9a03957060c/cluster/v1alpha1/openapi_generated.go (about) 1 //go:build !ignore_autogenerated 2 // +build !ignore_autogenerated 3 4 /* 5 Copyright 2020 The KubeSphere Authors. 6 7 Licensed under the Apache License, Version 2.0 (the "License"); 8 you may not use this file except in compliance with the License. 9 You may obtain a copy of the License at 10 11 http://www.apache.org/licenses/LICENSE-2.0 12 13 Unless required by applicable law or agreed to in writing, software 14 distributed under the License is distributed on an "AS IS" BASIS, 15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 See the License for the specific language governing permissions and 17 limitations under the License. 18 */ 19 20 // Code generated by openapi-gen. DO NOT EDIT. 21 22 // This file was autogenerated by openapi-gen. Do not edit it manually! 23 24 package v1alpha1 25 26 import ( 27 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 28 common "k8s.io/kube-openapi/pkg/common" 29 spec "k8s.io/kube-openapi/pkg/validation/spec" 30 ) 31 32 func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { 33 return map[string]common.OpenAPIDefinition{ 34 "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource": schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), 35 "k8s.io/api/core/v1.Affinity": schema_k8sio_api_core_v1_Affinity(ref), 36 "k8s.io/api/core/v1.AttachedVolume": schema_k8sio_api_core_v1_AttachedVolume(ref), 37 "k8s.io/api/core/v1.AvoidPods": schema_k8sio_api_core_v1_AvoidPods(ref), 38 "k8s.io/api/core/v1.AzureDiskVolumeSource": schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref), 39 "k8s.io/api/core/v1.AzureFilePersistentVolumeSource": schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref), 40 "k8s.io/api/core/v1.AzureFileVolumeSource": schema_k8sio_api_core_v1_AzureFileVolumeSource(ref), 41 "k8s.io/api/core/v1.Binding": schema_k8sio_api_core_v1_Binding(ref), 42 "k8s.io/api/core/v1.CSIPersistentVolumeSource": schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref), 43 "k8s.io/api/core/v1.CSIVolumeSource": schema_k8sio_api_core_v1_CSIVolumeSource(ref), 44 "k8s.io/api/core/v1.Capabilities": schema_k8sio_api_core_v1_Capabilities(ref), 45 "k8s.io/api/core/v1.CephFSPersistentVolumeSource": schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref), 46 "k8s.io/api/core/v1.CephFSVolumeSource": schema_k8sio_api_core_v1_CephFSVolumeSource(ref), 47 "k8s.io/api/core/v1.CinderPersistentVolumeSource": schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref), 48 "k8s.io/api/core/v1.CinderVolumeSource": schema_k8sio_api_core_v1_CinderVolumeSource(ref), 49 "k8s.io/api/core/v1.ClientIPConfig": schema_k8sio_api_core_v1_ClientIPConfig(ref), 50 "k8s.io/api/core/v1.ComponentCondition": schema_k8sio_api_core_v1_ComponentCondition(ref), 51 "k8s.io/api/core/v1.ComponentStatus": schema_k8sio_api_core_v1_ComponentStatus(ref), 52 "k8s.io/api/core/v1.ComponentStatusList": schema_k8sio_api_core_v1_ComponentStatusList(ref), 53 "k8s.io/api/core/v1.ConfigMap": schema_k8sio_api_core_v1_ConfigMap(ref), 54 "k8s.io/api/core/v1.ConfigMapEnvSource": schema_k8sio_api_core_v1_ConfigMapEnvSource(ref), 55 "k8s.io/api/core/v1.ConfigMapKeySelector": schema_k8sio_api_core_v1_ConfigMapKeySelector(ref), 56 "k8s.io/api/core/v1.ConfigMapList": schema_k8sio_api_core_v1_ConfigMapList(ref), 57 "k8s.io/api/core/v1.ConfigMapNodeConfigSource": schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref), 58 "k8s.io/api/core/v1.ConfigMapProjection": schema_k8sio_api_core_v1_ConfigMapProjection(ref), 59 "k8s.io/api/core/v1.ConfigMapVolumeSource": schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref), 60 "k8s.io/api/core/v1.Container": schema_k8sio_api_core_v1_Container(ref), 61 "k8s.io/api/core/v1.ContainerImage": schema_k8sio_api_core_v1_ContainerImage(ref), 62 "k8s.io/api/core/v1.ContainerPort": schema_k8sio_api_core_v1_ContainerPort(ref), 63 "k8s.io/api/core/v1.ContainerState": schema_k8sio_api_core_v1_ContainerState(ref), 64 "k8s.io/api/core/v1.ContainerStateRunning": schema_k8sio_api_core_v1_ContainerStateRunning(ref), 65 "k8s.io/api/core/v1.ContainerStateTerminated": schema_k8sio_api_core_v1_ContainerStateTerminated(ref), 66 "k8s.io/api/core/v1.ContainerStateWaiting": schema_k8sio_api_core_v1_ContainerStateWaiting(ref), 67 "k8s.io/api/core/v1.ContainerStatus": schema_k8sio_api_core_v1_ContainerStatus(ref), 68 "k8s.io/api/core/v1.DaemonEndpoint": schema_k8sio_api_core_v1_DaemonEndpoint(ref), 69 "k8s.io/api/core/v1.DownwardAPIProjection": schema_k8sio_api_core_v1_DownwardAPIProjection(ref), 70 "k8s.io/api/core/v1.DownwardAPIVolumeFile": schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref), 71 "k8s.io/api/core/v1.DownwardAPIVolumeSource": schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref), 72 "k8s.io/api/core/v1.EmptyDirVolumeSource": schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref), 73 "k8s.io/api/core/v1.EndpointAddress": schema_k8sio_api_core_v1_EndpointAddress(ref), 74 "k8s.io/api/core/v1.EndpointPort": schema_k8sio_api_core_v1_EndpointPort(ref), 75 "k8s.io/api/core/v1.EndpointSubset": schema_k8sio_api_core_v1_EndpointSubset(ref), 76 "k8s.io/api/core/v1.Endpoints": schema_k8sio_api_core_v1_Endpoints(ref), 77 "k8s.io/api/core/v1.EndpointsList": schema_k8sio_api_core_v1_EndpointsList(ref), 78 "k8s.io/api/core/v1.EnvFromSource": schema_k8sio_api_core_v1_EnvFromSource(ref), 79 "k8s.io/api/core/v1.EnvVar": schema_k8sio_api_core_v1_EnvVar(ref), 80 "k8s.io/api/core/v1.EnvVarSource": schema_k8sio_api_core_v1_EnvVarSource(ref), 81 "k8s.io/api/core/v1.EphemeralContainer": schema_k8sio_api_core_v1_EphemeralContainer(ref), 82 "k8s.io/api/core/v1.EphemeralContainerCommon": schema_k8sio_api_core_v1_EphemeralContainerCommon(ref), 83 "k8s.io/api/core/v1.EphemeralVolumeSource": schema_k8sio_api_core_v1_EphemeralVolumeSource(ref), 84 "k8s.io/api/core/v1.Event": schema_k8sio_api_core_v1_Event(ref), 85 "k8s.io/api/core/v1.EventList": schema_k8sio_api_core_v1_EventList(ref), 86 "k8s.io/api/core/v1.EventSeries": schema_k8sio_api_core_v1_EventSeries(ref), 87 "k8s.io/api/core/v1.EventSource": schema_k8sio_api_core_v1_EventSource(ref), 88 "k8s.io/api/core/v1.ExecAction": schema_k8sio_api_core_v1_ExecAction(ref), 89 "k8s.io/api/core/v1.FCVolumeSource": schema_k8sio_api_core_v1_FCVolumeSource(ref), 90 "k8s.io/api/core/v1.FlexPersistentVolumeSource": schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref), 91 "k8s.io/api/core/v1.FlexVolumeSource": schema_k8sio_api_core_v1_FlexVolumeSource(ref), 92 "k8s.io/api/core/v1.FlockerVolumeSource": schema_k8sio_api_core_v1_FlockerVolumeSource(ref), 93 "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource": schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref), 94 "k8s.io/api/core/v1.GRPCAction": schema_k8sio_api_core_v1_GRPCAction(ref), 95 "k8s.io/api/core/v1.GitRepoVolumeSource": schema_k8sio_api_core_v1_GitRepoVolumeSource(ref), 96 "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource": schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref), 97 "k8s.io/api/core/v1.GlusterfsVolumeSource": schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref), 98 "k8s.io/api/core/v1.HTTPGetAction": schema_k8sio_api_core_v1_HTTPGetAction(ref), 99 "k8s.io/api/core/v1.HTTPHeader": schema_k8sio_api_core_v1_HTTPHeader(ref), 100 "k8s.io/api/core/v1.HostAlias": schema_k8sio_api_core_v1_HostAlias(ref), 101 "k8s.io/api/core/v1.HostPathVolumeSource": schema_k8sio_api_core_v1_HostPathVolumeSource(ref), 102 "k8s.io/api/core/v1.ISCSIPersistentVolumeSource": schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref), 103 "k8s.io/api/core/v1.ISCSIVolumeSource": schema_k8sio_api_core_v1_ISCSIVolumeSource(ref), 104 "k8s.io/api/core/v1.KeyToPath": schema_k8sio_api_core_v1_KeyToPath(ref), 105 "k8s.io/api/core/v1.Lifecycle": schema_k8sio_api_core_v1_Lifecycle(ref), 106 "k8s.io/api/core/v1.LifecycleHandler": schema_k8sio_api_core_v1_LifecycleHandler(ref), 107 "k8s.io/api/core/v1.LimitRange": schema_k8sio_api_core_v1_LimitRange(ref), 108 "k8s.io/api/core/v1.LimitRangeItem": schema_k8sio_api_core_v1_LimitRangeItem(ref), 109 "k8s.io/api/core/v1.LimitRangeList": schema_k8sio_api_core_v1_LimitRangeList(ref), 110 "k8s.io/api/core/v1.LimitRangeSpec": schema_k8sio_api_core_v1_LimitRangeSpec(ref), 111 "k8s.io/api/core/v1.List": schema_k8sio_api_core_v1_List(ref), 112 "k8s.io/api/core/v1.LoadBalancerIngress": schema_k8sio_api_core_v1_LoadBalancerIngress(ref), 113 "k8s.io/api/core/v1.LoadBalancerStatus": schema_k8sio_api_core_v1_LoadBalancerStatus(ref), 114 "k8s.io/api/core/v1.LocalObjectReference": schema_k8sio_api_core_v1_LocalObjectReference(ref), 115 "k8s.io/api/core/v1.LocalVolumeSource": schema_k8sio_api_core_v1_LocalVolumeSource(ref), 116 "k8s.io/api/core/v1.NFSVolumeSource": schema_k8sio_api_core_v1_NFSVolumeSource(ref), 117 "k8s.io/api/core/v1.Namespace": schema_k8sio_api_core_v1_Namespace(ref), 118 "k8s.io/api/core/v1.NamespaceCondition": schema_k8sio_api_core_v1_NamespaceCondition(ref), 119 "k8s.io/api/core/v1.NamespaceList": schema_k8sio_api_core_v1_NamespaceList(ref), 120 "k8s.io/api/core/v1.NamespaceSpec": schema_k8sio_api_core_v1_NamespaceSpec(ref), 121 "k8s.io/api/core/v1.NamespaceStatus": schema_k8sio_api_core_v1_NamespaceStatus(ref), 122 "k8s.io/api/core/v1.Node": schema_k8sio_api_core_v1_Node(ref), 123 "k8s.io/api/core/v1.NodeAddress": schema_k8sio_api_core_v1_NodeAddress(ref), 124 "k8s.io/api/core/v1.NodeAffinity": schema_k8sio_api_core_v1_NodeAffinity(ref), 125 "k8s.io/api/core/v1.NodeCondition": schema_k8sio_api_core_v1_NodeCondition(ref), 126 "k8s.io/api/core/v1.NodeConfigSource": schema_k8sio_api_core_v1_NodeConfigSource(ref), 127 "k8s.io/api/core/v1.NodeConfigStatus": schema_k8sio_api_core_v1_NodeConfigStatus(ref), 128 "k8s.io/api/core/v1.NodeDaemonEndpoints": schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref), 129 "k8s.io/api/core/v1.NodeList": schema_k8sio_api_core_v1_NodeList(ref), 130 "k8s.io/api/core/v1.NodeProxyOptions": schema_k8sio_api_core_v1_NodeProxyOptions(ref), 131 "k8s.io/api/core/v1.NodeResources": schema_k8sio_api_core_v1_NodeResources(ref), 132 "k8s.io/api/core/v1.NodeSelector": schema_k8sio_api_core_v1_NodeSelector(ref), 133 "k8s.io/api/core/v1.NodeSelectorRequirement": schema_k8sio_api_core_v1_NodeSelectorRequirement(ref), 134 "k8s.io/api/core/v1.NodeSelectorTerm": schema_k8sio_api_core_v1_NodeSelectorTerm(ref), 135 "k8s.io/api/core/v1.NodeSpec": schema_k8sio_api_core_v1_NodeSpec(ref), 136 "k8s.io/api/core/v1.NodeStatus": schema_k8sio_api_core_v1_NodeStatus(ref), 137 "k8s.io/api/core/v1.NodeSystemInfo": schema_k8sio_api_core_v1_NodeSystemInfo(ref), 138 "k8s.io/api/core/v1.ObjectFieldSelector": schema_k8sio_api_core_v1_ObjectFieldSelector(ref), 139 "k8s.io/api/core/v1.ObjectReference": schema_k8sio_api_core_v1_ObjectReference(ref), 140 "k8s.io/api/core/v1.PersistentVolume": schema_k8sio_api_core_v1_PersistentVolume(ref), 141 "k8s.io/api/core/v1.PersistentVolumeClaim": schema_k8sio_api_core_v1_PersistentVolumeClaim(ref), 142 "k8s.io/api/core/v1.PersistentVolumeClaimCondition": schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref), 143 "k8s.io/api/core/v1.PersistentVolumeClaimList": schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref), 144 "k8s.io/api/core/v1.PersistentVolumeClaimSpec": schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref), 145 "k8s.io/api/core/v1.PersistentVolumeClaimStatus": schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref), 146 "k8s.io/api/core/v1.PersistentVolumeClaimTemplate": schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref), 147 "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref), 148 "k8s.io/api/core/v1.PersistentVolumeList": schema_k8sio_api_core_v1_PersistentVolumeList(ref), 149 "k8s.io/api/core/v1.PersistentVolumeSource": schema_k8sio_api_core_v1_PersistentVolumeSource(ref), 150 "k8s.io/api/core/v1.PersistentVolumeSpec": schema_k8sio_api_core_v1_PersistentVolumeSpec(ref), 151 "k8s.io/api/core/v1.PersistentVolumeStatus": schema_k8sio_api_core_v1_PersistentVolumeStatus(ref), 152 "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource": schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref), 153 "k8s.io/api/core/v1.Pod": schema_k8sio_api_core_v1_Pod(ref), 154 "k8s.io/api/core/v1.PodAffinity": schema_k8sio_api_core_v1_PodAffinity(ref), 155 "k8s.io/api/core/v1.PodAffinityTerm": schema_k8sio_api_core_v1_PodAffinityTerm(ref), 156 "k8s.io/api/core/v1.PodAntiAffinity": schema_k8sio_api_core_v1_PodAntiAffinity(ref), 157 "k8s.io/api/core/v1.PodAttachOptions": schema_k8sio_api_core_v1_PodAttachOptions(ref), 158 "k8s.io/api/core/v1.PodCondition": schema_k8sio_api_core_v1_PodCondition(ref), 159 "k8s.io/api/core/v1.PodDNSConfig": schema_k8sio_api_core_v1_PodDNSConfig(ref), 160 "k8s.io/api/core/v1.PodDNSConfigOption": schema_k8sio_api_core_v1_PodDNSConfigOption(ref), 161 "k8s.io/api/core/v1.PodExecOptions": schema_k8sio_api_core_v1_PodExecOptions(ref), 162 "k8s.io/api/core/v1.PodIP": schema_k8sio_api_core_v1_PodIP(ref), 163 "k8s.io/api/core/v1.PodList": schema_k8sio_api_core_v1_PodList(ref), 164 "k8s.io/api/core/v1.PodLogOptions": schema_k8sio_api_core_v1_PodLogOptions(ref), 165 "k8s.io/api/core/v1.PodOS": schema_k8sio_api_core_v1_PodOS(ref), 166 "k8s.io/api/core/v1.PodPortForwardOptions": schema_k8sio_api_core_v1_PodPortForwardOptions(ref), 167 "k8s.io/api/core/v1.PodProxyOptions": schema_k8sio_api_core_v1_PodProxyOptions(ref), 168 "k8s.io/api/core/v1.PodReadinessGate": schema_k8sio_api_core_v1_PodReadinessGate(ref), 169 "k8s.io/api/core/v1.PodSecurityContext": schema_k8sio_api_core_v1_PodSecurityContext(ref), 170 "k8s.io/api/core/v1.PodSignature": schema_k8sio_api_core_v1_PodSignature(ref), 171 "k8s.io/api/core/v1.PodSpec": schema_k8sio_api_core_v1_PodSpec(ref), 172 "k8s.io/api/core/v1.PodStatus": schema_k8sio_api_core_v1_PodStatus(ref), 173 "k8s.io/api/core/v1.PodStatusResult": schema_k8sio_api_core_v1_PodStatusResult(ref), 174 "k8s.io/api/core/v1.PodTemplate": schema_k8sio_api_core_v1_PodTemplate(ref), 175 "k8s.io/api/core/v1.PodTemplateList": schema_k8sio_api_core_v1_PodTemplateList(ref), 176 "k8s.io/api/core/v1.PodTemplateSpec": schema_k8sio_api_core_v1_PodTemplateSpec(ref), 177 "k8s.io/api/core/v1.PortStatus": schema_k8sio_api_core_v1_PortStatus(ref), 178 "k8s.io/api/core/v1.PortworxVolumeSource": schema_k8sio_api_core_v1_PortworxVolumeSource(ref), 179 "k8s.io/api/core/v1.PreferAvoidPodsEntry": schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref), 180 "k8s.io/api/core/v1.PreferredSchedulingTerm": schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref), 181 "k8s.io/api/core/v1.Probe": schema_k8sio_api_core_v1_Probe(ref), 182 "k8s.io/api/core/v1.ProbeHandler": schema_k8sio_api_core_v1_ProbeHandler(ref), 183 "k8s.io/api/core/v1.ProjectedVolumeSource": schema_k8sio_api_core_v1_ProjectedVolumeSource(ref), 184 "k8s.io/api/core/v1.QuobyteVolumeSource": schema_k8sio_api_core_v1_QuobyteVolumeSource(ref), 185 "k8s.io/api/core/v1.RBDPersistentVolumeSource": schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref), 186 "k8s.io/api/core/v1.RBDVolumeSource": schema_k8sio_api_core_v1_RBDVolumeSource(ref), 187 "k8s.io/api/core/v1.RangeAllocation": schema_k8sio_api_core_v1_RangeAllocation(ref), 188 "k8s.io/api/core/v1.ReplicationController": schema_k8sio_api_core_v1_ReplicationController(ref), 189 "k8s.io/api/core/v1.ReplicationControllerCondition": schema_k8sio_api_core_v1_ReplicationControllerCondition(ref), 190 "k8s.io/api/core/v1.ReplicationControllerList": schema_k8sio_api_core_v1_ReplicationControllerList(ref), 191 "k8s.io/api/core/v1.ReplicationControllerSpec": schema_k8sio_api_core_v1_ReplicationControllerSpec(ref), 192 "k8s.io/api/core/v1.ReplicationControllerStatus": schema_k8sio_api_core_v1_ReplicationControllerStatus(ref), 193 "k8s.io/api/core/v1.ResourceFieldSelector": schema_k8sio_api_core_v1_ResourceFieldSelector(ref), 194 "k8s.io/api/core/v1.ResourceQuota": schema_k8sio_api_core_v1_ResourceQuota(ref), 195 "k8s.io/api/core/v1.ResourceQuotaList": schema_k8sio_api_core_v1_ResourceQuotaList(ref), 196 "k8s.io/api/core/v1.ResourceQuotaSpec": schema_k8sio_api_core_v1_ResourceQuotaSpec(ref), 197 "k8s.io/api/core/v1.ResourceQuotaStatus": schema_k8sio_api_core_v1_ResourceQuotaStatus(ref), 198 "k8s.io/api/core/v1.ResourceRequirements": schema_k8sio_api_core_v1_ResourceRequirements(ref), 199 "k8s.io/api/core/v1.SELinuxOptions": schema_k8sio_api_core_v1_SELinuxOptions(ref), 200 "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource": schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref), 201 "k8s.io/api/core/v1.ScaleIOVolumeSource": schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref), 202 "k8s.io/api/core/v1.ScopeSelector": schema_k8sio_api_core_v1_ScopeSelector(ref), 203 "k8s.io/api/core/v1.ScopedResourceSelectorRequirement": schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref), 204 "k8s.io/api/core/v1.SeccompProfile": schema_k8sio_api_core_v1_SeccompProfile(ref), 205 "k8s.io/api/core/v1.Secret": schema_k8sio_api_core_v1_Secret(ref), 206 "k8s.io/api/core/v1.SecretEnvSource": schema_k8sio_api_core_v1_SecretEnvSource(ref), 207 "k8s.io/api/core/v1.SecretKeySelector": schema_k8sio_api_core_v1_SecretKeySelector(ref), 208 "k8s.io/api/core/v1.SecretList": schema_k8sio_api_core_v1_SecretList(ref), 209 "k8s.io/api/core/v1.SecretProjection": schema_k8sio_api_core_v1_SecretProjection(ref), 210 "k8s.io/api/core/v1.SecretReference": schema_k8sio_api_core_v1_SecretReference(ref), 211 "k8s.io/api/core/v1.SecretVolumeSource": schema_k8sio_api_core_v1_SecretVolumeSource(ref), 212 "k8s.io/api/core/v1.SecurityContext": schema_k8sio_api_core_v1_SecurityContext(ref), 213 "k8s.io/api/core/v1.SerializedReference": schema_k8sio_api_core_v1_SerializedReference(ref), 214 "k8s.io/api/core/v1.Service": schema_k8sio_api_core_v1_Service(ref), 215 "k8s.io/api/core/v1.ServiceAccount": schema_k8sio_api_core_v1_ServiceAccount(ref), 216 "k8s.io/api/core/v1.ServiceAccountList": schema_k8sio_api_core_v1_ServiceAccountList(ref), 217 "k8s.io/api/core/v1.ServiceAccountTokenProjection": schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref), 218 "k8s.io/api/core/v1.ServiceList": schema_k8sio_api_core_v1_ServiceList(ref), 219 "k8s.io/api/core/v1.ServicePort": schema_k8sio_api_core_v1_ServicePort(ref), 220 "k8s.io/api/core/v1.ServiceProxyOptions": schema_k8sio_api_core_v1_ServiceProxyOptions(ref), 221 "k8s.io/api/core/v1.ServiceSpec": schema_k8sio_api_core_v1_ServiceSpec(ref), 222 "k8s.io/api/core/v1.ServiceStatus": schema_k8sio_api_core_v1_ServiceStatus(ref), 223 "k8s.io/api/core/v1.SessionAffinityConfig": schema_k8sio_api_core_v1_SessionAffinityConfig(ref), 224 "k8s.io/api/core/v1.StorageOSPersistentVolumeSource": schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref), 225 "k8s.io/api/core/v1.StorageOSVolumeSource": schema_k8sio_api_core_v1_StorageOSVolumeSource(ref), 226 "k8s.io/api/core/v1.Sysctl": schema_k8sio_api_core_v1_Sysctl(ref), 227 "k8s.io/api/core/v1.TCPSocketAction": schema_k8sio_api_core_v1_TCPSocketAction(ref), 228 "k8s.io/api/core/v1.Taint": schema_k8sio_api_core_v1_Taint(ref), 229 "k8s.io/api/core/v1.Toleration": schema_k8sio_api_core_v1_Toleration(ref), 230 "k8s.io/api/core/v1.TopologySelectorLabelRequirement": schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref), 231 "k8s.io/api/core/v1.TopologySelectorTerm": schema_k8sio_api_core_v1_TopologySelectorTerm(ref), 232 "k8s.io/api/core/v1.TopologySpreadConstraint": schema_k8sio_api_core_v1_TopologySpreadConstraint(ref), 233 "k8s.io/api/core/v1.TypedLocalObjectReference": schema_k8sio_api_core_v1_TypedLocalObjectReference(ref), 234 "k8s.io/api/core/v1.Volume": schema_k8sio_api_core_v1_Volume(ref), 235 "k8s.io/api/core/v1.VolumeDevice": schema_k8sio_api_core_v1_VolumeDevice(ref), 236 "k8s.io/api/core/v1.VolumeMount": schema_k8sio_api_core_v1_VolumeMount(ref), 237 "k8s.io/api/core/v1.VolumeNodeAffinity": schema_k8sio_api_core_v1_VolumeNodeAffinity(ref), 238 "k8s.io/api/core/v1.VolumeProjection": schema_k8sio_api_core_v1_VolumeProjection(ref), 239 "k8s.io/api/core/v1.VolumeSource": schema_k8sio_api_core_v1_VolumeSource(ref), 240 "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource": schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref), 241 "k8s.io/api/core/v1.WeightedPodAffinityTerm": schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref), 242 "k8s.io/api/core/v1.WindowsSecurityContextOptions": schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref), 243 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup": schema_pkg_apis_meta_v1_APIGroup(ref), 244 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroupList": schema_pkg_apis_meta_v1_APIGroupList(ref), 245 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource": schema_pkg_apis_meta_v1_APIResource(ref), 246 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResourceList": schema_pkg_apis_meta_v1_APIResourceList(ref), 247 "k8s.io/apimachinery/pkg/apis/meta/v1.APIVersions": schema_pkg_apis_meta_v1_APIVersions(ref), 248 "k8s.io/apimachinery/pkg/apis/meta/v1.ApplyOptions": schema_pkg_apis_meta_v1_ApplyOptions(ref), 249 "k8s.io/apimachinery/pkg/apis/meta/v1.Condition": schema_pkg_apis_meta_v1_Condition(ref), 250 "k8s.io/apimachinery/pkg/apis/meta/v1.CreateOptions": schema_pkg_apis_meta_v1_CreateOptions(ref), 251 "k8s.io/apimachinery/pkg/apis/meta/v1.DeleteOptions": schema_pkg_apis_meta_v1_DeleteOptions(ref), 252 "k8s.io/apimachinery/pkg/apis/meta/v1.Duration": schema_pkg_apis_meta_v1_Duration(ref), 253 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1": schema_pkg_apis_meta_v1_FieldsV1(ref), 254 "k8s.io/apimachinery/pkg/apis/meta/v1.GetOptions": schema_pkg_apis_meta_v1_GetOptions(ref), 255 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupKind": schema_pkg_apis_meta_v1_GroupKind(ref), 256 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupResource": schema_pkg_apis_meta_v1_GroupResource(ref), 257 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersion": schema_pkg_apis_meta_v1_GroupVersion(ref), 258 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery": schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), 259 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionKind": schema_pkg_apis_meta_v1_GroupVersionKind(ref), 260 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionResource": schema_pkg_apis_meta_v1_GroupVersionResource(ref), 261 "k8s.io/apimachinery/pkg/apis/meta/v1.InternalEvent": schema_pkg_apis_meta_v1_InternalEvent(ref), 262 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector": schema_pkg_apis_meta_v1_LabelSelector(ref), 263 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement": schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), 264 "k8s.io/apimachinery/pkg/apis/meta/v1.List": schema_pkg_apis_meta_v1_List(ref), 265 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta": schema_pkg_apis_meta_v1_ListMeta(ref), 266 "k8s.io/apimachinery/pkg/apis/meta/v1.ListOptions": schema_pkg_apis_meta_v1_ListOptions(ref), 267 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry": schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), 268 "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime": schema_pkg_apis_meta_v1_MicroTime(ref), 269 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta": schema_pkg_apis_meta_v1_ObjectMeta(ref), 270 "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference": schema_pkg_apis_meta_v1_OwnerReference(ref), 271 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata": schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), 272 "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadataList": schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), 273 "k8s.io/apimachinery/pkg/apis/meta/v1.Patch": schema_pkg_apis_meta_v1_Patch(ref), 274 "k8s.io/apimachinery/pkg/apis/meta/v1.PatchOptions": schema_pkg_apis_meta_v1_PatchOptions(ref), 275 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions": schema_pkg_apis_meta_v1_Preconditions(ref), 276 "k8s.io/apimachinery/pkg/apis/meta/v1.RootPaths": schema_pkg_apis_meta_v1_RootPaths(ref), 277 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR": schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), 278 "k8s.io/apimachinery/pkg/apis/meta/v1.Status": schema_pkg_apis_meta_v1_Status(ref), 279 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause": schema_pkg_apis_meta_v1_StatusCause(ref), 280 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails": schema_pkg_apis_meta_v1_StatusDetails(ref), 281 "k8s.io/apimachinery/pkg/apis/meta/v1.Table": schema_pkg_apis_meta_v1_Table(ref), 282 "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition": schema_pkg_apis_meta_v1_TableColumnDefinition(ref), 283 "k8s.io/apimachinery/pkg/apis/meta/v1.TableOptions": schema_pkg_apis_meta_v1_TableOptions(ref), 284 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow": schema_pkg_apis_meta_v1_TableRow(ref), 285 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition": schema_pkg_apis_meta_v1_TableRowCondition(ref), 286 "k8s.io/apimachinery/pkg/apis/meta/v1.Time": schema_pkg_apis_meta_v1_Time(ref), 287 "k8s.io/apimachinery/pkg/apis/meta/v1.Timestamp": schema_pkg_apis_meta_v1_Timestamp(ref), 288 "k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta": schema_pkg_apis_meta_v1_TypeMeta(ref), 289 "k8s.io/apimachinery/pkg/apis/meta/v1.UpdateOptions": schema_pkg_apis_meta_v1_UpdateOptions(ref), 290 "k8s.io/apimachinery/pkg/apis/meta/v1.WatchEvent": schema_pkg_apis_meta_v1_WatchEvent(ref), 291 "k8s.io/apimachinery/pkg/runtime.RawExtension": schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), 292 "k8s.io/apimachinery/pkg/runtime.TypeMeta": schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), 293 "k8s.io/apimachinery/pkg/runtime.Unknown": schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), 294 "kubesphere.io/api/cluster/v1alpha1.Cluster": schema_kubesphereio_api_cluster_v1alpha1_Cluster(ref), 295 "kubesphere.io/api/cluster/v1alpha1.ClusterCondition": schema_kubesphereio_api_cluster_v1alpha1_ClusterCondition(ref), 296 "kubesphere.io/api/cluster/v1alpha1.ClusterList": schema_kubesphereio_api_cluster_v1alpha1_ClusterList(ref), 297 "kubesphere.io/api/cluster/v1alpha1.ClusterSpec": schema_kubesphereio_api_cluster_v1alpha1_ClusterSpec(ref), 298 "kubesphere.io/api/cluster/v1alpha1.ClusterStatus": schema_kubesphereio_api_cluster_v1alpha1_ClusterStatus(ref), 299 "kubesphere.io/api/cluster/v1alpha1.Connection": schema_kubesphereio_api_cluster_v1alpha1_Connection(ref), 300 } 301 } 302 303 func schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 304 return common.OpenAPIDefinition{ 305 Schema: spec.Schema{ 306 SchemaProps: spec.SchemaProps{ 307 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.", 308 Type: []string{"object"}, 309 Properties: map[string]spec.Schema{ 310 "volumeID": { 311 SchemaProps: spec.SchemaProps{ 312 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", 313 Default: "", 314 Type: []string{"string"}, 315 Format: "", 316 }, 317 }, 318 "fsType": { 319 SchemaProps: spec.SchemaProps{ 320 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", 321 Type: []string{"string"}, 322 Format: "", 323 }, 324 }, 325 "partition": { 326 SchemaProps: spec.SchemaProps{ 327 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).", 328 Type: []string{"integer"}, 329 Format: "int32", 330 }, 331 }, 332 "readOnly": { 333 SchemaProps: spec.SchemaProps{ 334 Description: "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", 335 Type: []string{"boolean"}, 336 Format: "", 337 }, 338 }, 339 }, 340 Required: []string{"volumeID"}, 341 }, 342 }, 343 } 344 } 345 346 func schema_k8sio_api_core_v1_Affinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 347 return common.OpenAPIDefinition{ 348 Schema: spec.Schema{ 349 SchemaProps: spec.SchemaProps{ 350 Description: "Affinity is a group of affinity scheduling rules.", 351 Type: []string{"object"}, 352 Properties: map[string]spec.Schema{ 353 "nodeAffinity": { 354 SchemaProps: spec.SchemaProps{ 355 Description: "Describes node affinity scheduling rules for the pod.", 356 Ref: ref("k8s.io/api/core/v1.NodeAffinity"), 357 }, 358 }, 359 "podAffinity": { 360 SchemaProps: spec.SchemaProps{ 361 Description: "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", 362 Ref: ref("k8s.io/api/core/v1.PodAffinity"), 363 }, 364 }, 365 "podAntiAffinity": { 366 SchemaProps: spec.SchemaProps{ 367 Description: "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", 368 Ref: ref("k8s.io/api/core/v1.PodAntiAffinity"), 369 }, 370 }, 371 }, 372 }, 373 }, 374 Dependencies: []string{ 375 "k8s.io/api/core/v1.NodeAffinity", "k8s.io/api/core/v1.PodAffinity", "k8s.io/api/core/v1.PodAntiAffinity"}, 376 } 377 } 378 379 func schema_k8sio_api_core_v1_AttachedVolume(ref common.ReferenceCallback) common.OpenAPIDefinition { 380 return common.OpenAPIDefinition{ 381 Schema: spec.Schema{ 382 SchemaProps: spec.SchemaProps{ 383 Description: "AttachedVolume describes a volume attached to a node", 384 Type: []string{"object"}, 385 Properties: map[string]spec.Schema{ 386 "name": { 387 SchemaProps: spec.SchemaProps{ 388 Description: "Name of the attached volume", 389 Default: "", 390 Type: []string{"string"}, 391 Format: "", 392 }, 393 }, 394 "devicePath": { 395 SchemaProps: spec.SchemaProps{ 396 Description: "DevicePath represents the device path where the volume should be available", 397 Default: "", 398 Type: []string{"string"}, 399 Format: "", 400 }, 401 }, 402 }, 403 Required: []string{"name", "devicePath"}, 404 }, 405 }, 406 } 407 } 408 409 func schema_k8sio_api_core_v1_AvoidPods(ref common.ReferenceCallback) common.OpenAPIDefinition { 410 return common.OpenAPIDefinition{ 411 Schema: spec.Schema{ 412 SchemaProps: spec.SchemaProps{ 413 Description: "AvoidPods describes pods that should avoid this node. This is the value for a Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and will eventually become a field of NodeStatus.", 414 Type: []string{"object"}, 415 Properties: map[string]spec.Schema{ 416 "preferAvoidPods": { 417 SchemaProps: spec.SchemaProps{ 418 Description: "Bounded-sized list of signatures of pods that should avoid this node, sorted in timestamp order from oldest to newest. Size of the slice is unspecified.", 419 Type: []string{"array"}, 420 Items: &spec.SchemaOrArray{ 421 Schema: &spec.Schema{ 422 SchemaProps: spec.SchemaProps{ 423 Default: map[string]interface{}{}, 424 Ref: ref("k8s.io/api/core/v1.PreferAvoidPodsEntry"), 425 }, 426 }, 427 }, 428 }, 429 }, 430 }, 431 }, 432 }, 433 Dependencies: []string{ 434 "k8s.io/api/core/v1.PreferAvoidPodsEntry"}, 435 } 436 } 437 438 func schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 439 return common.OpenAPIDefinition{ 440 Schema: spec.Schema{ 441 SchemaProps: spec.SchemaProps{ 442 Description: "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 443 Type: []string{"object"}, 444 Properties: map[string]spec.Schema{ 445 "diskName": { 446 SchemaProps: spec.SchemaProps{ 447 Description: "diskName is the Name of the data disk in the blob storage", 448 Default: "", 449 Type: []string{"string"}, 450 Format: "", 451 }, 452 }, 453 "diskURI": { 454 SchemaProps: spec.SchemaProps{ 455 Description: "diskURI is the URI of data disk in the blob storage", 456 Default: "", 457 Type: []string{"string"}, 458 Format: "", 459 }, 460 }, 461 "cachingMode": { 462 SchemaProps: spec.SchemaProps{ 463 Description: "cachingMode is the Host Caching mode: None, Read Only, Read Write.", 464 Type: []string{"string"}, 465 Format: "", 466 }, 467 }, 468 "fsType": { 469 SchemaProps: spec.SchemaProps{ 470 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.", 471 Type: []string{"string"}, 472 Format: "", 473 }, 474 }, 475 "readOnly": { 476 SchemaProps: spec.SchemaProps{ 477 Description: "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 478 Type: []string{"boolean"}, 479 Format: "", 480 }, 481 }, 482 "kind": { 483 SchemaProps: spec.SchemaProps{ 484 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", 485 Type: []string{"string"}, 486 Format: "", 487 }, 488 }, 489 }, 490 Required: []string{"diskName", "diskURI"}, 491 }, 492 }, 493 } 494 } 495 496 func schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 497 return common.OpenAPIDefinition{ 498 Schema: spec.Schema{ 499 SchemaProps: spec.SchemaProps{ 500 Description: "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", 501 Type: []string{"object"}, 502 Properties: map[string]spec.Schema{ 503 "secretName": { 504 SchemaProps: spec.SchemaProps{ 505 Description: "secretName is the name of secret that contains Azure Storage Account Name and Key", 506 Default: "", 507 Type: []string{"string"}, 508 Format: "", 509 }, 510 }, 511 "shareName": { 512 SchemaProps: spec.SchemaProps{ 513 Description: "shareName is the azure Share Name", 514 Default: "", 515 Type: []string{"string"}, 516 Format: "", 517 }, 518 }, 519 "readOnly": { 520 SchemaProps: spec.SchemaProps{ 521 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 522 Type: []string{"boolean"}, 523 Format: "", 524 }, 525 }, 526 "secretNamespace": { 527 SchemaProps: spec.SchemaProps{ 528 Description: "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", 529 Type: []string{"string"}, 530 Format: "", 531 }, 532 }, 533 }, 534 Required: []string{"secretName", "shareName"}, 535 }, 536 }, 537 } 538 } 539 540 func schema_k8sio_api_core_v1_AzureFileVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 541 return common.OpenAPIDefinition{ 542 Schema: spec.Schema{ 543 SchemaProps: spec.SchemaProps{ 544 Description: "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", 545 Type: []string{"object"}, 546 Properties: map[string]spec.Schema{ 547 "secretName": { 548 SchemaProps: spec.SchemaProps{ 549 Description: "secretName is the name of secret that contains Azure Storage Account Name and Key", 550 Default: "", 551 Type: []string{"string"}, 552 Format: "", 553 }, 554 }, 555 "shareName": { 556 SchemaProps: spec.SchemaProps{ 557 Description: "shareName is the azure share Name", 558 Default: "", 559 Type: []string{"string"}, 560 Format: "", 561 }, 562 }, 563 "readOnly": { 564 SchemaProps: spec.SchemaProps{ 565 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 566 Type: []string{"boolean"}, 567 Format: "", 568 }, 569 }, 570 }, 571 Required: []string{"secretName", "shareName"}, 572 }, 573 }, 574 } 575 } 576 577 func schema_k8sio_api_core_v1_Binding(ref common.ReferenceCallback) common.OpenAPIDefinition { 578 return common.OpenAPIDefinition{ 579 Schema: spec.Schema{ 580 SchemaProps: spec.SchemaProps{ 581 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.", 582 Type: []string{"object"}, 583 Properties: map[string]spec.Schema{ 584 "kind": { 585 SchemaProps: spec.SchemaProps{ 586 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 587 Type: []string{"string"}, 588 Format: "", 589 }, 590 }, 591 "apiVersion": { 592 SchemaProps: spec.SchemaProps{ 593 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 594 Type: []string{"string"}, 595 Format: "", 596 }, 597 }, 598 "metadata": { 599 SchemaProps: spec.SchemaProps{ 600 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 601 Default: map[string]interface{}{}, 602 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 603 }, 604 }, 605 "target": { 606 SchemaProps: spec.SchemaProps{ 607 Description: "The target object that you want to bind to the standard object.", 608 Default: map[string]interface{}{}, 609 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 610 }, 611 }, 612 }, 613 Required: []string{"target"}, 614 }, 615 }, 616 Dependencies: []string{ 617 "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 618 } 619 } 620 621 func schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 622 return common.OpenAPIDefinition{ 623 Schema: spec.Schema{ 624 SchemaProps: spec.SchemaProps{ 625 Description: "Represents storage that is managed by an external CSI volume driver (Beta feature)", 626 Type: []string{"object"}, 627 Properties: map[string]spec.Schema{ 628 "driver": { 629 SchemaProps: spec.SchemaProps{ 630 Description: "driver is the name of the driver to use for this volume. Required.", 631 Default: "", 632 Type: []string{"string"}, 633 Format: "", 634 }, 635 }, 636 "volumeHandle": { 637 SchemaProps: spec.SchemaProps{ 638 Description: "volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.", 639 Default: "", 640 Type: []string{"string"}, 641 Format: "", 642 }, 643 }, 644 "readOnly": { 645 SchemaProps: spec.SchemaProps{ 646 Description: "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", 647 Type: []string{"boolean"}, 648 Format: "", 649 }, 650 }, 651 "fsType": { 652 SchemaProps: spec.SchemaProps{ 653 Description: "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", 654 Type: []string{"string"}, 655 Format: "", 656 }, 657 }, 658 "volumeAttributes": { 659 SchemaProps: spec.SchemaProps{ 660 Description: "volumeAttributes of the volume to publish.", 661 Type: []string{"object"}, 662 AdditionalProperties: &spec.SchemaOrBool{ 663 Allows: true, 664 Schema: &spec.Schema{ 665 SchemaProps: spec.SchemaProps{ 666 Default: "", 667 Type: []string{"string"}, 668 Format: "", 669 }, 670 }, 671 }, 672 }, 673 }, 674 "controllerPublishSecretRef": { 675 SchemaProps: spec.SchemaProps{ 676 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.", 677 Ref: ref("k8s.io/api/core/v1.SecretReference"), 678 }, 679 }, 680 "nodeStageSecretRef": { 681 SchemaProps: spec.SchemaProps{ 682 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.", 683 Ref: ref("k8s.io/api/core/v1.SecretReference"), 684 }, 685 }, 686 "nodePublishSecretRef": { 687 SchemaProps: spec.SchemaProps{ 688 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.", 689 Ref: ref("k8s.io/api/core/v1.SecretReference"), 690 }, 691 }, 692 "controllerExpandSecretRef": { 693 SchemaProps: spec.SchemaProps{ 694 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 is an beta field and requires enabling ExpandCSIVolumes feature gate. 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.", 695 Ref: ref("k8s.io/api/core/v1.SecretReference"), 696 }, 697 }, 698 "nodeExpandSecretRef": { 699 SchemaProps: spec.SchemaProps{ 700 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 is an alpha field and requires enabling CSINodeExpandSecret feature gate. 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.", 701 Ref: ref("k8s.io/api/core/v1.SecretReference"), 702 }, 703 }, 704 }, 705 Required: []string{"driver", "volumeHandle"}, 706 }, 707 }, 708 Dependencies: []string{ 709 "k8s.io/api/core/v1.SecretReference"}, 710 } 711 } 712 713 func schema_k8sio_api_core_v1_CSIVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 714 return common.OpenAPIDefinition{ 715 Schema: spec.Schema{ 716 SchemaProps: spec.SchemaProps{ 717 Description: "Represents a source location of a volume to mount, managed by an external CSI driver", 718 Type: []string{"object"}, 719 Properties: map[string]spec.Schema{ 720 "driver": { 721 SchemaProps: spec.SchemaProps{ 722 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.", 723 Default: "", 724 Type: []string{"string"}, 725 Format: "", 726 }, 727 }, 728 "readOnly": { 729 SchemaProps: spec.SchemaProps{ 730 Description: "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", 731 Type: []string{"boolean"}, 732 Format: "", 733 }, 734 }, 735 "fsType": { 736 SchemaProps: spec.SchemaProps{ 737 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.", 738 Type: []string{"string"}, 739 Format: "", 740 }, 741 }, 742 "volumeAttributes": { 743 SchemaProps: spec.SchemaProps{ 744 Description: "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", 745 Type: []string{"object"}, 746 AdditionalProperties: &spec.SchemaOrBool{ 747 Allows: true, 748 Schema: &spec.Schema{ 749 SchemaProps: spec.SchemaProps{ 750 Default: "", 751 Type: []string{"string"}, 752 Format: "", 753 }, 754 }, 755 }, 756 }, 757 }, 758 "nodePublishSecretRef": { 759 SchemaProps: spec.SchemaProps{ 760 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.", 761 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 762 }, 763 }, 764 }, 765 Required: []string{"driver"}, 766 }, 767 }, 768 Dependencies: []string{ 769 "k8s.io/api/core/v1.LocalObjectReference"}, 770 } 771 } 772 773 func schema_k8sio_api_core_v1_Capabilities(ref common.ReferenceCallback) common.OpenAPIDefinition { 774 return common.OpenAPIDefinition{ 775 Schema: spec.Schema{ 776 SchemaProps: spec.SchemaProps{ 777 Description: "Adds and removes POSIX capabilities from running containers.", 778 Type: []string{"object"}, 779 Properties: map[string]spec.Schema{ 780 "add": { 781 SchemaProps: spec.SchemaProps{ 782 Description: "Added capabilities", 783 Type: []string{"array"}, 784 Items: &spec.SchemaOrArray{ 785 Schema: &spec.Schema{ 786 SchemaProps: spec.SchemaProps{ 787 Default: "", 788 Type: []string{"string"}, 789 Format: "", 790 }, 791 }, 792 }, 793 }, 794 }, 795 "drop": { 796 SchemaProps: spec.SchemaProps{ 797 Description: "Removed capabilities", 798 Type: []string{"array"}, 799 Items: &spec.SchemaOrArray{ 800 Schema: &spec.Schema{ 801 SchemaProps: spec.SchemaProps{ 802 Default: "", 803 Type: []string{"string"}, 804 Format: "", 805 }, 806 }, 807 }, 808 }, 809 }, 810 }, 811 }, 812 }, 813 } 814 } 815 816 func schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 817 return common.OpenAPIDefinition{ 818 Schema: spec.Schema{ 819 SchemaProps: spec.SchemaProps{ 820 Description: "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", 821 Type: []string{"object"}, 822 Properties: map[string]spec.Schema{ 823 "monitors": { 824 SchemaProps: spec.SchemaProps{ 825 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", 826 Type: []string{"array"}, 827 Items: &spec.SchemaOrArray{ 828 Schema: &spec.Schema{ 829 SchemaProps: spec.SchemaProps{ 830 Default: "", 831 Type: []string{"string"}, 832 Format: "", 833 }, 834 }, 835 }, 836 }, 837 }, 838 "path": { 839 SchemaProps: spec.SchemaProps{ 840 Description: "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", 841 Type: []string{"string"}, 842 Format: "", 843 }, 844 }, 845 "user": { 846 SchemaProps: spec.SchemaProps{ 847 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", 848 Type: []string{"string"}, 849 Format: "", 850 }, 851 }, 852 "secretFile": { 853 SchemaProps: spec.SchemaProps{ 854 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", 855 Type: []string{"string"}, 856 Format: "", 857 }, 858 }, 859 "secretRef": { 860 SchemaProps: spec.SchemaProps{ 861 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", 862 Ref: ref("k8s.io/api/core/v1.SecretReference"), 863 }, 864 }, 865 "readOnly": { 866 SchemaProps: spec.SchemaProps{ 867 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", 868 Type: []string{"boolean"}, 869 Format: "", 870 }, 871 }, 872 }, 873 Required: []string{"monitors"}, 874 }, 875 }, 876 Dependencies: []string{ 877 "k8s.io/api/core/v1.SecretReference"}, 878 } 879 } 880 881 func schema_k8sio_api_core_v1_CephFSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 882 return common.OpenAPIDefinition{ 883 Schema: spec.Schema{ 884 SchemaProps: spec.SchemaProps{ 885 Description: "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", 886 Type: []string{"object"}, 887 Properties: map[string]spec.Schema{ 888 "monitors": { 889 SchemaProps: spec.SchemaProps{ 890 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", 891 Type: []string{"array"}, 892 Items: &spec.SchemaOrArray{ 893 Schema: &spec.Schema{ 894 SchemaProps: spec.SchemaProps{ 895 Default: "", 896 Type: []string{"string"}, 897 Format: "", 898 }, 899 }, 900 }, 901 }, 902 }, 903 "path": { 904 SchemaProps: spec.SchemaProps{ 905 Description: "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", 906 Type: []string{"string"}, 907 Format: "", 908 }, 909 }, 910 "user": { 911 SchemaProps: spec.SchemaProps{ 912 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", 913 Type: []string{"string"}, 914 Format: "", 915 }, 916 }, 917 "secretFile": { 918 SchemaProps: spec.SchemaProps{ 919 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", 920 Type: []string{"string"}, 921 Format: "", 922 }, 923 }, 924 "secretRef": { 925 SchemaProps: spec.SchemaProps{ 926 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", 927 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 928 }, 929 }, 930 "readOnly": { 931 SchemaProps: spec.SchemaProps{ 932 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", 933 Type: []string{"boolean"}, 934 Format: "", 935 }, 936 }, 937 }, 938 Required: []string{"monitors"}, 939 }, 940 }, 941 Dependencies: []string{ 942 "k8s.io/api/core/v1.LocalObjectReference"}, 943 } 944 } 945 946 func schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 947 return common.OpenAPIDefinition{ 948 Schema: spec.Schema{ 949 SchemaProps: spec.SchemaProps{ 950 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.", 951 Type: []string{"object"}, 952 Properties: map[string]spec.Schema{ 953 "volumeID": { 954 SchemaProps: spec.SchemaProps{ 955 Description: "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 956 Default: "", 957 Type: []string{"string"}, 958 Format: "", 959 }, 960 }, 961 "fsType": { 962 SchemaProps: spec.SchemaProps{ 963 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", 964 Type: []string{"string"}, 965 Format: "", 966 }, 967 }, 968 "readOnly": { 969 SchemaProps: spec.SchemaProps{ 970 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", 971 Type: []string{"boolean"}, 972 Format: "", 973 }, 974 }, 975 "secretRef": { 976 SchemaProps: spec.SchemaProps{ 977 Description: "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.", 978 Ref: ref("k8s.io/api/core/v1.SecretReference"), 979 }, 980 }, 981 }, 982 Required: []string{"volumeID"}, 983 }, 984 }, 985 Dependencies: []string{ 986 "k8s.io/api/core/v1.SecretReference"}, 987 } 988 } 989 990 func schema_k8sio_api_core_v1_CinderVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 991 return common.OpenAPIDefinition{ 992 Schema: spec.Schema{ 993 SchemaProps: spec.SchemaProps{ 994 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.", 995 Type: []string{"object"}, 996 Properties: map[string]spec.Schema{ 997 "volumeID": { 998 SchemaProps: spec.SchemaProps{ 999 Description: "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 1000 Default: "", 1001 Type: []string{"string"}, 1002 Format: "", 1003 }, 1004 }, 1005 "fsType": { 1006 SchemaProps: spec.SchemaProps{ 1007 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", 1008 Type: []string{"string"}, 1009 Format: "", 1010 }, 1011 }, 1012 "readOnly": { 1013 SchemaProps: spec.SchemaProps{ 1014 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", 1015 Type: []string{"boolean"}, 1016 Format: "", 1017 }, 1018 }, 1019 "secretRef": { 1020 SchemaProps: spec.SchemaProps{ 1021 Description: "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack.", 1022 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 1023 }, 1024 }, 1025 }, 1026 Required: []string{"volumeID"}, 1027 }, 1028 }, 1029 Dependencies: []string{ 1030 "k8s.io/api/core/v1.LocalObjectReference"}, 1031 } 1032 } 1033 1034 func schema_k8sio_api_core_v1_ClientIPConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 1035 return common.OpenAPIDefinition{ 1036 Schema: spec.Schema{ 1037 SchemaProps: spec.SchemaProps{ 1038 Description: "ClientIPConfig represents the configurations of Client IP based session affinity.", 1039 Type: []string{"object"}, 1040 Properties: map[string]spec.Schema{ 1041 "timeoutSeconds": { 1042 SchemaProps: spec.SchemaProps{ 1043 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).", 1044 Type: []string{"integer"}, 1045 Format: "int32", 1046 }, 1047 }, 1048 }, 1049 }, 1050 }, 1051 } 1052 } 1053 1054 func schema_k8sio_api_core_v1_ComponentCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 1055 return common.OpenAPIDefinition{ 1056 Schema: spec.Schema{ 1057 SchemaProps: spec.SchemaProps{ 1058 Description: "Information about the condition of a component.", 1059 Type: []string{"object"}, 1060 Properties: map[string]spec.Schema{ 1061 "type": { 1062 SchemaProps: spec.SchemaProps{ 1063 Description: "Type of condition for a component. Valid value: \"Healthy\"", 1064 Default: "", 1065 Type: []string{"string"}, 1066 Format: "", 1067 }, 1068 }, 1069 "status": { 1070 SchemaProps: spec.SchemaProps{ 1071 Description: "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", 1072 Default: "", 1073 Type: []string{"string"}, 1074 Format: "", 1075 }, 1076 }, 1077 "message": { 1078 SchemaProps: spec.SchemaProps{ 1079 Description: "Message about the condition for a component. For example, information about a health check.", 1080 Type: []string{"string"}, 1081 Format: "", 1082 }, 1083 }, 1084 "error": { 1085 SchemaProps: spec.SchemaProps{ 1086 Description: "Condition error code for a component. For example, a health check error code.", 1087 Type: []string{"string"}, 1088 Format: "", 1089 }, 1090 }, 1091 }, 1092 Required: []string{"type", "status"}, 1093 }, 1094 }, 1095 } 1096 } 1097 1098 func schema_k8sio_api_core_v1_ComponentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 1099 return common.OpenAPIDefinition{ 1100 Schema: spec.Schema{ 1101 SchemaProps: spec.SchemaProps{ 1102 Description: "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", 1103 Type: []string{"object"}, 1104 Properties: map[string]spec.Schema{ 1105 "kind": { 1106 SchemaProps: spec.SchemaProps{ 1107 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1108 Type: []string{"string"}, 1109 Format: "", 1110 }, 1111 }, 1112 "apiVersion": { 1113 SchemaProps: spec.SchemaProps{ 1114 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1115 Type: []string{"string"}, 1116 Format: "", 1117 }, 1118 }, 1119 "metadata": { 1120 SchemaProps: spec.SchemaProps{ 1121 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 1122 Default: map[string]interface{}{}, 1123 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1124 }, 1125 }, 1126 "conditions": { 1127 VendorExtensible: spec.VendorExtensible{ 1128 Extensions: spec.Extensions{ 1129 "x-kubernetes-patch-merge-key": "type", 1130 "x-kubernetes-patch-strategy": "merge", 1131 }, 1132 }, 1133 SchemaProps: spec.SchemaProps{ 1134 Description: "List of component conditions observed", 1135 Type: []string{"array"}, 1136 Items: &spec.SchemaOrArray{ 1137 Schema: &spec.Schema{ 1138 SchemaProps: spec.SchemaProps{ 1139 Default: map[string]interface{}{}, 1140 Ref: ref("k8s.io/api/core/v1.ComponentCondition"), 1141 }, 1142 }, 1143 }, 1144 }, 1145 }, 1146 }, 1147 }, 1148 }, 1149 Dependencies: []string{ 1150 "k8s.io/api/core/v1.ComponentCondition", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1151 } 1152 } 1153 1154 func schema_k8sio_api_core_v1_ComponentStatusList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1155 return common.OpenAPIDefinition{ 1156 Schema: spec.Schema{ 1157 SchemaProps: spec.SchemaProps{ 1158 Description: "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", 1159 Type: []string{"object"}, 1160 Properties: map[string]spec.Schema{ 1161 "kind": { 1162 SchemaProps: spec.SchemaProps{ 1163 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1164 Type: []string{"string"}, 1165 Format: "", 1166 }, 1167 }, 1168 "apiVersion": { 1169 SchemaProps: spec.SchemaProps{ 1170 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1171 Type: []string{"string"}, 1172 Format: "", 1173 }, 1174 }, 1175 "metadata": { 1176 SchemaProps: spec.SchemaProps{ 1177 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1178 Default: map[string]interface{}{}, 1179 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1180 }, 1181 }, 1182 "items": { 1183 SchemaProps: spec.SchemaProps{ 1184 Description: "List of ComponentStatus objects.", 1185 Type: []string{"array"}, 1186 Items: &spec.SchemaOrArray{ 1187 Schema: &spec.Schema{ 1188 SchemaProps: spec.SchemaProps{ 1189 Default: map[string]interface{}{}, 1190 Ref: ref("k8s.io/api/core/v1.ComponentStatus"), 1191 }, 1192 }, 1193 }, 1194 }, 1195 }, 1196 }, 1197 Required: []string{"items"}, 1198 }, 1199 }, 1200 Dependencies: []string{ 1201 "k8s.io/api/core/v1.ComponentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1202 } 1203 } 1204 1205 func schema_k8sio_api_core_v1_ConfigMap(ref common.ReferenceCallback) common.OpenAPIDefinition { 1206 return common.OpenAPIDefinition{ 1207 Schema: spec.Schema{ 1208 SchemaProps: spec.SchemaProps{ 1209 Description: "ConfigMap holds configuration data for pods to consume.", 1210 Type: []string{"object"}, 1211 Properties: map[string]spec.Schema{ 1212 "kind": { 1213 SchemaProps: spec.SchemaProps{ 1214 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1215 Type: []string{"string"}, 1216 Format: "", 1217 }, 1218 }, 1219 "apiVersion": { 1220 SchemaProps: spec.SchemaProps{ 1221 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1222 Type: []string{"string"}, 1223 Format: "", 1224 }, 1225 }, 1226 "metadata": { 1227 SchemaProps: spec.SchemaProps{ 1228 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 1229 Default: map[string]interface{}{}, 1230 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1231 }, 1232 }, 1233 "immutable": { 1234 SchemaProps: spec.SchemaProps{ 1235 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.", 1236 Type: []string{"boolean"}, 1237 Format: "", 1238 }, 1239 }, 1240 "data": { 1241 SchemaProps: spec.SchemaProps{ 1242 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.", 1243 Type: []string{"object"}, 1244 AdditionalProperties: &spec.SchemaOrBool{ 1245 Allows: true, 1246 Schema: &spec.Schema{ 1247 SchemaProps: spec.SchemaProps{ 1248 Default: "", 1249 Type: []string{"string"}, 1250 Format: "", 1251 }, 1252 }, 1253 }, 1254 }, 1255 }, 1256 "binaryData": { 1257 SchemaProps: spec.SchemaProps{ 1258 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.", 1259 Type: []string{"object"}, 1260 AdditionalProperties: &spec.SchemaOrBool{ 1261 Allows: true, 1262 Schema: &spec.Schema{ 1263 SchemaProps: spec.SchemaProps{ 1264 Type: []string{"string"}, 1265 Format: "byte", 1266 }, 1267 }, 1268 }, 1269 }, 1270 }, 1271 }, 1272 }, 1273 }, 1274 Dependencies: []string{ 1275 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1276 } 1277 } 1278 1279 func schema_k8sio_api_core_v1_ConfigMapEnvSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 1280 return common.OpenAPIDefinition{ 1281 Schema: spec.Schema{ 1282 SchemaProps: spec.SchemaProps{ 1283 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.", 1284 Type: []string{"object"}, 1285 Properties: map[string]spec.Schema{ 1286 "name": { 1287 SchemaProps: spec.SchemaProps{ 1288 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 1289 Type: []string{"string"}, 1290 Format: "", 1291 }, 1292 }, 1293 "optional": { 1294 SchemaProps: spec.SchemaProps{ 1295 Description: "Specify whether the ConfigMap must be defined", 1296 Type: []string{"boolean"}, 1297 Format: "", 1298 }, 1299 }, 1300 }, 1301 }, 1302 }, 1303 } 1304 } 1305 1306 func schema_k8sio_api_core_v1_ConfigMapKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 1307 return common.OpenAPIDefinition{ 1308 Schema: spec.Schema{ 1309 SchemaProps: spec.SchemaProps{ 1310 Description: "Selects a key from a ConfigMap.", 1311 Type: []string{"object"}, 1312 Properties: map[string]spec.Schema{ 1313 "name": { 1314 SchemaProps: spec.SchemaProps{ 1315 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 1316 Type: []string{"string"}, 1317 Format: "", 1318 }, 1319 }, 1320 "key": { 1321 SchemaProps: spec.SchemaProps{ 1322 Description: "The key to select.", 1323 Default: "", 1324 Type: []string{"string"}, 1325 Format: "", 1326 }, 1327 }, 1328 "optional": { 1329 SchemaProps: spec.SchemaProps{ 1330 Description: "Specify whether the ConfigMap or its key must be defined", 1331 Type: []string{"boolean"}, 1332 Format: "", 1333 }, 1334 }, 1335 }, 1336 Required: []string{"key"}, 1337 }, 1338 VendorExtensible: spec.VendorExtensible{ 1339 Extensions: spec.Extensions{ 1340 "x-kubernetes-map-type": "atomic", 1341 }, 1342 }, 1343 }, 1344 } 1345 } 1346 1347 func schema_k8sio_api_core_v1_ConfigMapList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1348 return common.OpenAPIDefinition{ 1349 Schema: spec.Schema{ 1350 SchemaProps: spec.SchemaProps{ 1351 Description: "ConfigMapList is a resource containing a list of ConfigMap objects.", 1352 Type: []string{"object"}, 1353 Properties: map[string]spec.Schema{ 1354 "kind": { 1355 SchemaProps: spec.SchemaProps{ 1356 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1357 Type: []string{"string"}, 1358 Format: "", 1359 }, 1360 }, 1361 "apiVersion": { 1362 SchemaProps: spec.SchemaProps{ 1363 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1364 Type: []string{"string"}, 1365 Format: "", 1366 }, 1367 }, 1368 "metadata": { 1369 SchemaProps: spec.SchemaProps{ 1370 Description: "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 1371 Default: map[string]interface{}{}, 1372 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1373 }, 1374 }, 1375 "items": { 1376 SchemaProps: spec.SchemaProps{ 1377 Description: "Items is the list of ConfigMaps.", 1378 Type: []string{"array"}, 1379 Items: &spec.SchemaOrArray{ 1380 Schema: &spec.Schema{ 1381 SchemaProps: spec.SchemaProps{ 1382 Default: map[string]interface{}{}, 1383 Ref: ref("k8s.io/api/core/v1.ConfigMap"), 1384 }, 1385 }, 1386 }, 1387 }, 1388 }, 1389 }, 1390 Required: []string{"items"}, 1391 }, 1392 }, 1393 Dependencies: []string{ 1394 "k8s.io/api/core/v1.ConfigMap", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1395 } 1396 } 1397 1398 func schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 1399 return common.OpenAPIDefinition{ 1400 Schema: spec.Schema{ 1401 SchemaProps: spec.SchemaProps{ 1402 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", 1403 Type: []string{"object"}, 1404 Properties: map[string]spec.Schema{ 1405 "namespace": { 1406 SchemaProps: spec.SchemaProps{ 1407 Description: "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", 1408 Default: "", 1409 Type: []string{"string"}, 1410 Format: "", 1411 }, 1412 }, 1413 "name": { 1414 SchemaProps: spec.SchemaProps{ 1415 Description: "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", 1416 Default: "", 1417 Type: []string{"string"}, 1418 Format: "", 1419 }, 1420 }, 1421 "uid": { 1422 SchemaProps: spec.SchemaProps{ 1423 Description: "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", 1424 Type: []string{"string"}, 1425 Format: "", 1426 }, 1427 }, 1428 "resourceVersion": { 1429 SchemaProps: spec.SchemaProps{ 1430 Description: "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", 1431 Type: []string{"string"}, 1432 Format: "", 1433 }, 1434 }, 1435 "kubeletConfigKey": { 1436 SchemaProps: spec.SchemaProps{ 1437 Description: "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", 1438 Default: "", 1439 Type: []string{"string"}, 1440 Format: "", 1441 }, 1442 }, 1443 }, 1444 Required: []string{"namespace", "name", "kubeletConfigKey"}, 1445 }, 1446 }, 1447 } 1448 } 1449 1450 func schema_k8sio_api_core_v1_ConfigMapProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 1451 return common.OpenAPIDefinition{ 1452 Schema: spec.Schema{ 1453 SchemaProps: spec.SchemaProps{ 1454 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.", 1455 Type: []string{"object"}, 1456 Properties: map[string]spec.Schema{ 1457 "name": { 1458 SchemaProps: spec.SchemaProps{ 1459 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 1460 Type: []string{"string"}, 1461 Format: "", 1462 }, 1463 }, 1464 "items": { 1465 SchemaProps: spec.SchemaProps{ 1466 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 '..'.", 1467 Type: []string{"array"}, 1468 Items: &spec.SchemaOrArray{ 1469 Schema: &spec.Schema{ 1470 SchemaProps: spec.SchemaProps{ 1471 Default: map[string]interface{}{}, 1472 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 1473 }, 1474 }, 1475 }, 1476 }, 1477 }, 1478 "optional": { 1479 SchemaProps: spec.SchemaProps{ 1480 Description: "optional specify whether the ConfigMap or its keys must be defined", 1481 Type: []string{"boolean"}, 1482 Format: "", 1483 }, 1484 }, 1485 }, 1486 }, 1487 }, 1488 Dependencies: []string{ 1489 "k8s.io/api/core/v1.KeyToPath"}, 1490 } 1491 } 1492 1493 func schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 1494 return common.OpenAPIDefinition{ 1495 Schema: spec.Schema{ 1496 SchemaProps: spec.SchemaProps{ 1497 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.", 1498 Type: []string{"object"}, 1499 Properties: map[string]spec.Schema{ 1500 "name": { 1501 SchemaProps: spec.SchemaProps{ 1502 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 1503 Type: []string{"string"}, 1504 Format: "", 1505 }, 1506 }, 1507 "items": { 1508 SchemaProps: spec.SchemaProps{ 1509 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 '..'.", 1510 Type: []string{"array"}, 1511 Items: &spec.SchemaOrArray{ 1512 Schema: &spec.Schema{ 1513 SchemaProps: spec.SchemaProps{ 1514 Default: map[string]interface{}{}, 1515 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 1516 }, 1517 }, 1518 }, 1519 }, 1520 }, 1521 "defaultMode": { 1522 SchemaProps: spec.SchemaProps{ 1523 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.", 1524 Type: []string{"integer"}, 1525 Format: "int32", 1526 }, 1527 }, 1528 "optional": { 1529 SchemaProps: spec.SchemaProps{ 1530 Description: "optional specify whether the ConfigMap or its keys must be defined", 1531 Type: []string{"boolean"}, 1532 Format: "", 1533 }, 1534 }, 1535 }, 1536 }, 1537 }, 1538 Dependencies: []string{ 1539 "k8s.io/api/core/v1.KeyToPath"}, 1540 } 1541 } 1542 1543 func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.OpenAPIDefinition { 1544 return common.OpenAPIDefinition{ 1545 Schema: spec.Schema{ 1546 SchemaProps: spec.SchemaProps{ 1547 Description: "A single application container that you want to run within a pod.", 1548 Type: []string{"object"}, 1549 Properties: map[string]spec.Schema{ 1550 "name": { 1551 SchemaProps: spec.SchemaProps{ 1552 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.", 1553 Default: "", 1554 Type: []string{"string"}, 1555 Format: "", 1556 }, 1557 }, 1558 "image": { 1559 SchemaProps: spec.SchemaProps{ 1560 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.", 1561 Type: []string{"string"}, 1562 Format: "", 1563 }, 1564 }, 1565 "command": { 1566 SchemaProps: spec.SchemaProps{ 1567 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", 1568 Type: []string{"array"}, 1569 Items: &spec.SchemaOrArray{ 1570 Schema: &spec.Schema{ 1571 SchemaProps: spec.SchemaProps{ 1572 Default: "", 1573 Type: []string{"string"}, 1574 Format: "", 1575 }, 1576 }, 1577 }, 1578 }, 1579 }, 1580 "args": { 1581 SchemaProps: spec.SchemaProps{ 1582 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", 1583 Type: []string{"array"}, 1584 Items: &spec.SchemaOrArray{ 1585 Schema: &spec.Schema{ 1586 SchemaProps: spec.SchemaProps{ 1587 Default: "", 1588 Type: []string{"string"}, 1589 Format: "", 1590 }, 1591 }, 1592 }, 1593 }, 1594 }, 1595 "workingDir": { 1596 SchemaProps: spec.SchemaProps{ 1597 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.", 1598 Type: []string{"string"}, 1599 Format: "", 1600 }, 1601 }, 1602 "ports": { 1603 VendorExtensible: spec.VendorExtensible{ 1604 Extensions: spec.Extensions{ 1605 "x-kubernetes-list-map-keys": []interface{}{ 1606 "containerPort", 1607 "protocol", 1608 }, 1609 "x-kubernetes-list-type": "map", 1610 "x-kubernetes-patch-merge-key": "containerPort", 1611 "x-kubernetes-patch-strategy": "merge", 1612 }, 1613 }, 1614 SchemaProps: spec.SchemaProps{ 1615 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.", 1616 Type: []string{"array"}, 1617 Items: &spec.SchemaOrArray{ 1618 Schema: &spec.Schema{ 1619 SchemaProps: spec.SchemaProps{ 1620 Default: map[string]interface{}{}, 1621 Ref: ref("k8s.io/api/core/v1.ContainerPort"), 1622 }, 1623 }, 1624 }, 1625 }, 1626 }, 1627 "envFrom": { 1628 SchemaProps: spec.SchemaProps{ 1629 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.", 1630 Type: []string{"array"}, 1631 Items: &spec.SchemaOrArray{ 1632 Schema: &spec.Schema{ 1633 SchemaProps: spec.SchemaProps{ 1634 Default: map[string]interface{}{}, 1635 Ref: ref("k8s.io/api/core/v1.EnvFromSource"), 1636 }, 1637 }, 1638 }, 1639 }, 1640 }, 1641 "env": { 1642 VendorExtensible: spec.VendorExtensible{ 1643 Extensions: spec.Extensions{ 1644 "x-kubernetes-patch-merge-key": "name", 1645 "x-kubernetes-patch-strategy": "merge", 1646 }, 1647 }, 1648 SchemaProps: spec.SchemaProps{ 1649 Description: "List of environment variables to set in the container. Cannot be updated.", 1650 Type: []string{"array"}, 1651 Items: &spec.SchemaOrArray{ 1652 Schema: &spec.Schema{ 1653 SchemaProps: spec.SchemaProps{ 1654 Default: map[string]interface{}{}, 1655 Ref: ref("k8s.io/api/core/v1.EnvVar"), 1656 }, 1657 }, 1658 }, 1659 }, 1660 }, 1661 "resources": { 1662 SchemaProps: spec.SchemaProps{ 1663 Description: "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 1664 Default: map[string]interface{}{}, 1665 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 1666 }, 1667 }, 1668 "volumeMounts": { 1669 VendorExtensible: spec.VendorExtensible{ 1670 Extensions: spec.Extensions{ 1671 "x-kubernetes-patch-merge-key": "mountPath", 1672 "x-kubernetes-patch-strategy": "merge", 1673 }, 1674 }, 1675 SchemaProps: spec.SchemaProps{ 1676 Description: "Pod volumes to mount into the container's filesystem. Cannot be updated.", 1677 Type: []string{"array"}, 1678 Items: &spec.SchemaOrArray{ 1679 Schema: &spec.Schema{ 1680 SchemaProps: spec.SchemaProps{ 1681 Default: map[string]interface{}{}, 1682 Ref: ref("k8s.io/api/core/v1.VolumeMount"), 1683 }, 1684 }, 1685 }, 1686 }, 1687 }, 1688 "volumeDevices": { 1689 VendorExtensible: spec.VendorExtensible{ 1690 Extensions: spec.Extensions{ 1691 "x-kubernetes-patch-merge-key": "devicePath", 1692 "x-kubernetes-patch-strategy": "merge", 1693 }, 1694 }, 1695 SchemaProps: spec.SchemaProps{ 1696 Description: "volumeDevices is the list of block devices to be used by the container.", 1697 Type: []string{"array"}, 1698 Items: &spec.SchemaOrArray{ 1699 Schema: &spec.Schema{ 1700 SchemaProps: spec.SchemaProps{ 1701 Default: map[string]interface{}{}, 1702 Ref: ref("k8s.io/api/core/v1.VolumeDevice"), 1703 }, 1704 }, 1705 }, 1706 }, 1707 }, 1708 "livenessProbe": { 1709 SchemaProps: spec.SchemaProps{ 1710 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", 1711 Ref: ref("k8s.io/api/core/v1.Probe"), 1712 }, 1713 }, 1714 "readinessProbe": { 1715 SchemaProps: spec.SchemaProps{ 1716 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", 1717 Ref: ref("k8s.io/api/core/v1.Probe"), 1718 }, 1719 }, 1720 "startupProbe": { 1721 SchemaProps: spec.SchemaProps{ 1722 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", 1723 Ref: ref("k8s.io/api/core/v1.Probe"), 1724 }, 1725 }, 1726 "lifecycle": { 1727 SchemaProps: spec.SchemaProps{ 1728 Description: "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", 1729 Ref: ref("k8s.io/api/core/v1.Lifecycle"), 1730 }, 1731 }, 1732 "terminationMessagePath": { 1733 SchemaProps: spec.SchemaProps{ 1734 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.", 1735 Type: []string{"string"}, 1736 Format: "", 1737 }, 1738 }, 1739 "terminationMessagePolicy": { 1740 SchemaProps: spec.SchemaProps{ 1741 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.\n\nPossible enum values:\n - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents.\n - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits.", 1742 Type: []string{"string"}, 1743 Format: "", 1744 Enum: []interface{}{"FallbackToLogsOnError", "File"}}, 1745 }, 1746 "imagePullPolicy": { 1747 SchemaProps: spec.SchemaProps{ 1748 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\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", 1749 Type: []string{"string"}, 1750 Format: "", 1751 Enum: []interface{}{"Always", "IfNotPresent", "Never"}}, 1752 }, 1753 "securityContext": { 1754 SchemaProps: spec.SchemaProps{ 1755 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/", 1756 Ref: ref("k8s.io/api/core/v1.SecurityContext"), 1757 }, 1758 }, 1759 "stdin": { 1760 SchemaProps: spec.SchemaProps{ 1761 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.", 1762 Type: []string{"boolean"}, 1763 Format: "", 1764 }, 1765 }, 1766 "stdinOnce": { 1767 SchemaProps: spec.SchemaProps{ 1768 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", 1769 Type: []string{"boolean"}, 1770 Format: "", 1771 }, 1772 }, 1773 "tty": { 1774 SchemaProps: spec.SchemaProps{ 1775 Description: "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", 1776 Type: []string{"boolean"}, 1777 Format: "", 1778 }, 1779 }, 1780 }, 1781 Required: []string{"name"}, 1782 }, 1783 }, 1784 Dependencies: []string{ 1785 "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, 1786 } 1787 } 1788 1789 func schema_k8sio_api_core_v1_ContainerImage(ref common.ReferenceCallback) common.OpenAPIDefinition { 1790 return common.OpenAPIDefinition{ 1791 Schema: spec.Schema{ 1792 SchemaProps: spec.SchemaProps{ 1793 Description: "Describe a container image", 1794 Type: []string{"object"}, 1795 Properties: map[string]spec.Schema{ 1796 "names": { 1797 SchemaProps: spec.SchemaProps{ 1798 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\"]", 1799 Type: []string{"array"}, 1800 Items: &spec.SchemaOrArray{ 1801 Schema: &spec.Schema{ 1802 SchemaProps: spec.SchemaProps{ 1803 Default: "", 1804 Type: []string{"string"}, 1805 Format: "", 1806 }, 1807 }, 1808 }, 1809 }, 1810 }, 1811 "sizeBytes": { 1812 SchemaProps: spec.SchemaProps{ 1813 Description: "The size of the image in bytes.", 1814 Type: []string{"integer"}, 1815 Format: "int64", 1816 }, 1817 }, 1818 }, 1819 }, 1820 }, 1821 } 1822 } 1823 1824 func schema_k8sio_api_core_v1_ContainerPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 1825 return common.OpenAPIDefinition{ 1826 Schema: spec.Schema{ 1827 SchemaProps: spec.SchemaProps{ 1828 Description: "ContainerPort represents a network port in a single container.", 1829 Type: []string{"object"}, 1830 Properties: map[string]spec.Schema{ 1831 "name": { 1832 SchemaProps: spec.SchemaProps{ 1833 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.", 1834 Type: []string{"string"}, 1835 Format: "", 1836 }, 1837 }, 1838 "hostPort": { 1839 SchemaProps: spec.SchemaProps{ 1840 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.", 1841 Type: []string{"integer"}, 1842 Format: "int32", 1843 }, 1844 }, 1845 "containerPort": { 1846 SchemaProps: spec.SchemaProps{ 1847 Description: "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", 1848 Default: 0, 1849 Type: []string{"integer"}, 1850 Format: "int32", 1851 }, 1852 }, 1853 "protocol": { 1854 SchemaProps: spec.SchemaProps{ 1855 Description: "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".\n\nPossible enum values:\n - `\"SCTP\"` is the SCTP protocol.\n - `\"TCP\"` is the TCP protocol.\n - `\"UDP\"` is the UDP protocol.", 1856 Default: "TCP", 1857 Type: []string{"string"}, 1858 Format: "", 1859 Enum: []interface{}{"SCTP", "TCP", "UDP"}}, 1860 }, 1861 "hostIP": { 1862 SchemaProps: spec.SchemaProps{ 1863 Description: "What host IP to bind the external port to.", 1864 Type: []string{"string"}, 1865 Format: "", 1866 }, 1867 }, 1868 }, 1869 Required: []string{"containerPort"}, 1870 }, 1871 }, 1872 } 1873 } 1874 1875 func schema_k8sio_api_core_v1_ContainerState(ref common.ReferenceCallback) common.OpenAPIDefinition { 1876 return common.OpenAPIDefinition{ 1877 Schema: spec.Schema{ 1878 SchemaProps: spec.SchemaProps{ 1879 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.", 1880 Type: []string{"object"}, 1881 Properties: map[string]spec.Schema{ 1882 "waiting": { 1883 SchemaProps: spec.SchemaProps{ 1884 Description: "Details about a waiting container", 1885 Ref: ref("k8s.io/api/core/v1.ContainerStateWaiting"), 1886 }, 1887 }, 1888 "running": { 1889 SchemaProps: spec.SchemaProps{ 1890 Description: "Details about a running container", 1891 Ref: ref("k8s.io/api/core/v1.ContainerStateRunning"), 1892 }, 1893 }, 1894 "terminated": { 1895 SchemaProps: spec.SchemaProps{ 1896 Description: "Details about a terminated container", 1897 Ref: ref("k8s.io/api/core/v1.ContainerStateTerminated"), 1898 }, 1899 }, 1900 }, 1901 }, 1902 }, 1903 Dependencies: []string{ 1904 "k8s.io/api/core/v1.ContainerStateRunning", "k8s.io/api/core/v1.ContainerStateTerminated", "k8s.io/api/core/v1.ContainerStateWaiting"}, 1905 } 1906 } 1907 1908 func schema_k8sio_api_core_v1_ContainerStateRunning(ref common.ReferenceCallback) common.OpenAPIDefinition { 1909 return common.OpenAPIDefinition{ 1910 Schema: spec.Schema{ 1911 SchemaProps: spec.SchemaProps{ 1912 Description: "ContainerStateRunning is a running state of a container.", 1913 Type: []string{"object"}, 1914 Properties: map[string]spec.Schema{ 1915 "startedAt": { 1916 SchemaProps: spec.SchemaProps{ 1917 Description: "Time at which the container was last (re-)started", 1918 Default: map[string]interface{}{}, 1919 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1920 }, 1921 }, 1922 }, 1923 }, 1924 }, 1925 Dependencies: []string{ 1926 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 1927 } 1928 } 1929 1930 func schema_k8sio_api_core_v1_ContainerStateTerminated(ref common.ReferenceCallback) common.OpenAPIDefinition { 1931 return common.OpenAPIDefinition{ 1932 Schema: spec.Schema{ 1933 SchemaProps: spec.SchemaProps{ 1934 Description: "ContainerStateTerminated is a terminated state of a container.", 1935 Type: []string{"object"}, 1936 Properties: map[string]spec.Schema{ 1937 "exitCode": { 1938 SchemaProps: spec.SchemaProps{ 1939 Description: "Exit status from the last termination of the container", 1940 Default: 0, 1941 Type: []string{"integer"}, 1942 Format: "int32", 1943 }, 1944 }, 1945 "signal": { 1946 SchemaProps: spec.SchemaProps{ 1947 Description: "Signal from the last termination of the container", 1948 Type: []string{"integer"}, 1949 Format: "int32", 1950 }, 1951 }, 1952 "reason": { 1953 SchemaProps: spec.SchemaProps{ 1954 Description: "(brief) reason from the last termination of the container", 1955 Type: []string{"string"}, 1956 Format: "", 1957 }, 1958 }, 1959 "message": { 1960 SchemaProps: spec.SchemaProps{ 1961 Description: "Message regarding the last termination of the container", 1962 Type: []string{"string"}, 1963 Format: "", 1964 }, 1965 }, 1966 "startedAt": { 1967 SchemaProps: spec.SchemaProps{ 1968 Description: "Time at which previous execution of the container started", 1969 Default: map[string]interface{}{}, 1970 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1971 }, 1972 }, 1973 "finishedAt": { 1974 SchemaProps: spec.SchemaProps{ 1975 Description: "Time at which the container last terminated", 1976 Default: map[string]interface{}{}, 1977 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1978 }, 1979 }, 1980 "containerID": { 1981 SchemaProps: spec.SchemaProps{ 1982 Description: "Container's ID in the format '<type>://<container_id>'", 1983 Type: []string{"string"}, 1984 Format: "", 1985 }, 1986 }, 1987 }, 1988 Required: []string{"exitCode"}, 1989 }, 1990 }, 1991 Dependencies: []string{ 1992 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 1993 } 1994 } 1995 1996 func schema_k8sio_api_core_v1_ContainerStateWaiting(ref common.ReferenceCallback) common.OpenAPIDefinition { 1997 return common.OpenAPIDefinition{ 1998 Schema: spec.Schema{ 1999 SchemaProps: spec.SchemaProps{ 2000 Description: "ContainerStateWaiting is a waiting state of a container.", 2001 Type: []string{"object"}, 2002 Properties: map[string]spec.Schema{ 2003 "reason": { 2004 SchemaProps: spec.SchemaProps{ 2005 Description: "(brief) reason the container is not yet running.", 2006 Type: []string{"string"}, 2007 Format: "", 2008 }, 2009 }, 2010 "message": { 2011 SchemaProps: spec.SchemaProps{ 2012 Description: "Message regarding why the container is not yet running.", 2013 Type: []string{"string"}, 2014 Format: "", 2015 }, 2016 }, 2017 }, 2018 }, 2019 }, 2020 } 2021 } 2022 2023 func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 2024 return common.OpenAPIDefinition{ 2025 Schema: spec.Schema{ 2026 SchemaProps: spec.SchemaProps{ 2027 Description: "ContainerStatus contains details for the current status of this container.", 2028 Type: []string{"object"}, 2029 Properties: map[string]spec.Schema{ 2030 "name": { 2031 SchemaProps: spec.SchemaProps{ 2032 Description: "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", 2033 Default: "", 2034 Type: []string{"string"}, 2035 Format: "", 2036 }, 2037 }, 2038 "state": { 2039 SchemaProps: spec.SchemaProps{ 2040 Description: "Details about the container's current condition.", 2041 Default: map[string]interface{}{}, 2042 Ref: ref("k8s.io/api/core/v1.ContainerState"), 2043 }, 2044 }, 2045 "lastState": { 2046 SchemaProps: spec.SchemaProps{ 2047 Description: "Details about the container's last termination condition.", 2048 Default: map[string]interface{}{}, 2049 Ref: ref("k8s.io/api/core/v1.ContainerState"), 2050 }, 2051 }, 2052 "ready": { 2053 SchemaProps: spec.SchemaProps{ 2054 Description: "Specifies whether the container has passed its readiness probe.", 2055 Default: false, 2056 Type: []string{"boolean"}, 2057 Format: "", 2058 }, 2059 }, 2060 "restartCount": { 2061 SchemaProps: spec.SchemaProps{ 2062 Description: "The number of times the container has been restarted.", 2063 Default: 0, 2064 Type: []string{"integer"}, 2065 Format: "int32", 2066 }, 2067 }, 2068 "image": { 2069 SchemaProps: spec.SchemaProps{ 2070 Description: "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images.", 2071 Default: "", 2072 Type: []string{"string"}, 2073 Format: "", 2074 }, 2075 }, 2076 "imageID": { 2077 SchemaProps: spec.SchemaProps{ 2078 Description: "ImageID of the container's image.", 2079 Default: "", 2080 Type: []string{"string"}, 2081 Format: "", 2082 }, 2083 }, 2084 "containerID": { 2085 SchemaProps: spec.SchemaProps{ 2086 Description: "Container's ID in the format '<type>://<container_id>'.", 2087 Type: []string{"string"}, 2088 Format: "", 2089 }, 2090 }, 2091 "started": { 2092 SchemaProps: spec.SchemaProps{ 2093 Description: "Specifies whether the container has 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. Is always true when no startupProbe is defined.", 2094 Type: []string{"boolean"}, 2095 Format: "", 2096 }, 2097 }, 2098 }, 2099 Required: []string{"name", "ready", "restartCount", "image", "imageID"}, 2100 }, 2101 }, 2102 Dependencies: []string{ 2103 "k8s.io/api/core/v1.ContainerState"}, 2104 } 2105 } 2106 2107 func schema_k8sio_api_core_v1_DaemonEndpoint(ref common.ReferenceCallback) common.OpenAPIDefinition { 2108 return common.OpenAPIDefinition{ 2109 Schema: spec.Schema{ 2110 SchemaProps: spec.SchemaProps{ 2111 Description: "DaemonEndpoint contains information about a single Daemon endpoint.", 2112 Type: []string{"object"}, 2113 Properties: map[string]spec.Schema{ 2114 "Port": { 2115 SchemaProps: spec.SchemaProps{ 2116 Description: "Port number of the given endpoint.", 2117 Default: 0, 2118 Type: []string{"integer"}, 2119 Format: "int32", 2120 }, 2121 }, 2122 }, 2123 Required: []string{"Port"}, 2124 }, 2125 }, 2126 } 2127 } 2128 2129 func schema_k8sio_api_core_v1_DownwardAPIProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 2130 return common.OpenAPIDefinition{ 2131 Schema: spec.Schema{ 2132 SchemaProps: spec.SchemaProps{ 2133 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.", 2134 Type: []string{"object"}, 2135 Properties: map[string]spec.Schema{ 2136 "items": { 2137 SchemaProps: spec.SchemaProps{ 2138 Description: "Items is a list of DownwardAPIVolume file", 2139 Type: []string{"array"}, 2140 Items: &spec.SchemaOrArray{ 2141 Schema: &spec.Schema{ 2142 SchemaProps: spec.SchemaProps{ 2143 Default: map[string]interface{}{}, 2144 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeFile"), 2145 }, 2146 }, 2147 }, 2148 }, 2149 }, 2150 }, 2151 }, 2152 }, 2153 Dependencies: []string{ 2154 "k8s.io/api/core/v1.DownwardAPIVolumeFile"}, 2155 } 2156 } 2157 2158 func schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref common.ReferenceCallback) common.OpenAPIDefinition { 2159 return common.OpenAPIDefinition{ 2160 Schema: spec.Schema{ 2161 SchemaProps: spec.SchemaProps{ 2162 Description: "DownwardAPIVolumeFile represents information to create the file containing the pod field", 2163 Type: []string{"object"}, 2164 Properties: map[string]spec.Schema{ 2165 "path": { 2166 SchemaProps: spec.SchemaProps{ 2167 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 '..'", 2168 Default: "", 2169 Type: []string{"string"}, 2170 Format: "", 2171 }, 2172 }, 2173 "fieldRef": { 2174 SchemaProps: spec.SchemaProps{ 2175 Description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", 2176 Ref: ref("k8s.io/api/core/v1.ObjectFieldSelector"), 2177 }, 2178 }, 2179 "resourceFieldRef": { 2180 SchemaProps: spec.SchemaProps{ 2181 Description: "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", 2182 Ref: ref("k8s.io/api/core/v1.ResourceFieldSelector"), 2183 }, 2184 }, 2185 "mode": { 2186 SchemaProps: spec.SchemaProps{ 2187 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.", 2188 Type: []string{"integer"}, 2189 Format: "int32", 2190 }, 2191 }, 2192 }, 2193 Required: []string{"path"}, 2194 }, 2195 }, 2196 Dependencies: []string{ 2197 "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector"}, 2198 } 2199 } 2200 2201 func schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2202 return common.OpenAPIDefinition{ 2203 Schema: spec.Schema{ 2204 SchemaProps: spec.SchemaProps{ 2205 Description: "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", 2206 Type: []string{"object"}, 2207 Properties: map[string]spec.Schema{ 2208 "items": { 2209 SchemaProps: spec.SchemaProps{ 2210 Description: "Items is a list of downward API volume file", 2211 Type: []string{"array"}, 2212 Items: &spec.SchemaOrArray{ 2213 Schema: &spec.Schema{ 2214 SchemaProps: spec.SchemaProps{ 2215 Default: map[string]interface{}{}, 2216 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeFile"), 2217 }, 2218 }, 2219 }, 2220 }, 2221 }, 2222 "defaultMode": { 2223 SchemaProps: spec.SchemaProps{ 2224 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.", 2225 Type: []string{"integer"}, 2226 Format: "int32", 2227 }, 2228 }, 2229 }, 2230 }, 2231 }, 2232 Dependencies: []string{ 2233 "k8s.io/api/core/v1.DownwardAPIVolumeFile"}, 2234 } 2235 } 2236 2237 func schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2238 return common.OpenAPIDefinition{ 2239 Schema: spec.Schema{ 2240 SchemaProps: spec.SchemaProps{ 2241 Description: "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", 2242 Type: []string{"object"}, 2243 Properties: map[string]spec.Schema{ 2244 "medium": { 2245 SchemaProps: spec.SchemaProps{ 2246 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", 2247 Type: []string{"string"}, 2248 Format: "", 2249 }, 2250 }, 2251 "sizeLimit": { 2252 SchemaProps: spec.SchemaProps{ 2253 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: http://kubernetes.io/docs/user-guide/volumes#emptydir", 2254 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 2255 }, 2256 }, 2257 }, 2258 }, 2259 }, 2260 Dependencies: []string{ 2261 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 2262 } 2263 } 2264 2265 func schema_k8sio_api_core_v1_EndpointAddress(ref common.ReferenceCallback) common.OpenAPIDefinition { 2266 return common.OpenAPIDefinition{ 2267 Schema: spec.Schema{ 2268 SchemaProps: spec.SchemaProps{ 2269 Description: "EndpointAddress is a tuple that describes single IP address.", 2270 Type: []string{"object"}, 2271 Properties: map[string]spec.Schema{ 2272 "ip": { 2273 SchemaProps: spec.SchemaProps{ 2274 Description: "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.", 2275 Default: "", 2276 Type: []string{"string"}, 2277 Format: "", 2278 }, 2279 }, 2280 "hostname": { 2281 SchemaProps: spec.SchemaProps{ 2282 Description: "The Hostname of this endpoint", 2283 Type: []string{"string"}, 2284 Format: "", 2285 }, 2286 }, 2287 "nodeName": { 2288 SchemaProps: spec.SchemaProps{ 2289 Description: "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", 2290 Type: []string{"string"}, 2291 Format: "", 2292 }, 2293 }, 2294 "targetRef": { 2295 SchemaProps: spec.SchemaProps{ 2296 Description: "Reference to object providing the endpoint.", 2297 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 2298 }, 2299 }, 2300 }, 2301 Required: []string{"ip"}, 2302 }, 2303 VendorExtensible: spec.VendorExtensible{ 2304 Extensions: spec.Extensions{ 2305 "x-kubernetes-map-type": "atomic", 2306 }, 2307 }, 2308 }, 2309 Dependencies: []string{ 2310 "k8s.io/api/core/v1.ObjectReference"}, 2311 } 2312 } 2313 2314 func schema_k8sio_api_core_v1_EndpointPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 2315 return common.OpenAPIDefinition{ 2316 Schema: spec.Schema{ 2317 SchemaProps: spec.SchemaProps{ 2318 Description: "EndpointPort is a tuple that describes a single port.", 2319 Type: []string{"object"}, 2320 Properties: map[string]spec.Schema{ 2321 "name": { 2322 SchemaProps: spec.SchemaProps{ 2323 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.", 2324 Type: []string{"string"}, 2325 Format: "", 2326 }, 2327 }, 2328 "port": { 2329 SchemaProps: spec.SchemaProps{ 2330 Description: "The port number of the endpoint.", 2331 Default: 0, 2332 Type: []string{"integer"}, 2333 Format: "int32", 2334 }, 2335 }, 2336 "protocol": { 2337 SchemaProps: spec.SchemaProps{ 2338 Description: "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.\n\nPossible enum values:\n - `\"SCTP\"` is the SCTP protocol.\n - `\"TCP\"` is the TCP protocol.\n - `\"UDP\"` is the UDP protocol.", 2339 Type: []string{"string"}, 2340 Format: "", 2341 Enum: []interface{}{"SCTP", "TCP", "UDP"}}, 2342 }, 2343 "appProtocol": { 2344 SchemaProps: spec.SchemaProps{ 2345 Description: "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", 2346 Type: []string{"string"}, 2347 Format: "", 2348 }, 2349 }, 2350 }, 2351 Required: []string{"port"}, 2352 }, 2353 VendorExtensible: spec.VendorExtensible{ 2354 Extensions: spec.Extensions{ 2355 "x-kubernetes-map-type": "atomic", 2356 }, 2357 }, 2358 }, 2359 } 2360 } 2361 2362 func schema_k8sio_api_core_v1_EndpointSubset(ref common.ReferenceCallback) common.OpenAPIDefinition { 2363 return common.OpenAPIDefinition{ 2364 Schema: spec.Schema{ 2365 SchemaProps: spec.SchemaProps{ 2366 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 ]", 2367 Type: []string{"object"}, 2368 Properties: map[string]spec.Schema{ 2369 "addresses": { 2370 SchemaProps: spec.SchemaProps{ 2371 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.", 2372 Type: []string{"array"}, 2373 Items: &spec.SchemaOrArray{ 2374 Schema: &spec.Schema{ 2375 SchemaProps: spec.SchemaProps{ 2376 Default: map[string]interface{}{}, 2377 Ref: ref("k8s.io/api/core/v1.EndpointAddress"), 2378 }, 2379 }, 2380 }, 2381 }, 2382 }, 2383 "notReadyAddresses": { 2384 SchemaProps: spec.SchemaProps{ 2385 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.", 2386 Type: []string{"array"}, 2387 Items: &spec.SchemaOrArray{ 2388 Schema: &spec.Schema{ 2389 SchemaProps: spec.SchemaProps{ 2390 Default: map[string]interface{}{}, 2391 Ref: ref("k8s.io/api/core/v1.EndpointAddress"), 2392 }, 2393 }, 2394 }, 2395 }, 2396 }, 2397 "ports": { 2398 SchemaProps: spec.SchemaProps{ 2399 Description: "Port numbers available on the related IP addresses.", 2400 Type: []string{"array"}, 2401 Items: &spec.SchemaOrArray{ 2402 Schema: &spec.Schema{ 2403 SchemaProps: spec.SchemaProps{ 2404 Default: map[string]interface{}{}, 2405 Ref: ref("k8s.io/api/core/v1.EndpointPort"), 2406 }, 2407 }, 2408 }, 2409 }, 2410 }, 2411 }, 2412 }, 2413 }, 2414 Dependencies: []string{ 2415 "k8s.io/api/core/v1.EndpointAddress", "k8s.io/api/core/v1.EndpointPort"}, 2416 } 2417 } 2418 2419 func schema_k8sio_api_core_v1_Endpoints(ref common.ReferenceCallback) common.OpenAPIDefinition { 2420 return common.OpenAPIDefinition{ 2421 Schema: spec.Schema{ 2422 SchemaProps: spec.SchemaProps{ 2423 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]", 2424 Type: []string{"object"}, 2425 Properties: map[string]spec.Schema{ 2426 "kind": { 2427 SchemaProps: spec.SchemaProps{ 2428 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2429 Type: []string{"string"}, 2430 Format: "", 2431 }, 2432 }, 2433 "apiVersion": { 2434 SchemaProps: spec.SchemaProps{ 2435 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 2436 Type: []string{"string"}, 2437 Format: "", 2438 }, 2439 }, 2440 "metadata": { 2441 SchemaProps: spec.SchemaProps{ 2442 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 2443 Default: map[string]interface{}{}, 2444 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 2445 }, 2446 }, 2447 "subsets": { 2448 SchemaProps: spec.SchemaProps{ 2449 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.", 2450 Type: []string{"array"}, 2451 Items: &spec.SchemaOrArray{ 2452 Schema: &spec.Schema{ 2453 SchemaProps: spec.SchemaProps{ 2454 Default: map[string]interface{}{}, 2455 Ref: ref("k8s.io/api/core/v1.EndpointSubset"), 2456 }, 2457 }, 2458 }, 2459 }, 2460 }, 2461 }, 2462 }, 2463 }, 2464 Dependencies: []string{ 2465 "k8s.io/api/core/v1.EndpointSubset", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 2466 } 2467 } 2468 2469 func schema_k8sio_api_core_v1_EndpointsList(ref common.ReferenceCallback) common.OpenAPIDefinition { 2470 return common.OpenAPIDefinition{ 2471 Schema: spec.Schema{ 2472 SchemaProps: spec.SchemaProps{ 2473 Description: "EndpointsList is a list of endpoints.", 2474 Type: []string{"object"}, 2475 Properties: map[string]spec.Schema{ 2476 "kind": { 2477 SchemaProps: spec.SchemaProps{ 2478 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2479 Type: []string{"string"}, 2480 Format: "", 2481 }, 2482 }, 2483 "apiVersion": { 2484 SchemaProps: spec.SchemaProps{ 2485 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 2486 Type: []string{"string"}, 2487 Format: "", 2488 }, 2489 }, 2490 "metadata": { 2491 SchemaProps: spec.SchemaProps{ 2492 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2493 Default: map[string]interface{}{}, 2494 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 2495 }, 2496 }, 2497 "items": { 2498 SchemaProps: spec.SchemaProps{ 2499 Description: "List of endpoints.", 2500 Type: []string{"array"}, 2501 Items: &spec.SchemaOrArray{ 2502 Schema: &spec.Schema{ 2503 SchemaProps: spec.SchemaProps{ 2504 Default: map[string]interface{}{}, 2505 Ref: ref("k8s.io/api/core/v1.Endpoints"), 2506 }, 2507 }, 2508 }, 2509 }, 2510 }, 2511 }, 2512 Required: []string{"items"}, 2513 }, 2514 }, 2515 Dependencies: []string{ 2516 "k8s.io/api/core/v1.Endpoints", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 2517 } 2518 } 2519 2520 func schema_k8sio_api_core_v1_EnvFromSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2521 return common.OpenAPIDefinition{ 2522 Schema: spec.Schema{ 2523 SchemaProps: spec.SchemaProps{ 2524 Description: "EnvFromSource represents the source of a set of ConfigMaps", 2525 Type: []string{"object"}, 2526 Properties: map[string]spec.Schema{ 2527 "prefix": { 2528 SchemaProps: spec.SchemaProps{ 2529 Description: "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", 2530 Type: []string{"string"}, 2531 Format: "", 2532 }, 2533 }, 2534 "configMapRef": { 2535 SchemaProps: spec.SchemaProps{ 2536 Description: "The ConfigMap to select from", 2537 Ref: ref("k8s.io/api/core/v1.ConfigMapEnvSource"), 2538 }, 2539 }, 2540 "secretRef": { 2541 SchemaProps: spec.SchemaProps{ 2542 Description: "The Secret to select from", 2543 Ref: ref("k8s.io/api/core/v1.SecretEnvSource"), 2544 }, 2545 }, 2546 }, 2547 }, 2548 }, 2549 Dependencies: []string{ 2550 "k8s.io/api/core/v1.ConfigMapEnvSource", "k8s.io/api/core/v1.SecretEnvSource"}, 2551 } 2552 } 2553 2554 func schema_k8sio_api_core_v1_EnvVar(ref common.ReferenceCallback) common.OpenAPIDefinition { 2555 return common.OpenAPIDefinition{ 2556 Schema: spec.Schema{ 2557 SchemaProps: spec.SchemaProps{ 2558 Description: "EnvVar represents an environment variable present in a Container.", 2559 Type: []string{"object"}, 2560 Properties: map[string]spec.Schema{ 2561 "name": { 2562 SchemaProps: spec.SchemaProps{ 2563 Description: "Name of the environment variable. Must be a C_IDENTIFIER.", 2564 Default: "", 2565 Type: []string{"string"}, 2566 Format: "", 2567 }, 2568 }, 2569 "value": { 2570 SchemaProps: spec.SchemaProps{ 2571 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 \"\".", 2572 Type: []string{"string"}, 2573 Format: "", 2574 }, 2575 }, 2576 "valueFrom": { 2577 SchemaProps: spec.SchemaProps{ 2578 Description: "Source for the environment variable's value. Cannot be used if value is not empty.", 2579 Ref: ref("k8s.io/api/core/v1.EnvVarSource"), 2580 }, 2581 }, 2582 }, 2583 Required: []string{"name"}, 2584 }, 2585 }, 2586 Dependencies: []string{ 2587 "k8s.io/api/core/v1.EnvVarSource"}, 2588 } 2589 } 2590 2591 func schema_k8sio_api_core_v1_EnvVarSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2592 return common.OpenAPIDefinition{ 2593 Schema: spec.Schema{ 2594 SchemaProps: spec.SchemaProps{ 2595 Description: "EnvVarSource represents a source for the value of an EnvVar.", 2596 Type: []string{"object"}, 2597 Properties: map[string]spec.Schema{ 2598 "fieldRef": { 2599 SchemaProps: spec.SchemaProps{ 2600 Description: "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.", 2601 Ref: ref("k8s.io/api/core/v1.ObjectFieldSelector"), 2602 }, 2603 }, 2604 "resourceFieldRef": { 2605 SchemaProps: spec.SchemaProps{ 2606 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.", 2607 Ref: ref("k8s.io/api/core/v1.ResourceFieldSelector"), 2608 }, 2609 }, 2610 "configMapKeyRef": { 2611 SchemaProps: spec.SchemaProps{ 2612 Description: "Selects a key of a ConfigMap.", 2613 Ref: ref("k8s.io/api/core/v1.ConfigMapKeySelector"), 2614 }, 2615 }, 2616 "secretKeyRef": { 2617 SchemaProps: spec.SchemaProps{ 2618 Description: "Selects a key of a secret in the pod's namespace", 2619 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 2620 }, 2621 }, 2622 }, 2623 }, 2624 }, 2625 Dependencies: []string{ 2626 "k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector", "k8s.io/api/core/v1.SecretKeySelector"}, 2627 } 2628 } 2629 2630 func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { 2631 return common.OpenAPIDefinition{ 2632 Schema: spec.Schema{ 2633 SchemaProps: spec.SchemaProps{ 2634 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.", 2635 Type: []string{"object"}, 2636 Properties: map[string]spec.Schema{ 2637 "name": { 2638 SchemaProps: spec.SchemaProps{ 2639 Description: "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", 2640 Default: "", 2641 Type: []string{"string"}, 2642 Format: "", 2643 }, 2644 }, 2645 "image": { 2646 SchemaProps: spec.SchemaProps{ 2647 Description: "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", 2648 Type: []string{"string"}, 2649 Format: "", 2650 }, 2651 }, 2652 "command": { 2653 SchemaProps: spec.SchemaProps{ 2654 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", 2655 Type: []string{"array"}, 2656 Items: &spec.SchemaOrArray{ 2657 Schema: &spec.Schema{ 2658 SchemaProps: spec.SchemaProps{ 2659 Default: "", 2660 Type: []string{"string"}, 2661 Format: "", 2662 }, 2663 }, 2664 }, 2665 }, 2666 }, 2667 "args": { 2668 SchemaProps: spec.SchemaProps{ 2669 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", 2670 Type: []string{"array"}, 2671 Items: &spec.SchemaOrArray{ 2672 Schema: &spec.Schema{ 2673 SchemaProps: spec.SchemaProps{ 2674 Default: "", 2675 Type: []string{"string"}, 2676 Format: "", 2677 }, 2678 }, 2679 }, 2680 }, 2681 }, 2682 "workingDir": { 2683 SchemaProps: spec.SchemaProps{ 2684 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.", 2685 Type: []string{"string"}, 2686 Format: "", 2687 }, 2688 }, 2689 "ports": { 2690 VendorExtensible: spec.VendorExtensible{ 2691 Extensions: spec.Extensions{ 2692 "x-kubernetes-list-map-keys": []interface{}{ 2693 "containerPort", 2694 "protocol", 2695 }, 2696 "x-kubernetes-list-type": "map", 2697 "x-kubernetes-patch-merge-key": "containerPort", 2698 "x-kubernetes-patch-strategy": "merge", 2699 }, 2700 }, 2701 SchemaProps: spec.SchemaProps{ 2702 Description: "Ports are not allowed for ephemeral containers.", 2703 Type: []string{"array"}, 2704 Items: &spec.SchemaOrArray{ 2705 Schema: &spec.Schema{ 2706 SchemaProps: spec.SchemaProps{ 2707 Default: map[string]interface{}{}, 2708 Ref: ref("k8s.io/api/core/v1.ContainerPort"), 2709 }, 2710 }, 2711 }, 2712 }, 2713 }, 2714 "envFrom": { 2715 SchemaProps: spec.SchemaProps{ 2716 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.", 2717 Type: []string{"array"}, 2718 Items: &spec.SchemaOrArray{ 2719 Schema: &spec.Schema{ 2720 SchemaProps: spec.SchemaProps{ 2721 Default: map[string]interface{}{}, 2722 Ref: ref("k8s.io/api/core/v1.EnvFromSource"), 2723 }, 2724 }, 2725 }, 2726 }, 2727 }, 2728 "env": { 2729 VendorExtensible: spec.VendorExtensible{ 2730 Extensions: spec.Extensions{ 2731 "x-kubernetes-patch-merge-key": "name", 2732 "x-kubernetes-patch-strategy": "merge", 2733 }, 2734 }, 2735 SchemaProps: spec.SchemaProps{ 2736 Description: "List of environment variables to set in the container. Cannot be updated.", 2737 Type: []string{"array"}, 2738 Items: &spec.SchemaOrArray{ 2739 Schema: &spec.Schema{ 2740 SchemaProps: spec.SchemaProps{ 2741 Default: map[string]interface{}{}, 2742 Ref: ref("k8s.io/api/core/v1.EnvVar"), 2743 }, 2744 }, 2745 }, 2746 }, 2747 }, 2748 "resources": { 2749 SchemaProps: spec.SchemaProps{ 2750 Description: "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.", 2751 Default: map[string]interface{}{}, 2752 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 2753 }, 2754 }, 2755 "volumeMounts": { 2756 VendorExtensible: spec.VendorExtensible{ 2757 Extensions: spec.Extensions{ 2758 "x-kubernetes-patch-merge-key": "mountPath", 2759 "x-kubernetes-patch-strategy": "merge", 2760 }, 2761 }, 2762 SchemaProps: spec.SchemaProps{ 2763 Description: "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", 2764 Type: []string{"array"}, 2765 Items: &spec.SchemaOrArray{ 2766 Schema: &spec.Schema{ 2767 SchemaProps: spec.SchemaProps{ 2768 Default: map[string]interface{}{}, 2769 Ref: ref("k8s.io/api/core/v1.VolumeMount"), 2770 }, 2771 }, 2772 }, 2773 }, 2774 }, 2775 "volumeDevices": { 2776 VendorExtensible: spec.VendorExtensible{ 2777 Extensions: spec.Extensions{ 2778 "x-kubernetes-patch-merge-key": "devicePath", 2779 "x-kubernetes-patch-strategy": "merge", 2780 }, 2781 }, 2782 SchemaProps: spec.SchemaProps{ 2783 Description: "volumeDevices is the list of block devices to be used by the container.", 2784 Type: []string{"array"}, 2785 Items: &spec.SchemaOrArray{ 2786 Schema: &spec.Schema{ 2787 SchemaProps: spec.SchemaProps{ 2788 Default: map[string]interface{}{}, 2789 Ref: ref("k8s.io/api/core/v1.VolumeDevice"), 2790 }, 2791 }, 2792 }, 2793 }, 2794 }, 2795 "livenessProbe": { 2796 SchemaProps: spec.SchemaProps{ 2797 Description: "Probes are not allowed for ephemeral containers.", 2798 Ref: ref("k8s.io/api/core/v1.Probe"), 2799 }, 2800 }, 2801 "readinessProbe": { 2802 SchemaProps: spec.SchemaProps{ 2803 Description: "Probes are not allowed for ephemeral containers.", 2804 Ref: ref("k8s.io/api/core/v1.Probe"), 2805 }, 2806 }, 2807 "startupProbe": { 2808 SchemaProps: spec.SchemaProps{ 2809 Description: "Probes are not allowed for ephemeral containers.", 2810 Ref: ref("k8s.io/api/core/v1.Probe"), 2811 }, 2812 }, 2813 "lifecycle": { 2814 SchemaProps: spec.SchemaProps{ 2815 Description: "Lifecycle is not allowed for ephemeral containers.", 2816 Ref: ref("k8s.io/api/core/v1.Lifecycle"), 2817 }, 2818 }, 2819 "terminationMessagePath": { 2820 SchemaProps: spec.SchemaProps{ 2821 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.", 2822 Type: []string{"string"}, 2823 Format: "", 2824 }, 2825 }, 2826 "terminationMessagePolicy": { 2827 SchemaProps: spec.SchemaProps{ 2828 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.\n\nPossible enum values:\n - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents.\n - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits.", 2829 Type: []string{"string"}, 2830 Format: "", 2831 Enum: []interface{}{"FallbackToLogsOnError", "File"}}, 2832 }, 2833 "imagePullPolicy": { 2834 SchemaProps: spec.SchemaProps{ 2835 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\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", 2836 Type: []string{"string"}, 2837 Format: "", 2838 Enum: []interface{}{"Always", "IfNotPresent", "Never"}}, 2839 }, 2840 "securityContext": { 2841 SchemaProps: spec.SchemaProps{ 2842 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.", 2843 Ref: ref("k8s.io/api/core/v1.SecurityContext"), 2844 }, 2845 }, 2846 "stdin": { 2847 SchemaProps: spec.SchemaProps{ 2848 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.", 2849 Type: []string{"boolean"}, 2850 Format: "", 2851 }, 2852 }, 2853 "stdinOnce": { 2854 SchemaProps: spec.SchemaProps{ 2855 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", 2856 Type: []string{"boolean"}, 2857 Format: "", 2858 }, 2859 }, 2860 "tty": { 2861 SchemaProps: spec.SchemaProps{ 2862 Description: "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", 2863 Type: []string{"boolean"}, 2864 Format: "", 2865 }, 2866 }, 2867 "targetContainerName": { 2868 SchemaProps: spec.SchemaProps{ 2869 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.", 2870 Type: []string{"string"}, 2871 Format: "", 2872 }, 2873 }, 2874 }, 2875 Required: []string{"name"}, 2876 }, 2877 }, 2878 Dependencies: []string{ 2879 "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, 2880 } 2881 } 2882 2883 func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallback) common.OpenAPIDefinition { 2884 return common.OpenAPIDefinition{ 2885 Schema: spec.Schema{ 2886 SchemaProps: spec.SchemaProps{ 2887 Description: "EphemeralContainerCommon is a copy of all fields in Container to be inlined in EphemeralContainer. This separate type allows easy conversion from EphemeralContainer to Container and allows separate documentation for the fields of EphemeralContainer. When a new field is added to Container it must be added here as well.", 2888 Type: []string{"object"}, 2889 Properties: map[string]spec.Schema{ 2890 "name": { 2891 SchemaProps: spec.SchemaProps{ 2892 Description: "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", 2893 Default: "", 2894 Type: []string{"string"}, 2895 Format: "", 2896 }, 2897 }, 2898 "image": { 2899 SchemaProps: spec.SchemaProps{ 2900 Description: "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", 2901 Type: []string{"string"}, 2902 Format: "", 2903 }, 2904 }, 2905 "command": { 2906 SchemaProps: spec.SchemaProps{ 2907 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", 2908 Type: []string{"array"}, 2909 Items: &spec.SchemaOrArray{ 2910 Schema: &spec.Schema{ 2911 SchemaProps: spec.SchemaProps{ 2912 Default: "", 2913 Type: []string{"string"}, 2914 Format: "", 2915 }, 2916 }, 2917 }, 2918 }, 2919 }, 2920 "args": { 2921 SchemaProps: spec.SchemaProps{ 2922 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", 2923 Type: []string{"array"}, 2924 Items: &spec.SchemaOrArray{ 2925 Schema: &spec.Schema{ 2926 SchemaProps: spec.SchemaProps{ 2927 Default: "", 2928 Type: []string{"string"}, 2929 Format: "", 2930 }, 2931 }, 2932 }, 2933 }, 2934 }, 2935 "workingDir": { 2936 SchemaProps: spec.SchemaProps{ 2937 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.", 2938 Type: []string{"string"}, 2939 Format: "", 2940 }, 2941 }, 2942 "ports": { 2943 VendorExtensible: spec.VendorExtensible{ 2944 Extensions: spec.Extensions{ 2945 "x-kubernetes-list-map-keys": []interface{}{ 2946 "containerPort", 2947 "protocol", 2948 }, 2949 "x-kubernetes-list-type": "map", 2950 "x-kubernetes-patch-merge-key": "containerPort", 2951 "x-kubernetes-patch-strategy": "merge", 2952 }, 2953 }, 2954 SchemaProps: spec.SchemaProps{ 2955 Description: "Ports are not allowed for ephemeral containers.", 2956 Type: []string{"array"}, 2957 Items: &spec.SchemaOrArray{ 2958 Schema: &spec.Schema{ 2959 SchemaProps: spec.SchemaProps{ 2960 Default: map[string]interface{}{}, 2961 Ref: ref("k8s.io/api/core/v1.ContainerPort"), 2962 }, 2963 }, 2964 }, 2965 }, 2966 }, 2967 "envFrom": { 2968 SchemaProps: spec.SchemaProps{ 2969 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.", 2970 Type: []string{"array"}, 2971 Items: &spec.SchemaOrArray{ 2972 Schema: &spec.Schema{ 2973 SchemaProps: spec.SchemaProps{ 2974 Default: map[string]interface{}{}, 2975 Ref: ref("k8s.io/api/core/v1.EnvFromSource"), 2976 }, 2977 }, 2978 }, 2979 }, 2980 }, 2981 "env": { 2982 VendorExtensible: spec.VendorExtensible{ 2983 Extensions: spec.Extensions{ 2984 "x-kubernetes-patch-merge-key": "name", 2985 "x-kubernetes-patch-strategy": "merge", 2986 }, 2987 }, 2988 SchemaProps: spec.SchemaProps{ 2989 Description: "List of environment variables to set in the container. Cannot be updated.", 2990 Type: []string{"array"}, 2991 Items: &spec.SchemaOrArray{ 2992 Schema: &spec.Schema{ 2993 SchemaProps: spec.SchemaProps{ 2994 Default: map[string]interface{}{}, 2995 Ref: ref("k8s.io/api/core/v1.EnvVar"), 2996 }, 2997 }, 2998 }, 2999 }, 3000 }, 3001 "resources": { 3002 SchemaProps: spec.SchemaProps{ 3003 Description: "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.", 3004 Default: map[string]interface{}{}, 3005 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 3006 }, 3007 }, 3008 "volumeMounts": { 3009 VendorExtensible: spec.VendorExtensible{ 3010 Extensions: spec.Extensions{ 3011 "x-kubernetes-patch-merge-key": "mountPath", 3012 "x-kubernetes-patch-strategy": "merge", 3013 }, 3014 }, 3015 SchemaProps: spec.SchemaProps{ 3016 Description: "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", 3017 Type: []string{"array"}, 3018 Items: &spec.SchemaOrArray{ 3019 Schema: &spec.Schema{ 3020 SchemaProps: spec.SchemaProps{ 3021 Default: map[string]interface{}{}, 3022 Ref: ref("k8s.io/api/core/v1.VolumeMount"), 3023 }, 3024 }, 3025 }, 3026 }, 3027 }, 3028 "volumeDevices": { 3029 VendorExtensible: spec.VendorExtensible{ 3030 Extensions: spec.Extensions{ 3031 "x-kubernetes-patch-merge-key": "devicePath", 3032 "x-kubernetes-patch-strategy": "merge", 3033 }, 3034 }, 3035 SchemaProps: spec.SchemaProps{ 3036 Description: "volumeDevices is the list of block devices to be used by the container.", 3037 Type: []string{"array"}, 3038 Items: &spec.SchemaOrArray{ 3039 Schema: &spec.Schema{ 3040 SchemaProps: spec.SchemaProps{ 3041 Default: map[string]interface{}{}, 3042 Ref: ref("k8s.io/api/core/v1.VolumeDevice"), 3043 }, 3044 }, 3045 }, 3046 }, 3047 }, 3048 "livenessProbe": { 3049 SchemaProps: spec.SchemaProps{ 3050 Description: "Probes are not allowed for ephemeral containers.", 3051 Ref: ref("k8s.io/api/core/v1.Probe"), 3052 }, 3053 }, 3054 "readinessProbe": { 3055 SchemaProps: spec.SchemaProps{ 3056 Description: "Probes are not allowed for ephemeral containers.", 3057 Ref: ref("k8s.io/api/core/v1.Probe"), 3058 }, 3059 }, 3060 "startupProbe": { 3061 SchemaProps: spec.SchemaProps{ 3062 Description: "Probes are not allowed for ephemeral containers.", 3063 Ref: ref("k8s.io/api/core/v1.Probe"), 3064 }, 3065 }, 3066 "lifecycle": { 3067 SchemaProps: spec.SchemaProps{ 3068 Description: "Lifecycle is not allowed for ephemeral containers.", 3069 Ref: ref("k8s.io/api/core/v1.Lifecycle"), 3070 }, 3071 }, 3072 "terminationMessagePath": { 3073 SchemaProps: spec.SchemaProps{ 3074 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.", 3075 Type: []string{"string"}, 3076 Format: "", 3077 }, 3078 }, 3079 "terminationMessagePolicy": { 3080 SchemaProps: spec.SchemaProps{ 3081 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.\n\nPossible enum values:\n - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents.\n - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits.", 3082 Type: []string{"string"}, 3083 Format: "", 3084 Enum: []interface{}{"FallbackToLogsOnError", "File"}}, 3085 }, 3086 "imagePullPolicy": { 3087 SchemaProps: spec.SchemaProps{ 3088 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\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", 3089 Type: []string{"string"}, 3090 Format: "", 3091 Enum: []interface{}{"Always", "IfNotPresent", "Never"}}, 3092 }, 3093 "securityContext": { 3094 SchemaProps: spec.SchemaProps{ 3095 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.", 3096 Ref: ref("k8s.io/api/core/v1.SecurityContext"), 3097 }, 3098 }, 3099 "stdin": { 3100 SchemaProps: spec.SchemaProps{ 3101 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.", 3102 Type: []string{"boolean"}, 3103 Format: "", 3104 }, 3105 }, 3106 "stdinOnce": { 3107 SchemaProps: spec.SchemaProps{ 3108 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", 3109 Type: []string{"boolean"}, 3110 Format: "", 3111 }, 3112 }, 3113 "tty": { 3114 SchemaProps: spec.SchemaProps{ 3115 Description: "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", 3116 Type: []string{"boolean"}, 3117 Format: "", 3118 }, 3119 }, 3120 }, 3121 Required: []string{"name"}, 3122 }, 3123 }, 3124 Dependencies: []string{ 3125 "k8s.io/api/core/v1.ContainerPort", "k8s.io/api/core/v1.EnvFromSource", "k8s.io/api/core/v1.EnvVar", "k8s.io/api/core/v1.Lifecycle", "k8s.io/api/core/v1.Probe", "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.SecurityContext", "k8s.io/api/core/v1.VolumeDevice", "k8s.io/api/core/v1.VolumeMount"}, 3126 } 3127 } 3128 3129 func schema_k8sio_api_core_v1_EphemeralVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3130 return common.OpenAPIDefinition{ 3131 Schema: spec.Schema{ 3132 SchemaProps: spec.SchemaProps{ 3133 Description: "Represents an ephemeral volume that is handled by a normal storage driver.", 3134 Type: []string{"object"}, 3135 Properties: map[string]spec.Schema{ 3136 "volumeClaimTemplate": { 3137 SchemaProps: spec.SchemaProps{ 3138 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 `<pod name>-<volume name>` where `<volume name>` 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.", 3139 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimTemplate"), 3140 }, 3141 }, 3142 }, 3143 }, 3144 }, 3145 Dependencies: []string{ 3146 "k8s.io/api/core/v1.PersistentVolumeClaimTemplate"}, 3147 } 3148 } 3149 3150 func schema_k8sio_api_core_v1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { 3151 return common.OpenAPIDefinition{ 3152 Schema: spec.Schema{ 3153 SchemaProps: spec.SchemaProps{ 3154 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.", 3155 Type: []string{"object"}, 3156 Properties: map[string]spec.Schema{ 3157 "kind": { 3158 SchemaProps: spec.SchemaProps{ 3159 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3160 Type: []string{"string"}, 3161 Format: "", 3162 }, 3163 }, 3164 "apiVersion": { 3165 SchemaProps: spec.SchemaProps{ 3166 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3167 Type: []string{"string"}, 3168 Format: "", 3169 }, 3170 }, 3171 "metadata": { 3172 SchemaProps: spec.SchemaProps{ 3173 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 3174 Default: map[string]interface{}{}, 3175 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3176 }, 3177 }, 3178 "involvedObject": { 3179 SchemaProps: spec.SchemaProps{ 3180 Description: "The object that this event is about.", 3181 Default: map[string]interface{}{}, 3182 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 3183 }, 3184 }, 3185 "reason": { 3186 SchemaProps: spec.SchemaProps{ 3187 Description: "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", 3188 Type: []string{"string"}, 3189 Format: "", 3190 }, 3191 }, 3192 "message": { 3193 SchemaProps: spec.SchemaProps{ 3194 Description: "A human-readable description of the status of this operation.", 3195 Type: []string{"string"}, 3196 Format: "", 3197 }, 3198 }, 3199 "source": { 3200 SchemaProps: spec.SchemaProps{ 3201 Description: "The component reporting this event. Should be a short machine understandable string.", 3202 Default: map[string]interface{}{}, 3203 Ref: ref("k8s.io/api/core/v1.EventSource"), 3204 }, 3205 }, 3206 "firstTimestamp": { 3207 SchemaProps: spec.SchemaProps{ 3208 Description: "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", 3209 Default: map[string]interface{}{}, 3210 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 3211 }, 3212 }, 3213 "lastTimestamp": { 3214 SchemaProps: spec.SchemaProps{ 3215 Description: "The time at which the most recent occurrence of this event was recorded.", 3216 Default: map[string]interface{}{}, 3217 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 3218 }, 3219 }, 3220 "count": { 3221 SchemaProps: spec.SchemaProps{ 3222 Description: "The number of times this event has occurred.", 3223 Type: []string{"integer"}, 3224 Format: "int32", 3225 }, 3226 }, 3227 "type": { 3228 SchemaProps: spec.SchemaProps{ 3229 Description: "Type of this event (Normal, Warning), new types could be added in the future", 3230 Type: []string{"string"}, 3231 Format: "", 3232 }, 3233 }, 3234 "eventTime": { 3235 SchemaProps: spec.SchemaProps{ 3236 Description: "Time when this Event was first observed.", 3237 Default: map[string]interface{}{}, 3238 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), 3239 }, 3240 }, 3241 "series": { 3242 SchemaProps: spec.SchemaProps{ 3243 Description: "Data about the Event series this event represents or nil if it's a singleton Event.", 3244 Ref: ref("k8s.io/api/core/v1.EventSeries"), 3245 }, 3246 }, 3247 "action": { 3248 SchemaProps: spec.SchemaProps{ 3249 Description: "What action was taken/failed regarding to the Regarding object.", 3250 Type: []string{"string"}, 3251 Format: "", 3252 }, 3253 }, 3254 "related": { 3255 SchemaProps: spec.SchemaProps{ 3256 Description: "Optional secondary object for more complex actions.", 3257 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 3258 }, 3259 }, 3260 "reportingComponent": { 3261 SchemaProps: spec.SchemaProps{ 3262 Description: "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", 3263 Default: "", 3264 Type: []string{"string"}, 3265 Format: "", 3266 }, 3267 }, 3268 "reportingInstance": { 3269 SchemaProps: spec.SchemaProps{ 3270 Description: "ID of the controller instance, e.g. `kubelet-xyzf`.", 3271 Default: "", 3272 Type: []string{"string"}, 3273 Format: "", 3274 }, 3275 }, 3276 }, 3277 Required: []string{"metadata", "involvedObject"}, 3278 }, 3279 }, 3280 Dependencies: []string{ 3281 "k8s.io/api/core/v1.EventSeries", "k8s.io/api/core/v1.EventSource", "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 3282 } 3283 } 3284 3285 func schema_k8sio_api_core_v1_EventList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3286 return common.OpenAPIDefinition{ 3287 Schema: spec.Schema{ 3288 SchemaProps: spec.SchemaProps{ 3289 Description: "EventList is a list of events.", 3290 Type: []string{"object"}, 3291 Properties: map[string]spec.Schema{ 3292 "kind": { 3293 SchemaProps: spec.SchemaProps{ 3294 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3295 Type: []string{"string"}, 3296 Format: "", 3297 }, 3298 }, 3299 "apiVersion": { 3300 SchemaProps: spec.SchemaProps{ 3301 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3302 Type: []string{"string"}, 3303 Format: "", 3304 }, 3305 }, 3306 "metadata": { 3307 SchemaProps: spec.SchemaProps{ 3308 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3309 Default: map[string]interface{}{}, 3310 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3311 }, 3312 }, 3313 "items": { 3314 SchemaProps: spec.SchemaProps{ 3315 Description: "List of events", 3316 Type: []string{"array"}, 3317 Items: &spec.SchemaOrArray{ 3318 Schema: &spec.Schema{ 3319 SchemaProps: spec.SchemaProps{ 3320 Default: map[string]interface{}{}, 3321 Ref: ref("k8s.io/api/core/v1.Event"), 3322 }, 3323 }, 3324 }, 3325 }, 3326 }, 3327 }, 3328 Required: []string{"items"}, 3329 }, 3330 }, 3331 Dependencies: []string{ 3332 "k8s.io/api/core/v1.Event", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 3333 } 3334 } 3335 3336 func schema_k8sio_api_core_v1_EventSeries(ref common.ReferenceCallback) common.OpenAPIDefinition { 3337 return common.OpenAPIDefinition{ 3338 Schema: spec.Schema{ 3339 SchemaProps: spec.SchemaProps{ 3340 Description: "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", 3341 Type: []string{"object"}, 3342 Properties: map[string]spec.Schema{ 3343 "count": { 3344 SchemaProps: spec.SchemaProps{ 3345 Description: "Number of occurrences in this series up to the last heartbeat time", 3346 Type: []string{"integer"}, 3347 Format: "int32", 3348 }, 3349 }, 3350 "lastObservedTime": { 3351 SchemaProps: spec.SchemaProps{ 3352 Description: "Time of the last occurrence observed", 3353 Default: map[string]interface{}{}, 3354 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), 3355 }, 3356 }, 3357 }, 3358 }, 3359 }, 3360 Dependencies: []string{ 3361 "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, 3362 } 3363 } 3364 3365 func schema_k8sio_api_core_v1_EventSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3366 return common.OpenAPIDefinition{ 3367 Schema: spec.Schema{ 3368 SchemaProps: spec.SchemaProps{ 3369 Description: "EventSource contains information for an event.", 3370 Type: []string{"object"}, 3371 Properties: map[string]spec.Schema{ 3372 "component": { 3373 SchemaProps: spec.SchemaProps{ 3374 Description: "Component from which the event is generated.", 3375 Type: []string{"string"}, 3376 Format: "", 3377 }, 3378 }, 3379 "host": { 3380 SchemaProps: spec.SchemaProps{ 3381 Description: "Node name on which the event is generated.", 3382 Type: []string{"string"}, 3383 Format: "", 3384 }, 3385 }, 3386 }, 3387 }, 3388 }, 3389 } 3390 } 3391 3392 func schema_k8sio_api_core_v1_ExecAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 3393 return common.OpenAPIDefinition{ 3394 Schema: spec.Schema{ 3395 SchemaProps: spec.SchemaProps{ 3396 Description: "ExecAction describes a \"run in container\" action.", 3397 Type: []string{"object"}, 3398 Properties: map[string]spec.Schema{ 3399 "command": { 3400 SchemaProps: spec.SchemaProps{ 3401 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.", 3402 Type: []string{"array"}, 3403 Items: &spec.SchemaOrArray{ 3404 Schema: &spec.Schema{ 3405 SchemaProps: spec.SchemaProps{ 3406 Default: "", 3407 Type: []string{"string"}, 3408 Format: "", 3409 }, 3410 }, 3411 }, 3412 }, 3413 }, 3414 }, 3415 }, 3416 }, 3417 } 3418 } 3419 3420 func schema_k8sio_api_core_v1_FCVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3421 return common.OpenAPIDefinition{ 3422 Schema: spec.Schema{ 3423 SchemaProps: spec.SchemaProps{ 3424 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.", 3425 Type: []string{"object"}, 3426 Properties: map[string]spec.Schema{ 3427 "targetWWNs": { 3428 SchemaProps: spec.SchemaProps{ 3429 Description: "targetWWNs is Optional: FC target worldwide names (WWNs)", 3430 Type: []string{"array"}, 3431 Items: &spec.SchemaOrArray{ 3432 Schema: &spec.Schema{ 3433 SchemaProps: spec.SchemaProps{ 3434 Default: "", 3435 Type: []string{"string"}, 3436 Format: "", 3437 }, 3438 }, 3439 }, 3440 }, 3441 }, 3442 "lun": { 3443 SchemaProps: spec.SchemaProps{ 3444 Description: "lun is Optional: FC target lun number", 3445 Type: []string{"integer"}, 3446 Format: "int32", 3447 }, 3448 }, 3449 "fsType": { 3450 SchemaProps: spec.SchemaProps{ 3451 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.", 3452 Type: []string{"string"}, 3453 Format: "", 3454 }, 3455 }, 3456 "readOnly": { 3457 SchemaProps: spec.SchemaProps{ 3458 Description: "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 3459 Type: []string{"boolean"}, 3460 Format: "", 3461 }, 3462 }, 3463 "wwids": { 3464 SchemaProps: spec.SchemaProps{ 3465 Description: "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", 3466 Type: []string{"array"}, 3467 Items: &spec.SchemaOrArray{ 3468 Schema: &spec.Schema{ 3469 SchemaProps: spec.SchemaProps{ 3470 Default: "", 3471 Type: []string{"string"}, 3472 Format: "", 3473 }, 3474 }, 3475 }, 3476 }, 3477 }, 3478 }, 3479 }, 3480 }, 3481 } 3482 } 3483 3484 func schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3485 return common.OpenAPIDefinition{ 3486 Schema: spec.Schema{ 3487 SchemaProps: spec.SchemaProps{ 3488 Description: "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", 3489 Type: []string{"object"}, 3490 Properties: map[string]spec.Schema{ 3491 "driver": { 3492 SchemaProps: spec.SchemaProps{ 3493 Description: "driver is the name of the driver to use for this volume.", 3494 Default: "", 3495 Type: []string{"string"}, 3496 Format: "", 3497 }, 3498 }, 3499 "fsType": { 3500 SchemaProps: spec.SchemaProps{ 3501 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.", 3502 Type: []string{"string"}, 3503 Format: "", 3504 }, 3505 }, 3506 "secretRef": { 3507 SchemaProps: spec.SchemaProps{ 3508 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.", 3509 Ref: ref("k8s.io/api/core/v1.SecretReference"), 3510 }, 3511 }, 3512 "readOnly": { 3513 SchemaProps: spec.SchemaProps{ 3514 Description: "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 3515 Type: []string{"boolean"}, 3516 Format: "", 3517 }, 3518 }, 3519 "options": { 3520 SchemaProps: spec.SchemaProps{ 3521 Description: "options is Optional: this field holds extra command options if any.", 3522 Type: []string{"object"}, 3523 AdditionalProperties: &spec.SchemaOrBool{ 3524 Allows: true, 3525 Schema: &spec.Schema{ 3526 SchemaProps: spec.SchemaProps{ 3527 Default: "", 3528 Type: []string{"string"}, 3529 Format: "", 3530 }, 3531 }, 3532 }, 3533 }, 3534 }, 3535 }, 3536 Required: []string{"driver"}, 3537 }, 3538 }, 3539 Dependencies: []string{ 3540 "k8s.io/api/core/v1.SecretReference"}, 3541 } 3542 } 3543 3544 func schema_k8sio_api_core_v1_FlexVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3545 return common.OpenAPIDefinition{ 3546 Schema: spec.Schema{ 3547 SchemaProps: spec.SchemaProps{ 3548 Description: "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 3549 Type: []string{"object"}, 3550 Properties: map[string]spec.Schema{ 3551 "driver": { 3552 SchemaProps: spec.SchemaProps{ 3553 Description: "driver is the name of the driver to use for this volume.", 3554 Default: "", 3555 Type: []string{"string"}, 3556 Format: "", 3557 }, 3558 }, 3559 "fsType": { 3560 SchemaProps: spec.SchemaProps{ 3561 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.", 3562 Type: []string{"string"}, 3563 Format: "", 3564 }, 3565 }, 3566 "secretRef": { 3567 SchemaProps: spec.SchemaProps{ 3568 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.", 3569 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 3570 }, 3571 }, 3572 "readOnly": { 3573 SchemaProps: spec.SchemaProps{ 3574 Description: "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 3575 Type: []string{"boolean"}, 3576 Format: "", 3577 }, 3578 }, 3579 "options": { 3580 SchemaProps: spec.SchemaProps{ 3581 Description: "options is Optional: this field holds extra command options if any.", 3582 Type: []string{"object"}, 3583 AdditionalProperties: &spec.SchemaOrBool{ 3584 Allows: true, 3585 Schema: &spec.Schema{ 3586 SchemaProps: spec.SchemaProps{ 3587 Default: "", 3588 Type: []string{"string"}, 3589 Format: "", 3590 }, 3591 }, 3592 }, 3593 }, 3594 }, 3595 }, 3596 Required: []string{"driver"}, 3597 }, 3598 }, 3599 Dependencies: []string{ 3600 "k8s.io/api/core/v1.LocalObjectReference"}, 3601 } 3602 } 3603 3604 func schema_k8sio_api_core_v1_FlockerVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3605 return common.OpenAPIDefinition{ 3606 Schema: spec.Schema{ 3607 SchemaProps: spec.SchemaProps{ 3608 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.", 3609 Type: []string{"object"}, 3610 Properties: map[string]spec.Schema{ 3611 "datasetName": { 3612 SchemaProps: spec.SchemaProps{ 3613 Description: "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", 3614 Type: []string{"string"}, 3615 Format: "", 3616 }, 3617 }, 3618 "datasetUUID": { 3619 SchemaProps: spec.SchemaProps{ 3620 Description: "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", 3621 Type: []string{"string"}, 3622 Format: "", 3623 }, 3624 }, 3625 }, 3626 }, 3627 }, 3628 } 3629 } 3630 3631 func schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3632 return common.OpenAPIDefinition{ 3633 Schema: spec.Schema{ 3634 SchemaProps: spec.SchemaProps{ 3635 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.", 3636 Type: []string{"object"}, 3637 Properties: map[string]spec.Schema{ 3638 "pdName": { 3639 SchemaProps: spec.SchemaProps{ 3640 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", 3641 Default: "", 3642 Type: []string{"string"}, 3643 Format: "", 3644 }, 3645 }, 3646 "fsType": { 3647 SchemaProps: spec.SchemaProps{ 3648 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", 3649 Type: []string{"string"}, 3650 Format: "", 3651 }, 3652 }, 3653 "partition": { 3654 SchemaProps: spec.SchemaProps{ 3655 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", 3656 Type: []string{"integer"}, 3657 Format: "int32", 3658 }, 3659 }, 3660 "readOnly": { 3661 SchemaProps: spec.SchemaProps{ 3662 Description: "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", 3663 Type: []string{"boolean"}, 3664 Format: "", 3665 }, 3666 }, 3667 }, 3668 Required: []string{"pdName"}, 3669 }, 3670 }, 3671 } 3672 } 3673 3674 func schema_k8sio_api_core_v1_GRPCAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 3675 return common.OpenAPIDefinition{ 3676 Schema: spec.Schema{ 3677 SchemaProps: spec.SchemaProps{ 3678 Type: []string{"object"}, 3679 Properties: map[string]spec.Schema{ 3680 "port": { 3681 SchemaProps: spec.SchemaProps{ 3682 Description: "Port number of the gRPC service. Number must be in the range 1 to 65535.", 3683 Default: 0, 3684 Type: []string{"integer"}, 3685 Format: "int32", 3686 }, 3687 }, 3688 "service": { 3689 SchemaProps: spec.SchemaProps{ 3690 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.", 3691 Default: "", 3692 Type: []string{"string"}, 3693 Format: "", 3694 }, 3695 }, 3696 }, 3697 Required: []string{"port"}, 3698 }, 3699 }, 3700 } 3701 } 3702 3703 func schema_k8sio_api_core_v1_GitRepoVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3704 return common.OpenAPIDefinition{ 3705 Schema: spec.Schema{ 3706 SchemaProps: spec.SchemaProps{ 3707 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.", 3708 Type: []string{"object"}, 3709 Properties: map[string]spec.Schema{ 3710 "repository": { 3711 SchemaProps: spec.SchemaProps{ 3712 Description: "repository is the URL", 3713 Default: "", 3714 Type: []string{"string"}, 3715 Format: "", 3716 }, 3717 }, 3718 "revision": { 3719 SchemaProps: spec.SchemaProps{ 3720 Description: "revision is the commit hash for the specified revision.", 3721 Type: []string{"string"}, 3722 Format: "", 3723 }, 3724 }, 3725 "directory": { 3726 SchemaProps: spec.SchemaProps{ 3727 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.", 3728 Type: []string{"string"}, 3729 Format: "", 3730 }, 3731 }, 3732 }, 3733 Required: []string{"repository"}, 3734 }, 3735 }, 3736 } 3737 } 3738 3739 func schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3740 return common.OpenAPIDefinition{ 3741 Schema: spec.Schema{ 3742 SchemaProps: spec.SchemaProps{ 3743 Description: "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", 3744 Type: []string{"object"}, 3745 Properties: map[string]spec.Schema{ 3746 "endpoints": { 3747 SchemaProps: spec.SchemaProps{ 3748 Description: "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 3749 Default: "", 3750 Type: []string{"string"}, 3751 Format: "", 3752 }, 3753 }, 3754 "path": { 3755 SchemaProps: spec.SchemaProps{ 3756 Description: "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 3757 Default: "", 3758 Type: []string{"string"}, 3759 Format: "", 3760 }, 3761 }, 3762 "readOnly": { 3763 SchemaProps: spec.SchemaProps{ 3764 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", 3765 Type: []string{"boolean"}, 3766 Format: "", 3767 }, 3768 }, 3769 "endpointsNamespace": { 3770 SchemaProps: spec.SchemaProps{ 3771 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", 3772 Type: []string{"string"}, 3773 Format: "", 3774 }, 3775 }, 3776 }, 3777 Required: []string{"endpoints", "path"}, 3778 }, 3779 }, 3780 } 3781 } 3782 3783 func schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3784 return common.OpenAPIDefinition{ 3785 Schema: spec.Schema{ 3786 SchemaProps: spec.SchemaProps{ 3787 Description: "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", 3788 Type: []string{"object"}, 3789 Properties: map[string]spec.Schema{ 3790 "endpoints": { 3791 SchemaProps: spec.SchemaProps{ 3792 Description: "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 3793 Default: "", 3794 Type: []string{"string"}, 3795 Format: "", 3796 }, 3797 }, 3798 "path": { 3799 SchemaProps: spec.SchemaProps{ 3800 Description: "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 3801 Default: "", 3802 Type: []string{"string"}, 3803 Format: "", 3804 }, 3805 }, 3806 "readOnly": { 3807 SchemaProps: spec.SchemaProps{ 3808 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", 3809 Type: []string{"boolean"}, 3810 Format: "", 3811 }, 3812 }, 3813 }, 3814 Required: []string{"endpoints", "path"}, 3815 }, 3816 }, 3817 } 3818 } 3819 3820 func schema_k8sio_api_core_v1_HTTPGetAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 3821 return common.OpenAPIDefinition{ 3822 Schema: spec.Schema{ 3823 SchemaProps: spec.SchemaProps{ 3824 Description: "HTTPGetAction describes an action based on HTTP Get requests.", 3825 Type: []string{"object"}, 3826 Properties: map[string]spec.Schema{ 3827 "path": { 3828 SchemaProps: spec.SchemaProps{ 3829 Description: "Path to access on the HTTP server.", 3830 Type: []string{"string"}, 3831 Format: "", 3832 }, 3833 }, 3834 "port": { 3835 SchemaProps: spec.SchemaProps{ 3836 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.", 3837 Default: map[string]interface{}{}, 3838 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 3839 }, 3840 }, 3841 "host": { 3842 SchemaProps: spec.SchemaProps{ 3843 Description: "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", 3844 Type: []string{"string"}, 3845 Format: "", 3846 }, 3847 }, 3848 "scheme": { 3849 SchemaProps: spec.SchemaProps{ 3850 Description: "Scheme to use for connecting to the host. Defaults to HTTP.\n\nPossible enum values:\n - `\"HTTP\"` means that the scheme used will be http://\n - `\"HTTPS\"` means that the scheme used will be https://", 3851 Type: []string{"string"}, 3852 Format: "", 3853 Enum: []interface{}{"HTTP", "HTTPS"}}, 3854 }, 3855 "httpHeaders": { 3856 SchemaProps: spec.SchemaProps{ 3857 Description: "Custom headers to set in the request. HTTP allows repeated headers.", 3858 Type: []string{"array"}, 3859 Items: &spec.SchemaOrArray{ 3860 Schema: &spec.Schema{ 3861 SchemaProps: spec.SchemaProps{ 3862 Default: map[string]interface{}{}, 3863 Ref: ref("k8s.io/api/core/v1.HTTPHeader"), 3864 }, 3865 }, 3866 }, 3867 }, 3868 }, 3869 }, 3870 Required: []string{"port"}, 3871 }, 3872 }, 3873 Dependencies: []string{ 3874 "k8s.io/api/core/v1.HTTPHeader", "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 3875 } 3876 } 3877 3878 func schema_k8sio_api_core_v1_HTTPHeader(ref common.ReferenceCallback) common.OpenAPIDefinition { 3879 return common.OpenAPIDefinition{ 3880 Schema: spec.Schema{ 3881 SchemaProps: spec.SchemaProps{ 3882 Description: "HTTPHeader describes a custom header to be used in HTTP probes", 3883 Type: []string{"object"}, 3884 Properties: map[string]spec.Schema{ 3885 "name": { 3886 SchemaProps: spec.SchemaProps{ 3887 Description: "The header field name", 3888 Default: "", 3889 Type: []string{"string"}, 3890 Format: "", 3891 }, 3892 }, 3893 "value": { 3894 SchemaProps: spec.SchemaProps{ 3895 Description: "The header field value", 3896 Default: "", 3897 Type: []string{"string"}, 3898 Format: "", 3899 }, 3900 }, 3901 }, 3902 Required: []string{"name", "value"}, 3903 }, 3904 }, 3905 } 3906 } 3907 3908 func schema_k8sio_api_core_v1_HostAlias(ref common.ReferenceCallback) common.OpenAPIDefinition { 3909 return common.OpenAPIDefinition{ 3910 Schema: spec.Schema{ 3911 SchemaProps: spec.SchemaProps{ 3912 Description: "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", 3913 Type: []string{"object"}, 3914 Properties: map[string]spec.Schema{ 3915 "ip": { 3916 SchemaProps: spec.SchemaProps{ 3917 Description: "IP address of the host file entry.", 3918 Type: []string{"string"}, 3919 Format: "", 3920 }, 3921 }, 3922 "hostnames": { 3923 SchemaProps: spec.SchemaProps{ 3924 Description: "Hostnames for the above IP address.", 3925 Type: []string{"array"}, 3926 Items: &spec.SchemaOrArray{ 3927 Schema: &spec.Schema{ 3928 SchemaProps: spec.SchemaProps{ 3929 Default: "", 3930 Type: []string{"string"}, 3931 Format: "", 3932 }, 3933 }, 3934 }, 3935 }, 3936 }, 3937 }, 3938 }, 3939 }, 3940 } 3941 } 3942 3943 func schema_k8sio_api_core_v1_HostPathVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3944 return common.OpenAPIDefinition{ 3945 Schema: spec.Schema{ 3946 SchemaProps: spec.SchemaProps{ 3947 Description: "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", 3948 Type: []string{"object"}, 3949 Properties: map[string]spec.Schema{ 3950 "path": { 3951 SchemaProps: spec.SchemaProps{ 3952 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", 3953 Default: "", 3954 Type: []string{"string"}, 3955 Format: "", 3956 }, 3957 }, 3958 "type": { 3959 SchemaProps: spec.SchemaProps{ 3960 Description: "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", 3961 Type: []string{"string"}, 3962 Format: "", 3963 }, 3964 }, 3965 }, 3966 Required: []string{"path"}, 3967 }, 3968 }, 3969 } 3970 } 3971 3972 func schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3973 return common.OpenAPIDefinition{ 3974 Schema: spec.Schema{ 3975 SchemaProps: spec.SchemaProps{ 3976 Description: "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", 3977 Type: []string{"object"}, 3978 Properties: map[string]spec.Schema{ 3979 "targetPortal": { 3980 SchemaProps: spec.SchemaProps{ 3981 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).", 3982 Default: "", 3983 Type: []string{"string"}, 3984 Format: "", 3985 }, 3986 }, 3987 "iqn": { 3988 SchemaProps: spec.SchemaProps{ 3989 Description: "iqn is Target iSCSI Qualified Name.", 3990 Default: "", 3991 Type: []string{"string"}, 3992 Format: "", 3993 }, 3994 }, 3995 "lun": { 3996 SchemaProps: spec.SchemaProps{ 3997 Description: "lun is iSCSI Target Lun number.", 3998 Default: 0, 3999 Type: []string{"integer"}, 4000 Format: "int32", 4001 }, 4002 }, 4003 "iscsiInterface": { 4004 SchemaProps: spec.SchemaProps{ 4005 Description: "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", 4006 Type: []string{"string"}, 4007 Format: "", 4008 }, 4009 }, 4010 "fsType": { 4011 SchemaProps: spec.SchemaProps{ 4012 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", 4013 Type: []string{"string"}, 4014 Format: "", 4015 }, 4016 }, 4017 "readOnly": { 4018 SchemaProps: spec.SchemaProps{ 4019 Description: "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", 4020 Type: []string{"boolean"}, 4021 Format: "", 4022 }, 4023 }, 4024 "portals": { 4025 SchemaProps: spec.SchemaProps{ 4026 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).", 4027 Type: []string{"array"}, 4028 Items: &spec.SchemaOrArray{ 4029 Schema: &spec.Schema{ 4030 SchemaProps: spec.SchemaProps{ 4031 Default: "", 4032 Type: []string{"string"}, 4033 Format: "", 4034 }, 4035 }, 4036 }, 4037 }, 4038 }, 4039 "chapAuthDiscovery": { 4040 SchemaProps: spec.SchemaProps{ 4041 Description: "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", 4042 Type: []string{"boolean"}, 4043 Format: "", 4044 }, 4045 }, 4046 "chapAuthSession": { 4047 SchemaProps: spec.SchemaProps{ 4048 Description: "chapAuthSession defines whether support iSCSI Session CHAP authentication", 4049 Type: []string{"boolean"}, 4050 Format: "", 4051 }, 4052 }, 4053 "secretRef": { 4054 SchemaProps: spec.SchemaProps{ 4055 Description: "secretRef is the CHAP Secret for iSCSI target and initiator authentication", 4056 Ref: ref("k8s.io/api/core/v1.SecretReference"), 4057 }, 4058 }, 4059 "initiatorName": { 4060 SchemaProps: spec.SchemaProps{ 4061 Description: "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.", 4062 Type: []string{"string"}, 4063 Format: "", 4064 }, 4065 }, 4066 }, 4067 Required: []string{"targetPortal", "iqn", "lun"}, 4068 }, 4069 }, 4070 Dependencies: []string{ 4071 "k8s.io/api/core/v1.SecretReference"}, 4072 } 4073 } 4074 4075 func schema_k8sio_api_core_v1_ISCSIVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 4076 return common.OpenAPIDefinition{ 4077 Schema: spec.Schema{ 4078 SchemaProps: spec.SchemaProps{ 4079 Description: "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", 4080 Type: []string{"object"}, 4081 Properties: map[string]spec.Schema{ 4082 "targetPortal": { 4083 SchemaProps: spec.SchemaProps{ 4084 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).", 4085 Default: "", 4086 Type: []string{"string"}, 4087 Format: "", 4088 }, 4089 }, 4090 "iqn": { 4091 SchemaProps: spec.SchemaProps{ 4092 Description: "iqn is the target iSCSI Qualified Name.", 4093 Default: "", 4094 Type: []string{"string"}, 4095 Format: "", 4096 }, 4097 }, 4098 "lun": { 4099 SchemaProps: spec.SchemaProps{ 4100 Description: "lun represents iSCSI Target Lun number.", 4101 Default: 0, 4102 Type: []string{"integer"}, 4103 Format: "int32", 4104 }, 4105 }, 4106 "iscsiInterface": { 4107 SchemaProps: spec.SchemaProps{ 4108 Description: "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", 4109 Type: []string{"string"}, 4110 Format: "", 4111 }, 4112 }, 4113 "fsType": { 4114 SchemaProps: spec.SchemaProps{ 4115 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", 4116 Type: []string{"string"}, 4117 Format: "", 4118 }, 4119 }, 4120 "readOnly": { 4121 SchemaProps: spec.SchemaProps{ 4122 Description: "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", 4123 Type: []string{"boolean"}, 4124 Format: "", 4125 }, 4126 }, 4127 "portals": { 4128 SchemaProps: spec.SchemaProps{ 4129 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).", 4130 Type: []string{"array"}, 4131 Items: &spec.SchemaOrArray{ 4132 Schema: &spec.Schema{ 4133 SchemaProps: spec.SchemaProps{ 4134 Default: "", 4135 Type: []string{"string"}, 4136 Format: "", 4137 }, 4138 }, 4139 }, 4140 }, 4141 }, 4142 "chapAuthDiscovery": { 4143 SchemaProps: spec.SchemaProps{ 4144 Description: "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", 4145 Type: []string{"boolean"}, 4146 Format: "", 4147 }, 4148 }, 4149 "chapAuthSession": { 4150 SchemaProps: spec.SchemaProps{ 4151 Description: "chapAuthSession defines whether support iSCSI Session CHAP authentication", 4152 Type: []string{"boolean"}, 4153 Format: "", 4154 }, 4155 }, 4156 "secretRef": { 4157 SchemaProps: spec.SchemaProps{ 4158 Description: "secretRef is the CHAP Secret for iSCSI target and initiator authentication", 4159 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 4160 }, 4161 }, 4162 "initiatorName": { 4163 SchemaProps: spec.SchemaProps{ 4164 Description: "initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.", 4165 Type: []string{"string"}, 4166 Format: "", 4167 }, 4168 }, 4169 }, 4170 Required: []string{"targetPortal", "iqn", "lun"}, 4171 }, 4172 }, 4173 Dependencies: []string{ 4174 "k8s.io/api/core/v1.LocalObjectReference"}, 4175 } 4176 } 4177 4178 func schema_k8sio_api_core_v1_KeyToPath(ref common.ReferenceCallback) common.OpenAPIDefinition { 4179 return common.OpenAPIDefinition{ 4180 Schema: spec.Schema{ 4181 SchemaProps: spec.SchemaProps{ 4182 Description: "Maps a string key to a path within a volume.", 4183 Type: []string{"object"}, 4184 Properties: map[string]spec.Schema{ 4185 "key": { 4186 SchemaProps: spec.SchemaProps{ 4187 Description: "key is the key to project.", 4188 Default: "", 4189 Type: []string{"string"}, 4190 Format: "", 4191 }, 4192 }, 4193 "path": { 4194 SchemaProps: spec.SchemaProps{ 4195 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 '..'.", 4196 Default: "", 4197 Type: []string{"string"}, 4198 Format: "", 4199 }, 4200 }, 4201 "mode": { 4202 SchemaProps: spec.SchemaProps{ 4203 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.", 4204 Type: []string{"integer"}, 4205 Format: "int32", 4206 }, 4207 }, 4208 }, 4209 Required: []string{"key", "path"}, 4210 }, 4211 }, 4212 } 4213 } 4214 4215 func schema_k8sio_api_core_v1_Lifecycle(ref common.ReferenceCallback) common.OpenAPIDefinition { 4216 return common.OpenAPIDefinition{ 4217 Schema: spec.Schema{ 4218 SchemaProps: spec.SchemaProps{ 4219 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.", 4220 Type: []string{"object"}, 4221 Properties: map[string]spec.Schema{ 4222 "postStart": { 4223 SchemaProps: spec.SchemaProps{ 4224 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", 4225 Ref: ref("k8s.io/api/core/v1.LifecycleHandler"), 4226 }, 4227 }, 4228 "preStop": { 4229 SchemaProps: spec.SchemaProps{ 4230 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", 4231 Ref: ref("k8s.io/api/core/v1.LifecycleHandler"), 4232 }, 4233 }, 4234 }, 4235 }, 4236 }, 4237 Dependencies: []string{ 4238 "k8s.io/api/core/v1.LifecycleHandler"}, 4239 } 4240 } 4241 4242 func schema_k8sio_api_core_v1_LifecycleHandler(ref common.ReferenceCallback) common.OpenAPIDefinition { 4243 return common.OpenAPIDefinition{ 4244 Schema: spec.Schema{ 4245 SchemaProps: spec.SchemaProps{ 4246 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.", 4247 Type: []string{"object"}, 4248 Properties: map[string]spec.Schema{ 4249 "exec": { 4250 SchemaProps: spec.SchemaProps{ 4251 Description: "Exec specifies the action to take.", 4252 Ref: ref("k8s.io/api/core/v1.ExecAction"), 4253 }, 4254 }, 4255 "httpGet": { 4256 SchemaProps: spec.SchemaProps{ 4257 Description: "HTTPGet specifies the http request to perform.", 4258 Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), 4259 }, 4260 }, 4261 "tcpSocket": { 4262 SchemaProps: spec.SchemaProps{ 4263 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.", 4264 Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), 4265 }, 4266 }, 4267 }, 4268 }, 4269 }, 4270 Dependencies: []string{ 4271 "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, 4272 } 4273 } 4274 4275 func schema_k8sio_api_core_v1_LimitRange(ref common.ReferenceCallback) common.OpenAPIDefinition { 4276 return common.OpenAPIDefinition{ 4277 Schema: spec.Schema{ 4278 SchemaProps: spec.SchemaProps{ 4279 Description: "LimitRange sets resource usage limits for each kind of resource in a Namespace.", 4280 Type: []string{"object"}, 4281 Properties: map[string]spec.Schema{ 4282 "kind": { 4283 SchemaProps: spec.SchemaProps{ 4284 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4285 Type: []string{"string"}, 4286 Format: "", 4287 }, 4288 }, 4289 "apiVersion": { 4290 SchemaProps: spec.SchemaProps{ 4291 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4292 Type: []string{"string"}, 4293 Format: "", 4294 }, 4295 }, 4296 "metadata": { 4297 SchemaProps: spec.SchemaProps{ 4298 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 4299 Default: map[string]interface{}{}, 4300 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4301 }, 4302 }, 4303 "spec": { 4304 SchemaProps: spec.SchemaProps{ 4305 Description: "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 4306 Default: map[string]interface{}{}, 4307 Ref: ref("k8s.io/api/core/v1.LimitRangeSpec"), 4308 }, 4309 }, 4310 }, 4311 }, 4312 }, 4313 Dependencies: []string{ 4314 "k8s.io/api/core/v1.LimitRangeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 4315 } 4316 } 4317 4318 func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) common.OpenAPIDefinition { 4319 return common.OpenAPIDefinition{ 4320 Schema: spec.Schema{ 4321 SchemaProps: spec.SchemaProps{ 4322 Description: "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", 4323 Type: []string{"object"}, 4324 Properties: map[string]spec.Schema{ 4325 "type": { 4326 SchemaProps: spec.SchemaProps{ 4327 Description: "Type of resource that this limit applies to.", 4328 Default: "", 4329 Type: []string{"string"}, 4330 Format: "", 4331 }, 4332 }, 4333 "max": { 4334 SchemaProps: spec.SchemaProps{ 4335 Description: "Max usage constraints on this kind by resource name.", 4336 Type: []string{"object"}, 4337 AdditionalProperties: &spec.SchemaOrBool{ 4338 Allows: true, 4339 Schema: &spec.Schema{ 4340 SchemaProps: spec.SchemaProps{ 4341 Default: map[string]interface{}{}, 4342 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 4343 }, 4344 }, 4345 }, 4346 }, 4347 }, 4348 "min": { 4349 SchemaProps: spec.SchemaProps{ 4350 Description: "Min usage constraints on this kind by resource name.", 4351 Type: []string{"object"}, 4352 AdditionalProperties: &spec.SchemaOrBool{ 4353 Allows: true, 4354 Schema: &spec.Schema{ 4355 SchemaProps: spec.SchemaProps{ 4356 Default: map[string]interface{}{}, 4357 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 4358 }, 4359 }, 4360 }, 4361 }, 4362 }, 4363 "default": { 4364 SchemaProps: spec.SchemaProps{ 4365 Description: "Default resource requirement limit value by resource name if resource limit is omitted.", 4366 Type: []string{"object"}, 4367 AdditionalProperties: &spec.SchemaOrBool{ 4368 Allows: true, 4369 Schema: &spec.Schema{ 4370 SchemaProps: spec.SchemaProps{ 4371 Default: map[string]interface{}{}, 4372 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 4373 }, 4374 }, 4375 }, 4376 }, 4377 }, 4378 "defaultRequest": { 4379 SchemaProps: spec.SchemaProps{ 4380 Description: "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", 4381 Type: []string{"object"}, 4382 AdditionalProperties: &spec.SchemaOrBool{ 4383 Allows: true, 4384 Schema: &spec.Schema{ 4385 SchemaProps: spec.SchemaProps{ 4386 Default: map[string]interface{}{}, 4387 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 4388 }, 4389 }, 4390 }, 4391 }, 4392 }, 4393 "maxLimitRequestRatio": { 4394 SchemaProps: spec.SchemaProps{ 4395 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.", 4396 Type: []string{"object"}, 4397 AdditionalProperties: &spec.SchemaOrBool{ 4398 Allows: true, 4399 Schema: &spec.Schema{ 4400 SchemaProps: spec.SchemaProps{ 4401 Default: map[string]interface{}{}, 4402 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 4403 }, 4404 }, 4405 }, 4406 }, 4407 }, 4408 }, 4409 Required: []string{"type"}, 4410 }, 4411 }, 4412 Dependencies: []string{ 4413 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 4414 } 4415 } 4416 4417 func schema_k8sio_api_core_v1_LimitRangeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 4418 return common.OpenAPIDefinition{ 4419 Schema: spec.Schema{ 4420 SchemaProps: spec.SchemaProps{ 4421 Description: "LimitRangeList is a list of LimitRange items.", 4422 Type: []string{"object"}, 4423 Properties: map[string]spec.Schema{ 4424 "kind": { 4425 SchemaProps: spec.SchemaProps{ 4426 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4427 Type: []string{"string"}, 4428 Format: "", 4429 }, 4430 }, 4431 "apiVersion": { 4432 SchemaProps: spec.SchemaProps{ 4433 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4434 Type: []string{"string"}, 4435 Format: "", 4436 }, 4437 }, 4438 "metadata": { 4439 SchemaProps: spec.SchemaProps{ 4440 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4441 Default: map[string]interface{}{}, 4442 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4443 }, 4444 }, 4445 "items": { 4446 SchemaProps: spec.SchemaProps{ 4447 Description: "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 4448 Type: []string{"array"}, 4449 Items: &spec.SchemaOrArray{ 4450 Schema: &spec.Schema{ 4451 SchemaProps: spec.SchemaProps{ 4452 Default: map[string]interface{}{}, 4453 Ref: ref("k8s.io/api/core/v1.LimitRange"), 4454 }, 4455 }, 4456 }, 4457 }, 4458 }, 4459 }, 4460 Required: []string{"items"}, 4461 }, 4462 }, 4463 Dependencies: []string{ 4464 "k8s.io/api/core/v1.LimitRange", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 4465 } 4466 } 4467 4468 func schema_k8sio_api_core_v1_LimitRangeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4469 return common.OpenAPIDefinition{ 4470 Schema: spec.Schema{ 4471 SchemaProps: spec.SchemaProps{ 4472 Description: "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", 4473 Type: []string{"object"}, 4474 Properties: map[string]spec.Schema{ 4475 "limits": { 4476 SchemaProps: spec.SchemaProps{ 4477 Description: "Limits is the list of LimitRangeItem objects that are enforced.", 4478 Type: []string{"array"}, 4479 Items: &spec.SchemaOrArray{ 4480 Schema: &spec.Schema{ 4481 SchemaProps: spec.SchemaProps{ 4482 Default: map[string]interface{}{}, 4483 Ref: ref("k8s.io/api/core/v1.LimitRangeItem"), 4484 }, 4485 }, 4486 }, 4487 }, 4488 }, 4489 }, 4490 Required: []string{"limits"}, 4491 }, 4492 }, 4493 Dependencies: []string{ 4494 "k8s.io/api/core/v1.LimitRangeItem"}, 4495 } 4496 } 4497 4498 func schema_k8sio_api_core_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition { 4499 return common.OpenAPIDefinition{ 4500 Schema: spec.Schema{ 4501 SchemaProps: spec.SchemaProps{ 4502 Description: "List holds a list of objects, which may not be known by the server.", 4503 Type: []string{"object"}, 4504 Properties: map[string]spec.Schema{ 4505 "kind": { 4506 SchemaProps: spec.SchemaProps{ 4507 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4508 Type: []string{"string"}, 4509 Format: "", 4510 }, 4511 }, 4512 "apiVersion": { 4513 SchemaProps: spec.SchemaProps{ 4514 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4515 Type: []string{"string"}, 4516 Format: "", 4517 }, 4518 }, 4519 "metadata": { 4520 SchemaProps: spec.SchemaProps{ 4521 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4522 Default: map[string]interface{}{}, 4523 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4524 }, 4525 }, 4526 "items": { 4527 SchemaProps: spec.SchemaProps{ 4528 Description: "List of objects", 4529 Type: []string{"array"}, 4530 Items: &spec.SchemaOrArray{ 4531 Schema: &spec.Schema{ 4532 SchemaProps: spec.SchemaProps{ 4533 Default: map[string]interface{}{}, 4534 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 4535 }, 4536 }, 4537 }, 4538 }, 4539 }, 4540 }, 4541 Required: []string{"items"}, 4542 }, 4543 }, 4544 Dependencies: []string{ 4545 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 4546 } 4547 } 4548 4549 func schema_k8sio_api_core_v1_LoadBalancerIngress(ref common.ReferenceCallback) common.OpenAPIDefinition { 4550 return common.OpenAPIDefinition{ 4551 Schema: spec.Schema{ 4552 SchemaProps: spec.SchemaProps{ 4553 Description: "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", 4554 Type: []string{"object"}, 4555 Properties: map[string]spec.Schema{ 4556 "ip": { 4557 SchemaProps: spec.SchemaProps{ 4558 Description: "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", 4559 Type: []string{"string"}, 4560 Format: "", 4561 }, 4562 }, 4563 "hostname": { 4564 SchemaProps: spec.SchemaProps{ 4565 Description: "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", 4566 Type: []string{"string"}, 4567 Format: "", 4568 }, 4569 }, 4570 "ports": { 4571 VendorExtensible: spec.VendorExtensible{ 4572 Extensions: spec.Extensions{ 4573 "x-kubernetes-list-type": "atomic", 4574 }, 4575 }, 4576 SchemaProps: spec.SchemaProps{ 4577 Description: "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", 4578 Type: []string{"array"}, 4579 Items: &spec.SchemaOrArray{ 4580 Schema: &spec.Schema{ 4581 SchemaProps: spec.SchemaProps{ 4582 Default: map[string]interface{}{}, 4583 Ref: ref("k8s.io/api/core/v1.PortStatus"), 4584 }, 4585 }, 4586 }, 4587 }, 4588 }, 4589 }, 4590 }, 4591 }, 4592 Dependencies: []string{ 4593 "k8s.io/api/core/v1.PortStatus"}, 4594 } 4595 } 4596 4597 func schema_k8sio_api_core_v1_LoadBalancerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 4598 return common.OpenAPIDefinition{ 4599 Schema: spec.Schema{ 4600 SchemaProps: spec.SchemaProps{ 4601 Description: "LoadBalancerStatus represents the status of a load-balancer.", 4602 Type: []string{"object"}, 4603 Properties: map[string]spec.Schema{ 4604 "ingress": { 4605 SchemaProps: spec.SchemaProps{ 4606 Description: "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", 4607 Type: []string{"array"}, 4608 Items: &spec.SchemaOrArray{ 4609 Schema: &spec.Schema{ 4610 SchemaProps: spec.SchemaProps{ 4611 Default: map[string]interface{}{}, 4612 Ref: ref("k8s.io/api/core/v1.LoadBalancerIngress"), 4613 }, 4614 }, 4615 }, 4616 }, 4617 }, 4618 }, 4619 }, 4620 }, 4621 Dependencies: []string{ 4622 "k8s.io/api/core/v1.LoadBalancerIngress"}, 4623 } 4624 } 4625 4626 func schema_k8sio_api_core_v1_LocalObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 4627 return common.OpenAPIDefinition{ 4628 Schema: spec.Schema{ 4629 SchemaProps: spec.SchemaProps{ 4630 Description: "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", 4631 Type: []string{"object"}, 4632 Properties: map[string]spec.Schema{ 4633 "name": { 4634 SchemaProps: spec.SchemaProps{ 4635 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 4636 Type: []string{"string"}, 4637 Format: "", 4638 }, 4639 }, 4640 }, 4641 }, 4642 VendorExtensible: spec.VendorExtensible{ 4643 Extensions: spec.Extensions{ 4644 "x-kubernetes-map-type": "atomic", 4645 }, 4646 }, 4647 }, 4648 } 4649 } 4650 4651 func schema_k8sio_api_core_v1_LocalVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 4652 return common.OpenAPIDefinition{ 4653 Schema: spec.Schema{ 4654 SchemaProps: spec.SchemaProps{ 4655 Description: "Local represents directly-attached storage with node affinity (Beta feature)", 4656 Type: []string{"object"}, 4657 Properties: map[string]spec.Schema{ 4658 "path": { 4659 SchemaProps: spec.SchemaProps{ 4660 Description: "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", 4661 Default: "", 4662 Type: []string{"string"}, 4663 Format: "", 4664 }, 4665 }, 4666 "fsType": { 4667 SchemaProps: spec.SchemaProps{ 4668 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.", 4669 Type: []string{"string"}, 4670 Format: "", 4671 }, 4672 }, 4673 }, 4674 Required: []string{"path"}, 4675 }, 4676 }, 4677 } 4678 } 4679 4680 func schema_k8sio_api_core_v1_NFSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 4681 return common.OpenAPIDefinition{ 4682 Schema: spec.Schema{ 4683 SchemaProps: spec.SchemaProps{ 4684 Description: "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", 4685 Type: []string{"object"}, 4686 Properties: map[string]spec.Schema{ 4687 "server": { 4688 SchemaProps: spec.SchemaProps{ 4689 Description: "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 4690 Default: "", 4691 Type: []string{"string"}, 4692 Format: "", 4693 }, 4694 }, 4695 "path": { 4696 SchemaProps: spec.SchemaProps{ 4697 Description: "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 4698 Default: "", 4699 Type: []string{"string"}, 4700 Format: "", 4701 }, 4702 }, 4703 "readOnly": { 4704 SchemaProps: spec.SchemaProps{ 4705 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", 4706 Type: []string{"boolean"}, 4707 Format: "", 4708 }, 4709 }, 4710 }, 4711 Required: []string{"server", "path"}, 4712 }, 4713 }, 4714 } 4715 } 4716 4717 func schema_k8sio_api_core_v1_Namespace(ref common.ReferenceCallback) common.OpenAPIDefinition { 4718 return common.OpenAPIDefinition{ 4719 Schema: spec.Schema{ 4720 SchemaProps: spec.SchemaProps{ 4721 Description: "Namespace provides a scope for Names. Use of multiple namespaces is optional.", 4722 Type: []string{"object"}, 4723 Properties: map[string]spec.Schema{ 4724 "kind": { 4725 SchemaProps: spec.SchemaProps{ 4726 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4727 Type: []string{"string"}, 4728 Format: "", 4729 }, 4730 }, 4731 "apiVersion": { 4732 SchemaProps: spec.SchemaProps{ 4733 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4734 Type: []string{"string"}, 4735 Format: "", 4736 }, 4737 }, 4738 "metadata": { 4739 SchemaProps: spec.SchemaProps{ 4740 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 4741 Default: map[string]interface{}{}, 4742 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4743 }, 4744 }, 4745 "spec": { 4746 SchemaProps: spec.SchemaProps{ 4747 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", 4748 Default: map[string]interface{}{}, 4749 Ref: ref("k8s.io/api/core/v1.NamespaceSpec"), 4750 }, 4751 }, 4752 "status": { 4753 SchemaProps: spec.SchemaProps{ 4754 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", 4755 Default: map[string]interface{}{}, 4756 Ref: ref("k8s.io/api/core/v1.NamespaceStatus"), 4757 }, 4758 }, 4759 }, 4760 }, 4761 }, 4762 Dependencies: []string{ 4763 "k8s.io/api/core/v1.NamespaceSpec", "k8s.io/api/core/v1.NamespaceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 4764 } 4765 } 4766 4767 func schema_k8sio_api_core_v1_NamespaceCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 4768 return common.OpenAPIDefinition{ 4769 Schema: spec.Schema{ 4770 SchemaProps: spec.SchemaProps{ 4771 Description: "NamespaceCondition contains details about state of namespace.", 4772 Type: []string{"object"}, 4773 Properties: map[string]spec.Schema{ 4774 "type": { 4775 SchemaProps: spec.SchemaProps{ 4776 Description: "Type of namespace controller condition.", 4777 Default: "", 4778 Type: []string{"string"}, 4779 Format: "", 4780 }, 4781 }, 4782 "status": { 4783 SchemaProps: spec.SchemaProps{ 4784 Description: "Status of the condition, one of True, False, Unknown.", 4785 Default: "", 4786 Type: []string{"string"}, 4787 Format: "", 4788 }, 4789 }, 4790 "lastTransitionTime": { 4791 SchemaProps: spec.SchemaProps{ 4792 Default: map[string]interface{}{}, 4793 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 4794 }, 4795 }, 4796 "reason": { 4797 SchemaProps: spec.SchemaProps{ 4798 Type: []string{"string"}, 4799 Format: "", 4800 }, 4801 }, 4802 "message": { 4803 SchemaProps: spec.SchemaProps{ 4804 Type: []string{"string"}, 4805 Format: "", 4806 }, 4807 }, 4808 }, 4809 Required: []string{"type", "status"}, 4810 }, 4811 }, 4812 Dependencies: []string{ 4813 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 4814 } 4815 } 4816 4817 func schema_k8sio_api_core_v1_NamespaceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 4818 return common.OpenAPIDefinition{ 4819 Schema: spec.Schema{ 4820 SchemaProps: spec.SchemaProps{ 4821 Description: "NamespaceList is a list of Namespaces.", 4822 Type: []string{"object"}, 4823 Properties: map[string]spec.Schema{ 4824 "kind": { 4825 SchemaProps: spec.SchemaProps{ 4826 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4827 Type: []string{"string"}, 4828 Format: "", 4829 }, 4830 }, 4831 "apiVersion": { 4832 SchemaProps: spec.SchemaProps{ 4833 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4834 Type: []string{"string"}, 4835 Format: "", 4836 }, 4837 }, 4838 "metadata": { 4839 SchemaProps: spec.SchemaProps{ 4840 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4841 Default: map[string]interface{}{}, 4842 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4843 }, 4844 }, 4845 "items": { 4846 SchemaProps: spec.SchemaProps{ 4847 Description: "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", 4848 Type: []string{"array"}, 4849 Items: &spec.SchemaOrArray{ 4850 Schema: &spec.Schema{ 4851 SchemaProps: spec.SchemaProps{ 4852 Default: map[string]interface{}{}, 4853 Ref: ref("k8s.io/api/core/v1.Namespace"), 4854 }, 4855 }, 4856 }, 4857 }, 4858 }, 4859 }, 4860 Required: []string{"items"}, 4861 }, 4862 }, 4863 Dependencies: []string{ 4864 "k8s.io/api/core/v1.Namespace", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 4865 } 4866 } 4867 4868 func schema_k8sio_api_core_v1_NamespaceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4869 return common.OpenAPIDefinition{ 4870 Schema: spec.Schema{ 4871 SchemaProps: spec.SchemaProps{ 4872 Description: "NamespaceSpec describes the attributes on a Namespace.", 4873 Type: []string{"object"}, 4874 Properties: map[string]spec.Schema{ 4875 "finalizers": { 4876 SchemaProps: spec.SchemaProps{ 4877 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/", 4878 Type: []string{"array"}, 4879 Items: &spec.SchemaOrArray{ 4880 Schema: &spec.Schema{ 4881 SchemaProps: spec.SchemaProps{ 4882 Default: "", 4883 Type: []string{"string"}, 4884 Format: "", 4885 }, 4886 }, 4887 }, 4888 }, 4889 }, 4890 }, 4891 }, 4892 }, 4893 } 4894 } 4895 4896 func schema_k8sio_api_core_v1_NamespaceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 4897 return common.OpenAPIDefinition{ 4898 Schema: spec.Schema{ 4899 SchemaProps: spec.SchemaProps{ 4900 Description: "NamespaceStatus is information about the current status of a Namespace.", 4901 Type: []string{"object"}, 4902 Properties: map[string]spec.Schema{ 4903 "phase": { 4904 SchemaProps: spec.SchemaProps{ 4905 Description: "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/\n\nPossible enum values:\n - `\"Active\"` means the namespace is available for use in the system\n - `\"Terminating\"` means the namespace is undergoing graceful termination", 4906 Type: []string{"string"}, 4907 Format: "", 4908 Enum: []interface{}{"Active", "Terminating"}}, 4909 }, 4910 "conditions": { 4911 VendorExtensible: spec.VendorExtensible{ 4912 Extensions: spec.Extensions{ 4913 "x-kubernetes-patch-merge-key": "type", 4914 "x-kubernetes-patch-strategy": "merge", 4915 }, 4916 }, 4917 SchemaProps: spec.SchemaProps{ 4918 Description: "Represents the latest available observations of a namespace's current state.", 4919 Type: []string{"array"}, 4920 Items: &spec.SchemaOrArray{ 4921 Schema: &spec.Schema{ 4922 SchemaProps: spec.SchemaProps{ 4923 Default: map[string]interface{}{}, 4924 Ref: ref("k8s.io/api/core/v1.NamespaceCondition"), 4925 }, 4926 }, 4927 }, 4928 }, 4929 }, 4930 }, 4931 }, 4932 }, 4933 Dependencies: []string{ 4934 "k8s.io/api/core/v1.NamespaceCondition"}, 4935 } 4936 } 4937 4938 func schema_k8sio_api_core_v1_Node(ref common.ReferenceCallback) common.OpenAPIDefinition { 4939 return common.OpenAPIDefinition{ 4940 Schema: spec.Schema{ 4941 SchemaProps: spec.SchemaProps{ 4942 Description: "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", 4943 Type: []string{"object"}, 4944 Properties: map[string]spec.Schema{ 4945 "kind": { 4946 SchemaProps: spec.SchemaProps{ 4947 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4948 Type: []string{"string"}, 4949 Format: "", 4950 }, 4951 }, 4952 "apiVersion": { 4953 SchemaProps: spec.SchemaProps{ 4954 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4955 Type: []string{"string"}, 4956 Format: "", 4957 }, 4958 }, 4959 "metadata": { 4960 SchemaProps: spec.SchemaProps{ 4961 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 4962 Default: map[string]interface{}{}, 4963 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4964 }, 4965 }, 4966 "spec": { 4967 SchemaProps: spec.SchemaProps{ 4968 Description: "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 4969 Default: map[string]interface{}{}, 4970 Ref: ref("k8s.io/api/core/v1.NodeSpec"), 4971 }, 4972 }, 4973 "status": { 4974 SchemaProps: spec.SchemaProps{ 4975 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", 4976 Default: map[string]interface{}{}, 4977 Ref: ref("k8s.io/api/core/v1.NodeStatus"), 4978 }, 4979 }, 4980 }, 4981 }, 4982 }, 4983 Dependencies: []string{ 4984 "k8s.io/api/core/v1.NodeSpec", "k8s.io/api/core/v1.NodeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 4985 } 4986 } 4987 4988 func schema_k8sio_api_core_v1_NodeAddress(ref common.ReferenceCallback) common.OpenAPIDefinition { 4989 return common.OpenAPIDefinition{ 4990 Schema: spec.Schema{ 4991 SchemaProps: spec.SchemaProps{ 4992 Description: "NodeAddress contains information for the node's address.", 4993 Type: []string{"object"}, 4994 Properties: map[string]spec.Schema{ 4995 "type": { 4996 SchemaProps: spec.SchemaProps{ 4997 Description: "Node address type, one of Hostname, ExternalIP or InternalIP.", 4998 Default: "", 4999 Type: []string{"string"}, 5000 Format: "", 5001 }, 5002 }, 5003 "address": { 5004 SchemaProps: spec.SchemaProps{ 5005 Description: "The node address.", 5006 Default: "", 5007 Type: []string{"string"}, 5008 Format: "", 5009 }, 5010 }, 5011 }, 5012 Required: []string{"type", "address"}, 5013 }, 5014 }, 5015 } 5016 } 5017 5018 func schema_k8sio_api_core_v1_NodeAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 5019 return common.OpenAPIDefinition{ 5020 Schema: spec.Schema{ 5021 SchemaProps: spec.SchemaProps{ 5022 Description: "Node affinity is a group of node affinity scheduling rules.", 5023 Type: []string{"object"}, 5024 Properties: map[string]spec.Schema{ 5025 "requiredDuringSchedulingIgnoredDuringExecution": { 5026 SchemaProps: spec.SchemaProps{ 5027 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.", 5028 Ref: ref("k8s.io/api/core/v1.NodeSelector"), 5029 }, 5030 }, 5031 "preferredDuringSchedulingIgnoredDuringExecution": { 5032 SchemaProps: spec.SchemaProps{ 5033 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.", 5034 Type: []string{"array"}, 5035 Items: &spec.SchemaOrArray{ 5036 Schema: &spec.Schema{ 5037 SchemaProps: spec.SchemaProps{ 5038 Default: map[string]interface{}{}, 5039 Ref: ref("k8s.io/api/core/v1.PreferredSchedulingTerm"), 5040 }, 5041 }, 5042 }, 5043 }, 5044 }, 5045 }, 5046 }, 5047 }, 5048 Dependencies: []string{ 5049 "k8s.io/api/core/v1.NodeSelector", "k8s.io/api/core/v1.PreferredSchedulingTerm"}, 5050 } 5051 } 5052 5053 func schema_k8sio_api_core_v1_NodeCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 5054 return common.OpenAPIDefinition{ 5055 Schema: spec.Schema{ 5056 SchemaProps: spec.SchemaProps{ 5057 Description: "NodeCondition contains condition information for a node.", 5058 Type: []string{"object"}, 5059 Properties: map[string]spec.Schema{ 5060 "type": { 5061 SchemaProps: spec.SchemaProps{ 5062 Description: "Type of node condition.", 5063 Default: "", 5064 Type: []string{"string"}, 5065 Format: "", 5066 }, 5067 }, 5068 "status": { 5069 SchemaProps: spec.SchemaProps{ 5070 Description: "Status of the condition, one of True, False, Unknown.", 5071 Default: "", 5072 Type: []string{"string"}, 5073 Format: "", 5074 }, 5075 }, 5076 "lastHeartbeatTime": { 5077 SchemaProps: spec.SchemaProps{ 5078 Description: "Last time we got an update on a given condition.", 5079 Default: map[string]interface{}{}, 5080 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 5081 }, 5082 }, 5083 "lastTransitionTime": { 5084 SchemaProps: spec.SchemaProps{ 5085 Description: "Last time the condition transit from one status to another.", 5086 Default: map[string]interface{}{}, 5087 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 5088 }, 5089 }, 5090 "reason": { 5091 SchemaProps: spec.SchemaProps{ 5092 Description: "(brief) reason for the condition's last transition.", 5093 Type: []string{"string"}, 5094 Format: "", 5095 }, 5096 }, 5097 "message": { 5098 SchemaProps: spec.SchemaProps{ 5099 Description: "Human readable message indicating details about last transition.", 5100 Type: []string{"string"}, 5101 Format: "", 5102 }, 5103 }, 5104 }, 5105 Required: []string{"type", "status"}, 5106 }, 5107 }, 5108 Dependencies: []string{ 5109 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 5110 } 5111 } 5112 5113 func schema_k8sio_api_core_v1_NodeConfigSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 5114 return common.OpenAPIDefinition{ 5115 Schema: spec.Schema{ 5116 SchemaProps: spec.SchemaProps{ 5117 Description: "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", 5118 Type: []string{"object"}, 5119 Properties: map[string]spec.Schema{ 5120 "configMap": { 5121 SchemaProps: spec.SchemaProps{ 5122 Description: "ConfigMap is a reference to a Node's ConfigMap", 5123 Ref: ref("k8s.io/api/core/v1.ConfigMapNodeConfigSource"), 5124 }, 5125 }, 5126 }, 5127 }, 5128 }, 5129 Dependencies: []string{ 5130 "k8s.io/api/core/v1.ConfigMapNodeConfigSource"}, 5131 } 5132 } 5133 5134 func schema_k8sio_api_core_v1_NodeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 5135 return common.OpenAPIDefinition{ 5136 Schema: spec.Schema{ 5137 SchemaProps: spec.SchemaProps{ 5138 Description: "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", 5139 Type: []string{"object"}, 5140 Properties: map[string]spec.Schema{ 5141 "assigned": { 5142 SchemaProps: spec.SchemaProps{ 5143 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.", 5144 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 5145 }, 5146 }, 5147 "active": { 5148 SchemaProps: spec.SchemaProps{ 5149 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.", 5150 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 5151 }, 5152 }, 5153 "lastKnownGood": { 5154 SchemaProps: spec.SchemaProps{ 5155 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.", 5156 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 5157 }, 5158 }, 5159 "error": { 5160 SchemaProps: spec.SchemaProps{ 5161 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.", 5162 Type: []string{"string"}, 5163 Format: "", 5164 }, 5165 }, 5166 }, 5167 }, 5168 }, 5169 Dependencies: []string{ 5170 "k8s.io/api/core/v1.NodeConfigSource"}, 5171 } 5172 } 5173 5174 func schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref common.ReferenceCallback) common.OpenAPIDefinition { 5175 return common.OpenAPIDefinition{ 5176 Schema: spec.Schema{ 5177 SchemaProps: spec.SchemaProps{ 5178 Description: "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", 5179 Type: []string{"object"}, 5180 Properties: map[string]spec.Schema{ 5181 "kubeletEndpoint": { 5182 SchemaProps: spec.SchemaProps{ 5183 Description: "Endpoint on which Kubelet is listening.", 5184 Default: map[string]interface{}{}, 5185 Ref: ref("k8s.io/api/core/v1.DaemonEndpoint"), 5186 }, 5187 }, 5188 }, 5189 }, 5190 }, 5191 Dependencies: []string{ 5192 "k8s.io/api/core/v1.DaemonEndpoint"}, 5193 } 5194 } 5195 5196 func schema_k8sio_api_core_v1_NodeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 5197 return common.OpenAPIDefinition{ 5198 Schema: spec.Schema{ 5199 SchemaProps: spec.SchemaProps{ 5200 Description: "NodeList is the whole list of all Nodes which have been registered with master.", 5201 Type: []string{"object"}, 5202 Properties: map[string]spec.Schema{ 5203 "kind": { 5204 SchemaProps: spec.SchemaProps{ 5205 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5206 Type: []string{"string"}, 5207 Format: "", 5208 }, 5209 }, 5210 "apiVersion": { 5211 SchemaProps: spec.SchemaProps{ 5212 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 5213 Type: []string{"string"}, 5214 Format: "", 5215 }, 5216 }, 5217 "metadata": { 5218 SchemaProps: spec.SchemaProps{ 5219 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5220 Default: map[string]interface{}{}, 5221 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 5222 }, 5223 }, 5224 "items": { 5225 SchemaProps: spec.SchemaProps{ 5226 Description: "List of nodes", 5227 Type: []string{"array"}, 5228 Items: &spec.SchemaOrArray{ 5229 Schema: &spec.Schema{ 5230 SchemaProps: spec.SchemaProps{ 5231 Default: map[string]interface{}{}, 5232 Ref: ref("k8s.io/api/core/v1.Node"), 5233 }, 5234 }, 5235 }, 5236 }, 5237 }, 5238 }, 5239 Required: []string{"items"}, 5240 }, 5241 }, 5242 Dependencies: []string{ 5243 "k8s.io/api/core/v1.Node", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 5244 } 5245 } 5246 5247 func schema_k8sio_api_core_v1_NodeProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 5248 return common.OpenAPIDefinition{ 5249 Schema: spec.Schema{ 5250 SchemaProps: spec.SchemaProps{ 5251 Description: "NodeProxyOptions is the query options to a Node's proxy call.", 5252 Type: []string{"object"}, 5253 Properties: map[string]spec.Schema{ 5254 "kind": { 5255 SchemaProps: spec.SchemaProps{ 5256 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5257 Type: []string{"string"}, 5258 Format: "", 5259 }, 5260 }, 5261 "apiVersion": { 5262 SchemaProps: spec.SchemaProps{ 5263 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 5264 Type: []string{"string"}, 5265 Format: "", 5266 }, 5267 }, 5268 "path": { 5269 SchemaProps: spec.SchemaProps{ 5270 Description: "Path is the URL path to use for the current proxy request to node.", 5271 Type: []string{"string"}, 5272 Format: "", 5273 }, 5274 }, 5275 }, 5276 }, 5277 }, 5278 } 5279 } 5280 5281 func schema_k8sio_api_core_v1_NodeResources(ref common.ReferenceCallback) common.OpenAPIDefinition { 5282 return common.OpenAPIDefinition{ 5283 Schema: spec.Schema{ 5284 SchemaProps: spec.SchemaProps{ 5285 Description: "NodeResources is an object for conveying resource information about a node. see https://kubernetes.io/docs/concepts/architecture/nodes/#capacity for more details.", 5286 Type: []string{"object"}, 5287 Properties: map[string]spec.Schema{ 5288 "Capacity": { 5289 SchemaProps: spec.SchemaProps{ 5290 Description: "Capacity represents the available resources of a node", 5291 Type: []string{"object"}, 5292 AdditionalProperties: &spec.SchemaOrBool{ 5293 Allows: true, 5294 Schema: &spec.Schema{ 5295 SchemaProps: spec.SchemaProps{ 5296 Default: map[string]interface{}{}, 5297 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 5298 }, 5299 }, 5300 }, 5301 }, 5302 }, 5303 }, 5304 Required: []string{"Capacity"}, 5305 }, 5306 }, 5307 Dependencies: []string{ 5308 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 5309 } 5310 } 5311 5312 func schema_k8sio_api_core_v1_NodeSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 5313 return common.OpenAPIDefinition{ 5314 Schema: spec.Schema{ 5315 SchemaProps: spec.SchemaProps{ 5316 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.", 5317 Type: []string{"object"}, 5318 Properties: map[string]spec.Schema{ 5319 "nodeSelectorTerms": { 5320 SchemaProps: spec.SchemaProps{ 5321 Description: "Required. A list of node selector terms. The terms are ORed.", 5322 Type: []string{"array"}, 5323 Items: &spec.SchemaOrArray{ 5324 Schema: &spec.Schema{ 5325 SchemaProps: spec.SchemaProps{ 5326 Default: map[string]interface{}{}, 5327 Ref: ref("k8s.io/api/core/v1.NodeSelectorTerm"), 5328 }, 5329 }, 5330 }, 5331 }, 5332 }, 5333 }, 5334 Required: []string{"nodeSelectorTerms"}, 5335 }, 5336 VendorExtensible: spec.VendorExtensible{ 5337 Extensions: spec.Extensions{ 5338 "x-kubernetes-map-type": "atomic", 5339 }, 5340 }, 5341 }, 5342 Dependencies: []string{ 5343 "k8s.io/api/core/v1.NodeSelectorTerm"}, 5344 } 5345 } 5346 5347 func schema_k8sio_api_core_v1_NodeSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 5348 return common.OpenAPIDefinition{ 5349 Schema: spec.Schema{ 5350 SchemaProps: spec.SchemaProps{ 5351 Description: "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", 5352 Type: []string{"object"}, 5353 Properties: map[string]spec.Schema{ 5354 "key": { 5355 SchemaProps: spec.SchemaProps{ 5356 Description: "The label key that the selector applies to.", 5357 Default: "", 5358 Type: []string{"string"}, 5359 Format: "", 5360 }, 5361 }, 5362 "operator": { 5363 SchemaProps: spec.SchemaProps{ 5364 Description: "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n\nPossible enum values:\n - `\"DoesNotExist\"`\n - `\"Exists\"`\n - `\"Gt\"`\n - `\"In\"`\n - `\"Lt\"`\n - `\"NotIn\"`", 5365 Default: "", 5366 Type: []string{"string"}, 5367 Format: "", 5368 Enum: []interface{}{"DoesNotExist", "Exists", "Gt", "In", "Lt", "NotIn"}}, 5369 }, 5370 "values": { 5371 SchemaProps: spec.SchemaProps{ 5372 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.", 5373 Type: []string{"array"}, 5374 Items: &spec.SchemaOrArray{ 5375 Schema: &spec.Schema{ 5376 SchemaProps: spec.SchemaProps{ 5377 Default: "", 5378 Type: []string{"string"}, 5379 Format: "", 5380 }, 5381 }, 5382 }, 5383 }, 5384 }, 5385 }, 5386 Required: []string{"key", "operator"}, 5387 }, 5388 }, 5389 } 5390 } 5391 5392 func schema_k8sio_api_core_v1_NodeSelectorTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 5393 return common.OpenAPIDefinition{ 5394 Schema: spec.Schema{ 5395 SchemaProps: spec.SchemaProps{ 5396 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.", 5397 Type: []string{"object"}, 5398 Properties: map[string]spec.Schema{ 5399 "matchExpressions": { 5400 SchemaProps: spec.SchemaProps{ 5401 Description: "A list of node selector requirements by node's labels.", 5402 Type: []string{"array"}, 5403 Items: &spec.SchemaOrArray{ 5404 Schema: &spec.Schema{ 5405 SchemaProps: spec.SchemaProps{ 5406 Default: map[string]interface{}{}, 5407 Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), 5408 }, 5409 }, 5410 }, 5411 }, 5412 }, 5413 "matchFields": { 5414 SchemaProps: spec.SchemaProps{ 5415 Description: "A list of node selector requirements by node's fields.", 5416 Type: []string{"array"}, 5417 Items: &spec.SchemaOrArray{ 5418 Schema: &spec.Schema{ 5419 SchemaProps: spec.SchemaProps{ 5420 Default: map[string]interface{}{}, 5421 Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), 5422 }, 5423 }, 5424 }, 5425 }, 5426 }, 5427 }, 5428 }, 5429 VendorExtensible: spec.VendorExtensible{ 5430 Extensions: spec.Extensions{ 5431 "x-kubernetes-map-type": "atomic", 5432 }, 5433 }, 5434 }, 5435 Dependencies: []string{ 5436 "k8s.io/api/core/v1.NodeSelectorRequirement"}, 5437 } 5438 } 5439 5440 func schema_k8sio_api_core_v1_NodeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 5441 return common.OpenAPIDefinition{ 5442 Schema: spec.Schema{ 5443 SchemaProps: spec.SchemaProps{ 5444 Description: "NodeSpec describes the attributes that a node is created with.", 5445 Type: []string{"object"}, 5446 Properties: map[string]spec.Schema{ 5447 "podCIDR": { 5448 SchemaProps: spec.SchemaProps{ 5449 Description: "PodCIDR represents the pod IP range assigned to the node.", 5450 Type: []string{"string"}, 5451 Format: "", 5452 }, 5453 }, 5454 "podCIDRs": { 5455 VendorExtensible: spec.VendorExtensible{ 5456 Extensions: spec.Extensions{ 5457 "x-kubernetes-patch-strategy": "merge", 5458 }, 5459 }, 5460 SchemaProps: spec.SchemaProps{ 5461 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.", 5462 Type: []string{"array"}, 5463 Items: &spec.SchemaOrArray{ 5464 Schema: &spec.Schema{ 5465 SchemaProps: spec.SchemaProps{ 5466 Default: "", 5467 Type: []string{"string"}, 5468 Format: "", 5469 }, 5470 }, 5471 }, 5472 }, 5473 }, 5474 "providerID": { 5475 SchemaProps: spec.SchemaProps{ 5476 Description: "ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>", 5477 Type: []string{"string"}, 5478 Format: "", 5479 }, 5480 }, 5481 "unschedulable": { 5482 SchemaProps: spec.SchemaProps{ 5483 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", 5484 Type: []string{"boolean"}, 5485 Format: "", 5486 }, 5487 }, 5488 "taints": { 5489 SchemaProps: spec.SchemaProps{ 5490 Description: "If specified, the node's taints.", 5491 Type: []string{"array"}, 5492 Items: &spec.SchemaOrArray{ 5493 Schema: &spec.Schema{ 5494 SchemaProps: spec.SchemaProps{ 5495 Default: map[string]interface{}{}, 5496 Ref: ref("k8s.io/api/core/v1.Taint"), 5497 }, 5498 }, 5499 }, 5500 }, 5501 }, 5502 "configSource": { 5503 SchemaProps: spec.SchemaProps{ 5504 Description: "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed from Kubelets as of 1.24 and will be fully removed in 1.26.", 5505 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 5506 }, 5507 }, 5508 "externalID": { 5509 SchemaProps: spec.SchemaProps{ 5510 Description: "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", 5511 Type: []string{"string"}, 5512 Format: "", 5513 }, 5514 }, 5515 }, 5516 }, 5517 }, 5518 Dependencies: []string{ 5519 "k8s.io/api/core/v1.NodeConfigSource", "k8s.io/api/core/v1.Taint"}, 5520 } 5521 } 5522 5523 func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 5524 return common.OpenAPIDefinition{ 5525 Schema: spec.Schema{ 5526 SchemaProps: spec.SchemaProps{ 5527 Description: "NodeStatus is information about the current status of a node.", 5528 Type: []string{"object"}, 5529 Properties: map[string]spec.Schema{ 5530 "capacity": { 5531 SchemaProps: spec.SchemaProps{ 5532 Description: "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", 5533 Type: []string{"object"}, 5534 AdditionalProperties: &spec.SchemaOrBool{ 5535 Allows: true, 5536 Schema: &spec.Schema{ 5537 SchemaProps: spec.SchemaProps{ 5538 Default: map[string]interface{}{}, 5539 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 5540 }, 5541 }, 5542 }, 5543 }, 5544 }, 5545 "allocatable": { 5546 SchemaProps: spec.SchemaProps{ 5547 Description: "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", 5548 Type: []string{"object"}, 5549 AdditionalProperties: &spec.SchemaOrBool{ 5550 Allows: true, 5551 Schema: &spec.Schema{ 5552 SchemaProps: spec.SchemaProps{ 5553 Default: map[string]interface{}{}, 5554 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 5555 }, 5556 }, 5557 }, 5558 }, 5559 }, 5560 "phase": { 5561 SchemaProps: spec.SchemaProps{ 5562 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.\n\nPossible enum values:\n - `\"Pending\"` means the node has been created/added by the system, but not configured.\n - `\"Running\"` means the node has been configured and has Kubernetes components running.\n - `\"Terminated\"` means the node has been removed from the cluster.", 5563 Type: []string{"string"}, 5564 Format: "", 5565 Enum: []interface{}{"Pending", "Running", "Terminated"}}, 5566 }, 5567 "conditions": { 5568 VendorExtensible: spec.VendorExtensible{ 5569 Extensions: spec.Extensions{ 5570 "x-kubernetes-patch-merge-key": "type", 5571 "x-kubernetes-patch-strategy": "merge", 5572 }, 5573 }, 5574 SchemaProps: spec.SchemaProps{ 5575 Description: "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", 5576 Type: []string{"array"}, 5577 Items: &spec.SchemaOrArray{ 5578 Schema: &spec.Schema{ 5579 SchemaProps: spec.SchemaProps{ 5580 Default: map[string]interface{}{}, 5581 Ref: ref("k8s.io/api/core/v1.NodeCondition"), 5582 }, 5583 }, 5584 }, 5585 }, 5586 }, 5587 "addresses": { 5588 VendorExtensible: spec.VendorExtensible{ 5589 Extensions: spec.Extensions{ 5590 "x-kubernetes-patch-merge-key": "type", 5591 "x-kubernetes-patch-strategy": "merge", 5592 }, 5593 }, 5594 SchemaProps: spec.SchemaProps{ 5595 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 http://pr.k8s.io/79391 for an example.", 5596 Type: []string{"array"}, 5597 Items: &spec.SchemaOrArray{ 5598 Schema: &spec.Schema{ 5599 SchemaProps: spec.SchemaProps{ 5600 Default: map[string]interface{}{}, 5601 Ref: ref("k8s.io/api/core/v1.NodeAddress"), 5602 }, 5603 }, 5604 }, 5605 }, 5606 }, 5607 "daemonEndpoints": { 5608 SchemaProps: spec.SchemaProps{ 5609 Description: "Endpoints of daemons running on the Node.", 5610 Default: map[string]interface{}{}, 5611 Ref: ref("k8s.io/api/core/v1.NodeDaemonEndpoints"), 5612 }, 5613 }, 5614 "nodeInfo": { 5615 SchemaProps: spec.SchemaProps{ 5616 Description: "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info", 5617 Default: map[string]interface{}{}, 5618 Ref: ref("k8s.io/api/core/v1.NodeSystemInfo"), 5619 }, 5620 }, 5621 "images": { 5622 SchemaProps: spec.SchemaProps{ 5623 Description: "List of container images on this node", 5624 Type: []string{"array"}, 5625 Items: &spec.SchemaOrArray{ 5626 Schema: &spec.Schema{ 5627 SchemaProps: spec.SchemaProps{ 5628 Default: map[string]interface{}{}, 5629 Ref: ref("k8s.io/api/core/v1.ContainerImage"), 5630 }, 5631 }, 5632 }, 5633 }, 5634 }, 5635 "volumesInUse": { 5636 SchemaProps: spec.SchemaProps{ 5637 Description: "List of attachable volumes in use (mounted) by the node.", 5638 Type: []string{"array"}, 5639 Items: &spec.SchemaOrArray{ 5640 Schema: &spec.Schema{ 5641 SchemaProps: spec.SchemaProps{ 5642 Default: "", 5643 Type: []string{"string"}, 5644 Format: "", 5645 }, 5646 }, 5647 }, 5648 }, 5649 }, 5650 "volumesAttached": { 5651 SchemaProps: spec.SchemaProps{ 5652 Description: "List of volumes that are attached to the node.", 5653 Type: []string{"array"}, 5654 Items: &spec.SchemaOrArray{ 5655 Schema: &spec.Schema{ 5656 SchemaProps: spec.SchemaProps{ 5657 Default: map[string]interface{}{}, 5658 Ref: ref("k8s.io/api/core/v1.AttachedVolume"), 5659 }, 5660 }, 5661 }, 5662 }, 5663 }, 5664 "config": { 5665 SchemaProps: spec.SchemaProps{ 5666 Description: "Status of the config assigned to the node via the dynamic Kubelet config feature.", 5667 Ref: ref("k8s.io/api/core/v1.NodeConfigStatus"), 5668 }, 5669 }, 5670 }, 5671 }, 5672 }, 5673 Dependencies: []string{ 5674 "k8s.io/api/core/v1.AttachedVolume", "k8s.io/api/core/v1.ContainerImage", "k8s.io/api/core/v1.NodeAddress", "k8s.io/api/core/v1.NodeCondition", "k8s.io/api/core/v1.NodeConfigStatus", "k8s.io/api/core/v1.NodeDaemonEndpoints", "k8s.io/api/core/v1.NodeSystemInfo", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 5675 } 5676 } 5677 5678 func schema_k8sio_api_core_v1_NodeSystemInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { 5679 return common.OpenAPIDefinition{ 5680 Schema: spec.Schema{ 5681 SchemaProps: spec.SchemaProps{ 5682 Description: "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", 5683 Type: []string{"object"}, 5684 Properties: map[string]spec.Schema{ 5685 "machineID": { 5686 SchemaProps: spec.SchemaProps{ 5687 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", 5688 Default: "", 5689 Type: []string{"string"}, 5690 Format: "", 5691 }, 5692 }, 5693 "systemUUID": { 5694 SchemaProps: spec.SchemaProps{ 5695 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", 5696 Default: "", 5697 Type: []string{"string"}, 5698 Format: "", 5699 }, 5700 }, 5701 "bootID": { 5702 SchemaProps: spec.SchemaProps{ 5703 Description: "Boot ID reported by the node.", 5704 Default: "", 5705 Type: []string{"string"}, 5706 Format: "", 5707 }, 5708 }, 5709 "kernelVersion": { 5710 SchemaProps: spec.SchemaProps{ 5711 Description: "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", 5712 Default: "", 5713 Type: []string{"string"}, 5714 Format: "", 5715 }, 5716 }, 5717 "osImage": { 5718 SchemaProps: spec.SchemaProps{ 5719 Description: "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", 5720 Default: "", 5721 Type: []string{"string"}, 5722 Format: "", 5723 }, 5724 }, 5725 "containerRuntimeVersion": { 5726 SchemaProps: spec.SchemaProps{ 5727 Description: "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).", 5728 Default: "", 5729 Type: []string{"string"}, 5730 Format: "", 5731 }, 5732 }, 5733 "kubeletVersion": { 5734 SchemaProps: spec.SchemaProps{ 5735 Description: "Kubelet Version reported by the node.", 5736 Default: "", 5737 Type: []string{"string"}, 5738 Format: "", 5739 }, 5740 }, 5741 "kubeProxyVersion": { 5742 SchemaProps: spec.SchemaProps{ 5743 Description: "KubeProxy Version reported by the node.", 5744 Default: "", 5745 Type: []string{"string"}, 5746 Format: "", 5747 }, 5748 }, 5749 "operatingSystem": { 5750 SchemaProps: spec.SchemaProps{ 5751 Description: "The Operating System reported by the node", 5752 Default: "", 5753 Type: []string{"string"}, 5754 Format: "", 5755 }, 5756 }, 5757 "architecture": { 5758 SchemaProps: spec.SchemaProps{ 5759 Description: "The Architecture reported by the node", 5760 Default: "", 5761 Type: []string{"string"}, 5762 Format: "", 5763 }, 5764 }, 5765 }, 5766 Required: []string{"machineID", "systemUUID", "bootID", "kernelVersion", "osImage", "containerRuntimeVersion", "kubeletVersion", "kubeProxyVersion", "operatingSystem", "architecture"}, 5767 }, 5768 }, 5769 } 5770 } 5771 5772 func schema_k8sio_api_core_v1_ObjectFieldSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 5773 return common.OpenAPIDefinition{ 5774 Schema: spec.Schema{ 5775 SchemaProps: spec.SchemaProps{ 5776 Description: "ObjectFieldSelector selects an APIVersioned field of an object.", 5777 Type: []string{"object"}, 5778 Properties: map[string]spec.Schema{ 5779 "apiVersion": { 5780 SchemaProps: spec.SchemaProps{ 5781 Description: "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", 5782 Type: []string{"string"}, 5783 Format: "", 5784 }, 5785 }, 5786 "fieldPath": { 5787 SchemaProps: spec.SchemaProps{ 5788 Description: "Path of the field to select in the specified API version.", 5789 Default: "", 5790 Type: []string{"string"}, 5791 Format: "", 5792 }, 5793 }, 5794 }, 5795 Required: []string{"fieldPath"}, 5796 }, 5797 VendorExtensible: spec.VendorExtensible{ 5798 Extensions: spec.Extensions{ 5799 "x-kubernetes-map-type": "atomic", 5800 }, 5801 }, 5802 }, 5803 } 5804 } 5805 5806 func schema_k8sio_api_core_v1_ObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 5807 return common.OpenAPIDefinition{ 5808 Schema: spec.Schema{ 5809 SchemaProps: spec.SchemaProps{ 5810 Description: "ObjectReference contains enough information to let you inspect or modify the referred object.", 5811 Type: []string{"object"}, 5812 Properties: map[string]spec.Schema{ 5813 "kind": { 5814 SchemaProps: spec.SchemaProps{ 5815 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5816 Type: []string{"string"}, 5817 Format: "", 5818 }, 5819 }, 5820 "namespace": { 5821 SchemaProps: spec.SchemaProps{ 5822 Description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", 5823 Type: []string{"string"}, 5824 Format: "", 5825 }, 5826 }, 5827 "name": { 5828 SchemaProps: spec.SchemaProps{ 5829 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 5830 Type: []string{"string"}, 5831 Format: "", 5832 }, 5833 }, 5834 "uid": { 5835 SchemaProps: spec.SchemaProps{ 5836 Description: "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", 5837 Type: []string{"string"}, 5838 Format: "", 5839 }, 5840 }, 5841 "apiVersion": { 5842 SchemaProps: spec.SchemaProps{ 5843 Description: "API version of the referent.", 5844 Type: []string{"string"}, 5845 Format: "", 5846 }, 5847 }, 5848 "resourceVersion": { 5849 SchemaProps: spec.SchemaProps{ 5850 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", 5851 Type: []string{"string"}, 5852 Format: "", 5853 }, 5854 }, 5855 "fieldPath": { 5856 SchemaProps: spec.SchemaProps{ 5857 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.", 5858 Type: []string{"string"}, 5859 Format: "", 5860 }, 5861 }, 5862 }, 5863 }, 5864 VendorExtensible: spec.VendorExtensible{ 5865 Extensions: spec.Extensions{ 5866 "x-kubernetes-map-type": "atomic", 5867 }, 5868 }, 5869 }, 5870 } 5871 } 5872 5873 func schema_k8sio_api_core_v1_PersistentVolume(ref common.ReferenceCallback) common.OpenAPIDefinition { 5874 return common.OpenAPIDefinition{ 5875 Schema: spec.Schema{ 5876 SchemaProps: spec.SchemaProps{ 5877 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", 5878 Type: []string{"object"}, 5879 Properties: map[string]spec.Schema{ 5880 "kind": { 5881 SchemaProps: spec.SchemaProps{ 5882 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5883 Type: []string{"string"}, 5884 Format: "", 5885 }, 5886 }, 5887 "apiVersion": { 5888 SchemaProps: spec.SchemaProps{ 5889 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 5890 Type: []string{"string"}, 5891 Format: "", 5892 }, 5893 }, 5894 "metadata": { 5895 SchemaProps: spec.SchemaProps{ 5896 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 5897 Default: map[string]interface{}{}, 5898 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 5899 }, 5900 }, 5901 "spec": { 5902 SchemaProps: spec.SchemaProps{ 5903 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", 5904 Default: map[string]interface{}{}, 5905 Ref: ref("k8s.io/api/core/v1.PersistentVolumeSpec"), 5906 }, 5907 }, 5908 "status": { 5909 SchemaProps: spec.SchemaProps{ 5910 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", 5911 Default: map[string]interface{}{}, 5912 Ref: ref("k8s.io/api/core/v1.PersistentVolumeStatus"), 5913 }, 5914 }, 5915 }, 5916 }, 5917 }, 5918 Dependencies: []string{ 5919 "k8s.io/api/core/v1.PersistentVolumeSpec", "k8s.io/api/core/v1.PersistentVolumeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 5920 } 5921 } 5922 5923 func schema_k8sio_api_core_v1_PersistentVolumeClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { 5924 return common.OpenAPIDefinition{ 5925 Schema: spec.Schema{ 5926 SchemaProps: spec.SchemaProps{ 5927 Description: "PersistentVolumeClaim is a user's request for and claim to a persistent volume", 5928 Type: []string{"object"}, 5929 Properties: map[string]spec.Schema{ 5930 "kind": { 5931 SchemaProps: spec.SchemaProps{ 5932 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5933 Type: []string{"string"}, 5934 Format: "", 5935 }, 5936 }, 5937 "apiVersion": { 5938 SchemaProps: spec.SchemaProps{ 5939 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 5940 Type: []string{"string"}, 5941 Format: "", 5942 }, 5943 }, 5944 "metadata": { 5945 SchemaProps: spec.SchemaProps{ 5946 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 5947 Default: map[string]interface{}{}, 5948 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 5949 }, 5950 }, 5951 "spec": { 5952 SchemaProps: spec.SchemaProps{ 5953 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", 5954 Default: map[string]interface{}{}, 5955 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), 5956 }, 5957 }, 5958 "status": { 5959 SchemaProps: spec.SchemaProps{ 5960 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", 5961 Default: map[string]interface{}{}, 5962 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimStatus"), 5963 }, 5964 }, 5965 }, 5966 }, 5967 }, 5968 Dependencies: []string{ 5969 "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.PersistentVolumeClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 5970 } 5971 } 5972 5973 func schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 5974 return common.OpenAPIDefinition{ 5975 Schema: spec.Schema{ 5976 SchemaProps: spec.SchemaProps{ 5977 Description: "PersistentVolumeClaimCondition contails details about state of pvc", 5978 Type: []string{"object"}, 5979 Properties: map[string]spec.Schema{ 5980 "type": { 5981 SchemaProps: spec.SchemaProps{ 5982 Default: "", 5983 Type: []string{"string"}, 5984 Format: "", 5985 }, 5986 }, 5987 "status": { 5988 SchemaProps: spec.SchemaProps{ 5989 Default: "", 5990 Type: []string{"string"}, 5991 Format: "", 5992 }, 5993 }, 5994 "lastProbeTime": { 5995 SchemaProps: spec.SchemaProps{ 5996 Description: "lastProbeTime is the time we probed the condition.", 5997 Default: map[string]interface{}{}, 5998 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 5999 }, 6000 }, 6001 "lastTransitionTime": { 6002 SchemaProps: spec.SchemaProps{ 6003 Description: "lastTransitionTime is the time the condition transitioned from one status to another.", 6004 Default: map[string]interface{}{}, 6005 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 6006 }, 6007 }, 6008 "reason": { 6009 SchemaProps: spec.SchemaProps{ 6010 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 \"ResizeStarted\" that means the underlying persistent volume is being resized.", 6011 Type: []string{"string"}, 6012 Format: "", 6013 }, 6014 }, 6015 "message": { 6016 SchemaProps: spec.SchemaProps{ 6017 Description: "message is the human-readable message indicating details about last transition.", 6018 Type: []string{"string"}, 6019 Format: "", 6020 }, 6021 }, 6022 }, 6023 Required: []string{"type", "status"}, 6024 }, 6025 }, 6026 Dependencies: []string{ 6027 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 6028 } 6029 } 6030 6031 func schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { 6032 return common.OpenAPIDefinition{ 6033 Schema: spec.Schema{ 6034 SchemaProps: spec.SchemaProps{ 6035 Description: "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", 6036 Type: []string{"object"}, 6037 Properties: map[string]spec.Schema{ 6038 "kind": { 6039 SchemaProps: spec.SchemaProps{ 6040 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6041 Type: []string{"string"}, 6042 Format: "", 6043 }, 6044 }, 6045 "apiVersion": { 6046 SchemaProps: spec.SchemaProps{ 6047 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 6048 Type: []string{"string"}, 6049 Format: "", 6050 }, 6051 }, 6052 "metadata": { 6053 SchemaProps: spec.SchemaProps{ 6054 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6055 Default: map[string]interface{}{}, 6056 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 6057 }, 6058 }, 6059 "items": { 6060 SchemaProps: spec.SchemaProps{ 6061 Description: "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", 6062 Type: []string{"array"}, 6063 Items: &spec.SchemaOrArray{ 6064 Schema: &spec.Schema{ 6065 SchemaProps: spec.SchemaProps{ 6066 Default: map[string]interface{}{}, 6067 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaim"), 6068 }, 6069 }, 6070 }, 6071 }, 6072 }, 6073 }, 6074 Required: []string{"items"}, 6075 }, 6076 }, 6077 Dependencies: []string{ 6078 "k8s.io/api/core/v1.PersistentVolumeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 6079 } 6080 } 6081 6082 func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 6083 return common.OpenAPIDefinition{ 6084 Schema: spec.Schema{ 6085 SchemaProps: spec.SchemaProps{ 6086 Description: "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", 6087 Type: []string{"object"}, 6088 Properties: map[string]spec.Schema{ 6089 "accessModes": { 6090 SchemaProps: spec.SchemaProps{ 6091 Description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", 6092 Type: []string{"array"}, 6093 Items: &spec.SchemaOrArray{ 6094 Schema: &spec.Schema{ 6095 SchemaProps: spec.SchemaProps{ 6096 Default: "", 6097 Type: []string{"string"}, 6098 Format: "", 6099 }, 6100 }, 6101 }, 6102 }, 6103 }, 6104 "selector": { 6105 SchemaProps: spec.SchemaProps{ 6106 Description: "selector is a label query over volumes to consider for binding.", 6107 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 6108 }, 6109 }, 6110 "resources": { 6111 SchemaProps: spec.SchemaProps{ 6112 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", 6113 Default: map[string]interface{}{}, 6114 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 6115 }, 6116 }, 6117 "volumeName": { 6118 SchemaProps: spec.SchemaProps{ 6119 Description: "volumeName is the binding reference to the PersistentVolume backing this claim.", 6120 Type: []string{"string"}, 6121 Format: "", 6122 }, 6123 }, 6124 "storageClassName": { 6125 SchemaProps: spec.SchemaProps{ 6126 Description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", 6127 Type: []string{"string"}, 6128 Format: "", 6129 }, 6130 }, 6131 "volumeMode": { 6132 SchemaProps: spec.SchemaProps{ 6133 Description: "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", 6134 Type: []string{"string"}, 6135 Format: "", 6136 }, 6137 }, 6138 "dataSource": { 6139 SchemaProps: spec.SchemaProps{ 6140 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. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.", 6141 Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), 6142 }, 6143 }, 6144 "dataSourceRef": { 6145 SchemaProps: spec.SchemaProps{ 6146 Description: "dataSourceRef 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\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(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.", 6147 Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), 6148 }, 6149 }, 6150 }, 6151 }, 6152 }, 6153 Dependencies: []string{ 6154 "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 6155 } 6156 } 6157 6158 func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 6159 return common.OpenAPIDefinition{ 6160 Schema: spec.Schema{ 6161 SchemaProps: spec.SchemaProps{ 6162 Description: "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", 6163 Type: []string{"object"}, 6164 Properties: map[string]spec.Schema{ 6165 "phase": { 6166 SchemaProps: spec.SchemaProps{ 6167 Description: "phase represents the current phase of PersistentVolumeClaim.\n\nPossible enum values:\n - `\"Bound\"` used for PersistentVolumeClaims that are bound\n - `\"Lost\"` used for PersistentVolumeClaims that lost their underlying PersistentVolume. The claim was bound to a PersistentVolume and this volume does not exist any longer and all data on it was lost.\n - `\"Pending\"` used for PersistentVolumeClaims that are not yet bound", 6168 Type: []string{"string"}, 6169 Format: "", 6170 Enum: []interface{}{"Bound", "Lost", "Pending"}}, 6171 }, 6172 "accessModes": { 6173 SchemaProps: spec.SchemaProps{ 6174 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", 6175 Type: []string{"array"}, 6176 Items: &spec.SchemaOrArray{ 6177 Schema: &spec.Schema{ 6178 SchemaProps: spec.SchemaProps{ 6179 Default: "", 6180 Type: []string{"string"}, 6181 Format: "", 6182 }, 6183 }, 6184 }, 6185 }, 6186 }, 6187 "capacity": { 6188 SchemaProps: spec.SchemaProps{ 6189 Description: "capacity represents the actual resources of the underlying volume.", 6190 Type: []string{"object"}, 6191 AdditionalProperties: &spec.SchemaOrBool{ 6192 Allows: true, 6193 Schema: &spec.Schema{ 6194 SchemaProps: spec.SchemaProps{ 6195 Default: map[string]interface{}{}, 6196 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 6197 }, 6198 }, 6199 }, 6200 }, 6201 }, 6202 "conditions": { 6203 VendorExtensible: spec.VendorExtensible{ 6204 Extensions: spec.Extensions{ 6205 "x-kubernetes-patch-merge-key": "type", 6206 "x-kubernetes-patch-strategy": "merge", 6207 }, 6208 }, 6209 SchemaProps: spec.SchemaProps{ 6210 Description: "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.", 6211 Type: []string{"array"}, 6212 Items: &spec.SchemaOrArray{ 6213 Schema: &spec.Schema{ 6214 SchemaProps: spec.SchemaProps{ 6215 Default: map[string]interface{}{}, 6216 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimCondition"), 6217 }, 6218 }, 6219 }, 6220 }, 6221 }, 6222 "allocatedResources": { 6223 SchemaProps: spec.SchemaProps{ 6224 Description: "allocatedResources is 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.", 6225 Type: []string{"object"}, 6226 AdditionalProperties: &spec.SchemaOrBool{ 6227 Allows: true, 6228 Schema: &spec.Schema{ 6229 SchemaProps: spec.SchemaProps{ 6230 Default: map[string]interface{}{}, 6231 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 6232 }, 6233 }, 6234 }, 6235 }, 6236 }, 6237 "resizeStatus": { 6238 SchemaProps: spec.SchemaProps{ 6239 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.", 6240 Type: []string{"string"}, 6241 Format: "", 6242 }, 6243 }, 6244 }, 6245 }, 6246 }, 6247 Dependencies: []string{ 6248 "k8s.io/api/core/v1.PersistentVolumeClaimCondition", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 6249 } 6250 } 6251 6252 func schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 6253 return common.OpenAPIDefinition{ 6254 Schema: spec.Schema{ 6255 SchemaProps: spec.SchemaProps{ 6256 Description: "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", 6257 Type: []string{"object"}, 6258 Properties: map[string]spec.Schema{ 6259 "metadata": { 6260 SchemaProps: spec.SchemaProps{ 6261 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.", 6262 Default: map[string]interface{}{}, 6263 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 6264 }, 6265 }, 6266 "spec": { 6267 SchemaProps: spec.SchemaProps{ 6268 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.", 6269 Default: map[string]interface{}{}, 6270 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), 6271 }, 6272 }, 6273 }, 6274 Required: []string{"spec"}, 6275 }, 6276 }, 6277 Dependencies: []string{ 6278 "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 6279 } 6280 } 6281 6282 func schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 6283 return common.OpenAPIDefinition{ 6284 Schema: spec.Schema{ 6285 SchemaProps: spec.SchemaProps{ 6286 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).", 6287 Type: []string{"object"}, 6288 Properties: map[string]spec.Schema{ 6289 "claimName": { 6290 SchemaProps: spec.SchemaProps{ 6291 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", 6292 Default: "", 6293 Type: []string{"string"}, 6294 Format: "", 6295 }, 6296 }, 6297 "readOnly": { 6298 SchemaProps: spec.SchemaProps{ 6299 Description: "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", 6300 Type: []string{"boolean"}, 6301 Format: "", 6302 }, 6303 }, 6304 }, 6305 Required: []string{"claimName"}, 6306 }, 6307 }, 6308 } 6309 } 6310 6311 func schema_k8sio_api_core_v1_PersistentVolumeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 6312 return common.OpenAPIDefinition{ 6313 Schema: spec.Schema{ 6314 SchemaProps: spec.SchemaProps{ 6315 Description: "PersistentVolumeList is a list of PersistentVolume items.", 6316 Type: []string{"object"}, 6317 Properties: map[string]spec.Schema{ 6318 "kind": { 6319 SchemaProps: spec.SchemaProps{ 6320 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6321 Type: []string{"string"}, 6322 Format: "", 6323 }, 6324 }, 6325 "apiVersion": { 6326 SchemaProps: spec.SchemaProps{ 6327 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 6328 Type: []string{"string"}, 6329 Format: "", 6330 }, 6331 }, 6332 "metadata": { 6333 SchemaProps: spec.SchemaProps{ 6334 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6335 Default: map[string]interface{}{}, 6336 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 6337 }, 6338 }, 6339 "items": { 6340 SchemaProps: spec.SchemaProps{ 6341 Description: "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", 6342 Type: []string{"array"}, 6343 Items: &spec.SchemaOrArray{ 6344 Schema: &spec.Schema{ 6345 SchemaProps: spec.SchemaProps{ 6346 Default: map[string]interface{}{}, 6347 Ref: ref("k8s.io/api/core/v1.PersistentVolume"), 6348 }, 6349 }, 6350 }, 6351 }, 6352 }, 6353 }, 6354 Required: []string{"items"}, 6355 }, 6356 }, 6357 Dependencies: []string{ 6358 "k8s.io/api/core/v1.PersistentVolume", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 6359 } 6360 } 6361 6362 func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 6363 return common.OpenAPIDefinition{ 6364 Schema: spec.Schema{ 6365 SchemaProps: spec.SchemaProps{ 6366 Description: "PersistentVolumeSource is similar to VolumeSource but meant for the administrator who creates PVs. Exactly one of its members must be set.", 6367 Type: []string{"object"}, 6368 Properties: map[string]spec.Schema{ 6369 "gcePersistentDisk": { 6370 SchemaProps: spec.SchemaProps{ 6371 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", 6372 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 6373 }, 6374 }, 6375 "awsElasticBlockStore": { 6376 SchemaProps: spec.SchemaProps{ 6377 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", 6378 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 6379 }, 6380 }, 6381 "hostPath": { 6382 SchemaProps: spec.SchemaProps{ 6383 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", 6384 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 6385 }, 6386 }, 6387 "glusterfs": { 6388 SchemaProps: spec.SchemaProps{ 6389 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", 6390 Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), 6391 }, 6392 }, 6393 "nfs": { 6394 SchemaProps: spec.SchemaProps{ 6395 Description: "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 6396 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 6397 }, 6398 }, 6399 "rbd": { 6400 SchemaProps: spec.SchemaProps{ 6401 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", 6402 Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), 6403 }, 6404 }, 6405 "iscsi": { 6406 SchemaProps: spec.SchemaProps{ 6407 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.", 6408 Ref: ref("k8s.io/api/core/v1.ISCSIPersistentVolumeSource"), 6409 }, 6410 }, 6411 "cinder": { 6412 SchemaProps: spec.SchemaProps{ 6413 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 6414 Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), 6415 }, 6416 }, 6417 "cephfs": { 6418 SchemaProps: spec.SchemaProps{ 6419 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 6420 Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), 6421 }, 6422 }, 6423 "fc": { 6424 SchemaProps: spec.SchemaProps{ 6425 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 6426 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 6427 }, 6428 }, 6429 "flocker": { 6430 SchemaProps: spec.SchemaProps{ 6431 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", 6432 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 6433 }, 6434 }, 6435 "flexVolume": { 6436 SchemaProps: spec.SchemaProps{ 6437 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 6438 Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), 6439 }, 6440 }, 6441 "azureFile": { 6442 SchemaProps: spec.SchemaProps{ 6443 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 6444 Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), 6445 }, 6446 }, 6447 "vsphereVolume": { 6448 SchemaProps: spec.SchemaProps{ 6449 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 6450 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 6451 }, 6452 }, 6453 "quobyte": { 6454 SchemaProps: spec.SchemaProps{ 6455 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 6456 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 6457 }, 6458 }, 6459 "azureDisk": { 6460 SchemaProps: spec.SchemaProps{ 6461 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 6462 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 6463 }, 6464 }, 6465 "photonPersistentDisk": { 6466 SchemaProps: spec.SchemaProps{ 6467 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 6468 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 6469 }, 6470 }, 6471 "portworxVolume": { 6472 SchemaProps: spec.SchemaProps{ 6473 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 6474 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 6475 }, 6476 }, 6477 "scaleIO": { 6478 SchemaProps: spec.SchemaProps{ 6479 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 6480 Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), 6481 }, 6482 }, 6483 "local": { 6484 SchemaProps: spec.SchemaProps{ 6485 Description: "local represents directly-attached storage with node affinity", 6486 Ref: ref("k8s.io/api/core/v1.LocalVolumeSource"), 6487 }, 6488 }, 6489 "storageos": { 6490 SchemaProps: spec.SchemaProps{ 6491 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", 6492 Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), 6493 }, 6494 }, 6495 "csi": { 6496 SchemaProps: spec.SchemaProps{ 6497 Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", 6498 Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), 6499 }, 6500 }, 6501 }, 6502 }, 6503 }, 6504 Dependencies: []string{ 6505 "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource", "k8s.io/api/core/v1.AzureDiskVolumeSource", "k8s.io/api/core/v1.AzureFilePersistentVolumeSource", "k8s.io/api/core/v1.CSIPersistentVolumeSource", "k8s.io/api/core/v1.CephFSPersistentVolumeSource", "k8s.io/api/core/v1.CinderPersistentVolumeSource", "k8s.io/api/core/v1.FCVolumeSource", "k8s.io/api/core/v1.FlexPersistentVolumeSource", "k8s.io/api/core/v1.FlockerVolumeSource", "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource", "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource", "k8s.io/api/core/v1.HostPathVolumeSource", "k8s.io/api/core/v1.ISCSIPersistentVolumeSource", "k8s.io/api/core/v1.LocalVolumeSource", "k8s.io/api/core/v1.NFSVolumeSource", "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource", "k8s.io/api/core/v1.PortworxVolumeSource", "k8s.io/api/core/v1.QuobyteVolumeSource", "k8s.io/api/core/v1.RBDPersistentVolumeSource", "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource", "k8s.io/api/core/v1.StorageOSPersistentVolumeSource", "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"}, 6506 } 6507 } 6508 6509 func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 6510 return common.OpenAPIDefinition{ 6511 Schema: spec.Schema{ 6512 SchemaProps: spec.SchemaProps{ 6513 Description: "PersistentVolumeSpec is the specification of a persistent volume.", 6514 Type: []string{"object"}, 6515 Properties: map[string]spec.Schema{ 6516 "capacity": { 6517 SchemaProps: spec.SchemaProps{ 6518 Description: "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", 6519 Type: []string{"object"}, 6520 AdditionalProperties: &spec.SchemaOrBool{ 6521 Allows: true, 6522 Schema: &spec.Schema{ 6523 SchemaProps: spec.SchemaProps{ 6524 Default: map[string]interface{}{}, 6525 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 6526 }, 6527 }, 6528 }, 6529 }, 6530 }, 6531 "gcePersistentDisk": { 6532 SchemaProps: spec.SchemaProps{ 6533 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", 6534 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 6535 }, 6536 }, 6537 "awsElasticBlockStore": { 6538 SchemaProps: spec.SchemaProps{ 6539 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", 6540 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 6541 }, 6542 }, 6543 "hostPath": { 6544 SchemaProps: spec.SchemaProps{ 6545 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", 6546 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 6547 }, 6548 }, 6549 "glusterfs": { 6550 SchemaProps: spec.SchemaProps{ 6551 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", 6552 Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), 6553 }, 6554 }, 6555 "nfs": { 6556 SchemaProps: spec.SchemaProps{ 6557 Description: "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 6558 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 6559 }, 6560 }, 6561 "rbd": { 6562 SchemaProps: spec.SchemaProps{ 6563 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", 6564 Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), 6565 }, 6566 }, 6567 "iscsi": { 6568 SchemaProps: spec.SchemaProps{ 6569 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.", 6570 Ref: ref("k8s.io/api/core/v1.ISCSIPersistentVolumeSource"), 6571 }, 6572 }, 6573 "cinder": { 6574 SchemaProps: spec.SchemaProps{ 6575 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 6576 Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), 6577 }, 6578 }, 6579 "cephfs": { 6580 SchemaProps: spec.SchemaProps{ 6581 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 6582 Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), 6583 }, 6584 }, 6585 "fc": { 6586 SchemaProps: spec.SchemaProps{ 6587 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 6588 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 6589 }, 6590 }, 6591 "flocker": { 6592 SchemaProps: spec.SchemaProps{ 6593 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", 6594 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 6595 }, 6596 }, 6597 "flexVolume": { 6598 SchemaProps: spec.SchemaProps{ 6599 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 6600 Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), 6601 }, 6602 }, 6603 "azureFile": { 6604 SchemaProps: spec.SchemaProps{ 6605 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 6606 Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), 6607 }, 6608 }, 6609 "vsphereVolume": { 6610 SchemaProps: spec.SchemaProps{ 6611 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 6612 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 6613 }, 6614 }, 6615 "quobyte": { 6616 SchemaProps: spec.SchemaProps{ 6617 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 6618 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 6619 }, 6620 }, 6621 "azureDisk": { 6622 SchemaProps: spec.SchemaProps{ 6623 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 6624 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 6625 }, 6626 }, 6627 "photonPersistentDisk": { 6628 SchemaProps: spec.SchemaProps{ 6629 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 6630 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 6631 }, 6632 }, 6633 "portworxVolume": { 6634 SchemaProps: spec.SchemaProps{ 6635 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 6636 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 6637 }, 6638 }, 6639 "scaleIO": { 6640 SchemaProps: spec.SchemaProps{ 6641 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 6642 Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), 6643 }, 6644 }, 6645 "local": { 6646 SchemaProps: spec.SchemaProps{ 6647 Description: "local represents directly-attached storage with node affinity", 6648 Ref: ref("k8s.io/api/core/v1.LocalVolumeSource"), 6649 }, 6650 }, 6651 "storageos": { 6652 SchemaProps: spec.SchemaProps{ 6653 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", 6654 Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), 6655 }, 6656 }, 6657 "csi": { 6658 SchemaProps: spec.SchemaProps{ 6659 Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", 6660 Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), 6661 }, 6662 }, 6663 "accessModes": { 6664 SchemaProps: spec.SchemaProps{ 6665 Description: "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", 6666 Type: []string{"array"}, 6667 Items: &spec.SchemaOrArray{ 6668 Schema: &spec.Schema{ 6669 SchemaProps: spec.SchemaProps{ 6670 Default: "", 6671 Type: []string{"string"}, 6672 Format: "", 6673 }, 6674 }, 6675 }, 6676 }, 6677 }, 6678 "claimRef": { 6679 VendorExtensible: spec.VendorExtensible{ 6680 Extensions: spec.Extensions{ 6681 "x-kubernetes-map-type": "granular", 6682 }, 6683 }, 6684 SchemaProps: spec.SchemaProps{ 6685 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", 6686 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 6687 }, 6688 }, 6689 "persistentVolumeReclaimPolicy": { 6690 SchemaProps: spec.SchemaProps{ 6691 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\n\nPossible enum values:\n - `\"Delete\"` means the volume will be deleted from Kubernetes on release from its claim. The volume plugin must support Deletion.\n - `\"Recycle\"` means the volume will be recycled back into the pool of unbound persistent volumes on release from its claim. The volume plugin must support Recycling.\n - `\"Retain\"` means the volume will be left in its current phase (Released) for manual reclamation by the administrator. The default policy is Retain.", 6692 Type: []string{"string"}, 6693 Format: "", 6694 Enum: []interface{}{"Delete", "Recycle", "Retain"}}, 6695 }, 6696 "storageClassName": { 6697 SchemaProps: spec.SchemaProps{ 6698 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.", 6699 Type: []string{"string"}, 6700 Format: "", 6701 }, 6702 }, 6703 "mountOptions": { 6704 SchemaProps: spec.SchemaProps{ 6705 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", 6706 Type: []string{"array"}, 6707 Items: &spec.SchemaOrArray{ 6708 Schema: &spec.Schema{ 6709 SchemaProps: spec.SchemaProps{ 6710 Default: "", 6711 Type: []string{"string"}, 6712 Format: "", 6713 }, 6714 }, 6715 }, 6716 }, 6717 }, 6718 "volumeMode": { 6719 SchemaProps: spec.SchemaProps{ 6720 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.", 6721 Type: []string{"string"}, 6722 Format: "", 6723 }, 6724 }, 6725 "nodeAffinity": { 6726 SchemaProps: spec.SchemaProps{ 6727 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.", 6728 Ref: ref("k8s.io/api/core/v1.VolumeNodeAffinity"), 6729 }, 6730 }, 6731 }, 6732 }, 6733 }, 6734 Dependencies: []string{ 6735 "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource", "k8s.io/api/core/v1.AzureDiskVolumeSource", "k8s.io/api/core/v1.AzureFilePersistentVolumeSource", "k8s.io/api/core/v1.CSIPersistentVolumeSource", "k8s.io/api/core/v1.CephFSPersistentVolumeSource", "k8s.io/api/core/v1.CinderPersistentVolumeSource", "k8s.io/api/core/v1.FCVolumeSource", "k8s.io/api/core/v1.FlexPersistentVolumeSource", "k8s.io/api/core/v1.FlockerVolumeSource", "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource", "k8s.io/api/core/v1.GlusterfsPersistentVolumeSource", "k8s.io/api/core/v1.HostPathVolumeSource", "k8s.io/api/core/v1.ISCSIPersistentVolumeSource", "k8s.io/api/core/v1.LocalVolumeSource", "k8s.io/api/core/v1.NFSVolumeSource", "k8s.io/api/core/v1.ObjectReference", "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource", "k8s.io/api/core/v1.PortworxVolumeSource", "k8s.io/api/core/v1.QuobyteVolumeSource", "k8s.io/api/core/v1.RBDPersistentVolumeSource", "k8s.io/api/core/v1.ScaleIOPersistentVolumeSource", "k8s.io/api/core/v1.StorageOSPersistentVolumeSource", "k8s.io/api/core/v1.VolumeNodeAffinity", "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 6736 } 6737 } 6738 6739 func schema_k8sio_api_core_v1_PersistentVolumeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 6740 return common.OpenAPIDefinition{ 6741 Schema: spec.Schema{ 6742 SchemaProps: spec.SchemaProps{ 6743 Description: "PersistentVolumeStatus is the current status of a persistent volume.", 6744 Type: []string{"object"}, 6745 Properties: map[string]spec.Schema{ 6746 "phase": { 6747 SchemaProps: spec.SchemaProps{ 6748 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\n\nPossible enum values:\n - `\"Available\"` used for PersistentVolumes that are not yet bound Available volumes are held by the binder and matched to PersistentVolumeClaims\n - `\"Bound\"` used for PersistentVolumes that are bound\n - `\"Failed\"` used for PersistentVolumes that failed to be correctly recycled or deleted after being released from a claim\n - `\"Pending\"` used for PersistentVolumes that are not available\n - `\"Released\"` used for PersistentVolumes where the bound PersistentVolumeClaim was deleted released volumes must be recycled before becoming available again this phase is used by the persistent volume claim binder to signal to another process to reclaim the resource", 6749 Type: []string{"string"}, 6750 Format: "", 6751 Enum: []interface{}{"Available", "Bound", "Failed", "Pending", "Released"}}, 6752 }, 6753 "message": { 6754 SchemaProps: spec.SchemaProps{ 6755 Description: "message is a human-readable message indicating details about why the volume is in this state.", 6756 Type: []string{"string"}, 6757 Format: "", 6758 }, 6759 }, 6760 "reason": { 6761 SchemaProps: spec.SchemaProps{ 6762 Description: "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", 6763 Type: []string{"string"}, 6764 Format: "", 6765 }, 6766 }, 6767 }, 6768 }, 6769 }, 6770 } 6771 } 6772 6773 func schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 6774 return common.OpenAPIDefinition{ 6775 Schema: spec.Schema{ 6776 SchemaProps: spec.SchemaProps{ 6777 Description: "Represents a Photon Controller persistent disk resource.", 6778 Type: []string{"object"}, 6779 Properties: map[string]spec.Schema{ 6780 "pdID": { 6781 SchemaProps: spec.SchemaProps{ 6782 Description: "pdID is the ID that identifies Photon Controller persistent disk", 6783 Default: "", 6784 Type: []string{"string"}, 6785 Format: "", 6786 }, 6787 }, 6788 "fsType": { 6789 SchemaProps: spec.SchemaProps{ 6790 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.", 6791 Type: []string{"string"}, 6792 Format: "", 6793 }, 6794 }, 6795 }, 6796 Required: []string{"pdID"}, 6797 }, 6798 }, 6799 } 6800 } 6801 6802 func schema_k8sio_api_core_v1_Pod(ref common.ReferenceCallback) common.OpenAPIDefinition { 6803 return common.OpenAPIDefinition{ 6804 Schema: spec.Schema{ 6805 SchemaProps: spec.SchemaProps{ 6806 Description: "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", 6807 Type: []string{"object"}, 6808 Properties: map[string]spec.Schema{ 6809 "kind": { 6810 SchemaProps: spec.SchemaProps{ 6811 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6812 Type: []string{"string"}, 6813 Format: "", 6814 }, 6815 }, 6816 "apiVersion": { 6817 SchemaProps: spec.SchemaProps{ 6818 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 6819 Type: []string{"string"}, 6820 Format: "", 6821 }, 6822 }, 6823 "metadata": { 6824 SchemaProps: spec.SchemaProps{ 6825 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 6826 Default: map[string]interface{}{}, 6827 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 6828 }, 6829 }, 6830 "spec": { 6831 SchemaProps: spec.SchemaProps{ 6832 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", 6833 Default: map[string]interface{}{}, 6834 Ref: ref("k8s.io/api/core/v1.PodSpec"), 6835 }, 6836 }, 6837 "status": { 6838 SchemaProps: spec.SchemaProps{ 6839 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", 6840 Default: map[string]interface{}{}, 6841 Ref: ref("k8s.io/api/core/v1.PodStatus"), 6842 }, 6843 }, 6844 }, 6845 }, 6846 }, 6847 Dependencies: []string{ 6848 "k8s.io/api/core/v1.PodSpec", "k8s.io/api/core/v1.PodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 6849 } 6850 } 6851 6852 func schema_k8sio_api_core_v1_PodAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 6853 return common.OpenAPIDefinition{ 6854 Schema: spec.Schema{ 6855 SchemaProps: spec.SchemaProps{ 6856 Description: "Pod affinity is a group of inter pod affinity scheduling rules.", 6857 Type: []string{"object"}, 6858 Properties: map[string]spec.Schema{ 6859 "requiredDuringSchedulingIgnoredDuringExecution": { 6860 SchemaProps: spec.SchemaProps{ 6861 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.", 6862 Type: []string{"array"}, 6863 Items: &spec.SchemaOrArray{ 6864 Schema: &spec.Schema{ 6865 SchemaProps: spec.SchemaProps{ 6866 Default: map[string]interface{}{}, 6867 Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), 6868 }, 6869 }, 6870 }, 6871 }, 6872 }, 6873 "preferredDuringSchedulingIgnoredDuringExecution": { 6874 SchemaProps: spec.SchemaProps{ 6875 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.", 6876 Type: []string{"array"}, 6877 Items: &spec.SchemaOrArray{ 6878 Schema: &spec.Schema{ 6879 SchemaProps: spec.SchemaProps{ 6880 Default: map[string]interface{}{}, 6881 Ref: ref("k8s.io/api/core/v1.WeightedPodAffinityTerm"), 6882 }, 6883 }, 6884 }, 6885 }, 6886 }, 6887 }, 6888 }, 6889 }, 6890 Dependencies: []string{ 6891 "k8s.io/api/core/v1.PodAffinityTerm", "k8s.io/api/core/v1.WeightedPodAffinityTerm"}, 6892 } 6893 } 6894 6895 func schema_k8sio_api_core_v1_PodAffinityTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 6896 return common.OpenAPIDefinition{ 6897 Schema: spec.Schema{ 6898 SchemaProps: spec.SchemaProps{ 6899 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 <topologyKey> matches that of any node on which a pod of the set of pods is running", 6900 Type: []string{"object"}, 6901 Properties: map[string]spec.Schema{ 6902 "labelSelector": { 6903 SchemaProps: spec.SchemaProps{ 6904 Description: "A label query over a set of resources, in this case pods.", 6905 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 6906 }, 6907 }, 6908 "namespaces": { 6909 SchemaProps: spec.SchemaProps{ 6910 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\".", 6911 Type: []string{"array"}, 6912 Items: &spec.SchemaOrArray{ 6913 Schema: &spec.Schema{ 6914 SchemaProps: spec.SchemaProps{ 6915 Default: "", 6916 Type: []string{"string"}, 6917 Format: "", 6918 }, 6919 }, 6920 }, 6921 }, 6922 }, 6923 "topologyKey": { 6924 SchemaProps: spec.SchemaProps{ 6925 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.", 6926 Default: "", 6927 Type: []string{"string"}, 6928 Format: "", 6929 }, 6930 }, 6931 "namespaceSelector": { 6932 SchemaProps: spec.SchemaProps{ 6933 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.", 6934 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 6935 }, 6936 }, 6937 }, 6938 Required: []string{"topologyKey"}, 6939 }, 6940 }, 6941 Dependencies: []string{ 6942 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 6943 } 6944 } 6945 6946 func schema_k8sio_api_core_v1_PodAntiAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 6947 return common.OpenAPIDefinition{ 6948 Schema: spec.Schema{ 6949 SchemaProps: spec.SchemaProps{ 6950 Description: "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", 6951 Type: []string{"object"}, 6952 Properties: map[string]spec.Schema{ 6953 "requiredDuringSchedulingIgnoredDuringExecution": { 6954 SchemaProps: spec.SchemaProps{ 6955 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.", 6956 Type: []string{"array"}, 6957 Items: &spec.SchemaOrArray{ 6958 Schema: &spec.Schema{ 6959 SchemaProps: spec.SchemaProps{ 6960 Default: map[string]interface{}{}, 6961 Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), 6962 }, 6963 }, 6964 }, 6965 }, 6966 }, 6967 "preferredDuringSchedulingIgnoredDuringExecution": { 6968 SchemaProps: spec.SchemaProps{ 6969 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.", 6970 Type: []string{"array"}, 6971 Items: &spec.SchemaOrArray{ 6972 Schema: &spec.Schema{ 6973 SchemaProps: spec.SchemaProps{ 6974 Default: map[string]interface{}{}, 6975 Ref: ref("k8s.io/api/core/v1.WeightedPodAffinityTerm"), 6976 }, 6977 }, 6978 }, 6979 }, 6980 }, 6981 }, 6982 }, 6983 }, 6984 Dependencies: []string{ 6985 "k8s.io/api/core/v1.PodAffinityTerm", "k8s.io/api/core/v1.WeightedPodAffinityTerm"}, 6986 } 6987 } 6988 6989 func schema_k8sio_api_core_v1_PodAttachOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 6990 return common.OpenAPIDefinition{ 6991 Schema: spec.Schema{ 6992 SchemaProps: spec.SchemaProps{ 6993 Description: "PodAttachOptions is the query options to a Pod's remote attach call.", 6994 Type: []string{"object"}, 6995 Properties: map[string]spec.Schema{ 6996 "kind": { 6997 SchemaProps: spec.SchemaProps{ 6998 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6999 Type: []string{"string"}, 7000 Format: "", 7001 }, 7002 }, 7003 "apiVersion": { 7004 SchemaProps: spec.SchemaProps{ 7005 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7006 Type: []string{"string"}, 7007 Format: "", 7008 }, 7009 }, 7010 "stdin": { 7011 SchemaProps: spec.SchemaProps{ 7012 Description: "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", 7013 Type: []string{"boolean"}, 7014 Format: "", 7015 }, 7016 }, 7017 "stdout": { 7018 SchemaProps: spec.SchemaProps{ 7019 Description: "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", 7020 Type: []string{"boolean"}, 7021 Format: "", 7022 }, 7023 }, 7024 "stderr": { 7025 SchemaProps: spec.SchemaProps{ 7026 Description: "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", 7027 Type: []string{"boolean"}, 7028 Format: "", 7029 }, 7030 }, 7031 "tty": { 7032 SchemaProps: spec.SchemaProps{ 7033 Description: "TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.", 7034 Type: []string{"boolean"}, 7035 Format: "", 7036 }, 7037 }, 7038 "container": { 7039 SchemaProps: spec.SchemaProps{ 7040 Description: "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", 7041 Type: []string{"string"}, 7042 Format: "", 7043 }, 7044 }, 7045 }, 7046 }, 7047 }, 7048 } 7049 } 7050 7051 func schema_k8sio_api_core_v1_PodCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 7052 return common.OpenAPIDefinition{ 7053 Schema: spec.Schema{ 7054 SchemaProps: spec.SchemaProps{ 7055 Description: "PodCondition contains details for the current condition of this pod.", 7056 Type: []string{"object"}, 7057 Properties: map[string]spec.Schema{ 7058 "type": { 7059 SchemaProps: spec.SchemaProps{ 7060 Description: "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", 7061 Default: "", 7062 Type: []string{"string"}, 7063 Format: "", 7064 }, 7065 }, 7066 "status": { 7067 SchemaProps: spec.SchemaProps{ 7068 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", 7069 Default: "", 7070 Type: []string{"string"}, 7071 Format: "", 7072 }, 7073 }, 7074 "lastProbeTime": { 7075 SchemaProps: spec.SchemaProps{ 7076 Description: "Last time we probed the condition.", 7077 Default: map[string]interface{}{}, 7078 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 7079 }, 7080 }, 7081 "lastTransitionTime": { 7082 SchemaProps: spec.SchemaProps{ 7083 Description: "Last time the condition transitioned from one status to another.", 7084 Default: map[string]interface{}{}, 7085 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 7086 }, 7087 }, 7088 "reason": { 7089 SchemaProps: spec.SchemaProps{ 7090 Description: "Unique, one-word, CamelCase reason for the condition's last transition.", 7091 Type: []string{"string"}, 7092 Format: "", 7093 }, 7094 }, 7095 "message": { 7096 SchemaProps: spec.SchemaProps{ 7097 Description: "Human-readable message indicating details about last transition.", 7098 Type: []string{"string"}, 7099 Format: "", 7100 }, 7101 }, 7102 }, 7103 Required: []string{"type", "status"}, 7104 }, 7105 }, 7106 Dependencies: []string{ 7107 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 7108 } 7109 } 7110 7111 func schema_k8sio_api_core_v1_PodDNSConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 7112 return common.OpenAPIDefinition{ 7113 Schema: spec.Schema{ 7114 SchemaProps: spec.SchemaProps{ 7115 Description: "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", 7116 Type: []string{"object"}, 7117 Properties: map[string]spec.Schema{ 7118 "nameservers": { 7119 SchemaProps: spec.SchemaProps{ 7120 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.", 7121 Type: []string{"array"}, 7122 Items: &spec.SchemaOrArray{ 7123 Schema: &spec.Schema{ 7124 SchemaProps: spec.SchemaProps{ 7125 Default: "", 7126 Type: []string{"string"}, 7127 Format: "", 7128 }, 7129 }, 7130 }, 7131 }, 7132 }, 7133 "searches": { 7134 SchemaProps: spec.SchemaProps{ 7135 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.", 7136 Type: []string{"array"}, 7137 Items: &spec.SchemaOrArray{ 7138 Schema: &spec.Schema{ 7139 SchemaProps: spec.SchemaProps{ 7140 Default: "", 7141 Type: []string{"string"}, 7142 Format: "", 7143 }, 7144 }, 7145 }, 7146 }, 7147 }, 7148 "options": { 7149 SchemaProps: spec.SchemaProps{ 7150 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.", 7151 Type: []string{"array"}, 7152 Items: &spec.SchemaOrArray{ 7153 Schema: &spec.Schema{ 7154 SchemaProps: spec.SchemaProps{ 7155 Default: map[string]interface{}{}, 7156 Ref: ref("k8s.io/api/core/v1.PodDNSConfigOption"), 7157 }, 7158 }, 7159 }, 7160 }, 7161 }, 7162 }, 7163 }, 7164 }, 7165 Dependencies: []string{ 7166 "k8s.io/api/core/v1.PodDNSConfigOption"}, 7167 } 7168 } 7169 7170 func schema_k8sio_api_core_v1_PodDNSConfigOption(ref common.ReferenceCallback) common.OpenAPIDefinition { 7171 return common.OpenAPIDefinition{ 7172 Schema: spec.Schema{ 7173 SchemaProps: spec.SchemaProps{ 7174 Description: "PodDNSConfigOption defines DNS resolver options of a pod.", 7175 Type: []string{"object"}, 7176 Properties: map[string]spec.Schema{ 7177 "name": { 7178 SchemaProps: spec.SchemaProps{ 7179 Description: "Required.", 7180 Type: []string{"string"}, 7181 Format: "", 7182 }, 7183 }, 7184 "value": { 7185 SchemaProps: spec.SchemaProps{ 7186 Type: []string{"string"}, 7187 Format: "", 7188 }, 7189 }, 7190 }, 7191 }, 7192 }, 7193 } 7194 } 7195 7196 func schema_k8sio_api_core_v1_PodExecOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 7197 return common.OpenAPIDefinition{ 7198 Schema: spec.Schema{ 7199 SchemaProps: spec.SchemaProps{ 7200 Description: "PodExecOptions is the query options to a Pod's remote exec call.", 7201 Type: []string{"object"}, 7202 Properties: map[string]spec.Schema{ 7203 "kind": { 7204 SchemaProps: spec.SchemaProps{ 7205 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7206 Type: []string{"string"}, 7207 Format: "", 7208 }, 7209 }, 7210 "apiVersion": { 7211 SchemaProps: spec.SchemaProps{ 7212 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7213 Type: []string{"string"}, 7214 Format: "", 7215 }, 7216 }, 7217 "stdin": { 7218 SchemaProps: spec.SchemaProps{ 7219 Description: "Redirect the standard input stream of the pod for this call. Defaults to false.", 7220 Type: []string{"boolean"}, 7221 Format: "", 7222 }, 7223 }, 7224 "stdout": { 7225 SchemaProps: spec.SchemaProps{ 7226 Description: "Redirect the standard output stream of the pod for this call.", 7227 Type: []string{"boolean"}, 7228 Format: "", 7229 }, 7230 }, 7231 "stderr": { 7232 SchemaProps: spec.SchemaProps{ 7233 Description: "Redirect the standard error stream of the pod for this call.", 7234 Type: []string{"boolean"}, 7235 Format: "", 7236 }, 7237 }, 7238 "tty": { 7239 SchemaProps: spec.SchemaProps{ 7240 Description: "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", 7241 Type: []string{"boolean"}, 7242 Format: "", 7243 }, 7244 }, 7245 "container": { 7246 SchemaProps: spec.SchemaProps{ 7247 Description: "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", 7248 Type: []string{"string"}, 7249 Format: "", 7250 }, 7251 }, 7252 "command": { 7253 SchemaProps: spec.SchemaProps{ 7254 Description: "Command is the remote command to execute. argv array. Not executed within a shell.", 7255 Type: []string{"array"}, 7256 Items: &spec.SchemaOrArray{ 7257 Schema: &spec.Schema{ 7258 SchemaProps: spec.SchemaProps{ 7259 Default: "", 7260 Type: []string{"string"}, 7261 Format: "", 7262 }, 7263 }, 7264 }, 7265 }, 7266 }, 7267 }, 7268 Required: []string{"command"}, 7269 }, 7270 }, 7271 } 7272 } 7273 7274 func schema_k8sio_api_core_v1_PodIP(ref common.ReferenceCallback) common.OpenAPIDefinition { 7275 return common.OpenAPIDefinition{ 7276 Schema: spec.Schema{ 7277 SchemaProps: spec.SchemaProps{ 7278 Description: "IP address information for entries in the (plural) PodIPs field. Each entry includes:\n\n\tIP: An IP address allocated to the pod. Routable at least within the cluster.", 7279 Type: []string{"object"}, 7280 Properties: map[string]spec.Schema{ 7281 "ip": { 7282 SchemaProps: spec.SchemaProps{ 7283 Description: "ip is an IP address (IPv4 or IPv6) assigned to the pod", 7284 Type: []string{"string"}, 7285 Format: "", 7286 }, 7287 }, 7288 }, 7289 }, 7290 }, 7291 } 7292 } 7293 7294 func schema_k8sio_api_core_v1_PodList(ref common.ReferenceCallback) common.OpenAPIDefinition { 7295 return common.OpenAPIDefinition{ 7296 Schema: spec.Schema{ 7297 SchemaProps: spec.SchemaProps{ 7298 Description: "PodList is a list of Pods.", 7299 Type: []string{"object"}, 7300 Properties: map[string]spec.Schema{ 7301 "kind": { 7302 SchemaProps: spec.SchemaProps{ 7303 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7304 Type: []string{"string"}, 7305 Format: "", 7306 }, 7307 }, 7308 "apiVersion": { 7309 SchemaProps: spec.SchemaProps{ 7310 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7311 Type: []string{"string"}, 7312 Format: "", 7313 }, 7314 }, 7315 "metadata": { 7316 SchemaProps: spec.SchemaProps{ 7317 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7318 Default: map[string]interface{}{}, 7319 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 7320 }, 7321 }, 7322 "items": { 7323 SchemaProps: spec.SchemaProps{ 7324 Description: "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", 7325 Type: []string{"array"}, 7326 Items: &spec.SchemaOrArray{ 7327 Schema: &spec.Schema{ 7328 SchemaProps: spec.SchemaProps{ 7329 Default: map[string]interface{}{}, 7330 Ref: ref("k8s.io/api/core/v1.Pod"), 7331 }, 7332 }, 7333 }, 7334 }, 7335 }, 7336 }, 7337 Required: []string{"items"}, 7338 }, 7339 }, 7340 Dependencies: []string{ 7341 "k8s.io/api/core/v1.Pod", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 7342 } 7343 } 7344 7345 func schema_k8sio_api_core_v1_PodLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 7346 return common.OpenAPIDefinition{ 7347 Schema: spec.Schema{ 7348 SchemaProps: spec.SchemaProps{ 7349 Description: "PodLogOptions is the query options for a Pod's logs REST call.", 7350 Type: []string{"object"}, 7351 Properties: map[string]spec.Schema{ 7352 "kind": { 7353 SchemaProps: spec.SchemaProps{ 7354 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7355 Type: []string{"string"}, 7356 Format: "", 7357 }, 7358 }, 7359 "apiVersion": { 7360 SchemaProps: spec.SchemaProps{ 7361 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7362 Type: []string{"string"}, 7363 Format: "", 7364 }, 7365 }, 7366 "container": { 7367 SchemaProps: spec.SchemaProps{ 7368 Description: "The container for which to stream logs. Defaults to only container if there is one container in the pod.", 7369 Type: []string{"string"}, 7370 Format: "", 7371 }, 7372 }, 7373 "follow": { 7374 SchemaProps: spec.SchemaProps{ 7375 Description: "Follow the log stream of the pod. Defaults to false.", 7376 Type: []string{"boolean"}, 7377 Format: "", 7378 }, 7379 }, 7380 "previous": { 7381 SchemaProps: spec.SchemaProps{ 7382 Description: "Return previous terminated container logs. Defaults to false.", 7383 Type: []string{"boolean"}, 7384 Format: "", 7385 }, 7386 }, 7387 "sinceSeconds": { 7388 SchemaProps: spec.SchemaProps{ 7389 Description: "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", 7390 Type: []string{"integer"}, 7391 Format: "int64", 7392 }, 7393 }, 7394 "sinceTime": { 7395 SchemaProps: spec.SchemaProps{ 7396 Description: "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", 7397 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 7398 }, 7399 }, 7400 "timestamps": { 7401 SchemaProps: spec.SchemaProps{ 7402 Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", 7403 Type: []string{"boolean"}, 7404 Format: "", 7405 }, 7406 }, 7407 "tailLines": { 7408 SchemaProps: spec.SchemaProps{ 7409 Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", 7410 Type: []string{"integer"}, 7411 Format: "int64", 7412 }, 7413 }, 7414 "limitBytes": { 7415 SchemaProps: spec.SchemaProps{ 7416 Description: "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", 7417 Type: []string{"integer"}, 7418 Format: "int64", 7419 }, 7420 }, 7421 "insecureSkipTLSVerifyBackend": { 7422 SchemaProps: spec.SchemaProps{ 7423 Description: "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", 7424 Type: []string{"boolean"}, 7425 Format: "", 7426 }, 7427 }, 7428 }, 7429 }, 7430 }, 7431 Dependencies: []string{ 7432 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 7433 } 7434 } 7435 7436 func schema_k8sio_api_core_v1_PodOS(ref common.ReferenceCallback) common.OpenAPIDefinition { 7437 return common.OpenAPIDefinition{ 7438 Schema: spec.Schema{ 7439 SchemaProps: spec.SchemaProps{ 7440 Description: "PodOS defines the OS parameters of a pod.", 7441 Type: []string{"object"}, 7442 Properties: map[string]spec.Schema{ 7443 "name": { 7444 SchemaProps: spec.SchemaProps{ 7445 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", 7446 Default: "", 7447 Type: []string{"string"}, 7448 Format: "", 7449 }, 7450 }, 7451 }, 7452 Required: []string{"name"}, 7453 }, 7454 }, 7455 } 7456 } 7457 7458 func schema_k8sio_api_core_v1_PodPortForwardOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 7459 return common.OpenAPIDefinition{ 7460 Schema: spec.Schema{ 7461 SchemaProps: spec.SchemaProps{ 7462 Description: "PodPortForwardOptions is the query options to a Pod's port forward call when using WebSockets. The `port` query parameter must specify the port or ports (comma separated) to forward over. Port forwarding over SPDY does not use these options. It requires the port to be passed in the `port` header as part of request.", 7463 Type: []string{"object"}, 7464 Properties: map[string]spec.Schema{ 7465 "kind": { 7466 SchemaProps: spec.SchemaProps{ 7467 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7468 Type: []string{"string"}, 7469 Format: "", 7470 }, 7471 }, 7472 "apiVersion": { 7473 SchemaProps: spec.SchemaProps{ 7474 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7475 Type: []string{"string"}, 7476 Format: "", 7477 }, 7478 }, 7479 "ports": { 7480 SchemaProps: spec.SchemaProps{ 7481 Description: "List of ports to forward Required when using WebSockets", 7482 Type: []string{"array"}, 7483 Items: &spec.SchemaOrArray{ 7484 Schema: &spec.Schema{ 7485 SchemaProps: spec.SchemaProps{ 7486 Default: 0, 7487 Type: []string{"integer"}, 7488 Format: "int32", 7489 }, 7490 }, 7491 }, 7492 }, 7493 }, 7494 }, 7495 }, 7496 }, 7497 } 7498 } 7499 7500 func schema_k8sio_api_core_v1_PodProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 7501 return common.OpenAPIDefinition{ 7502 Schema: spec.Schema{ 7503 SchemaProps: spec.SchemaProps{ 7504 Description: "PodProxyOptions is the query options to a Pod's proxy call.", 7505 Type: []string{"object"}, 7506 Properties: map[string]spec.Schema{ 7507 "kind": { 7508 SchemaProps: spec.SchemaProps{ 7509 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7510 Type: []string{"string"}, 7511 Format: "", 7512 }, 7513 }, 7514 "apiVersion": { 7515 SchemaProps: spec.SchemaProps{ 7516 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7517 Type: []string{"string"}, 7518 Format: "", 7519 }, 7520 }, 7521 "path": { 7522 SchemaProps: spec.SchemaProps{ 7523 Description: "Path is the URL path to use for the current proxy request to pod.", 7524 Type: []string{"string"}, 7525 Format: "", 7526 }, 7527 }, 7528 }, 7529 }, 7530 }, 7531 } 7532 } 7533 7534 func schema_k8sio_api_core_v1_PodReadinessGate(ref common.ReferenceCallback) common.OpenAPIDefinition { 7535 return common.OpenAPIDefinition{ 7536 Schema: spec.Schema{ 7537 SchemaProps: spec.SchemaProps{ 7538 Description: "PodReadinessGate contains the reference to a pod condition", 7539 Type: []string{"object"}, 7540 Properties: map[string]spec.Schema{ 7541 "conditionType": { 7542 SchemaProps: spec.SchemaProps{ 7543 Description: "ConditionType refers to a condition in the pod's condition list with matching type.", 7544 Default: "", 7545 Type: []string{"string"}, 7546 Format: "", 7547 }, 7548 }, 7549 }, 7550 Required: []string{"conditionType"}, 7551 }, 7552 }, 7553 } 7554 } 7555 7556 func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) common.OpenAPIDefinition { 7557 return common.OpenAPIDefinition{ 7558 Schema: spec.Schema{ 7559 SchemaProps: spec.SchemaProps{ 7560 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.", 7561 Type: []string{"object"}, 7562 Properties: map[string]spec.Schema{ 7563 "seLinuxOptions": { 7564 SchemaProps: spec.SchemaProps{ 7565 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.", 7566 Ref: ref("k8s.io/api/core/v1.SELinuxOptions"), 7567 }, 7568 }, 7569 "windowsOptions": { 7570 SchemaProps: spec.SchemaProps{ 7571 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.", 7572 Ref: ref("k8s.io/api/core/v1.WindowsSecurityContextOptions"), 7573 }, 7574 }, 7575 "runAsUser": { 7576 SchemaProps: spec.SchemaProps{ 7577 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.", 7578 Type: []string{"integer"}, 7579 Format: "int64", 7580 }, 7581 }, 7582 "runAsGroup": { 7583 SchemaProps: spec.SchemaProps{ 7584 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.", 7585 Type: []string{"integer"}, 7586 Format: "int64", 7587 }, 7588 }, 7589 "runAsNonRoot": { 7590 SchemaProps: spec.SchemaProps{ 7591 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.", 7592 Type: []string{"boolean"}, 7593 Format: "", 7594 }, 7595 }, 7596 "supplementalGroups": { 7597 SchemaProps: spec.SchemaProps{ 7598 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.", 7599 Type: []string{"array"}, 7600 Items: &spec.SchemaOrArray{ 7601 Schema: &spec.Schema{ 7602 SchemaProps: spec.SchemaProps{ 7603 Default: 0, 7604 Type: []string{"integer"}, 7605 Format: "int64", 7606 }, 7607 }, 7608 }, 7609 }, 7610 }, 7611 "fsGroup": { 7612 SchemaProps: spec.SchemaProps{ 7613 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.", 7614 Type: []string{"integer"}, 7615 Format: "int64", 7616 }, 7617 }, 7618 "sysctls": { 7619 SchemaProps: spec.SchemaProps{ 7620 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.", 7621 Type: []string{"array"}, 7622 Items: &spec.SchemaOrArray{ 7623 Schema: &spec.Schema{ 7624 SchemaProps: spec.SchemaProps{ 7625 Default: map[string]interface{}{}, 7626 Ref: ref("k8s.io/api/core/v1.Sysctl"), 7627 }, 7628 }, 7629 }, 7630 }, 7631 }, 7632 "fsGroupChangePolicy": { 7633 SchemaProps: spec.SchemaProps{ 7634 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.", 7635 Type: []string{"string"}, 7636 Format: "", 7637 }, 7638 }, 7639 "seccompProfile": { 7640 SchemaProps: spec.SchemaProps{ 7641 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.", 7642 Ref: ref("k8s.io/api/core/v1.SeccompProfile"), 7643 }, 7644 }, 7645 }, 7646 }, 7647 }, 7648 Dependencies: []string{ 7649 "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.Sysctl", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, 7650 } 7651 } 7652 7653 func schema_k8sio_api_core_v1_PodSignature(ref common.ReferenceCallback) common.OpenAPIDefinition { 7654 return common.OpenAPIDefinition{ 7655 Schema: spec.Schema{ 7656 SchemaProps: spec.SchemaProps{ 7657 Description: "Describes the class of pods that should avoid this node. Exactly one field should be set.", 7658 Type: []string{"object"}, 7659 Properties: map[string]spec.Schema{ 7660 "podController": { 7661 SchemaProps: spec.SchemaProps{ 7662 Description: "Reference to controller whose pods should avoid this node.", 7663 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), 7664 }, 7665 }, 7666 }, 7667 }, 7668 }, 7669 Dependencies: []string{ 7670 "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"}, 7671 } 7672 } 7673 7674 func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 7675 return common.OpenAPIDefinition{ 7676 Schema: spec.Schema{ 7677 SchemaProps: spec.SchemaProps{ 7678 Description: "PodSpec is a description of a pod.", 7679 Type: []string{"object"}, 7680 Properties: map[string]spec.Schema{ 7681 "volumes": { 7682 VendorExtensible: spec.VendorExtensible{ 7683 Extensions: spec.Extensions{ 7684 "x-kubernetes-patch-merge-key": "name", 7685 "x-kubernetes-patch-strategy": "merge,retainKeys", 7686 }, 7687 }, 7688 SchemaProps: spec.SchemaProps{ 7689 Description: "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", 7690 Type: []string{"array"}, 7691 Items: &spec.SchemaOrArray{ 7692 Schema: &spec.Schema{ 7693 SchemaProps: spec.SchemaProps{ 7694 Default: map[string]interface{}{}, 7695 Ref: ref("k8s.io/api/core/v1.Volume"), 7696 }, 7697 }, 7698 }, 7699 }, 7700 }, 7701 "initContainers": { 7702 VendorExtensible: spec.VendorExtensible{ 7703 Extensions: spec.Extensions{ 7704 "x-kubernetes-patch-merge-key": "name", 7705 "x-kubernetes-patch-strategy": "merge", 7706 }, 7707 }, 7708 SchemaProps: spec.SchemaProps{ 7709 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/", 7710 Type: []string{"array"}, 7711 Items: &spec.SchemaOrArray{ 7712 Schema: &spec.Schema{ 7713 SchemaProps: spec.SchemaProps{ 7714 Default: map[string]interface{}{}, 7715 Ref: ref("k8s.io/api/core/v1.Container"), 7716 }, 7717 }, 7718 }, 7719 }, 7720 }, 7721 "containers": { 7722 VendorExtensible: spec.VendorExtensible{ 7723 Extensions: spec.Extensions{ 7724 "x-kubernetes-patch-merge-key": "name", 7725 "x-kubernetes-patch-strategy": "merge", 7726 }, 7727 }, 7728 SchemaProps: spec.SchemaProps{ 7729 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.", 7730 Type: []string{"array"}, 7731 Items: &spec.SchemaOrArray{ 7732 Schema: &spec.Schema{ 7733 SchemaProps: spec.SchemaProps{ 7734 Default: map[string]interface{}{}, 7735 Ref: ref("k8s.io/api/core/v1.Container"), 7736 }, 7737 }, 7738 }, 7739 }, 7740 }, 7741 "ephemeralContainers": { 7742 VendorExtensible: spec.VendorExtensible{ 7743 Extensions: spec.Extensions{ 7744 "x-kubernetes-patch-merge-key": "name", 7745 "x-kubernetes-patch-strategy": "merge", 7746 }, 7747 }, 7748 SchemaProps: spec.SchemaProps{ 7749 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.", 7750 Type: []string{"array"}, 7751 Items: &spec.SchemaOrArray{ 7752 Schema: &spec.Schema{ 7753 SchemaProps: spec.SchemaProps{ 7754 Default: map[string]interface{}{}, 7755 Ref: ref("k8s.io/api/core/v1.EphemeralContainer"), 7756 }, 7757 }, 7758 }, 7759 }, 7760 }, 7761 "restartPolicy": { 7762 SchemaProps: spec.SchemaProps{ 7763 Description: "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy\n\nPossible enum values:\n - `\"Always\"`\n - `\"Never\"`\n - `\"OnFailure\"`", 7764 Type: []string{"string"}, 7765 Format: "", 7766 Enum: []interface{}{"Always", "Never", "OnFailure"}}, 7767 }, 7768 "terminationGracePeriodSeconds": { 7769 SchemaProps: spec.SchemaProps{ 7770 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.", 7771 Type: []string{"integer"}, 7772 Format: "int64", 7773 }, 7774 }, 7775 "activeDeadlineSeconds": { 7776 SchemaProps: spec.SchemaProps{ 7777 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.", 7778 Type: []string{"integer"}, 7779 Format: "int64", 7780 }, 7781 }, 7782 "dnsPolicy": { 7783 SchemaProps: spec.SchemaProps{ 7784 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'.\n\nPossible enum values:\n - `\"ClusterFirst\"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings.\n - `\"ClusterFirstWithHostNet\"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings.\n - `\"Default\"` indicates that the pod should use the default (as determined by kubelet) DNS settings.\n - `\"None\"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig.", 7785 Type: []string{"string"}, 7786 Format: "", 7787 Enum: []interface{}{"ClusterFirst", "ClusterFirstWithHostNet", "Default", "None"}}, 7788 }, 7789 "nodeSelector": { 7790 VendorExtensible: spec.VendorExtensible{ 7791 Extensions: spec.Extensions{ 7792 "x-kubernetes-map-type": "atomic", 7793 }, 7794 }, 7795 SchemaProps: spec.SchemaProps{ 7796 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/", 7797 Type: []string{"object"}, 7798 AdditionalProperties: &spec.SchemaOrBool{ 7799 Allows: true, 7800 Schema: &spec.Schema{ 7801 SchemaProps: spec.SchemaProps{ 7802 Default: "", 7803 Type: []string{"string"}, 7804 Format: "", 7805 }, 7806 }, 7807 }, 7808 }, 7809 }, 7810 "serviceAccountName": { 7811 SchemaProps: spec.SchemaProps{ 7812 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/", 7813 Type: []string{"string"}, 7814 Format: "", 7815 }, 7816 }, 7817 "serviceAccount": { 7818 SchemaProps: spec.SchemaProps{ 7819 Description: "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", 7820 Type: []string{"string"}, 7821 Format: "", 7822 }, 7823 }, 7824 "automountServiceAccountToken": { 7825 SchemaProps: spec.SchemaProps{ 7826 Description: "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", 7827 Type: []string{"boolean"}, 7828 Format: "", 7829 }, 7830 }, 7831 "nodeName": { 7832 SchemaProps: spec.SchemaProps{ 7833 Description: "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.", 7834 Type: []string{"string"}, 7835 Format: "", 7836 }, 7837 }, 7838 "hostNetwork": { 7839 SchemaProps: spec.SchemaProps{ 7840 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.", 7841 Type: []string{"boolean"}, 7842 Format: "", 7843 }, 7844 }, 7845 "hostPID": { 7846 SchemaProps: spec.SchemaProps{ 7847 Description: "Use the host's pid namespace. Optional: Default to false.", 7848 Type: []string{"boolean"}, 7849 Format: "", 7850 }, 7851 }, 7852 "hostIPC": { 7853 SchemaProps: spec.SchemaProps{ 7854 Description: "Use the host's ipc namespace. Optional: Default to false.", 7855 Type: []string{"boolean"}, 7856 Format: "", 7857 }, 7858 }, 7859 "shareProcessNamespace": { 7860 SchemaProps: spec.SchemaProps{ 7861 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.", 7862 Type: []string{"boolean"}, 7863 Format: "", 7864 }, 7865 }, 7866 "securityContext": { 7867 SchemaProps: spec.SchemaProps{ 7868 Description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", 7869 Ref: ref("k8s.io/api/core/v1.PodSecurityContext"), 7870 }, 7871 }, 7872 "imagePullSecrets": { 7873 VendorExtensible: spec.VendorExtensible{ 7874 Extensions: spec.Extensions{ 7875 "x-kubernetes-patch-merge-key": "name", 7876 "x-kubernetes-patch-strategy": "merge", 7877 }, 7878 }, 7879 SchemaProps: spec.SchemaProps{ 7880 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", 7881 Type: []string{"array"}, 7882 Items: &spec.SchemaOrArray{ 7883 Schema: &spec.Schema{ 7884 SchemaProps: spec.SchemaProps{ 7885 Default: map[string]interface{}{}, 7886 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 7887 }, 7888 }, 7889 }, 7890 }, 7891 }, 7892 "hostname": { 7893 SchemaProps: spec.SchemaProps{ 7894 Description: "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", 7895 Type: []string{"string"}, 7896 Format: "", 7897 }, 7898 }, 7899 "subdomain": { 7900 SchemaProps: spec.SchemaProps{ 7901 Description: "If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the pod will not have a domainname at all.", 7902 Type: []string{"string"}, 7903 Format: "", 7904 }, 7905 }, 7906 "affinity": { 7907 SchemaProps: spec.SchemaProps{ 7908 Description: "If specified, the pod's scheduling constraints", 7909 Ref: ref("k8s.io/api/core/v1.Affinity"), 7910 }, 7911 }, 7912 "schedulerName": { 7913 SchemaProps: spec.SchemaProps{ 7914 Description: "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", 7915 Type: []string{"string"}, 7916 Format: "", 7917 }, 7918 }, 7919 "tolerations": { 7920 SchemaProps: spec.SchemaProps{ 7921 Description: "If specified, the pod's tolerations.", 7922 Type: []string{"array"}, 7923 Items: &spec.SchemaOrArray{ 7924 Schema: &spec.Schema{ 7925 SchemaProps: spec.SchemaProps{ 7926 Default: map[string]interface{}{}, 7927 Ref: ref("k8s.io/api/core/v1.Toleration"), 7928 }, 7929 }, 7930 }, 7931 }, 7932 }, 7933 "hostAliases": { 7934 VendorExtensible: spec.VendorExtensible{ 7935 Extensions: spec.Extensions{ 7936 "x-kubernetes-patch-merge-key": "ip", 7937 "x-kubernetes-patch-strategy": "merge", 7938 }, 7939 }, 7940 SchemaProps: spec.SchemaProps{ 7941 Description: "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", 7942 Type: []string{"array"}, 7943 Items: &spec.SchemaOrArray{ 7944 Schema: &spec.Schema{ 7945 SchemaProps: spec.SchemaProps{ 7946 Default: map[string]interface{}{}, 7947 Ref: ref("k8s.io/api/core/v1.HostAlias"), 7948 }, 7949 }, 7950 }, 7951 }, 7952 }, 7953 "priorityClassName": { 7954 SchemaProps: spec.SchemaProps{ 7955 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.", 7956 Type: []string{"string"}, 7957 Format: "", 7958 }, 7959 }, 7960 "priority": { 7961 SchemaProps: spec.SchemaProps{ 7962 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.", 7963 Type: []string{"integer"}, 7964 Format: "int32", 7965 }, 7966 }, 7967 "dnsConfig": { 7968 SchemaProps: spec.SchemaProps{ 7969 Description: "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.", 7970 Ref: ref("k8s.io/api/core/v1.PodDNSConfig"), 7971 }, 7972 }, 7973 "readinessGates": { 7974 SchemaProps: spec.SchemaProps{ 7975 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", 7976 Type: []string{"array"}, 7977 Items: &spec.SchemaOrArray{ 7978 Schema: &spec.Schema{ 7979 SchemaProps: spec.SchemaProps{ 7980 Default: map[string]interface{}{}, 7981 Ref: ref("k8s.io/api/core/v1.PodReadinessGate"), 7982 }, 7983 }, 7984 }, 7985 }, 7986 }, 7987 "runtimeClassName": { 7988 SchemaProps: spec.SchemaProps{ 7989 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", 7990 Type: []string{"string"}, 7991 Format: "", 7992 }, 7993 }, 7994 "enableServiceLinks": { 7995 SchemaProps: spec.SchemaProps{ 7996 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.", 7997 Type: []string{"boolean"}, 7998 Format: "", 7999 }, 8000 }, 8001 "preemptionPolicy": { 8002 SchemaProps: spec.SchemaProps{ 8003 Description: "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", 8004 Type: []string{"string"}, 8005 Format: "", 8006 }, 8007 }, 8008 "overhead": { 8009 SchemaProps: spec.SchemaProps{ 8010 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", 8011 Type: []string{"object"}, 8012 AdditionalProperties: &spec.SchemaOrBool{ 8013 Allows: true, 8014 Schema: &spec.Schema{ 8015 SchemaProps: spec.SchemaProps{ 8016 Default: map[string]interface{}{}, 8017 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 8018 }, 8019 }, 8020 }, 8021 }, 8022 }, 8023 "topologySpreadConstraints": { 8024 VendorExtensible: spec.VendorExtensible{ 8025 Extensions: spec.Extensions{ 8026 "x-kubernetes-list-map-keys": []interface{}{ 8027 "topologyKey", 8028 "whenUnsatisfiable", 8029 }, 8030 "x-kubernetes-list-type": "map", 8031 "x-kubernetes-patch-merge-key": "topologyKey", 8032 "x-kubernetes-patch-strategy": "merge", 8033 }, 8034 }, 8035 SchemaProps: spec.SchemaProps{ 8036 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.", 8037 Type: []string{"array"}, 8038 Items: &spec.SchemaOrArray{ 8039 Schema: &spec.Schema{ 8040 SchemaProps: spec.SchemaProps{ 8041 Default: map[string]interface{}{}, 8042 Ref: ref("k8s.io/api/core/v1.TopologySpreadConstraint"), 8043 }, 8044 }, 8045 }, 8046 }, 8047 }, 8048 "setHostnameAsFQDN": { 8049 SchemaProps: spec.SchemaProps{ 8050 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.", 8051 Type: []string{"boolean"}, 8052 Format: "", 8053 }, 8054 }, 8055 "os": { 8056 SchemaProps: spec.SchemaProps{ 8057 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.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.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", 8058 Ref: ref("k8s.io/api/core/v1.PodOS"), 8059 }, 8060 }, 8061 "hostUsers": { 8062 SchemaProps: spec.SchemaProps{ 8063 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.", 8064 Type: []string{"boolean"}, 8065 Format: "", 8066 }, 8067 }, 8068 }, 8069 Required: []string{"containers"}, 8070 }, 8071 }, 8072 Dependencies: []string{ 8073 "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.EphemeralContainer", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.PodDNSConfig", "k8s.io/api/core/v1.PodOS", "k8s.io/api/core/v1.PodReadinessGate", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.TopologySpreadConstraint", "k8s.io/api/core/v1.Volume", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 8074 } 8075 } 8076 8077 func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 8078 return common.OpenAPIDefinition{ 8079 Schema: spec.Schema{ 8080 SchemaProps: spec.SchemaProps{ 8081 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.", 8082 Type: []string{"object"}, 8083 Properties: map[string]spec.Schema{ 8084 "phase": { 8085 SchemaProps: spec.SchemaProps{ 8086 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\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that 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. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", 8087 Type: []string{"string"}, 8088 Format: "", 8089 Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}}, 8090 }, 8091 "conditions": { 8092 VendorExtensible: spec.VendorExtensible{ 8093 Extensions: spec.Extensions{ 8094 "x-kubernetes-patch-merge-key": "type", 8095 "x-kubernetes-patch-strategy": "merge", 8096 }, 8097 }, 8098 SchemaProps: spec.SchemaProps{ 8099 Description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", 8100 Type: []string{"array"}, 8101 Items: &spec.SchemaOrArray{ 8102 Schema: &spec.Schema{ 8103 SchemaProps: spec.SchemaProps{ 8104 Default: map[string]interface{}{}, 8105 Ref: ref("k8s.io/api/core/v1.PodCondition"), 8106 }, 8107 }, 8108 }, 8109 }, 8110 }, 8111 "message": { 8112 SchemaProps: spec.SchemaProps{ 8113 Description: "A human readable message indicating details about why the pod is in this condition.", 8114 Type: []string{"string"}, 8115 Format: "", 8116 }, 8117 }, 8118 "reason": { 8119 SchemaProps: spec.SchemaProps{ 8120 Description: "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", 8121 Type: []string{"string"}, 8122 Format: "", 8123 }, 8124 }, 8125 "nominatedNodeName": { 8126 SchemaProps: spec.SchemaProps{ 8127 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.", 8128 Type: []string{"string"}, 8129 Format: "", 8130 }, 8131 }, 8132 "hostIP": { 8133 SchemaProps: spec.SchemaProps{ 8134 Description: "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", 8135 Type: []string{"string"}, 8136 Format: "", 8137 }, 8138 }, 8139 "podIP": { 8140 SchemaProps: spec.SchemaProps{ 8141 Description: "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", 8142 Type: []string{"string"}, 8143 Format: "", 8144 }, 8145 }, 8146 "podIPs": { 8147 VendorExtensible: spec.VendorExtensible{ 8148 Extensions: spec.Extensions{ 8149 "x-kubernetes-patch-merge-key": "ip", 8150 "x-kubernetes-patch-strategy": "merge", 8151 }, 8152 }, 8153 SchemaProps: spec.SchemaProps{ 8154 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.", 8155 Type: []string{"array"}, 8156 Items: &spec.SchemaOrArray{ 8157 Schema: &spec.Schema{ 8158 SchemaProps: spec.SchemaProps{ 8159 Default: map[string]interface{}{}, 8160 Ref: ref("k8s.io/api/core/v1.PodIP"), 8161 }, 8162 }, 8163 }, 8164 }, 8165 }, 8166 "startTime": { 8167 SchemaProps: spec.SchemaProps{ 8168 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.", 8169 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 8170 }, 8171 }, 8172 "initContainerStatuses": { 8173 SchemaProps: spec.SchemaProps{ 8174 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", 8175 Type: []string{"array"}, 8176 Items: &spec.SchemaOrArray{ 8177 Schema: &spec.Schema{ 8178 SchemaProps: spec.SchemaProps{ 8179 Default: map[string]interface{}{}, 8180 Ref: ref("k8s.io/api/core/v1.ContainerStatus"), 8181 }, 8182 }, 8183 }, 8184 }, 8185 }, 8186 "containerStatuses": { 8187 SchemaProps: spec.SchemaProps{ 8188 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", 8189 Type: []string{"array"}, 8190 Items: &spec.SchemaOrArray{ 8191 Schema: &spec.Schema{ 8192 SchemaProps: spec.SchemaProps{ 8193 Default: map[string]interface{}{}, 8194 Ref: ref("k8s.io/api/core/v1.ContainerStatus"), 8195 }, 8196 }, 8197 }, 8198 }, 8199 }, 8200 "qosClass": { 8201 SchemaProps: spec.SchemaProps{ 8202 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://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md\n\nPossible enum values:\n - `\"BestEffort\"` is the BestEffort qos class.\n - `\"Burstable\"` is the Burstable qos class.\n - `\"Guaranteed\"` is the Guaranteed qos class.", 8203 Type: []string{"string"}, 8204 Format: "", 8205 Enum: []interface{}{"BestEffort", "Burstable", "Guaranteed"}}, 8206 }, 8207 "ephemeralContainerStatuses": { 8208 SchemaProps: spec.SchemaProps{ 8209 Description: "Status for any ephemeral containers that have run in this pod.", 8210 Type: []string{"array"}, 8211 Items: &spec.SchemaOrArray{ 8212 Schema: &spec.Schema{ 8213 SchemaProps: spec.SchemaProps{ 8214 Default: map[string]interface{}{}, 8215 Ref: ref("k8s.io/api/core/v1.ContainerStatus"), 8216 }, 8217 }, 8218 }, 8219 }, 8220 }, 8221 }, 8222 }, 8223 }, 8224 Dependencies: []string{ 8225 "k8s.io/api/core/v1.ContainerStatus", "k8s.io/api/core/v1.PodCondition", "k8s.io/api/core/v1.PodIP", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 8226 } 8227 } 8228 8229 func schema_k8sio_api_core_v1_PodStatusResult(ref common.ReferenceCallback) common.OpenAPIDefinition { 8230 return common.OpenAPIDefinition{ 8231 Schema: spec.Schema{ 8232 SchemaProps: spec.SchemaProps{ 8233 Description: "PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded", 8234 Type: []string{"object"}, 8235 Properties: map[string]spec.Schema{ 8236 "kind": { 8237 SchemaProps: spec.SchemaProps{ 8238 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8239 Type: []string{"string"}, 8240 Format: "", 8241 }, 8242 }, 8243 "apiVersion": { 8244 SchemaProps: spec.SchemaProps{ 8245 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8246 Type: []string{"string"}, 8247 Format: "", 8248 }, 8249 }, 8250 "metadata": { 8251 SchemaProps: spec.SchemaProps{ 8252 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 8253 Default: map[string]interface{}{}, 8254 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8255 }, 8256 }, 8257 "status": { 8258 SchemaProps: spec.SchemaProps{ 8259 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", 8260 Default: map[string]interface{}{}, 8261 Ref: ref("k8s.io/api/core/v1.PodStatus"), 8262 }, 8263 }, 8264 }, 8265 }, 8266 }, 8267 Dependencies: []string{ 8268 "k8s.io/api/core/v1.PodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8269 } 8270 } 8271 8272 func schema_k8sio_api_core_v1_PodTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 8273 return common.OpenAPIDefinition{ 8274 Schema: spec.Schema{ 8275 SchemaProps: spec.SchemaProps{ 8276 Description: "PodTemplate describes a template for creating copies of a predefined pod.", 8277 Type: []string{"object"}, 8278 Properties: map[string]spec.Schema{ 8279 "kind": { 8280 SchemaProps: spec.SchemaProps{ 8281 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8282 Type: []string{"string"}, 8283 Format: "", 8284 }, 8285 }, 8286 "apiVersion": { 8287 SchemaProps: spec.SchemaProps{ 8288 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8289 Type: []string{"string"}, 8290 Format: "", 8291 }, 8292 }, 8293 "metadata": { 8294 SchemaProps: spec.SchemaProps{ 8295 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 8296 Default: map[string]interface{}{}, 8297 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8298 }, 8299 }, 8300 "template": { 8301 SchemaProps: spec.SchemaProps{ 8302 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", 8303 Default: map[string]interface{}{}, 8304 Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), 8305 }, 8306 }, 8307 }, 8308 }, 8309 }, 8310 Dependencies: []string{ 8311 "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8312 } 8313 } 8314 8315 func schema_k8sio_api_core_v1_PodTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { 8316 return common.OpenAPIDefinition{ 8317 Schema: spec.Schema{ 8318 SchemaProps: spec.SchemaProps{ 8319 Description: "PodTemplateList is a list of PodTemplates.", 8320 Type: []string{"object"}, 8321 Properties: map[string]spec.Schema{ 8322 "kind": { 8323 SchemaProps: spec.SchemaProps{ 8324 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8325 Type: []string{"string"}, 8326 Format: "", 8327 }, 8328 }, 8329 "apiVersion": { 8330 SchemaProps: spec.SchemaProps{ 8331 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8332 Type: []string{"string"}, 8333 Format: "", 8334 }, 8335 }, 8336 "metadata": { 8337 SchemaProps: spec.SchemaProps{ 8338 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8339 Default: map[string]interface{}{}, 8340 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 8341 }, 8342 }, 8343 "items": { 8344 SchemaProps: spec.SchemaProps{ 8345 Description: "List of pod templates", 8346 Type: []string{"array"}, 8347 Items: &spec.SchemaOrArray{ 8348 Schema: &spec.Schema{ 8349 SchemaProps: spec.SchemaProps{ 8350 Default: map[string]interface{}{}, 8351 Ref: ref("k8s.io/api/core/v1.PodTemplate"), 8352 }, 8353 }, 8354 }, 8355 }, 8356 }, 8357 }, 8358 Required: []string{"items"}, 8359 }, 8360 }, 8361 Dependencies: []string{ 8362 "k8s.io/api/core/v1.PodTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 8363 } 8364 } 8365 8366 func schema_k8sio_api_core_v1_PodTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 8367 return common.OpenAPIDefinition{ 8368 Schema: spec.Schema{ 8369 SchemaProps: spec.SchemaProps{ 8370 Description: "PodTemplateSpec describes the data a pod should have when created from a template", 8371 Type: []string{"object"}, 8372 Properties: map[string]spec.Schema{ 8373 "metadata": { 8374 SchemaProps: spec.SchemaProps{ 8375 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 8376 Default: map[string]interface{}{}, 8377 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8378 }, 8379 }, 8380 "spec": { 8381 SchemaProps: spec.SchemaProps{ 8382 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", 8383 Default: map[string]interface{}{}, 8384 Ref: ref("k8s.io/api/core/v1.PodSpec"), 8385 }, 8386 }, 8387 }, 8388 }, 8389 }, 8390 Dependencies: []string{ 8391 "k8s.io/api/core/v1.PodSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8392 } 8393 } 8394 8395 func schema_k8sio_api_core_v1_PortStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 8396 return common.OpenAPIDefinition{ 8397 Schema: spec.Schema{ 8398 SchemaProps: spec.SchemaProps{ 8399 Type: []string{"object"}, 8400 Properties: map[string]spec.Schema{ 8401 "port": { 8402 SchemaProps: spec.SchemaProps{ 8403 Description: "Port is the port number of the service port of which status is recorded here", 8404 Default: 0, 8405 Type: []string{"integer"}, 8406 Format: "int32", 8407 }, 8408 }, 8409 "protocol": { 8410 SchemaProps: spec.SchemaProps{ 8411 Description: "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"\n\nPossible enum values:\n - `\"SCTP\"` is the SCTP protocol.\n - `\"TCP\"` is the TCP protocol.\n - `\"UDP\"` is the UDP protocol.", 8412 Default: "", 8413 Type: []string{"string"}, 8414 Format: "", 8415 Enum: []interface{}{"SCTP", "TCP", "UDP"}}, 8416 }, 8417 "error": { 8418 SchemaProps: spec.SchemaProps{ 8419 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.", 8420 Type: []string{"string"}, 8421 Format: "", 8422 }, 8423 }, 8424 }, 8425 Required: []string{"port", "protocol"}, 8426 }, 8427 }, 8428 } 8429 } 8430 8431 func schema_k8sio_api_core_v1_PortworxVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8432 return common.OpenAPIDefinition{ 8433 Schema: spec.Schema{ 8434 SchemaProps: spec.SchemaProps{ 8435 Description: "PortworxVolumeSource represents a Portworx volume resource.", 8436 Type: []string{"object"}, 8437 Properties: map[string]spec.Schema{ 8438 "volumeID": { 8439 SchemaProps: spec.SchemaProps{ 8440 Description: "volumeID uniquely identifies a Portworx volume", 8441 Default: "", 8442 Type: []string{"string"}, 8443 Format: "", 8444 }, 8445 }, 8446 "fsType": { 8447 SchemaProps: spec.SchemaProps{ 8448 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.", 8449 Type: []string{"string"}, 8450 Format: "", 8451 }, 8452 }, 8453 "readOnly": { 8454 SchemaProps: spec.SchemaProps{ 8455 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 8456 Type: []string{"boolean"}, 8457 Format: "", 8458 }, 8459 }, 8460 }, 8461 Required: []string{"volumeID"}, 8462 }, 8463 }, 8464 } 8465 } 8466 8467 func schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { 8468 return common.OpenAPIDefinition{ 8469 Schema: spec.Schema{ 8470 SchemaProps: spec.SchemaProps{ 8471 Description: "Describes a class of pods that should avoid this node.", 8472 Type: []string{"object"}, 8473 Properties: map[string]spec.Schema{ 8474 "podSignature": { 8475 SchemaProps: spec.SchemaProps{ 8476 Description: "The class of pods.", 8477 Default: map[string]interface{}{}, 8478 Ref: ref("k8s.io/api/core/v1.PodSignature"), 8479 }, 8480 }, 8481 "evictionTime": { 8482 SchemaProps: spec.SchemaProps{ 8483 Description: "Time at which this entry was added to the list.", 8484 Default: map[string]interface{}{}, 8485 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 8486 }, 8487 }, 8488 "reason": { 8489 SchemaProps: spec.SchemaProps{ 8490 Description: "(brief) reason why this entry was added to the list.", 8491 Type: []string{"string"}, 8492 Format: "", 8493 }, 8494 }, 8495 "message": { 8496 SchemaProps: spec.SchemaProps{ 8497 Description: "Human readable message indicating why this entry was added to the list.", 8498 Type: []string{"string"}, 8499 Format: "", 8500 }, 8501 }, 8502 }, 8503 Required: []string{"podSignature"}, 8504 }, 8505 }, 8506 Dependencies: []string{ 8507 "k8s.io/api/core/v1.PodSignature", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 8508 } 8509 } 8510 8511 func schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 8512 return common.OpenAPIDefinition{ 8513 Schema: spec.Schema{ 8514 SchemaProps: spec.SchemaProps{ 8515 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).", 8516 Type: []string{"object"}, 8517 Properties: map[string]spec.Schema{ 8518 "weight": { 8519 SchemaProps: spec.SchemaProps{ 8520 Description: "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", 8521 Default: 0, 8522 Type: []string{"integer"}, 8523 Format: "int32", 8524 }, 8525 }, 8526 "preference": { 8527 SchemaProps: spec.SchemaProps{ 8528 Description: "A node selector term, associated with the corresponding weight.", 8529 Default: map[string]interface{}{}, 8530 Ref: ref("k8s.io/api/core/v1.NodeSelectorTerm"), 8531 }, 8532 }, 8533 }, 8534 Required: []string{"weight", "preference"}, 8535 }, 8536 }, 8537 Dependencies: []string{ 8538 "k8s.io/api/core/v1.NodeSelectorTerm"}, 8539 } 8540 } 8541 8542 func schema_k8sio_api_core_v1_Probe(ref common.ReferenceCallback) common.OpenAPIDefinition { 8543 return common.OpenAPIDefinition{ 8544 Schema: spec.Schema{ 8545 SchemaProps: spec.SchemaProps{ 8546 Description: "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", 8547 Type: []string{"object"}, 8548 Properties: map[string]spec.Schema{ 8549 "exec": { 8550 SchemaProps: spec.SchemaProps{ 8551 Description: "Exec specifies the action to take.", 8552 Ref: ref("k8s.io/api/core/v1.ExecAction"), 8553 }, 8554 }, 8555 "httpGet": { 8556 SchemaProps: spec.SchemaProps{ 8557 Description: "HTTPGet specifies the http request to perform.", 8558 Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), 8559 }, 8560 }, 8561 "tcpSocket": { 8562 SchemaProps: spec.SchemaProps{ 8563 Description: "TCPSocket specifies an action involving a TCP port.", 8564 Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), 8565 }, 8566 }, 8567 "grpc": { 8568 SchemaProps: spec.SchemaProps{ 8569 Description: "GRPC specifies an action involving a GRPC port. This is a beta field and requires enabling GRPCContainerProbe feature gate.", 8570 Ref: ref("k8s.io/api/core/v1.GRPCAction"), 8571 }, 8572 }, 8573 "initialDelaySeconds": { 8574 SchemaProps: spec.SchemaProps{ 8575 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", 8576 Type: []string{"integer"}, 8577 Format: "int32", 8578 }, 8579 }, 8580 "timeoutSeconds": { 8581 SchemaProps: spec.SchemaProps{ 8582 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", 8583 Type: []string{"integer"}, 8584 Format: "int32", 8585 }, 8586 }, 8587 "periodSeconds": { 8588 SchemaProps: spec.SchemaProps{ 8589 Description: "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", 8590 Type: []string{"integer"}, 8591 Format: "int32", 8592 }, 8593 }, 8594 "successThreshold": { 8595 SchemaProps: spec.SchemaProps{ 8596 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.", 8597 Type: []string{"integer"}, 8598 Format: "int32", 8599 }, 8600 }, 8601 "failureThreshold": { 8602 SchemaProps: spec.SchemaProps{ 8603 Description: "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", 8604 Type: []string{"integer"}, 8605 Format: "int32", 8606 }, 8607 }, 8608 "terminationGracePeriodSeconds": { 8609 SchemaProps: spec.SchemaProps{ 8610 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.", 8611 Type: []string{"integer"}, 8612 Format: "int64", 8613 }, 8614 }, 8615 }, 8616 }, 8617 }, 8618 Dependencies: []string{ 8619 "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.GRPCAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, 8620 } 8621 } 8622 8623 func schema_k8sio_api_core_v1_ProbeHandler(ref common.ReferenceCallback) common.OpenAPIDefinition { 8624 return common.OpenAPIDefinition{ 8625 Schema: spec.Schema{ 8626 SchemaProps: spec.SchemaProps{ 8627 Description: "ProbeHandler defines a specific action that should be taken in a probe. One and only one of the fields must be specified.", 8628 Type: []string{"object"}, 8629 Properties: map[string]spec.Schema{ 8630 "exec": { 8631 SchemaProps: spec.SchemaProps{ 8632 Description: "Exec specifies the action to take.", 8633 Ref: ref("k8s.io/api/core/v1.ExecAction"), 8634 }, 8635 }, 8636 "httpGet": { 8637 SchemaProps: spec.SchemaProps{ 8638 Description: "HTTPGet specifies the http request to perform.", 8639 Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), 8640 }, 8641 }, 8642 "tcpSocket": { 8643 SchemaProps: spec.SchemaProps{ 8644 Description: "TCPSocket specifies an action involving a TCP port.", 8645 Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), 8646 }, 8647 }, 8648 "grpc": { 8649 SchemaProps: spec.SchemaProps{ 8650 Description: "GRPC specifies an action involving a GRPC port. This is a beta field and requires enabling GRPCContainerProbe feature gate.", 8651 Ref: ref("k8s.io/api/core/v1.GRPCAction"), 8652 }, 8653 }, 8654 }, 8655 }, 8656 }, 8657 Dependencies: []string{ 8658 "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.GRPCAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, 8659 } 8660 } 8661 8662 func schema_k8sio_api_core_v1_ProjectedVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8663 return common.OpenAPIDefinition{ 8664 Schema: spec.Schema{ 8665 SchemaProps: spec.SchemaProps{ 8666 Description: "Represents a projected volume source", 8667 Type: []string{"object"}, 8668 Properties: map[string]spec.Schema{ 8669 "sources": { 8670 SchemaProps: spec.SchemaProps{ 8671 Description: "sources is the list of volume projections", 8672 Type: []string{"array"}, 8673 Items: &spec.SchemaOrArray{ 8674 Schema: &spec.Schema{ 8675 SchemaProps: spec.SchemaProps{ 8676 Default: map[string]interface{}{}, 8677 Ref: ref("k8s.io/api/core/v1.VolumeProjection"), 8678 }, 8679 }, 8680 }, 8681 }, 8682 }, 8683 "defaultMode": { 8684 SchemaProps: spec.SchemaProps{ 8685 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.", 8686 Type: []string{"integer"}, 8687 Format: "int32", 8688 }, 8689 }, 8690 }, 8691 }, 8692 }, 8693 Dependencies: []string{ 8694 "k8s.io/api/core/v1.VolumeProjection"}, 8695 } 8696 } 8697 8698 func schema_k8sio_api_core_v1_QuobyteVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8699 return common.OpenAPIDefinition{ 8700 Schema: spec.Schema{ 8701 SchemaProps: spec.SchemaProps{ 8702 Description: "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", 8703 Type: []string{"object"}, 8704 Properties: map[string]spec.Schema{ 8705 "registry": { 8706 SchemaProps: spec.SchemaProps{ 8707 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", 8708 Default: "", 8709 Type: []string{"string"}, 8710 Format: "", 8711 }, 8712 }, 8713 "volume": { 8714 SchemaProps: spec.SchemaProps{ 8715 Description: "volume is a string that references an already created Quobyte volume by name.", 8716 Default: "", 8717 Type: []string{"string"}, 8718 Format: "", 8719 }, 8720 }, 8721 "readOnly": { 8722 SchemaProps: spec.SchemaProps{ 8723 Description: "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", 8724 Type: []string{"boolean"}, 8725 Format: "", 8726 }, 8727 }, 8728 "user": { 8729 SchemaProps: spec.SchemaProps{ 8730 Description: "user to map volume access to Defaults to serivceaccount user", 8731 Type: []string{"string"}, 8732 Format: "", 8733 }, 8734 }, 8735 "group": { 8736 SchemaProps: spec.SchemaProps{ 8737 Description: "group to map volume access to Default is no group", 8738 Type: []string{"string"}, 8739 Format: "", 8740 }, 8741 }, 8742 "tenant": { 8743 SchemaProps: spec.SchemaProps{ 8744 Description: "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin", 8745 Type: []string{"string"}, 8746 Format: "", 8747 }, 8748 }, 8749 }, 8750 Required: []string{"registry", "volume"}, 8751 }, 8752 }, 8753 } 8754 } 8755 8756 func schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8757 return common.OpenAPIDefinition{ 8758 Schema: spec.Schema{ 8759 SchemaProps: spec.SchemaProps{ 8760 Description: "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", 8761 Type: []string{"object"}, 8762 Properties: map[string]spec.Schema{ 8763 "monitors": { 8764 SchemaProps: spec.SchemaProps{ 8765 Description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8766 Type: []string{"array"}, 8767 Items: &spec.SchemaOrArray{ 8768 Schema: &spec.Schema{ 8769 SchemaProps: spec.SchemaProps{ 8770 Default: "", 8771 Type: []string{"string"}, 8772 Format: "", 8773 }, 8774 }, 8775 }, 8776 }, 8777 }, 8778 "image": { 8779 SchemaProps: spec.SchemaProps{ 8780 Description: "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8781 Default: "", 8782 Type: []string{"string"}, 8783 Format: "", 8784 }, 8785 }, 8786 "fsType": { 8787 SchemaProps: spec.SchemaProps{ 8788 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", 8789 Type: []string{"string"}, 8790 Format: "", 8791 }, 8792 }, 8793 "pool": { 8794 SchemaProps: spec.SchemaProps{ 8795 Description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8796 Type: []string{"string"}, 8797 Format: "", 8798 }, 8799 }, 8800 "user": { 8801 SchemaProps: spec.SchemaProps{ 8802 Description: "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8803 Type: []string{"string"}, 8804 Format: "", 8805 }, 8806 }, 8807 "keyring": { 8808 SchemaProps: spec.SchemaProps{ 8809 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", 8810 Type: []string{"string"}, 8811 Format: "", 8812 }, 8813 }, 8814 "secretRef": { 8815 SchemaProps: spec.SchemaProps{ 8816 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", 8817 Ref: ref("k8s.io/api/core/v1.SecretReference"), 8818 }, 8819 }, 8820 "readOnly": { 8821 SchemaProps: spec.SchemaProps{ 8822 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", 8823 Type: []string{"boolean"}, 8824 Format: "", 8825 }, 8826 }, 8827 }, 8828 Required: []string{"monitors", "image"}, 8829 }, 8830 }, 8831 Dependencies: []string{ 8832 "k8s.io/api/core/v1.SecretReference"}, 8833 } 8834 } 8835 8836 func schema_k8sio_api_core_v1_RBDVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8837 return common.OpenAPIDefinition{ 8838 Schema: spec.Schema{ 8839 SchemaProps: spec.SchemaProps{ 8840 Description: "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", 8841 Type: []string{"object"}, 8842 Properties: map[string]spec.Schema{ 8843 "monitors": { 8844 SchemaProps: spec.SchemaProps{ 8845 Description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8846 Type: []string{"array"}, 8847 Items: &spec.SchemaOrArray{ 8848 Schema: &spec.Schema{ 8849 SchemaProps: spec.SchemaProps{ 8850 Default: "", 8851 Type: []string{"string"}, 8852 Format: "", 8853 }, 8854 }, 8855 }, 8856 }, 8857 }, 8858 "image": { 8859 SchemaProps: spec.SchemaProps{ 8860 Description: "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8861 Default: "", 8862 Type: []string{"string"}, 8863 Format: "", 8864 }, 8865 }, 8866 "fsType": { 8867 SchemaProps: spec.SchemaProps{ 8868 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", 8869 Type: []string{"string"}, 8870 Format: "", 8871 }, 8872 }, 8873 "pool": { 8874 SchemaProps: spec.SchemaProps{ 8875 Description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8876 Type: []string{"string"}, 8877 Format: "", 8878 }, 8879 }, 8880 "user": { 8881 SchemaProps: spec.SchemaProps{ 8882 Description: "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8883 Type: []string{"string"}, 8884 Format: "", 8885 }, 8886 }, 8887 "keyring": { 8888 SchemaProps: spec.SchemaProps{ 8889 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", 8890 Type: []string{"string"}, 8891 Format: "", 8892 }, 8893 }, 8894 "secretRef": { 8895 SchemaProps: spec.SchemaProps{ 8896 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", 8897 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 8898 }, 8899 }, 8900 "readOnly": { 8901 SchemaProps: spec.SchemaProps{ 8902 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", 8903 Type: []string{"boolean"}, 8904 Format: "", 8905 }, 8906 }, 8907 }, 8908 Required: []string{"monitors", "image"}, 8909 }, 8910 }, 8911 Dependencies: []string{ 8912 "k8s.io/api/core/v1.LocalObjectReference"}, 8913 } 8914 } 8915 8916 func schema_k8sio_api_core_v1_RangeAllocation(ref common.ReferenceCallback) common.OpenAPIDefinition { 8917 return common.OpenAPIDefinition{ 8918 Schema: spec.Schema{ 8919 SchemaProps: spec.SchemaProps{ 8920 Description: "RangeAllocation is not a public type.", 8921 Type: []string{"object"}, 8922 Properties: map[string]spec.Schema{ 8923 "kind": { 8924 SchemaProps: spec.SchemaProps{ 8925 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8926 Type: []string{"string"}, 8927 Format: "", 8928 }, 8929 }, 8930 "apiVersion": { 8931 SchemaProps: spec.SchemaProps{ 8932 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8933 Type: []string{"string"}, 8934 Format: "", 8935 }, 8936 }, 8937 "metadata": { 8938 SchemaProps: spec.SchemaProps{ 8939 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 8940 Default: map[string]interface{}{}, 8941 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8942 }, 8943 }, 8944 "range": { 8945 SchemaProps: spec.SchemaProps{ 8946 Description: "Range is string that identifies the range represented by 'data'.", 8947 Default: "", 8948 Type: []string{"string"}, 8949 Format: "", 8950 }, 8951 }, 8952 "data": { 8953 SchemaProps: spec.SchemaProps{ 8954 Description: "Data is a bit array containing all allocated addresses in the previous segment.", 8955 Type: []string{"string"}, 8956 Format: "byte", 8957 }, 8958 }, 8959 }, 8960 Required: []string{"range", "data"}, 8961 }, 8962 }, 8963 Dependencies: []string{ 8964 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8965 } 8966 } 8967 8968 func schema_k8sio_api_core_v1_ReplicationController(ref common.ReferenceCallback) common.OpenAPIDefinition { 8969 return common.OpenAPIDefinition{ 8970 Schema: spec.Schema{ 8971 SchemaProps: spec.SchemaProps{ 8972 Description: "ReplicationController represents the configuration of a replication controller.", 8973 Type: []string{"object"}, 8974 Properties: map[string]spec.Schema{ 8975 "kind": { 8976 SchemaProps: spec.SchemaProps{ 8977 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8978 Type: []string{"string"}, 8979 Format: "", 8980 }, 8981 }, 8982 "apiVersion": { 8983 SchemaProps: spec.SchemaProps{ 8984 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8985 Type: []string{"string"}, 8986 Format: "", 8987 }, 8988 }, 8989 "metadata": { 8990 SchemaProps: spec.SchemaProps{ 8991 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", 8992 Default: map[string]interface{}{}, 8993 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8994 }, 8995 }, 8996 "spec": { 8997 SchemaProps: spec.SchemaProps{ 8998 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", 8999 Default: map[string]interface{}{}, 9000 Ref: ref("k8s.io/api/core/v1.ReplicationControllerSpec"), 9001 }, 9002 }, 9003 "status": { 9004 SchemaProps: spec.SchemaProps{ 9005 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", 9006 Default: map[string]interface{}{}, 9007 Ref: ref("k8s.io/api/core/v1.ReplicationControllerStatus"), 9008 }, 9009 }, 9010 }, 9011 }, 9012 }, 9013 Dependencies: []string{ 9014 "k8s.io/api/core/v1.ReplicationControllerSpec", "k8s.io/api/core/v1.ReplicationControllerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 9015 } 9016 } 9017 9018 func schema_k8sio_api_core_v1_ReplicationControllerCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 9019 return common.OpenAPIDefinition{ 9020 Schema: spec.Schema{ 9021 SchemaProps: spec.SchemaProps{ 9022 Description: "ReplicationControllerCondition describes the state of a replication controller at a certain point.", 9023 Type: []string{"object"}, 9024 Properties: map[string]spec.Schema{ 9025 "type": { 9026 SchemaProps: spec.SchemaProps{ 9027 Description: "Type of replication controller condition.", 9028 Default: "", 9029 Type: []string{"string"}, 9030 Format: "", 9031 }, 9032 }, 9033 "status": { 9034 SchemaProps: spec.SchemaProps{ 9035 Description: "Status of the condition, one of True, False, Unknown.", 9036 Default: "", 9037 Type: []string{"string"}, 9038 Format: "", 9039 }, 9040 }, 9041 "lastTransitionTime": { 9042 SchemaProps: spec.SchemaProps{ 9043 Description: "The last time the condition transitioned from one status to another.", 9044 Default: map[string]interface{}{}, 9045 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 9046 }, 9047 }, 9048 "reason": { 9049 SchemaProps: spec.SchemaProps{ 9050 Description: "The reason for the condition's last transition.", 9051 Type: []string{"string"}, 9052 Format: "", 9053 }, 9054 }, 9055 "message": { 9056 SchemaProps: spec.SchemaProps{ 9057 Description: "A human readable message indicating details about the transition.", 9058 Type: []string{"string"}, 9059 Format: "", 9060 }, 9061 }, 9062 }, 9063 Required: []string{"type", "status"}, 9064 }, 9065 }, 9066 Dependencies: []string{ 9067 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 9068 } 9069 } 9070 9071 func schema_k8sio_api_core_v1_ReplicationControllerList(ref common.ReferenceCallback) common.OpenAPIDefinition { 9072 return common.OpenAPIDefinition{ 9073 Schema: spec.Schema{ 9074 SchemaProps: spec.SchemaProps{ 9075 Description: "ReplicationControllerList is a collection of replication controllers.", 9076 Type: []string{"object"}, 9077 Properties: map[string]spec.Schema{ 9078 "kind": { 9079 SchemaProps: spec.SchemaProps{ 9080 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9081 Type: []string{"string"}, 9082 Format: "", 9083 }, 9084 }, 9085 "apiVersion": { 9086 SchemaProps: spec.SchemaProps{ 9087 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9088 Type: []string{"string"}, 9089 Format: "", 9090 }, 9091 }, 9092 "metadata": { 9093 SchemaProps: spec.SchemaProps{ 9094 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9095 Default: map[string]interface{}{}, 9096 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 9097 }, 9098 }, 9099 "items": { 9100 SchemaProps: spec.SchemaProps{ 9101 Description: "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", 9102 Type: []string{"array"}, 9103 Items: &spec.SchemaOrArray{ 9104 Schema: &spec.Schema{ 9105 SchemaProps: spec.SchemaProps{ 9106 Default: map[string]interface{}{}, 9107 Ref: ref("k8s.io/api/core/v1.ReplicationController"), 9108 }, 9109 }, 9110 }, 9111 }, 9112 }, 9113 }, 9114 Required: []string{"items"}, 9115 }, 9116 }, 9117 Dependencies: []string{ 9118 "k8s.io/api/core/v1.ReplicationController", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 9119 } 9120 } 9121 9122 func schema_k8sio_api_core_v1_ReplicationControllerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 9123 return common.OpenAPIDefinition{ 9124 Schema: spec.Schema{ 9125 SchemaProps: spec.SchemaProps{ 9126 Description: "ReplicationControllerSpec is the specification of a replication controller.", 9127 Type: []string{"object"}, 9128 Properties: map[string]spec.Schema{ 9129 "replicas": { 9130 SchemaProps: spec.SchemaProps{ 9131 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", 9132 Type: []string{"integer"}, 9133 Format: "int32", 9134 }, 9135 }, 9136 "minReadySeconds": { 9137 SchemaProps: spec.SchemaProps{ 9138 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)", 9139 Type: []string{"integer"}, 9140 Format: "int32", 9141 }, 9142 }, 9143 "selector": { 9144 VendorExtensible: spec.VendorExtensible{ 9145 Extensions: spec.Extensions{ 9146 "x-kubernetes-map-type": "atomic", 9147 }, 9148 }, 9149 SchemaProps: spec.SchemaProps{ 9150 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", 9151 Type: []string{"object"}, 9152 AdditionalProperties: &spec.SchemaOrBool{ 9153 Allows: true, 9154 Schema: &spec.Schema{ 9155 SchemaProps: spec.SchemaProps{ 9156 Default: "", 9157 Type: []string{"string"}, 9158 Format: "", 9159 }, 9160 }, 9161 }, 9162 }, 9163 }, 9164 "template": { 9165 SchemaProps: spec.SchemaProps{ 9166 Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template", 9167 Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), 9168 }, 9169 }, 9170 }, 9171 }, 9172 }, 9173 Dependencies: []string{ 9174 "k8s.io/api/core/v1.PodTemplateSpec"}, 9175 } 9176 } 9177 9178 func schema_k8sio_api_core_v1_ReplicationControllerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 9179 return common.OpenAPIDefinition{ 9180 Schema: spec.Schema{ 9181 SchemaProps: spec.SchemaProps{ 9182 Description: "ReplicationControllerStatus represents the current status of a replication controller.", 9183 Type: []string{"object"}, 9184 Properties: map[string]spec.Schema{ 9185 "replicas": { 9186 SchemaProps: spec.SchemaProps{ 9187 Description: "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", 9188 Default: 0, 9189 Type: []string{"integer"}, 9190 Format: "int32", 9191 }, 9192 }, 9193 "fullyLabeledReplicas": { 9194 SchemaProps: spec.SchemaProps{ 9195 Description: "The number of pods that have labels matching the labels of the pod template of the replication controller.", 9196 Type: []string{"integer"}, 9197 Format: "int32", 9198 }, 9199 }, 9200 "readyReplicas": { 9201 SchemaProps: spec.SchemaProps{ 9202 Description: "The number of ready replicas for this replication controller.", 9203 Type: []string{"integer"}, 9204 Format: "int32", 9205 }, 9206 }, 9207 "availableReplicas": { 9208 SchemaProps: spec.SchemaProps{ 9209 Description: "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", 9210 Type: []string{"integer"}, 9211 Format: "int32", 9212 }, 9213 }, 9214 "observedGeneration": { 9215 SchemaProps: spec.SchemaProps{ 9216 Description: "ObservedGeneration reflects the generation of the most recently observed replication controller.", 9217 Type: []string{"integer"}, 9218 Format: "int64", 9219 }, 9220 }, 9221 "conditions": { 9222 VendorExtensible: spec.VendorExtensible{ 9223 Extensions: spec.Extensions{ 9224 "x-kubernetes-patch-merge-key": "type", 9225 "x-kubernetes-patch-strategy": "merge", 9226 }, 9227 }, 9228 SchemaProps: spec.SchemaProps{ 9229 Description: "Represents the latest available observations of a replication controller's current state.", 9230 Type: []string{"array"}, 9231 Items: &spec.SchemaOrArray{ 9232 Schema: &spec.Schema{ 9233 SchemaProps: spec.SchemaProps{ 9234 Default: map[string]interface{}{}, 9235 Ref: ref("k8s.io/api/core/v1.ReplicationControllerCondition"), 9236 }, 9237 }, 9238 }, 9239 }, 9240 }, 9241 }, 9242 Required: []string{"replicas"}, 9243 }, 9244 }, 9245 Dependencies: []string{ 9246 "k8s.io/api/core/v1.ReplicationControllerCondition"}, 9247 } 9248 } 9249 9250 func schema_k8sio_api_core_v1_ResourceFieldSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 9251 return common.OpenAPIDefinition{ 9252 Schema: spec.Schema{ 9253 SchemaProps: spec.SchemaProps{ 9254 Description: "ResourceFieldSelector represents container resources (cpu, memory) and their output format", 9255 Type: []string{"object"}, 9256 Properties: map[string]spec.Schema{ 9257 "containerName": { 9258 SchemaProps: spec.SchemaProps{ 9259 Description: "Container name: required for volumes, optional for env vars", 9260 Type: []string{"string"}, 9261 Format: "", 9262 }, 9263 }, 9264 "resource": { 9265 SchemaProps: spec.SchemaProps{ 9266 Description: "Required: resource to select", 9267 Default: "", 9268 Type: []string{"string"}, 9269 Format: "", 9270 }, 9271 }, 9272 "divisor": { 9273 SchemaProps: spec.SchemaProps{ 9274 Description: "Specifies the output format of the exposed resources, defaults to \"1\"", 9275 Default: map[string]interface{}{}, 9276 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9277 }, 9278 }, 9279 }, 9280 Required: []string{"resource"}, 9281 }, 9282 VendorExtensible: spec.VendorExtensible{ 9283 Extensions: spec.Extensions{ 9284 "x-kubernetes-map-type": "atomic", 9285 }, 9286 }, 9287 }, 9288 Dependencies: []string{ 9289 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 9290 } 9291 } 9292 9293 func schema_k8sio_api_core_v1_ResourceQuota(ref common.ReferenceCallback) common.OpenAPIDefinition { 9294 return common.OpenAPIDefinition{ 9295 Schema: spec.Schema{ 9296 SchemaProps: spec.SchemaProps{ 9297 Description: "ResourceQuota sets aggregate quota restrictions enforced per namespace", 9298 Type: []string{"object"}, 9299 Properties: map[string]spec.Schema{ 9300 "kind": { 9301 SchemaProps: spec.SchemaProps{ 9302 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9303 Type: []string{"string"}, 9304 Format: "", 9305 }, 9306 }, 9307 "apiVersion": { 9308 SchemaProps: spec.SchemaProps{ 9309 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9310 Type: []string{"string"}, 9311 Format: "", 9312 }, 9313 }, 9314 "metadata": { 9315 SchemaProps: spec.SchemaProps{ 9316 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 9317 Default: map[string]interface{}{}, 9318 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 9319 }, 9320 }, 9321 "spec": { 9322 SchemaProps: spec.SchemaProps{ 9323 Description: "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 9324 Default: map[string]interface{}{}, 9325 Ref: ref("k8s.io/api/core/v1.ResourceQuotaSpec"), 9326 }, 9327 }, 9328 "status": { 9329 SchemaProps: spec.SchemaProps{ 9330 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", 9331 Default: map[string]interface{}{}, 9332 Ref: ref("k8s.io/api/core/v1.ResourceQuotaStatus"), 9333 }, 9334 }, 9335 }, 9336 }, 9337 }, 9338 Dependencies: []string{ 9339 "k8s.io/api/core/v1.ResourceQuotaSpec", "k8s.io/api/core/v1.ResourceQuotaStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 9340 } 9341 } 9342 9343 func schema_k8sio_api_core_v1_ResourceQuotaList(ref common.ReferenceCallback) common.OpenAPIDefinition { 9344 return common.OpenAPIDefinition{ 9345 Schema: spec.Schema{ 9346 SchemaProps: spec.SchemaProps{ 9347 Description: "ResourceQuotaList is a list of ResourceQuota items.", 9348 Type: []string{"object"}, 9349 Properties: map[string]spec.Schema{ 9350 "kind": { 9351 SchemaProps: spec.SchemaProps{ 9352 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9353 Type: []string{"string"}, 9354 Format: "", 9355 }, 9356 }, 9357 "apiVersion": { 9358 SchemaProps: spec.SchemaProps{ 9359 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9360 Type: []string{"string"}, 9361 Format: "", 9362 }, 9363 }, 9364 "metadata": { 9365 SchemaProps: spec.SchemaProps{ 9366 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9367 Default: map[string]interface{}{}, 9368 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 9369 }, 9370 }, 9371 "items": { 9372 SchemaProps: spec.SchemaProps{ 9373 Description: "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", 9374 Type: []string{"array"}, 9375 Items: &spec.SchemaOrArray{ 9376 Schema: &spec.Schema{ 9377 SchemaProps: spec.SchemaProps{ 9378 Default: map[string]interface{}{}, 9379 Ref: ref("k8s.io/api/core/v1.ResourceQuota"), 9380 }, 9381 }, 9382 }, 9383 }, 9384 }, 9385 }, 9386 Required: []string{"items"}, 9387 }, 9388 }, 9389 Dependencies: []string{ 9390 "k8s.io/api/core/v1.ResourceQuota", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 9391 } 9392 } 9393 9394 func schema_k8sio_api_core_v1_ResourceQuotaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 9395 return common.OpenAPIDefinition{ 9396 Schema: spec.Schema{ 9397 SchemaProps: spec.SchemaProps{ 9398 Description: "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", 9399 Type: []string{"object"}, 9400 Properties: map[string]spec.Schema{ 9401 "hard": { 9402 SchemaProps: spec.SchemaProps{ 9403 Description: "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", 9404 Type: []string{"object"}, 9405 AdditionalProperties: &spec.SchemaOrBool{ 9406 Allows: true, 9407 Schema: &spec.Schema{ 9408 SchemaProps: spec.SchemaProps{ 9409 Default: map[string]interface{}{}, 9410 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9411 }, 9412 }, 9413 }, 9414 }, 9415 }, 9416 "scopes": { 9417 SchemaProps: spec.SchemaProps{ 9418 Description: "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", 9419 Type: []string{"array"}, 9420 Items: &spec.SchemaOrArray{ 9421 Schema: &spec.Schema{ 9422 SchemaProps: spec.SchemaProps{ 9423 Default: "", 9424 Type: []string{"string"}, 9425 Format: "", 9426 }, 9427 }, 9428 }, 9429 }, 9430 }, 9431 "scopeSelector": { 9432 SchemaProps: spec.SchemaProps{ 9433 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.", 9434 Ref: ref("k8s.io/api/core/v1.ScopeSelector"), 9435 }, 9436 }, 9437 }, 9438 }, 9439 }, 9440 Dependencies: []string{ 9441 "k8s.io/api/core/v1.ScopeSelector", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 9442 } 9443 } 9444 9445 func schema_k8sio_api_core_v1_ResourceQuotaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 9446 return common.OpenAPIDefinition{ 9447 Schema: spec.Schema{ 9448 SchemaProps: spec.SchemaProps{ 9449 Description: "ResourceQuotaStatus defines the enforced hard limits and observed use.", 9450 Type: []string{"object"}, 9451 Properties: map[string]spec.Schema{ 9452 "hard": { 9453 SchemaProps: spec.SchemaProps{ 9454 Description: "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", 9455 Type: []string{"object"}, 9456 AdditionalProperties: &spec.SchemaOrBool{ 9457 Allows: true, 9458 Schema: &spec.Schema{ 9459 SchemaProps: spec.SchemaProps{ 9460 Default: map[string]interface{}{}, 9461 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9462 }, 9463 }, 9464 }, 9465 }, 9466 }, 9467 "used": { 9468 SchemaProps: spec.SchemaProps{ 9469 Description: "Used is the current observed total usage of the resource in the namespace.", 9470 Type: []string{"object"}, 9471 AdditionalProperties: &spec.SchemaOrBool{ 9472 Allows: true, 9473 Schema: &spec.Schema{ 9474 SchemaProps: spec.SchemaProps{ 9475 Default: map[string]interface{}{}, 9476 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9477 }, 9478 }, 9479 }, 9480 }, 9481 }, 9482 }, 9483 }, 9484 }, 9485 Dependencies: []string{ 9486 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 9487 } 9488 } 9489 9490 func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { 9491 return common.OpenAPIDefinition{ 9492 Schema: spec.Schema{ 9493 SchemaProps: spec.SchemaProps{ 9494 Description: "ResourceRequirements describes the compute resource requirements.", 9495 Type: []string{"object"}, 9496 Properties: map[string]spec.Schema{ 9497 "limits": { 9498 SchemaProps: spec.SchemaProps{ 9499 Description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 9500 Type: []string{"object"}, 9501 AdditionalProperties: &spec.SchemaOrBool{ 9502 Allows: true, 9503 Schema: &spec.Schema{ 9504 SchemaProps: spec.SchemaProps{ 9505 Default: map[string]interface{}{}, 9506 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9507 }, 9508 }, 9509 }, 9510 }, 9511 }, 9512 "requests": { 9513 SchemaProps: spec.SchemaProps{ 9514 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/", 9515 Type: []string{"object"}, 9516 AdditionalProperties: &spec.SchemaOrBool{ 9517 Allows: true, 9518 Schema: &spec.Schema{ 9519 SchemaProps: spec.SchemaProps{ 9520 Default: map[string]interface{}{}, 9521 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9522 }, 9523 }, 9524 }, 9525 }, 9526 }, 9527 }, 9528 }, 9529 }, 9530 Dependencies: []string{ 9531 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 9532 } 9533 } 9534 9535 func schema_k8sio_api_core_v1_SELinuxOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 9536 return common.OpenAPIDefinition{ 9537 Schema: spec.Schema{ 9538 SchemaProps: spec.SchemaProps{ 9539 Description: "SELinuxOptions are the labels to be applied to the container", 9540 Type: []string{"object"}, 9541 Properties: map[string]spec.Schema{ 9542 "user": { 9543 SchemaProps: spec.SchemaProps{ 9544 Description: "User is a SELinux user label that applies to the container.", 9545 Type: []string{"string"}, 9546 Format: "", 9547 }, 9548 }, 9549 "role": { 9550 SchemaProps: spec.SchemaProps{ 9551 Description: "Role is a SELinux role label that applies to the container.", 9552 Type: []string{"string"}, 9553 Format: "", 9554 }, 9555 }, 9556 "type": { 9557 SchemaProps: spec.SchemaProps{ 9558 Description: "Type is a SELinux type label that applies to the container.", 9559 Type: []string{"string"}, 9560 Format: "", 9561 }, 9562 }, 9563 "level": { 9564 SchemaProps: spec.SchemaProps{ 9565 Description: "Level is SELinux level label that applies to the container.", 9566 Type: []string{"string"}, 9567 Format: "", 9568 }, 9569 }, 9570 }, 9571 }, 9572 }, 9573 } 9574 } 9575 9576 func schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 9577 return common.OpenAPIDefinition{ 9578 Schema: spec.Schema{ 9579 SchemaProps: spec.SchemaProps{ 9580 Description: "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", 9581 Type: []string{"object"}, 9582 Properties: map[string]spec.Schema{ 9583 "gateway": { 9584 SchemaProps: spec.SchemaProps{ 9585 Description: "gateway is the host address of the ScaleIO API Gateway.", 9586 Default: "", 9587 Type: []string{"string"}, 9588 Format: "", 9589 }, 9590 }, 9591 "system": { 9592 SchemaProps: spec.SchemaProps{ 9593 Description: "system is the name of the storage system as configured in ScaleIO.", 9594 Default: "", 9595 Type: []string{"string"}, 9596 Format: "", 9597 }, 9598 }, 9599 "secretRef": { 9600 SchemaProps: spec.SchemaProps{ 9601 Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", 9602 Ref: ref("k8s.io/api/core/v1.SecretReference"), 9603 }, 9604 }, 9605 "sslEnabled": { 9606 SchemaProps: spec.SchemaProps{ 9607 Description: "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false", 9608 Type: []string{"boolean"}, 9609 Format: "", 9610 }, 9611 }, 9612 "protectionDomain": { 9613 SchemaProps: spec.SchemaProps{ 9614 Description: "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", 9615 Type: []string{"string"}, 9616 Format: "", 9617 }, 9618 }, 9619 "storagePool": { 9620 SchemaProps: spec.SchemaProps{ 9621 Description: "storagePool is the ScaleIO Storage Pool associated with the protection domain.", 9622 Type: []string{"string"}, 9623 Format: "", 9624 }, 9625 }, 9626 "storageMode": { 9627 SchemaProps: spec.SchemaProps{ 9628 Description: "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", 9629 Type: []string{"string"}, 9630 Format: "", 9631 }, 9632 }, 9633 "volumeName": { 9634 SchemaProps: spec.SchemaProps{ 9635 Description: "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", 9636 Type: []string{"string"}, 9637 Format: "", 9638 }, 9639 }, 9640 "fsType": { 9641 SchemaProps: spec.SchemaProps{ 9642 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\"", 9643 Type: []string{"string"}, 9644 Format: "", 9645 }, 9646 }, 9647 "readOnly": { 9648 SchemaProps: spec.SchemaProps{ 9649 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 9650 Type: []string{"boolean"}, 9651 Format: "", 9652 }, 9653 }, 9654 }, 9655 Required: []string{"gateway", "system", "secretRef"}, 9656 }, 9657 }, 9658 Dependencies: []string{ 9659 "k8s.io/api/core/v1.SecretReference"}, 9660 } 9661 } 9662 9663 func schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 9664 return common.OpenAPIDefinition{ 9665 Schema: spec.Schema{ 9666 SchemaProps: spec.SchemaProps{ 9667 Description: "ScaleIOVolumeSource represents a persistent ScaleIO volume", 9668 Type: []string{"object"}, 9669 Properties: map[string]spec.Schema{ 9670 "gateway": { 9671 SchemaProps: spec.SchemaProps{ 9672 Description: "gateway is the host address of the ScaleIO API Gateway.", 9673 Default: "", 9674 Type: []string{"string"}, 9675 Format: "", 9676 }, 9677 }, 9678 "system": { 9679 SchemaProps: spec.SchemaProps{ 9680 Description: "system is the name of the storage system as configured in ScaleIO.", 9681 Default: "", 9682 Type: []string{"string"}, 9683 Format: "", 9684 }, 9685 }, 9686 "secretRef": { 9687 SchemaProps: spec.SchemaProps{ 9688 Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", 9689 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 9690 }, 9691 }, 9692 "sslEnabled": { 9693 SchemaProps: spec.SchemaProps{ 9694 Description: "sslEnabled Flag enable/disable SSL communication with Gateway, default false", 9695 Type: []string{"boolean"}, 9696 Format: "", 9697 }, 9698 }, 9699 "protectionDomain": { 9700 SchemaProps: spec.SchemaProps{ 9701 Description: "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", 9702 Type: []string{"string"}, 9703 Format: "", 9704 }, 9705 }, 9706 "storagePool": { 9707 SchemaProps: spec.SchemaProps{ 9708 Description: "storagePool is the ScaleIO Storage Pool associated with the protection domain.", 9709 Type: []string{"string"}, 9710 Format: "", 9711 }, 9712 }, 9713 "storageMode": { 9714 SchemaProps: spec.SchemaProps{ 9715 Description: "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", 9716 Type: []string{"string"}, 9717 Format: "", 9718 }, 9719 }, 9720 "volumeName": { 9721 SchemaProps: spec.SchemaProps{ 9722 Description: "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", 9723 Type: []string{"string"}, 9724 Format: "", 9725 }, 9726 }, 9727 "fsType": { 9728 SchemaProps: spec.SchemaProps{ 9729 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\".", 9730 Type: []string{"string"}, 9731 Format: "", 9732 }, 9733 }, 9734 "readOnly": { 9735 SchemaProps: spec.SchemaProps{ 9736 Description: "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 9737 Type: []string{"boolean"}, 9738 Format: "", 9739 }, 9740 }, 9741 }, 9742 Required: []string{"gateway", "system", "secretRef"}, 9743 }, 9744 }, 9745 Dependencies: []string{ 9746 "k8s.io/api/core/v1.LocalObjectReference"}, 9747 } 9748 } 9749 9750 func schema_k8sio_api_core_v1_ScopeSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 9751 return common.OpenAPIDefinition{ 9752 Schema: spec.Schema{ 9753 SchemaProps: spec.SchemaProps{ 9754 Description: "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", 9755 Type: []string{"object"}, 9756 Properties: map[string]spec.Schema{ 9757 "matchExpressions": { 9758 SchemaProps: spec.SchemaProps{ 9759 Description: "A list of scope selector requirements by scope of the resources.", 9760 Type: []string{"array"}, 9761 Items: &spec.SchemaOrArray{ 9762 Schema: &spec.Schema{ 9763 SchemaProps: spec.SchemaProps{ 9764 Default: map[string]interface{}{}, 9765 Ref: ref("k8s.io/api/core/v1.ScopedResourceSelectorRequirement"), 9766 }, 9767 }, 9768 }, 9769 }, 9770 }, 9771 }, 9772 }, 9773 VendorExtensible: spec.VendorExtensible{ 9774 Extensions: spec.Extensions{ 9775 "x-kubernetes-map-type": "atomic", 9776 }, 9777 }, 9778 }, 9779 Dependencies: []string{ 9780 "k8s.io/api/core/v1.ScopedResourceSelectorRequirement"}, 9781 } 9782 } 9783 9784 func schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 9785 return common.OpenAPIDefinition{ 9786 Schema: spec.Schema{ 9787 SchemaProps: spec.SchemaProps{ 9788 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.", 9789 Type: []string{"object"}, 9790 Properties: map[string]spec.Schema{ 9791 "scopeName": { 9792 SchemaProps: spec.SchemaProps{ 9793 Description: "The name of the scope that the selector applies to.\n\nPossible enum values:\n - `\"BestEffort\"` Match all pod objects that have best effort quality of service\n - `\"CrossNamespacePodAffinity\"` Match all pod objects that have cross-namespace pod (anti)affinity mentioned.\n - `\"NotBestEffort\"` Match all pod objects that do not have best effort quality of service\n - `\"NotTerminating\"` Match all pod objects where spec.activeDeadlineSeconds is nil\n - `\"PriorityClass\"` Match all pod objects that have priority class mentioned\n - `\"Terminating\"` Match all pod objects where spec.activeDeadlineSeconds >=0", 9794 Default: "", 9795 Type: []string{"string"}, 9796 Format: "", 9797 Enum: []interface{}{"BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating"}}, 9798 }, 9799 "operator": { 9800 SchemaProps: spec.SchemaProps{ 9801 Description: "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.\n\nPossible enum values:\n - `\"DoesNotExist\"`\n - `\"Exists\"`\n - `\"In\"`\n - `\"NotIn\"`", 9802 Default: "", 9803 Type: []string{"string"}, 9804 Format: "", 9805 Enum: []interface{}{"DoesNotExist", "Exists", "In", "NotIn"}}, 9806 }, 9807 "values": { 9808 SchemaProps: spec.SchemaProps{ 9809 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.", 9810 Type: []string{"array"}, 9811 Items: &spec.SchemaOrArray{ 9812 Schema: &spec.Schema{ 9813 SchemaProps: spec.SchemaProps{ 9814 Default: "", 9815 Type: []string{"string"}, 9816 Format: "", 9817 }, 9818 }, 9819 }, 9820 }, 9821 }, 9822 }, 9823 Required: []string{"scopeName", "operator"}, 9824 }, 9825 }, 9826 } 9827 } 9828 9829 func schema_k8sio_api_core_v1_SeccompProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { 9830 return common.OpenAPIDefinition{ 9831 Schema: spec.Schema{ 9832 SchemaProps: spec.SchemaProps{ 9833 Description: "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", 9834 Type: []string{"object"}, 9835 Properties: map[string]spec.Schema{ 9836 "type": { 9837 SchemaProps: spec.SchemaProps{ 9838 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.\n\nPossible enum values:\n - `\"Localhost\"` indicates a profile defined in a file on the node should be used. The file's location relative to <kubelet-root-dir>/seccomp.\n - `\"RuntimeDefault\"` represents the default container runtime seccomp profile.\n - `\"Unconfined\"` indicates no seccomp profile is applied (A.K.A. unconfined).", 9839 Default: "", 9840 Type: []string{"string"}, 9841 Format: "", 9842 Enum: []interface{}{"Localhost", "RuntimeDefault", "Unconfined"}}, 9843 }, 9844 "localhostProfile": { 9845 SchemaProps: spec.SchemaProps{ 9846 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\".", 9847 Type: []string{"string"}, 9848 Format: "", 9849 }, 9850 }, 9851 }, 9852 Required: []string{"type"}, 9853 }, 9854 VendorExtensible: spec.VendorExtensible{ 9855 Extensions: spec.Extensions{ 9856 "x-kubernetes-unions": []interface{}{ 9857 map[string]interface{}{ 9858 "discriminator": "type", 9859 "fields-to-discriminateBy": map[string]interface{}{ 9860 "localhostProfile": "LocalhostProfile", 9861 }, 9862 }, 9863 }, 9864 }, 9865 }, 9866 }, 9867 } 9868 } 9869 9870 func schema_k8sio_api_core_v1_Secret(ref common.ReferenceCallback) common.OpenAPIDefinition { 9871 return common.OpenAPIDefinition{ 9872 Schema: spec.Schema{ 9873 SchemaProps: spec.SchemaProps{ 9874 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.", 9875 Type: []string{"object"}, 9876 Properties: map[string]spec.Schema{ 9877 "kind": { 9878 SchemaProps: spec.SchemaProps{ 9879 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9880 Type: []string{"string"}, 9881 Format: "", 9882 }, 9883 }, 9884 "apiVersion": { 9885 SchemaProps: spec.SchemaProps{ 9886 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9887 Type: []string{"string"}, 9888 Format: "", 9889 }, 9890 }, 9891 "metadata": { 9892 SchemaProps: spec.SchemaProps{ 9893 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 9894 Default: map[string]interface{}{}, 9895 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 9896 }, 9897 }, 9898 "immutable": { 9899 SchemaProps: spec.SchemaProps{ 9900 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.", 9901 Type: []string{"boolean"}, 9902 Format: "", 9903 }, 9904 }, 9905 "data": { 9906 SchemaProps: spec.SchemaProps{ 9907 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", 9908 Type: []string{"object"}, 9909 AdditionalProperties: &spec.SchemaOrBool{ 9910 Allows: true, 9911 Schema: &spec.Schema{ 9912 SchemaProps: spec.SchemaProps{ 9913 Type: []string{"string"}, 9914 Format: "byte", 9915 }, 9916 }, 9917 }, 9918 }, 9919 }, 9920 "stringData": { 9921 SchemaProps: spec.SchemaProps{ 9922 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.", 9923 Type: []string{"object"}, 9924 AdditionalProperties: &spec.SchemaOrBool{ 9925 Allows: true, 9926 Schema: &spec.Schema{ 9927 SchemaProps: spec.SchemaProps{ 9928 Default: "", 9929 Type: []string{"string"}, 9930 Format: "", 9931 }, 9932 }, 9933 }, 9934 }, 9935 }, 9936 "type": { 9937 SchemaProps: spec.SchemaProps{ 9938 Description: "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", 9939 Type: []string{"string"}, 9940 Format: "", 9941 }, 9942 }, 9943 }, 9944 }, 9945 }, 9946 Dependencies: []string{ 9947 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 9948 } 9949 } 9950 9951 func schema_k8sio_api_core_v1_SecretEnvSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 9952 return common.OpenAPIDefinition{ 9953 Schema: spec.Schema{ 9954 SchemaProps: spec.SchemaProps{ 9955 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.", 9956 Type: []string{"object"}, 9957 Properties: map[string]spec.Schema{ 9958 "name": { 9959 SchemaProps: spec.SchemaProps{ 9960 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 9961 Type: []string{"string"}, 9962 Format: "", 9963 }, 9964 }, 9965 "optional": { 9966 SchemaProps: spec.SchemaProps{ 9967 Description: "Specify whether the Secret must be defined", 9968 Type: []string{"boolean"}, 9969 Format: "", 9970 }, 9971 }, 9972 }, 9973 }, 9974 }, 9975 } 9976 } 9977 9978 func schema_k8sio_api_core_v1_SecretKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 9979 return common.OpenAPIDefinition{ 9980 Schema: spec.Schema{ 9981 SchemaProps: spec.SchemaProps{ 9982 Description: "SecretKeySelector selects a key of a Secret.", 9983 Type: []string{"object"}, 9984 Properties: map[string]spec.Schema{ 9985 "name": { 9986 SchemaProps: spec.SchemaProps{ 9987 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 9988 Type: []string{"string"}, 9989 Format: "", 9990 }, 9991 }, 9992 "key": { 9993 SchemaProps: spec.SchemaProps{ 9994 Description: "The key of the secret to select from. Must be a valid secret key.", 9995 Default: "", 9996 Type: []string{"string"}, 9997 Format: "", 9998 }, 9999 }, 10000 "optional": { 10001 SchemaProps: spec.SchemaProps{ 10002 Description: "Specify whether the Secret or its key must be defined", 10003 Type: []string{"boolean"}, 10004 Format: "", 10005 }, 10006 }, 10007 }, 10008 Required: []string{"key"}, 10009 }, 10010 VendorExtensible: spec.VendorExtensible{ 10011 Extensions: spec.Extensions{ 10012 "x-kubernetes-map-type": "atomic", 10013 }, 10014 }, 10015 }, 10016 } 10017 } 10018 10019 func schema_k8sio_api_core_v1_SecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { 10020 return common.OpenAPIDefinition{ 10021 Schema: spec.Schema{ 10022 SchemaProps: spec.SchemaProps{ 10023 Description: "SecretList is a list of Secret.", 10024 Type: []string{"object"}, 10025 Properties: map[string]spec.Schema{ 10026 "kind": { 10027 SchemaProps: spec.SchemaProps{ 10028 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10029 Type: []string{"string"}, 10030 Format: "", 10031 }, 10032 }, 10033 "apiVersion": { 10034 SchemaProps: spec.SchemaProps{ 10035 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10036 Type: []string{"string"}, 10037 Format: "", 10038 }, 10039 }, 10040 "metadata": { 10041 SchemaProps: spec.SchemaProps{ 10042 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10043 Default: map[string]interface{}{}, 10044 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 10045 }, 10046 }, 10047 "items": { 10048 SchemaProps: spec.SchemaProps{ 10049 Description: "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", 10050 Type: []string{"array"}, 10051 Items: &spec.SchemaOrArray{ 10052 Schema: &spec.Schema{ 10053 SchemaProps: spec.SchemaProps{ 10054 Default: map[string]interface{}{}, 10055 Ref: ref("k8s.io/api/core/v1.Secret"), 10056 }, 10057 }, 10058 }, 10059 }, 10060 }, 10061 }, 10062 Required: []string{"items"}, 10063 }, 10064 }, 10065 Dependencies: []string{ 10066 "k8s.io/api/core/v1.Secret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 10067 } 10068 } 10069 10070 func schema_k8sio_api_core_v1_SecretProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 10071 return common.OpenAPIDefinition{ 10072 Schema: spec.Schema{ 10073 SchemaProps: spec.SchemaProps{ 10074 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.", 10075 Type: []string{"object"}, 10076 Properties: map[string]spec.Schema{ 10077 "name": { 10078 SchemaProps: spec.SchemaProps{ 10079 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 10080 Type: []string{"string"}, 10081 Format: "", 10082 }, 10083 }, 10084 "items": { 10085 SchemaProps: spec.SchemaProps{ 10086 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 '..'.", 10087 Type: []string{"array"}, 10088 Items: &spec.SchemaOrArray{ 10089 Schema: &spec.Schema{ 10090 SchemaProps: spec.SchemaProps{ 10091 Default: map[string]interface{}{}, 10092 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 10093 }, 10094 }, 10095 }, 10096 }, 10097 }, 10098 "optional": { 10099 SchemaProps: spec.SchemaProps{ 10100 Description: "optional field specify whether the Secret or its key must be defined", 10101 Type: []string{"boolean"}, 10102 Format: "", 10103 }, 10104 }, 10105 }, 10106 }, 10107 }, 10108 Dependencies: []string{ 10109 "k8s.io/api/core/v1.KeyToPath"}, 10110 } 10111 } 10112 10113 func schema_k8sio_api_core_v1_SecretReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 10114 return common.OpenAPIDefinition{ 10115 Schema: spec.Schema{ 10116 SchemaProps: spec.SchemaProps{ 10117 Description: "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", 10118 Type: []string{"object"}, 10119 Properties: map[string]spec.Schema{ 10120 "name": { 10121 SchemaProps: spec.SchemaProps{ 10122 Description: "name is unique within a namespace to reference a secret resource.", 10123 Type: []string{"string"}, 10124 Format: "", 10125 }, 10126 }, 10127 "namespace": { 10128 SchemaProps: spec.SchemaProps{ 10129 Description: "namespace defines the space within which the secret name must be unique.", 10130 Type: []string{"string"}, 10131 Format: "", 10132 }, 10133 }, 10134 }, 10135 }, 10136 VendorExtensible: spec.VendorExtensible{ 10137 Extensions: spec.Extensions{ 10138 "x-kubernetes-map-type": "atomic", 10139 }, 10140 }, 10141 }, 10142 } 10143 } 10144 10145 func schema_k8sio_api_core_v1_SecretVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 10146 return common.OpenAPIDefinition{ 10147 Schema: spec.Schema{ 10148 SchemaProps: spec.SchemaProps{ 10149 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.", 10150 Type: []string{"object"}, 10151 Properties: map[string]spec.Schema{ 10152 "secretName": { 10153 SchemaProps: spec.SchemaProps{ 10154 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", 10155 Type: []string{"string"}, 10156 Format: "", 10157 }, 10158 }, 10159 "items": { 10160 SchemaProps: spec.SchemaProps{ 10161 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 '..'.", 10162 Type: []string{"array"}, 10163 Items: &spec.SchemaOrArray{ 10164 Schema: &spec.Schema{ 10165 SchemaProps: spec.SchemaProps{ 10166 Default: map[string]interface{}{}, 10167 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 10168 }, 10169 }, 10170 }, 10171 }, 10172 }, 10173 "defaultMode": { 10174 SchemaProps: spec.SchemaProps{ 10175 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.", 10176 Type: []string{"integer"}, 10177 Format: "int32", 10178 }, 10179 }, 10180 "optional": { 10181 SchemaProps: spec.SchemaProps{ 10182 Description: "optional field specify whether the Secret or its keys must be defined", 10183 Type: []string{"boolean"}, 10184 Format: "", 10185 }, 10186 }, 10187 }, 10188 }, 10189 }, 10190 Dependencies: []string{ 10191 "k8s.io/api/core/v1.KeyToPath"}, 10192 } 10193 } 10194 10195 func schema_k8sio_api_core_v1_SecurityContext(ref common.ReferenceCallback) common.OpenAPIDefinition { 10196 return common.OpenAPIDefinition{ 10197 Schema: spec.Schema{ 10198 SchemaProps: spec.SchemaProps{ 10199 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.", 10200 Type: []string{"object"}, 10201 Properties: map[string]spec.Schema{ 10202 "capabilities": { 10203 SchemaProps: spec.SchemaProps{ 10204 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.", 10205 Ref: ref("k8s.io/api/core/v1.Capabilities"), 10206 }, 10207 }, 10208 "privileged": { 10209 SchemaProps: spec.SchemaProps{ 10210 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.", 10211 Type: []string{"boolean"}, 10212 Format: "", 10213 }, 10214 }, 10215 "seLinuxOptions": { 10216 SchemaProps: spec.SchemaProps{ 10217 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.", 10218 Ref: ref("k8s.io/api/core/v1.SELinuxOptions"), 10219 }, 10220 }, 10221 "windowsOptions": { 10222 SchemaProps: spec.SchemaProps{ 10223 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.", 10224 Ref: ref("k8s.io/api/core/v1.WindowsSecurityContextOptions"), 10225 }, 10226 }, 10227 "runAsUser": { 10228 SchemaProps: spec.SchemaProps{ 10229 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.", 10230 Type: []string{"integer"}, 10231 Format: "int64", 10232 }, 10233 }, 10234 "runAsGroup": { 10235 SchemaProps: spec.SchemaProps{ 10236 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.", 10237 Type: []string{"integer"}, 10238 Format: "int64", 10239 }, 10240 }, 10241 "runAsNonRoot": { 10242 SchemaProps: spec.SchemaProps{ 10243 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.", 10244 Type: []string{"boolean"}, 10245 Format: "", 10246 }, 10247 }, 10248 "readOnlyRootFilesystem": { 10249 SchemaProps: spec.SchemaProps{ 10250 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.", 10251 Type: []string{"boolean"}, 10252 Format: "", 10253 }, 10254 }, 10255 "allowPrivilegeEscalation": { 10256 SchemaProps: spec.SchemaProps{ 10257 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.", 10258 Type: []string{"boolean"}, 10259 Format: "", 10260 }, 10261 }, 10262 "procMount": { 10263 SchemaProps: spec.SchemaProps{ 10264 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.", 10265 Type: []string{"string"}, 10266 Format: "", 10267 }, 10268 }, 10269 "seccompProfile": { 10270 SchemaProps: spec.SchemaProps{ 10271 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.", 10272 Ref: ref("k8s.io/api/core/v1.SeccompProfile"), 10273 }, 10274 }, 10275 }, 10276 }, 10277 }, 10278 Dependencies: []string{ 10279 "k8s.io/api/core/v1.Capabilities", "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, 10280 } 10281 } 10282 10283 func schema_k8sio_api_core_v1_SerializedReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 10284 return common.OpenAPIDefinition{ 10285 Schema: spec.Schema{ 10286 SchemaProps: spec.SchemaProps{ 10287 Description: "SerializedReference is a reference to serialized object.", 10288 Type: []string{"object"}, 10289 Properties: map[string]spec.Schema{ 10290 "kind": { 10291 SchemaProps: spec.SchemaProps{ 10292 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10293 Type: []string{"string"}, 10294 Format: "", 10295 }, 10296 }, 10297 "apiVersion": { 10298 SchemaProps: spec.SchemaProps{ 10299 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10300 Type: []string{"string"}, 10301 Format: "", 10302 }, 10303 }, 10304 "reference": { 10305 SchemaProps: spec.SchemaProps{ 10306 Description: "The reference to an object in the system.", 10307 Default: map[string]interface{}{}, 10308 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 10309 }, 10310 }, 10311 }, 10312 }, 10313 }, 10314 Dependencies: []string{ 10315 "k8s.io/api/core/v1.ObjectReference"}, 10316 } 10317 } 10318 10319 func schema_k8sio_api_core_v1_Service(ref common.ReferenceCallback) common.OpenAPIDefinition { 10320 return common.OpenAPIDefinition{ 10321 Schema: spec.Schema{ 10322 SchemaProps: spec.SchemaProps{ 10323 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.", 10324 Type: []string{"object"}, 10325 Properties: map[string]spec.Schema{ 10326 "kind": { 10327 SchemaProps: spec.SchemaProps{ 10328 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10329 Type: []string{"string"}, 10330 Format: "", 10331 }, 10332 }, 10333 "apiVersion": { 10334 SchemaProps: spec.SchemaProps{ 10335 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10336 Type: []string{"string"}, 10337 Format: "", 10338 }, 10339 }, 10340 "metadata": { 10341 SchemaProps: spec.SchemaProps{ 10342 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 10343 Default: map[string]interface{}{}, 10344 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 10345 }, 10346 }, 10347 "spec": { 10348 SchemaProps: spec.SchemaProps{ 10349 Description: "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 10350 Default: map[string]interface{}{}, 10351 Ref: ref("k8s.io/api/core/v1.ServiceSpec"), 10352 }, 10353 }, 10354 "status": { 10355 SchemaProps: spec.SchemaProps{ 10356 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", 10357 Default: map[string]interface{}{}, 10358 Ref: ref("k8s.io/api/core/v1.ServiceStatus"), 10359 }, 10360 }, 10361 }, 10362 }, 10363 }, 10364 Dependencies: []string{ 10365 "k8s.io/api/core/v1.ServiceSpec", "k8s.io/api/core/v1.ServiceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 10366 } 10367 } 10368 10369 func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) common.OpenAPIDefinition { 10370 return common.OpenAPIDefinition{ 10371 Schema: spec.Schema{ 10372 SchemaProps: spec.SchemaProps{ 10373 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", 10374 Type: []string{"object"}, 10375 Properties: map[string]spec.Schema{ 10376 "kind": { 10377 SchemaProps: spec.SchemaProps{ 10378 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10379 Type: []string{"string"}, 10380 Format: "", 10381 }, 10382 }, 10383 "apiVersion": { 10384 SchemaProps: spec.SchemaProps{ 10385 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10386 Type: []string{"string"}, 10387 Format: "", 10388 }, 10389 }, 10390 "metadata": { 10391 SchemaProps: spec.SchemaProps{ 10392 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 10393 Default: map[string]interface{}{}, 10394 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 10395 }, 10396 }, 10397 "secrets": { 10398 VendorExtensible: spec.VendorExtensible{ 10399 Extensions: spec.Extensions{ 10400 "x-kubernetes-patch-merge-key": "name", 10401 "x-kubernetes-patch-strategy": "merge", 10402 }, 10403 }, 10404 SchemaProps: spec.SchemaProps{ 10405 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", 10406 Type: []string{"array"}, 10407 Items: &spec.SchemaOrArray{ 10408 Schema: &spec.Schema{ 10409 SchemaProps: spec.SchemaProps{ 10410 Default: map[string]interface{}{}, 10411 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 10412 }, 10413 }, 10414 }, 10415 }, 10416 }, 10417 "imagePullSecrets": { 10418 SchemaProps: spec.SchemaProps{ 10419 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", 10420 Type: []string{"array"}, 10421 Items: &spec.SchemaOrArray{ 10422 Schema: &spec.Schema{ 10423 SchemaProps: spec.SchemaProps{ 10424 Default: map[string]interface{}{}, 10425 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 10426 }, 10427 }, 10428 }, 10429 }, 10430 }, 10431 "automountServiceAccountToken": { 10432 SchemaProps: spec.SchemaProps{ 10433 Description: "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", 10434 Type: []string{"boolean"}, 10435 Format: "", 10436 }, 10437 }, 10438 }, 10439 }, 10440 }, 10441 Dependencies: []string{ 10442 "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 10443 } 10444 } 10445 10446 func schema_k8sio_api_core_v1_ServiceAccountList(ref common.ReferenceCallback) common.OpenAPIDefinition { 10447 return common.OpenAPIDefinition{ 10448 Schema: spec.Schema{ 10449 SchemaProps: spec.SchemaProps{ 10450 Description: "ServiceAccountList is a list of ServiceAccount objects", 10451 Type: []string{"object"}, 10452 Properties: map[string]spec.Schema{ 10453 "kind": { 10454 SchemaProps: spec.SchemaProps{ 10455 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10456 Type: []string{"string"}, 10457 Format: "", 10458 }, 10459 }, 10460 "apiVersion": { 10461 SchemaProps: spec.SchemaProps{ 10462 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10463 Type: []string{"string"}, 10464 Format: "", 10465 }, 10466 }, 10467 "metadata": { 10468 SchemaProps: spec.SchemaProps{ 10469 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10470 Default: map[string]interface{}{}, 10471 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 10472 }, 10473 }, 10474 "items": { 10475 SchemaProps: spec.SchemaProps{ 10476 Description: "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", 10477 Type: []string{"array"}, 10478 Items: &spec.SchemaOrArray{ 10479 Schema: &spec.Schema{ 10480 SchemaProps: spec.SchemaProps{ 10481 Default: map[string]interface{}{}, 10482 Ref: ref("k8s.io/api/core/v1.ServiceAccount"), 10483 }, 10484 }, 10485 }, 10486 }, 10487 }, 10488 }, 10489 Required: []string{"items"}, 10490 }, 10491 }, 10492 Dependencies: []string{ 10493 "k8s.io/api/core/v1.ServiceAccount", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 10494 } 10495 } 10496 10497 func schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 10498 return common.OpenAPIDefinition{ 10499 Schema: spec.Schema{ 10500 SchemaProps: spec.SchemaProps{ 10501 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).", 10502 Type: []string{"object"}, 10503 Properties: map[string]spec.Schema{ 10504 "audience": { 10505 SchemaProps: spec.SchemaProps{ 10506 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.", 10507 Type: []string{"string"}, 10508 Format: "", 10509 }, 10510 }, 10511 "expirationSeconds": { 10512 SchemaProps: spec.SchemaProps{ 10513 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.", 10514 Type: []string{"integer"}, 10515 Format: "int64", 10516 }, 10517 }, 10518 "path": { 10519 SchemaProps: spec.SchemaProps{ 10520 Description: "path is the path relative to the mount point of the file to project the token into.", 10521 Default: "", 10522 Type: []string{"string"}, 10523 Format: "", 10524 }, 10525 }, 10526 }, 10527 Required: []string{"path"}, 10528 }, 10529 }, 10530 } 10531 } 10532 10533 func schema_k8sio_api_core_v1_ServiceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 10534 return common.OpenAPIDefinition{ 10535 Schema: spec.Schema{ 10536 SchemaProps: spec.SchemaProps{ 10537 Description: "ServiceList holds a list of services.", 10538 Type: []string{"object"}, 10539 Properties: map[string]spec.Schema{ 10540 "kind": { 10541 SchemaProps: spec.SchemaProps{ 10542 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10543 Type: []string{"string"}, 10544 Format: "", 10545 }, 10546 }, 10547 "apiVersion": { 10548 SchemaProps: spec.SchemaProps{ 10549 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10550 Type: []string{"string"}, 10551 Format: "", 10552 }, 10553 }, 10554 "metadata": { 10555 SchemaProps: spec.SchemaProps{ 10556 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10557 Default: map[string]interface{}{}, 10558 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 10559 }, 10560 }, 10561 "items": { 10562 SchemaProps: spec.SchemaProps{ 10563 Description: "List of services", 10564 Type: []string{"array"}, 10565 Items: &spec.SchemaOrArray{ 10566 Schema: &spec.Schema{ 10567 SchemaProps: spec.SchemaProps{ 10568 Default: map[string]interface{}{}, 10569 Ref: ref("k8s.io/api/core/v1.Service"), 10570 }, 10571 }, 10572 }, 10573 }, 10574 }, 10575 }, 10576 Required: []string{"items"}, 10577 }, 10578 }, 10579 Dependencies: []string{ 10580 "k8s.io/api/core/v1.Service", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 10581 } 10582 } 10583 10584 func schema_k8sio_api_core_v1_ServicePort(ref common.ReferenceCallback) common.OpenAPIDefinition { 10585 return common.OpenAPIDefinition{ 10586 Schema: spec.Schema{ 10587 SchemaProps: spec.SchemaProps{ 10588 Description: "ServicePort contains information on service's port.", 10589 Type: []string{"object"}, 10590 Properties: map[string]spec.Schema{ 10591 "name": { 10592 SchemaProps: spec.SchemaProps{ 10593 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.", 10594 Type: []string{"string"}, 10595 Format: "", 10596 }, 10597 }, 10598 "protocol": { 10599 SchemaProps: spec.SchemaProps{ 10600 Description: "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.\n\nPossible enum values:\n - `\"SCTP\"` is the SCTP protocol.\n - `\"TCP\"` is the TCP protocol.\n - `\"UDP\"` is the UDP protocol.", 10601 Default: "TCP", 10602 Type: []string{"string"}, 10603 Format: "", 10604 Enum: []interface{}{"SCTP", "TCP", "UDP"}}, 10605 }, 10606 "appProtocol": { 10607 SchemaProps: spec.SchemaProps{ 10608 Description: "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.", 10609 Type: []string{"string"}, 10610 Format: "", 10611 }, 10612 }, 10613 "port": { 10614 SchemaProps: spec.SchemaProps{ 10615 Description: "The port that will be exposed by this service.", 10616 Default: 0, 10617 Type: []string{"integer"}, 10618 Format: "int32", 10619 }, 10620 }, 10621 "targetPort": { 10622 SchemaProps: spec.SchemaProps{ 10623 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", 10624 Default: map[string]interface{}{}, 10625 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 10626 }, 10627 }, 10628 "nodePort": { 10629 SchemaProps: spec.SchemaProps{ 10630 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", 10631 Type: []string{"integer"}, 10632 Format: "int32", 10633 }, 10634 }, 10635 }, 10636 Required: []string{"port"}, 10637 }, 10638 }, 10639 Dependencies: []string{ 10640 "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 10641 } 10642 } 10643 10644 func schema_k8sio_api_core_v1_ServiceProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 10645 return common.OpenAPIDefinition{ 10646 Schema: spec.Schema{ 10647 SchemaProps: spec.SchemaProps{ 10648 Description: "ServiceProxyOptions is the query options to a Service's proxy call.", 10649 Type: []string{"object"}, 10650 Properties: map[string]spec.Schema{ 10651 "kind": { 10652 SchemaProps: spec.SchemaProps{ 10653 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10654 Type: []string{"string"}, 10655 Format: "", 10656 }, 10657 }, 10658 "apiVersion": { 10659 SchemaProps: spec.SchemaProps{ 10660 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10661 Type: []string{"string"}, 10662 Format: "", 10663 }, 10664 }, 10665 "path": { 10666 SchemaProps: spec.SchemaProps{ 10667 Description: "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", 10668 Type: []string{"string"}, 10669 Format: "", 10670 }, 10671 }, 10672 }, 10673 }, 10674 }, 10675 } 10676 } 10677 10678 func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 10679 return common.OpenAPIDefinition{ 10680 Schema: spec.Schema{ 10681 SchemaProps: spec.SchemaProps{ 10682 Description: "ServiceSpec describes the attributes that a user creates on a service.", 10683 Type: []string{"object"}, 10684 Properties: map[string]spec.Schema{ 10685 "ports": { 10686 VendorExtensible: spec.VendorExtensible{ 10687 Extensions: spec.Extensions{ 10688 "x-kubernetes-list-map-keys": []interface{}{ 10689 "port", 10690 "protocol", 10691 }, 10692 "x-kubernetes-list-type": "map", 10693 "x-kubernetes-patch-merge-key": "port", 10694 "x-kubernetes-patch-strategy": "merge", 10695 }, 10696 }, 10697 SchemaProps: spec.SchemaProps{ 10698 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", 10699 Type: []string{"array"}, 10700 Items: &spec.SchemaOrArray{ 10701 Schema: &spec.Schema{ 10702 SchemaProps: spec.SchemaProps{ 10703 Default: map[string]interface{}{}, 10704 Ref: ref("k8s.io/api/core/v1.ServicePort"), 10705 }, 10706 }, 10707 }, 10708 }, 10709 }, 10710 "selector": { 10711 VendorExtensible: spec.VendorExtensible{ 10712 Extensions: spec.Extensions{ 10713 "x-kubernetes-map-type": "atomic", 10714 }, 10715 }, 10716 SchemaProps: spec.SchemaProps{ 10717 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/", 10718 Type: []string{"object"}, 10719 AdditionalProperties: &spec.SchemaOrBool{ 10720 Allows: true, 10721 Schema: &spec.Schema{ 10722 SchemaProps: spec.SchemaProps{ 10723 Default: "", 10724 Type: []string{"string"}, 10725 Format: "", 10726 }, 10727 }, 10728 }, 10729 }, 10730 }, 10731 "clusterIP": { 10732 SchemaProps: spec.SchemaProps{ 10733 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", 10734 Type: []string{"string"}, 10735 Format: "", 10736 }, 10737 }, 10738 "clusterIPs": { 10739 VendorExtensible: spec.VendorExtensible{ 10740 Extensions: spec.Extensions{ 10741 "x-kubernetes-list-type": "atomic", 10742 }, 10743 }, 10744 SchemaProps: spec.SchemaProps{ 10745 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", 10746 Type: []string{"array"}, 10747 Items: &spec.SchemaOrArray{ 10748 Schema: &spec.Schema{ 10749 SchemaProps: spec.SchemaProps{ 10750 Default: "", 10751 Type: []string{"string"}, 10752 Format: "", 10753 }, 10754 }, 10755 }, 10756 }, 10757 }, 10758 "type": { 10759 SchemaProps: spec.SchemaProps{ 10760 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\n\nPossible enum values:\n - `\"ClusterIP\"` means a service will only be accessible inside the cluster, via the cluster IP.\n - `\"ExternalName\"` means a service consists of only a reference to an external name that kubedns or equivalent will return as a CNAME record, with no exposing or proxying of any pods involved.\n - `\"LoadBalancer\"` means a service will be exposed via an external load balancer (if the cloud provider supports it), in addition to 'NodePort' type.\n - `\"NodePort\"` means a service will be exposed on one port of every node, in addition to 'ClusterIP' type.", 10761 Type: []string{"string"}, 10762 Format: "", 10763 Enum: []interface{}{"ClusterIP", "ExternalName", "LoadBalancer", "NodePort"}}, 10764 }, 10765 "externalIPs": { 10766 SchemaProps: spec.SchemaProps{ 10767 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.", 10768 Type: []string{"array"}, 10769 Items: &spec.SchemaOrArray{ 10770 Schema: &spec.Schema{ 10771 SchemaProps: spec.SchemaProps{ 10772 Default: "", 10773 Type: []string{"string"}, 10774 Format: "", 10775 }, 10776 }, 10777 }, 10778 }, 10779 }, 10780 "sessionAffinity": { 10781 SchemaProps: spec.SchemaProps{ 10782 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\n\nPossible enum values:\n - `\"ClientIP\"` is the Client IP based.\n - `\"None\"` - no session affinity.", 10783 Type: []string{"string"}, 10784 Format: "", 10785 Enum: []interface{}{"ClientIP", "None"}}, 10786 }, 10787 "loadBalancerIP": { 10788 SchemaProps: spec.SchemaProps{ 10789 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, and it cannot support dual-stack. As of Kubernetes v1.24, users are encouraged to use implementation-specific annotations when available. This field may be removed in a future API version.", 10790 Type: []string{"string"}, 10791 Format: "", 10792 }, 10793 }, 10794 "loadBalancerSourceRanges": { 10795 SchemaProps: spec.SchemaProps{ 10796 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/", 10797 Type: []string{"array"}, 10798 Items: &spec.SchemaOrArray{ 10799 Schema: &spec.Schema{ 10800 SchemaProps: spec.SchemaProps{ 10801 Default: "", 10802 Type: []string{"string"}, 10803 Format: "", 10804 }, 10805 }, 10806 }, 10807 }, 10808 }, 10809 "externalName": { 10810 SchemaProps: spec.SchemaProps{ 10811 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\".", 10812 Type: []string{"string"}, 10813 Format: "", 10814 }, 10815 }, 10816 "externalTrafficPolicy": { 10817 SchemaProps: spec.SchemaProps{ 10818 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.\n\nPossible enum values:\n - `\"Cluster\"` routes traffic to all endpoints.\n - `\"Local\"` preserves the source IP of the traffic by routing only to endpoints on the same node as the traffic was received on (dropping the traffic if there are no local endpoints).", 10819 Type: []string{"string"}, 10820 Format: "", 10821 Enum: []interface{}{"Cluster", "Local"}}, 10822 }, 10823 "healthCheckNodePort": { 10824 SchemaProps: spec.SchemaProps{ 10825 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.", 10826 Type: []string{"integer"}, 10827 Format: "int32", 10828 }, 10829 }, 10830 "publishNotReadyAddresses": { 10831 SchemaProps: spec.SchemaProps{ 10832 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.", 10833 Type: []string{"boolean"}, 10834 Format: "", 10835 }, 10836 }, 10837 "sessionAffinityConfig": { 10838 SchemaProps: spec.SchemaProps{ 10839 Description: "sessionAffinityConfig contains the configurations of session affinity.", 10840 Ref: ref("k8s.io/api/core/v1.SessionAffinityConfig"), 10841 }, 10842 }, 10843 "ipFamilies": { 10844 VendorExtensible: spec.VendorExtensible{ 10845 Extensions: spec.Extensions{ 10846 "x-kubernetes-list-type": "atomic", 10847 }, 10848 }, 10849 SchemaProps: spec.SchemaProps{ 10850 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.", 10851 Type: []string{"array"}, 10852 Items: &spec.SchemaOrArray{ 10853 Schema: &spec.Schema{ 10854 SchemaProps: spec.SchemaProps{ 10855 Default: "", 10856 Type: []string{"string"}, 10857 Format: "", 10858 }, 10859 }, 10860 }, 10861 }, 10862 }, 10863 "ipFamilyPolicy": { 10864 SchemaProps: spec.SchemaProps{ 10865 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.", 10866 Type: []string{"string"}, 10867 Format: "", 10868 }, 10869 }, 10870 "allocateLoadBalancerNodePorts": { 10871 SchemaProps: spec.SchemaProps{ 10872 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.", 10873 Type: []string{"boolean"}, 10874 Format: "", 10875 }, 10876 }, 10877 "loadBalancerClass": { 10878 SchemaProps: spec.SchemaProps{ 10879 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.", 10880 Type: []string{"string"}, 10881 Format: "", 10882 }, 10883 }, 10884 "internalTrafficPolicy": { 10885 SchemaProps: spec.SchemaProps{ 10886 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).", 10887 Type: []string{"string"}, 10888 Format: "", 10889 }, 10890 }, 10891 }, 10892 }, 10893 }, 10894 Dependencies: []string{ 10895 "k8s.io/api/core/v1.ServicePort", "k8s.io/api/core/v1.SessionAffinityConfig"}, 10896 } 10897 } 10898 10899 func schema_k8sio_api_core_v1_ServiceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 10900 return common.OpenAPIDefinition{ 10901 Schema: spec.Schema{ 10902 SchemaProps: spec.SchemaProps{ 10903 Description: "ServiceStatus represents the current status of a service.", 10904 Type: []string{"object"}, 10905 Properties: map[string]spec.Schema{ 10906 "loadBalancer": { 10907 SchemaProps: spec.SchemaProps{ 10908 Description: "LoadBalancer contains the current status of the load-balancer, if one is present.", 10909 Default: map[string]interface{}{}, 10910 Ref: ref("k8s.io/api/core/v1.LoadBalancerStatus"), 10911 }, 10912 }, 10913 "conditions": { 10914 VendorExtensible: spec.VendorExtensible{ 10915 Extensions: spec.Extensions{ 10916 "x-kubernetes-list-map-keys": []interface{}{ 10917 "type", 10918 }, 10919 "x-kubernetes-list-type": "map", 10920 "x-kubernetes-patch-merge-key": "type", 10921 "x-kubernetes-patch-strategy": "merge", 10922 }, 10923 }, 10924 SchemaProps: spec.SchemaProps{ 10925 Description: "Current service state", 10926 Type: []string{"array"}, 10927 Items: &spec.SchemaOrArray{ 10928 Schema: &spec.Schema{ 10929 SchemaProps: spec.SchemaProps{ 10930 Default: map[string]interface{}{}, 10931 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), 10932 }, 10933 }, 10934 }, 10935 }, 10936 }, 10937 }, 10938 }, 10939 }, 10940 Dependencies: []string{ 10941 "k8s.io/api/core/v1.LoadBalancerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, 10942 } 10943 } 10944 10945 func schema_k8sio_api_core_v1_SessionAffinityConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 10946 return common.OpenAPIDefinition{ 10947 Schema: spec.Schema{ 10948 SchemaProps: spec.SchemaProps{ 10949 Description: "SessionAffinityConfig represents the configurations of session affinity.", 10950 Type: []string{"object"}, 10951 Properties: map[string]spec.Schema{ 10952 "clientIP": { 10953 SchemaProps: spec.SchemaProps{ 10954 Description: "clientIP contains the configurations of Client IP based session affinity.", 10955 Ref: ref("k8s.io/api/core/v1.ClientIPConfig"), 10956 }, 10957 }, 10958 }, 10959 }, 10960 }, 10961 Dependencies: []string{ 10962 "k8s.io/api/core/v1.ClientIPConfig"}, 10963 } 10964 } 10965 10966 func schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 10967 return common.OpenAPIDefinition{ 10968 Schema: spec.Schema{ 10969 SchemaProps: spec.SchemaProps{ 10970 Description: "Represents a StorageOS persistent volume resource.", 10971 Type: []string{"object"}, 10972 Properties: map[string]spec.Schema{ 10973 "volumeName": { 10974 SchemaProps: spec.SchemaProps{ 10975 Description: "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", 10976 Type: []string{"string"}, 10977 Format: "", 10978 }, 10979 }, 10980 "volumeNamespace": { 10981 SchemaProps: spec.SchemaProps{ 10982 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.", 10983 Type: []string{"string"}, 10984 Format: "", 10985 }, 10986 }, 10987 "fsType": { 10988 SchemaProps: spec.SchemaProps{ 10989 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.", 10990 Type: []string{"string"}, 10991 Format: "", 10992 }, 10993 }, 10994 "readOnly": { 10995 SchemaProps: spec.SchemaProps{ 10996 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 10997 Type: []string{"boolean"}, 10998 Format: "", 10999 }, 11000 }, 11001 "secretRef": { 11002 SchemaProps: spec.SchemaProps{ 11003 Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", 11004 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 11005 }, 11006 }, 11007 }, 11008 }, 11009 }, 11010 Dependencies: []string{ 11011 "k8s.io/api/core/v1.ObjectReference"}, 11012 } 11013 } 11014 11015 func schema_k8sio_api_core_v1_StorageOSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 11016 return common.OpenAPIDefinition{ 11017 Schema: spec.Schema{ 11018 SchemaProps: spec.SchemaProps{ 11019 Description: "Represents a StorageOS persistent volume resource.", 11020 Type: []string{"object"}, 11021 Properties: map[string]spec.Schema{ 11022 "volumeName": { 11023 SchemaProps: spec.SchemaProps{ 11024 Description: "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", 11025 Type: []string{"string"}, 11026 Format: "", 11027 }, 11028 }, 11029 "volumeNamespace": { 11030 SchemaProps: spec.SchemaProps{ 11031 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.", 11032 Type: []string{"string"}, 11033 Format: "", 11034 }, 11035 }, 11036 "fsType": { 11037 SchemaProps: spec.SchemaProps{ 11038 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.", 11039 Type: []string{"string"}, 11040 Format: "", 11041 }, 11042 }, 11043 "readOnly": { 11044 SchemaProps: spec.SchemaProps{ 11045 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 11046 Type: []string{"boolean"}, 11047 Format: "", 11048 }, 11049 }, 11050 "secretRef": { 11051 SchemaProps: spec.SchemaProps{ 11052 Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", 11053 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 11054 }, 11055 }, 11056 }, 11057 }, 11058 }, 11059 Dependencies: []string{ 11060 "k8s.io/api/core/v1.LocalObjectReference"}, 11061 } 11062 } 11063 11064 func schema_k8sio_api_core_v1_Sysctl(ref common.ReferenceCallback) common.OpenAPIDefinition { 11065 return common.OpenAPIDefinition{ 11066 Schema: spec.Schema{ 11067 SchemaProps: spec.SchemaProps{ 11068 Description: "Sysctl defines a kernel parameter to be set", 11069 Type: []string{"object"}, 11070 Properties: map[string]spec.Schema{ 11071 "name": { 11072 SchemaProps: spec.SchemaProps{ 11073 Description: "Name of a property to set", 11074 Default: "", 11075 Type: []string{"string"}, 11076 Format: "", 11077 }, 11078 }, 11079 "value": { 11080 SchemaProps: spec.SchemaProps{ 11081 Description: "Value of a property to set", 11082 Default: "", 11083 Type: []string{"string"}, 11084 Format: "", 11085 }, 11086 }, 11087 }, 11088 Required: []string{"name", "value"}, 11089 }, 11090 }, 11091 } 11092 } 11093 11094 func schema_k8sio_api_core_v1_TCPSocketAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 11095 return common.OpenAPIDefinition{ 11096 Schema: spec.Schema{ 11097 SchemaProps: spec.SchemaProps{ 11098 Description: "TCPSocketAction describes an action based on opening a socket", 11099 Type: []string{"object"}, 11100 Properties: map[string]spec.Schema{ 11101 "port": { 11102 SchemaProps: spec.SchemaProps{ 11103 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.", 11104 Default: map[string]interface{}{}, 11105 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 11106 }, 11107 }, 11108 "host": { 11109 SchemaProps: spec.SchemaProps{ 11110 Description: "Optional: Host name to connect to, defaults to the pod IP.", 11111 Type: []string{"string"}, 11112 Format: "", 11113 }, 11114 }, 11115 }, 11116 Required: []string{"port"}, 11117 }, 11118 }, 11119 Dependencies: []string{ 11120 "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 11121 } 11122 } 11123 11124 func schema_k8sio_api_core_v1_Taint(ref common.ReferenceCallback) common.OpenAPIDefinition { 11125 return common.OpenAPIDefinition{ 11126 Schema: spec.Schema{ 11127 SchemaProps: spec.SchemaProps{ 11128 Description: "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", 11129 Type: []string{"object"}, 11130 Properties: map[string]spec.Schema{ 11131 "key": { 11132 SchemaProps: spec.SchemaProps{ 11133 Description: "Required. The taint key to be applied to a node.", 11134 Default: "", 11135 Type: []string{"string"}, 11136 Format: "", 11137 }, 11138 }, 11139 "value": { 11140 SchemaProps: spec.SchemaProps{ 11141 Description: "The taint value corresponding to the taint key.", 11142 Type: []string{"string"}, 11143 Format: "", 11144 }, 11145 }, 11146 "effect": { 11147 SchemaProps: spec.SchemaProps{ 11148 Description: "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.\n\nPossible enum values:\n - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.\n - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.\n - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler.", 11149 Default: "", 11150 Type: []string{"string"}, 11151 Format: "", 11152 Enum: []interface{}{"NoExecute", "NoSchedule", "PreferNoSchedule"}}, 11153 }, 11154 "timeAdded": { 11155 SchemaProps: spec.SchemaProps{ 11156 Description: "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", 11157 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 11158 }, 11159 }, 11160 }, 11161 Required: []string{"key", "effect"}, 11162 }, 11163 }, 11164 Dependencies: []string{ 11165 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 11166 } 11167 } 11168 11169 func schema_k8sio_api_core_v1_Toleration(ref common.ReferenceCallback) common.OpenAPIDefinition { 11170 return common.OpenAPIDefinition{ 11171 Schema: spec.Schema{ 11172 SchemaProps: spec.SchemaProps{ 11173 Description: "The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.", 11174 Type: []string{"object"}, 11175 Properties: map[string]spec.Schema{ 11176 "key": { 11177 SchemaProps: spec.SchemaProps{ 11178 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.", 11179 Type: []string{"string"}, 11180 Format: "", 11181 }, 11182 }, 11183 "operator": { 11184 SchemaProps: spec.SchemaProps{ 11185 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.\n\nPossible enum values:\n - `\"Equal\"`\n - `\"Exists\"`", 11186 Type: []string{"string"}, 11187 Format: "", 11188 Enum: []interface{}{"Equal", "Exists"}}, 11189 }, 11190 "value": { 11191 SchemaProps: spec.SchemaProps{ 11192 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.", 11193 Type: []string{"string"}, 11194 Format: "", 11195 }, 11196 }, 11197 "effect": { 11198 SchemaProps: spec.SchemaProps{ 11199 Description: "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.\n\nPossible enum values:\n - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.\n - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.\n - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler.", 11200 Type: []string{"string"}, 11201 Format: "", 11202 Enum: []interface{}{"NoExecute", "NoSchedule", "PreferNoSchedule"}}, 11203 }, 11204 "tolerationSeconds": { 11205 SchemaProps: spec.SchemaProps{ 11206 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.", 11207 Type: []string{"integer"}, 11208 Format: "int64", 11209 }, 11210 }, 11211 }, 11212 }, 11213 }, 11214 } 11215 } 11216 11217 func schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 11218 return common.OpenAPIDefinition{ 11219 Schema: spec.Schema{ 11220 SchemaProps: spec.SchemaProps{ 11221 Description: "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.", 11222 Type: []string{"object"}, 11223 Properties: map[string]spec.Schema{ 11224 "key": { 11225 SchemaProps: spec.SchemaProps{ 11226 Description: "The label key that the selector applies to.", 11227 Default: "", 11228 Type: []string{"string"}, 11229 Format: "", 11230 }, 11231 }, 11232 "values": { 11233 SchemaProps: spec.SchemaProps{ 11234 Description: "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", 11235 Type: []string{"array"}, 11236 Items: &spec.SchemaOrArray{ 11237 Schema: &spec.Schema{ 11238 SchemaProps: spec.SchemaProps{ 11239 Default: "", 11240 Type: []string{"string"}, 11241 Format: "", 11242 }, 11243 }, 11244 }, 11245 }, 11246 }, 11247 }, 11248 Required: []string{"key", "values"}, 11249 }, 11250 }, 11251 } 11252 } 11253 11254 func schema_k8sio_api_core_v1_TopologySelectorTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 11255 return common.OpenAPIDefinition{ 11256 Schema: spec.Schema{ 11257 SchemaProps: spec.SchemaProps{ 11258 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.", 11259 Type: []string{"object"}, 11260 Properties: map[string]spec.Schema{ 11261 "matchLabelExpressions": { 11262 SchemaProps: spec.SchemaProps{ 11263 Description: "A list of topology selector requirements by labels.", 11264 Type: []string{"array"}, 11265 Items: &spec.SchemaOrArray{ 11266 Schema: &spec.Schema{ 11267 SchemaProps: spec.SchemaProps{ 11268 Default: map[string]interface{}{}, 11269 Ref: ref("k8s.io/api/core/v1.TopologySelectorLabelRequirement"), 11270 }, 11271 }, 11272 }, 11273 }, 11274 }, 11275 }, 11276 }, 11277 VendorExtensible: spec.VendorExtensible{ 11278 Extensions: spec.Extensions{ 11279 "x-kubernetes-map-type": "atomic", 11280 }, 11281 }, 11282 }, 11283 Dependencies: []string{ 11284 "k8s.io/api/core/v1.TopologySelectorLabelRequirement"}, 11285 } 11286 } 11287 11288 func schema_k8sio_api_core_v1_TopologySpreadConstraint(ref common.ReferenceCallback) common.OpenAPIDefinition { 11289 return common.OpenAPIDefinition{ 11290 Schema: spec.Schema{ 11291 SchemaProps: spec.SchemaProps{ 11292 Description: "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", 11293 Type: []string{"object"}, 11294 Properties: map[string]spec.Schema{ 11295 "maxSkew": { 11296 SchemaProps: spec.SchemaProps{ 11297 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.", 11298 Default: 0, 11299 Type: []string{"integer"}, 11300 Format: "int32", 11301 }, 11302 }, 11303 "topologyKey": { 11304 SchemaProps: spec.SchemaProps{ 11305 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 <key, value> 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.", 11306 Default: "", 11307 Type: []string{"string"}, 11308 Format: "", 11309 }, 11310 }, 11311 "whenUnsatisfiable": { 11312 SchemaProps: spec.SchemaProps{ 11313 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.\n\nPossible enum values:\n - `\"DoNotSchedule\"` instructs the scheduler not to schedule the pod when constraints are not satisfied.\n - `\"ScheduleAnyway\"` instructs the scheduler to schedule the pod even if constraints are not satisfied.", 11314 Default: "", 11315 Type: []string{"string"}, 11316 Format: "", 11317 Enum: []interface{}{"DoNotSchedule", "ScheduleAnyway"}}, 11318 }, 11319 "labelSelector": { 11320 SchemaProps: spec.SchemaProps{ 11321 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.", 11322 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 11323 }, 11324 }, 11325 "minDomains": { 11326 SchemaProps: spec.SchemaProps{ 11327 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.\n\nThis is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).", 11328 Type: []string{"integer"}, 11329 Format: "int32", 11330 }, 11331 }, 11332 "nodeAffinityPolicy": { 11333 SchemaProps: spec.SchemaProps{ 11334 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 alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", 11335 Type: []string{"string"}, 11336 Format: "", 11337 }, 11338 }, 11339 "nodeTaintsPolicy": { 11340 SchemaProps: spec.SchemaProps{ 11341 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 alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", 11342 Type: []string{"string"}, 11343 Format: "", 11344 }, 11345 }, 11346 "matchLabelKeys": { 11347 VendorExtensible: spec.VendorExtensible{ 11348 Extensions: spec.Extensions{ 11349 "x-kubernetes-list-type": "atomic", 11350 }, 11351 }, 11352 SchemaProps: spec.SchemaProps{ 11353 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. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.", 11354 Type: []string{"array"}, 11355 Items: &spec.SchemaOrArray{ 11356 Schema: &spec.Schema{ 11357 SchemaProps: spec.SchemaProps{ 11358 Default: "", 11359 Type: []string{"string"}, 11360 Format: "", 11361 }, 11362 }, 11363 }, 11364 }, 11365 }, 11366 }, 11367 Required: []string{"maxSkew", "topologyKey", "whenUnsatisfiable"}, 11368 }, 11369 }, 11370 Dependencies: []string{ 11371 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 11372 } 11373 } 11374 11375 func schema_k8sio_api_core_v1_TypedLocalObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 11376 return common.OpenAPIDefinition{ 11377 Schema: spec.Schema{ 11378 SchemaProps: spec.SchemaProps{ 11379 Description: "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", 11380 Type: []string{"object"}, 11381 Properties: map[string]spec.Schema{ 11382 "apiGroup": { 11383 SchemaProps: spec.SchemaProps{ 11384 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.", 11385 Type: []string{"string"}, 11386 Format: "", 11387 }, 11388 }, 11389 "kind": { 11390 SchemaProps: spec.SchemaProps{ 11391 Description: "Kind is the type of resource being referenced", 11392 Default: "", 11393 Type: []string{"string"}, 11394 Format: "", 11395 }, 11396 }, 11397 "name": { 11398 SchemaProps: spec.SchemaProps{ 11399 Description: "Name is the name of resource being referenced", 11400 Default: "", 11401 Type: []string{"string"}, 11402 Format: "", 11403 }, 11404 }, 11405 }, 11406 Required: []string{"kind", "name"}, 11407 }, 11408 VendorExtensible: spec.VendorExtensible{ 11409 Extensions: spec.Extensions{ 11410 "x-kubernetes-map-type": "atomic", 11411 }, 11412 }, 11413 }, 11414 } 11415 } 11416 11417 func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAPIDefinition { 11418 return common.OpenAPIDefinition{ 11419 Schema: spec.Schema{ 11420 SchemaProps: spec.SchemaProps{ 11421 Description: "Volume represents a named volume in a pod that may be accessed by any container in the pod.", 11422 Type: []string{"object"}, 11423 Properties: map[string]spec.Schema{ 11424 "name": { 11425 SchemaProps: spec.SchemaProps{ 11426 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", 11427 Default: "", 11428 Type: []string{"string"}, 11429 Format: "", 11430 }, 11431 }, 11432 "hostPath": { 11433 SchemaProps: spec.SchemaProps{ 11434 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", 11435 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 11436 }, 11437 }, 11438 "emptyDir": { 11439 SchemaProps: spec.SchemaProps{ 11440 Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", 11441 Ref: ref("k8s.io/api/core/v1.EmptyDirVolumeSource"), 11442 }, 11443 }, 11444 "gcePersistentDisk": { 11445 SchemaProps: spec.SchemaProps{ 11446 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", 11447 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 11448 }, 11449 }, 11450 "awsElasticBlockStore": { 11451 SchemaProps: spec.SchemaProps{ 11452 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", 11453 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 11454 }, 11455 }, 11456 "gitRepo": { 11457 SchemaProps: spec.SchemaProps{ 11458 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.", 11459 Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), 11460 }, 11461 }, 11462 "secret": { 11463 SchemaProps: spec.SchemaProps{ 11464 Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", 11465 Ref: ref("k8s.io/api/core/v1.SecretVolumeSource"), 11466 }, 11467 }, 11468 "nfs": { 11469 SchemaProps: spec.SchemaProps{ 11470 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", 11471 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 11472 }, 11473 }, 11474 "iscsi": { 11475 SchemaProps: spec.SchemaProps{ 11476 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", 11477 Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), 11478 }, 11479 }, 11480 "glusterfs": { 11481 SchemaProps: spec.SchemaProps{ 11482 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", 11483 Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), 11484 }, 11485 }, 11486 "persistentVolumeClaim": { 11487 SchemaProps: spec.SchemaProps{ 11488 Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", 11489 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource"), 11490 }, 11491 }, 11492 "rbd": { 11493 SchemaProps: spec.SchemaProps{ 11494 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", 11495 Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), 11496 }, 11497 }, 11498 "flexVolume": { 11499 SchemaProps: spec.SchemaProps{ 11500 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 11501 Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), 11502 }, 11503 }, 11504 "cinder": { 11505 SchemaProps: spec.SchemaProps{ 11506 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 11507 Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), 11508 }, 11509 }, 11510 "cephfs": { 11511 SchemaProps: spec.SchemaProps{ 11512 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 11513 Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), 11514 }, 11515 }, 11516 "flocker": { 11517 SchemaProps: spec.SchemaProps{ 11518 Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", 11519 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 11520 }, 11521 }, 11522 "downwardAPI": { 11523 SchemaProps: spec.SchemaProps{ 11524 Description: "downwardAPI represents downward API about the pod that should populate this volume", 11525 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeSource"), 11526 }, 11527 }, 11528 "fc": { 11529 SchemaProps: spec.SchemaProps{ 11530 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 11531 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 11532 }, 11533 }, 11534 "azureFile": { 11535 SchemaProps: spec.SchemaProps{ 11536 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 11537 Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), 11538 }, 11539 }, 11540 "configMap": { 11541 SchemaProps: spec.SchemaProps{ 11542 Description: "configMap represents a configMap that should populate this volume", 11543 Ref: ref("k8s.io/api/core/v1.ConfigMapVolumeSource"), 11544 }, 11545 }, 11546 "vsphereVolume": { 11547 SchemaProps: spec.SchemaProps{ 11548 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 11549 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 11550 }, 11551 }, 11552 "quobyte": { 11553 SchemaProps: spec.SchemaProps{ 11554 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 11555 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 11556 }, 11557 }, 11558 "azureDisk": { 11559 SchemaProps: spec.SchemaProps{ 11560 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 11561 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 11562 }, 11563 }, 11564 "photonPersistentDisk": { 11565 SchemaProps: spec.SchemaProps{ 11566 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 11567 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 11568 }, 11569 }, 11570 "projected": { 11571 SchemaProps: spec.SchemaProps{ 11572 Description: "projected items for all in one resources secrets, configmaps, and downward API", 11573 Ref: ref("k8s.io/api/core/v1.ProjectedVolumeSource"), 11574 }, 11575 }, 11576 "portworxVolume": { 11577 SchemaProps: spec.SchemaProps{ 11578 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 11579 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 11580 }, 11581 }, 11582 "scaleIO": { 11583 SchemaProps: spec.SchemaProps{ 11584 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 11585 Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), 11586 }, 11587 }, 11588 "storageos": { 11589 SchemaProps: spec.SchemaProps{ 11590 Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", 11591 Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), 11592 }, 11593 }, 11594 "csi": { 11595 SchemaProps: spec.SchemaProps{ 11596 Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", 11597 Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), 11598 }, 11599 }, 11600 "ephemeral": { 11601 SchemaProps: spec.SchemaProps{ 11602 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.", 11603 Ref: ref("k8s.io/api/core/v1.EphemeralVolumeSource"), 11604 }, 11605 }, 11606 }, 11607 Required: []string{"name"}, 11608 }, 11609 }, 11610 Dependencies: []string{ 11611 "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource", "k8s.io/api/core/v1.AzureDiskVolumeSource", "k8s.io/api/core/v1.AzureFileVolumeSource", "k8s.io/api/core/v1.CSIVolumeSource", "k8s.io/api/core/v1.CephFSVolumeSource", "k8s.io/api/core/v1.CinderVolumeSource", "k8s.io/api/core/v1.ConfigMapVolumeSource", "k8s.io/api/core/v1.DownwardAPIVolumeSource", "k8s.io/api/core/v1.EmptyDirVolumeSource", "k8s.io/api/core/v1.EphemeralVolumeSource", "k8s.io/api/core/v1.FCVolumeSource", "k8s.io/api/core/v1.FlexVolumeSource", "k8s.io/api/core/v1.FlockerVolumeSource", "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource", "k8s.io/api/core/v1.GitRepoVolumeSource", "k8s.io/api/core/v1.GlusterfsVolumeSource", "k8s.io/api/core/v1.HostPathVolumeSource", "k8s.io/api/core/v1.ISCSIVolumeSource", "k8s.io/api/core/v1.NFSVolumeSource", "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource", "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource", "k8s.io/api/core/v1.PortworxVolumeSource", "k8s.io/api/core/v1.ProjectedVolumeSource", "k8s.io/api/core/v1.QuobyteVolumeSource", "k8s.io/api/core/v1.RBDVolumeSource", "k8s.io/api/core/v1.ScaleIOVolumeSource", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.StorageOSVolumeSource", "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"}, 11612 } 11613 } 11614 11615 func schema_k8sio_api_core_v1_VolumeDevice(ref common.ReferenceCallback) common.OpenAPIDefinition { 11616 return common.OpenAPIDefinition{ 11617 Schema: spec.Schema{ 11618 SchemaProps: spec.SchemaProps{ 11619 Description: "volumeDevice describes a mapping of a raw block device within a container.", 11620 Type: []string{"object"}, 11621 Properties: map[string]spec.Schema{ 11622 "name": { 11623 SchemaProps: spec.SchemaProps{ 11624 Description: "name must match the name of a persistentVolumeClaim in the pod", 11625 Default: "", 11626 Type: []string{"string"}, 11627 Format: "", 11628 }, 11629 }, 11630 "devicePath": { 11631 SchemaProps: spec.SchemaProps{ 11632 Description: "devicePath is the path inside of the container that the device will be mapped to.", 11633 Default: "", 11634 Type: []string{"string"}, 11635 Format: "", 11636 }, 11637 }, 11638 }, 11639 Required: []string{"name", "devicePath"}, 11640 }, 11641 }, 11642 } 11643 } 11644 11645 func schema_k8sio_api_core_v1_VolumeMount(ref common.ReferenceCallback) common.OpenAPIDefinition { 11646 return common.OpenAPIDefinition{ 11647 Schema: spec.Schema{ 11648 SchemaProps: spec.SchemaProps{ 11649 Description: "VolumeMount describes a mounting of a Volume within a container.", 11650 Type: []string{"object"}, 11651 Properties: map[string]spec.Schema{ 11652 "name": { 11653 SchemaProps: spec.SchemaProps{ 11654 Description: "This must match the Name of a Volume.", 11655 Default: "", 11656 Type: []string{"string"}, 11657 Format: "", 11658 }, 11659 }, 11660 "readOnly": { 11661 SchemaProps: spec.SchemaProps{ 11662 Description: "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", 11663 Type: []string{"boolean"}, 11664 Format: "", 11665 }, 11666 }, 11667 "mountPath": { 11668 SchemaProps: spec.SchemaProps{ 11669 Description: "Path within the container at which the volume should be mounted. Must not contain ':'.", 11670 Default: "", 11671 Type: []string{"string"}, 11672 Format: "", 11673 }, 11674 }, 11675 "subPath": { 11676 SchemaProps: spec.SchemaProps{ 11677 Description: "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", 11678 Type: []string{"string"}, 11679 Format: "", 11680 }, 11681 }, 11682 "mountPropagation": { 11683 SchemaProps: spec.SchemaProps{ 11684 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.", 11685 Type: []string{"string"}, 11686 Format: "", 11687 }, 11688 }, 11689 "subPathExpr": { 11690 SchemaProps: spec.SchemaProps{ 11691 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.", 11692 Type: []string{"string"}, 11693 Format: "", 11694 }, 11695 }, 11696 }, 11697 Required: []string{"name", "mountPath"}, 11698 }, 11699 }, 11700 } 11701 } 11702 11703 func schema_k8sio_api_core_v1_VolumeNodeAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 11704 return common.OpenAPIDefinition{ 11705 Schema: spec.Schema{ 11706 SchemaProps: spec.SchemaProps{ 11707 Description: "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", 11708 Type: []string{"object"}, 11709 Properties: map[string]spec.Schema{ 11710 "required": { 11711 SchemaProps: spec.SchemaProps{ 11712 Description: "required specifies hard node constraints that must be met.", 11713 Ref: ref("k8s.io/api/core/v1.NodeSelector"), 11714 }, 11715 }, 11716 }, 11717 }, 11718 }, 11719 Dependencies: []string{ 11720 "k8s.io/api/core/v1.NodeSelector"}, 11721 } 11722 } 11723 11724 func schema_k8sio_api_core_v1_VolumeProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 11725 return common.OpenAPIDefinition{ 11726 Schema: spec.Schema{ 11727 SchemaProps: spec.SchemaProps{ 11728 Description: "Projection that may be projected along with other supported volume types", 11729 Type: []string{"object"}, 11730 Properties: map[string]spec.Schema{ 11731 "secret": { 11732 SchemaProps: spec.SchemaProps{ 11733 Description: "secret information about the secret data to project", 11734 Ref: ref("k8s.io/api/core/v1.SecretProjection"), 11735 }, 11736 }, 11737 "downwardAPI": { 11738 SchemaProps: spec.SchemaProps{ 11739 Description: "downwardAPI information about the downwardAPI data to project", 11740 Ref: ref("k8s.io/api/core/v1.DownwardAPIProjection"), 11741 }, 11742 }, 11743 "configMap": { 11744 SchemaProps: spec.SchemaProps{ 11745 Description: "configMap information about the configMap data to project", 11746 Ref: ref("k8s.io/api/core/v1.ConfigMapProjection"), 11747 }, 11748 }, 11749 "serviceAccountToken": { 11750 SchemaProps: spec.SchemaProps{ 11751 Description: "serviceAccountToken is information about the serviceAccountToken data to project", 11752 Ref: ref("k8s.io/api/core/v1.ServiceAccountTokenProjection"), 11753 }, 11754 }, 11755 }, 11756 }, 11757 }, 11758 Dependencies: []string{ 11759 "k8s.io/api/core/v1.ConfigMapProjection", "k8s.io/api/core/v1.DownwardAPIProjection", "k8s.io/api/core/v1.SecretProjection", "k8s.io/api/core/v1.ServiceAccountTokenProjection"}, 11760 } 11761 } 11762 11763 func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 11764 return common.OpenAPIDefinition{ 11765 Schema: spec.Schema{ 11766 SchemaProps: spec.SchemaProps{ 11767 Description: "Represents the source of a volume to mount. Only one of its members may be specified.", 11768 Type: []string{"object"}, 11769 Properties: map[string]spec.Schema{ 11770 "hostPath": { 11771 SchemaProps: spec.SchemaProps{ 11772 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", 11773 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 11774 }, 11775 }, 11776 "emptyDir": { 11777 SchemaProps: spec.SchemaProps{ 11778 Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", 11779 Ref: ref("k8s.io/api/core/v1.EmptyDirVolumeSource"), 11780 }, 11781 }, 11782 "gcePersistentDisk": { 11783 SchemaProps: spec.SchemaProps{ 11784 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", 11785 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 11786 }, 11787 }, 11788 "awsElasticBlockStore": { 11789 SchemaProps: spec.SchemaProps{ 11790 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", 11791 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 11792 }, 11793 }, 11794 "gitRepo": { 11795 SchemaProps: spec.SchemaProps{ 11796 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.", 11797 Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), 11798 }, 11799 }, 11800 "secret": { 11801 SchemaProps: spec.SchemaProps{ 11802 Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", 11803 Ref: ref("k8s.io/api/core/v1.SecretVolumeSource"), 11804 }, 11805 }, 11806 "nfs": { 11807 SchemaProps: spec.SchemaProps{ 11808 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", 11809 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 11810 }, 11811 }, 11812 "iscsi": { 11813 SchemaProps: spec.SchemaProps{ 11814 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", 11815 Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), 11816 }, 11817 }, 11818 "glusterfs": { 11819 SchemaProps: spec.SchemaProps{ 11820 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", 11821 Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), 11822 }, 11823 }, 11824 "persistentVolumeClaim": { 11825 SchemaProps: spec.SchemaProps{ 11826 Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", 11827 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource"), 11828 }, 11829 }, 11830 "rbd": { 11831 SchemaProps: spec.SchemaProps{ 11832 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", 11833 Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), 11834 }, 11835 }, 11836 "flexVolume": { 11837 SchemaProps: spec.SchemaProps{ 11838 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 11839 Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), 11840 }, 11841 }, 11842 "cinder": { 11843 SchemaProps: spec.SchemaProps{ 11844 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 11845 Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), 11846 }, 11847 }, 11848 "cephfs": { 11849 SchemaProps: spec.SchemaProps{ 11850 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 11851 Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), 11852 }, 11853 }, 11854 "flocker": { 11855 SchemaProps: spec.SchemaProps{ 11856 Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", 11857 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 11858 }, 11859 }, 11860 "downwardAPI": { 11861 SchemaProps: spec.SchemaProps{ 11862 Description: "downwardAPI represents downward API about the pod that should populate this volume", 11863 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeSource"), 11864 }, 11865 }, 11866 "fc": { 11867 SchemaProps: spec.SchemaProps{ 11868 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 11869 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 11870 }, 11871 }, 11872 "azureFile": { 11873 SchemaProps: spec.SchemaProps{ 11874 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 11875 Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), 11876 }, 11877 }, 11878 "configMap": { 11879 SchemaProps: spec.SchemaProps{ 11880 Description: "configMap represents a configMap that should populate this volume", 11881 Ref: ref("k8s.io/api/core/v1.ConfigMapVolumeSource"), 11882 }, 11883 }, 11884 "vsphereVolume": { 11885 SchemaProps: spec.SchemaProps{ 11886 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 11887 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 11888 }, 11889 }, 11890 "quobyte": { 11891 SchemaProps: spec.SchemaProps{ 11892 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 11893 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 11894 }, 11895 }, 11896 "azureDisk": { 11897 SchemaProps: spec.SchemaProps{ 11898 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 11899 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 11900 }, 11901 }, 11902 "photonPersistentDisk": { 11903 SchemaProps: spec.SchemaProps{ 11904 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 11905 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 11906 }, 11907 }, 11908 "projected": { 11909 SchemaProps: spec.SchemaProps{ 11910 Description: "projected items for all in one resources secrets, configmaps, and downward API", 11911 Ref: ref("k8s.io/api/core/v1.ProjectedVolumeSource"), 11912 }, 11913 }, 11914 "portworxVolume": { 11915 SchemaProps: spec.SchemaProps{ 11916 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 11917 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 11918 }, 11919 }, 11920 "scaleIO": { 11921 SchemaProps: spec.SchemaProps{ 11922 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 11923 Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), 11924 }, 11925 }, 11926 "storageos": { 11927 SchemaProps: spec.SchemaProps{ 11928 Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", 11929 Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), 11930 }, 11931 }, 11932 "csi": { 11933 SchemaProps: spec.SchemaProps{ 11934 Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", 11935 Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), 11936 }, 11937 }, 11938 "ephemeral": { 11939 SchemaProps: spec.SchemaProps{ 11940 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.", 11941 Ref: ref("k8s.io/api/core/v1.EphemeralVolumeSource"), 11942 }, 11943 }, 11944 }, 11945 }, 11946 }, 11947 Dependencies: []string{ 11948 "k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource", "k8s.io/api/core/v1.AzureDiskVolumeSource", "k8s.io/api/core/v1.AzureFileVolumeSource", "k8s.io/api/core/v1.CSIVolumeSource", "k8s.io/api/core/v1.CephFSVolumeSource", "k8s.io/api/core/v1.CinderVolumeSource", "k8s.io/api/core/v1.ConfigMapVolumeSource", "k8s.io/api/core/v1.DownwardAPIVolumeSource", "k8s.io/api/core/v1.EmptyDirVolumeSource", "k8s.io/api/core/v1.EphemeralVolumeSource", "k8s.io/api/core/v1.FCVolumeSource", "k8s.io/api/core/v1.FlexVolumeSource", "k8s.io/api/core/v1.FlockerVolumeSource", "k8s.io/api/core/v1.GCEPersistentDiskVolumeSource", "k8s.io/api/core/v1.GitRepoVolumeSource", "k8s.io/api/core/v1.GlusterfsVolumeSource", "k8s.io/api/core/v1.HostPathVolumeSource", "k8s.io/api/core/v1.ISCSIVolumeSource", "k8s.io/api/core/v1.NFSVolumeSource", "k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource", "k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource", "k8s.io/api/core/v1.PortworxVolumeSource", "k8s.io/api/core/v1.ProjectedVolumeSource", "k8s.io/api/core/v1.QuobyteVolumeSource", "k8s.io/api/core/v1.RBDVolumeSource", "k8s.io/api/core/v1.ScaleIOVolumeSource", "k8s.io/api/core/v1.SecretVolumeSource", "k8s.io/api/core/v1.StorageOSVolumeSource", "k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"}, 11949 } 11950 } 11951 11952 func schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 11953 return common.OpenAPIDefinition{ 11954 Schema: spec.Schema{ 11955 SchemaProps: spec.SchemaProps{ 11956 Description: "Represents a vSphere volume resource.", 11957 Type: []string{"object"}, 11958 Properties: map[string]spec.Schema{ 11959 "volumePath": { 11960 SchemaProps: spec.SchemaProps{ 11961 Description: "volumePath is the path that identifies vSphere volume vmdk", 11962 Default: "", 11963 Type: []string{"string"}, 11964 Format: "", 11965 }, 11966 }, 11967 "fsType": { 11968 SchemaProps: spec.SchemaProps{ 11969 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.", 11970 Type: []string{"string"}, 11971 Format: "", 11972 }, 11973 }, 11974 "storagePolicyName": { 11975 SchemaProps: spec.SchemaProps{ 11976 Description: "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", 11977 Type: []string{"string"}, 11978 Format: "", 11979 }, 11980 }, 11981 "storagePolicyID": { 11982 SchemaProps: spec.SchemaProps{ 11983 Description: "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", 11984 Type: []string{"string"}, 11985 Format: "", 11986 }, 11987 }, 11988 }, 11989 Required: []string{"volumePath"}, 11990 }, 11991 }, 11992 } 11993 } 11994 11995 func schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 11996 return common.OpenAPIDefinition{ 11997 Schema: spec.Schema{ 11998 SchemaProps: spec.SchemaProps{ 11999 Description: "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", 12000 Type: []string{"object"}, 12001 Properties: map[string]spec.Schema{ 12002 "weight": { 12003 SchemaProps: spec.SchemaProps{ 12004 Description: "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", 12005 Default: 0, 12006 Type: []string{"integer"}, 12007 Format: "int32", 12008 }, 12009 }, 12010 "podAffinityTerm": { 12011 SchemaProps: spec.SchemaProps{ 12012 Description: "Required. A pod affinity term, associated with the corresponding weight.", 12013 Default: map[string]interface{}{}, 12014 Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), 12015 }, 12016 }, 12017 }, 12018 Required: []string{"weight", "podAffinityTerm"}, 12019 }, 12020 }, 12021 Dependencies: []string{ 12022 "k8s.io/api/core/v1.PodAffinityTerm"}, 12023 } 12024 } 12025 12026 func schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12027 return common.OpenAPIDefinition{ 12028 Schema: spec.Schema{ 12029 SchemaProps: spec.SchemaProps{ 12030 Description: "WindowsSecurityContextOptions contain Windows-specific options and credentials.", 12031 Type: []string{"object"}, 12032 Properties: map[string]spec.Schema{ 12033 "gmsaCredentialSpecName": { 12034 SchemaProps: spec.SchemaProps{ 12035 Description: "GMSACredentialSpecName is the name of the GMSA credential spec to use.", 12036 Type: []string{"string"}, 12037 Format: "", 12038 }, 12039 }, 12040 "gmsaCredentialSpec": { 12041 SchemaProps: spec.SchemaProps{ 12042 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.", 12043 Type: []string{"string"}, 12044 Format: "", 12045 }, 12046 }, 12047 "runAsUserName": { 12048 SchemaProps: spec.SchemaProps{ 12049 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.", 12050 Type: []string{"string"}, 12051 Format: "", 12052 }, 12053 }, 12054 "hostProcess": { 12055 SchemaProps: spec.SchemaProps{ 12056 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.", 12057 Type: []string{"boolean"}, 12058 Format: "", 12059 }, 12060 }, 12061 }, 12062 }, 12063 }, 12064 } 12065 } 12066 12067 func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { 12068 return common.OpenAPIDefinition{ 12069 Schema: spec.Schema{ 12070 SchemaProps: spec.SchemaProps{ 12071 Description: "APIGroup contains the name, the supported versions, and the preferred version of a group.", 12072 Type: []string{"object"}, 12073 Properties: map[string]spec.Schema{ 12074 "kind": { 12075 SchemaProps: spec.SchemaProps{ 12076 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12077 Type: []string{"string"}, 12078 Format: "", 12079 }, 12080 }, 12081 "apiVersion": { 12082 SchemaProps: spec.SchemaProps{ 12083 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12084 Type: []string{"string"}, 12085 Format: "", 12086 }, 12087 }, 12088 "name": { 12089 SchemaProps: spec.SchemaProps{ 12090 Description: "name is the name of the group.", 12091 Default: "", 12092 Type: []string{"string"}, 12093 Format: "", 12094 }, 12095 }, 12096 "versions": { 12097 SchemaProps: spec.SchemaProps{ 12098 Description: "versions are the versions supported in this group.", 12099 Type: []string{"array"}, 12100 Items: &spec.SchemaOrArray{ 12101 Schema: &spec.Schema{ 12102 SchemaProps: spec.SchemaProps{ 12103 Default: map[string]interface{}{}, 12104 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 12105 }, 12106 }, 12107 }, 12108 }, 12109 }, 12110 "preferredVersion": { 12111 SchemaProps: spec.SchemaProps{ 12112 Description: "preferredVersion is the version preferred by the API server, which probably is the storage version.", 12113 Default: map[string]interface{}{}, 12114 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 12115 }, 12116 }, 12117 "serverAddressByClientCIDRs": { 12118 SchemaProps: spec.SchemaProps{ 12119 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.", 12120 Type: []string{"array"}, 12121 Items: &spec.SchemaOrArray{ 12122 Schema: &spec.Schema{ 12123 SchemaProps: spec.SchemaProps{ 12124 Default: map[string]interface{}{}, 12125 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 12126 }, 12127 }, 12128 }, 12129 }, 12130 }, 12131 }, 12132 Required: []string{"name", "versions"}, 12133 }, 12134 }, 12135 Dependencies: []string{ 12136 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery", "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 12137 } 12138 } 12139 12140 func schema_pkg_apis_meta_v1_APIGroupList(ref common.ReferenceCallback) common.OpenAPIDefinition { 12141 return common.OpenAPIDefinition{ 12142 Schema: spec.Schema{ 12143 SchemaProps: spec.SchemaProps{ 12144 Description: "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", 12145 Type: []string{"object"}, 12146 Properties: map[string]spec.Schema{ 12147 "kind": { 12148 SchemaProps: spec.SchemaProps{ 12149 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12150 Type: []string{"string"}, 12151 Format: "", 12152 }, 12153 }, 12154 "apiVersion": { 12155 SchemaProps: spec.SchemaProps{ 12156 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12157 Type: []string{"string"}, 12158 Format: "", 12159 }, 12160 }, 12161 "groups": { 12162 SchemaProps: spec.SchemaProps{ 12163 Description: "groups is a list of APIGroup.", 12164 Type: []string{"array"}, 12165 Items: &spec.SchemaOrArray{ 12166 Schema: &spec.Schema{ 12167 SchemaProps: spec.SchemaProps{ 12168 Default: map[string]interface{}{}, 12169 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"), 12170 }, 12171 }, 12172 }, 12173 }, 12174 }, 12175 }, 12176 Required: []string{"groups"}, 12177 }, 12178 }, 12179 Dependencies: []string{ 12180 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"}, 12181 } 12182 } 12183 12184 func schema_pkg_apis_meta_v1_APIResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 12185 return common.OpenAPIDefinition{ 12186 Schema: spec.Schema{ 12187 SchemaProps: spec.SchemaProps{ 12188 Description: "APIResource specifies the name of a resource and whether it is namespaced.", 12189 Type: []string{"object"}, 12190 Properties: map[string]spec.Schema{ 12191 "name": { 12192 SchemaProps: spec.SchemaProps{ 12193 Description: "name is the plural name of the resource.", 12194 Default: "", 12195 Type: []string{"string"}, 12196 Format: "", 12197 }, 12198 }, 12199 "singularName": { 12200 SchemaProps: spec.SchemaProps{ 12201 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.", 12202 Default: "", 12203 Type: []string{"string"}, 12204 Format: "", 12205 }, 12206 }, 12207 "namespaced": { 12208 SchemaProps: spec.SchemaProps{ 12209 Description: "namespaced indicates if a resource is namespaced or not.", 12210 Default: false, 12211 Type: []string{"boolean"}, 12212 Format: "", 12213 }, 12214 }, 12215 "group": { 12216 SchemaProps: spec.SchemaProps{ 12217 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\".", 12218 Type: []string{"string"}, 12219 Format: "", 12220 }, 12221 }, 12222 "version": { 12223 SchemaProps: spec.SchemaProps{ 12224 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)\".", 12225 Type: []string{"string"}, 12226 Format: "", 12227 }, 12228 }, 12229 "kind": { 12230 SchemaProps: spec.SchemaProps{ 12231 Description: "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", 12232 Default: "", 12233 Type: []string{"string"}, 12234 Format: "", 12235 }, 12236 }, 12237 "verbs": { 12238 SchemaProps: spec.SchemaProps{ 12239 Description: "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", 12240 Type: []string{"array"}, 12241 Items: &spec.SchemaOrArray{ 12242 Schema: &spec.Schema{ 12243 SchemaProps: spec.SchemaProps{ 12244 Default: "", 12245 Type: []string{"string"}, 12246 Format: "", 12247 }, 12248 }, 12249 }, 12250 }, 12251 }, 12252 "shortNames": { 12253 SchemaProps: spec.SchemaProps{ 12254 Description: "shortNames is a list of suggested short names of the resource.", 12255 Type: []string{"array"}, 12256 Items: &spec.SchemaOrArray{ 12257 Schema: &spec.Schema{ 12258 SchemaProps: spec.SchemaProps{ 12259 Default: "", 12260 Type: []string{"string"}, 12261 Format: "", 12262 }, 12263 }, 12264 }, 12265 }, 12266 }, 12267 "categories": { 12268 SchemaProps: spec.SchemaProps{ 12269 Description: "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", 12270 Type: []string{"array"}, 12271 Items: &spec.SchemaOrArray{ 12272 Schema: &spec.Schema{ 12273 SchemaProps: spec.SchemaProps{ 12274 Default: "", 12275 Type: []string{"string"}, 12276 Format: "", 12277 }, 12278 }, 12279 }, 12280 }, 12281 }, 12282 "storageVersionHash": { 12283 SchemaProps: spec.SchemaProps{ 12284 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.", 12285 Type: []string{"string"}, 12286 Format: "", 12287 }, 12288 }, 12289 }, 12290 Required: []string{"name", "singularName", "namespaced", "kind", "verbs"}, 12291 }, 12292 }, 12293 } 12294 } 12295 12296 func schema_pkg_apis_meta_v1_APIResourceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 12297 return common.OpenAPIDefinition{ 12298 Schema: spec.Schema{ 12299 SchemaProps: spec.SchemaProps{ 12300 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.", 12301 Type: []string{"object"}, 12302 Properties: map[string]spec.Schema{ 12303 "kind": { 12304 SchemaProps: spec.SchemaProps{ 12305 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12306 Type: []string{"string"}, 12307 Format: "", 12308 }, 12309 }, 12310 "apiVersion": { 12311 SchemaProps: spec.SchemaProps{ 12312 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12313 Type: []string{"string"}, 12314 Format: "", 12315 }, 12316 }, 12317 "groupVersion": { 12318 SchemaProps: spec.SchemaProps{ 12319 Description: "groupVersion is the group and version this APIResourceList is for.", 12320 Default: "", 12321 Type: []string{"string"}, 12322 Format: "", 12323 }, 12324 }, 12325 "resources": { 12326 SchemaProps: spec.SchemaProps{ 12327 Description: "resources contains the name of the resources and if they are namespaced.", 12328 Type: []string{"array"}, 12329 Items: &spec.SchemaOrArray{ 12330 Schema: &spec.Schema{ 12331 SchemaProps: spec.SchemaProps{ 12332 Default: map[string]interface{}{}, 12333 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"), 12334 }, 12335 }, 12336 }, 12337 }, 12338 }, 12339 }, 12340 Required: []string{"groupVersion", "resources"}, 12341 }, 12342 }, 12343 Dependencies: []string{ 12344 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"}, 12345 } 12346 } 12347 12348 func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12349 return common.OpenAPIDefinition{ 12350 Schema: spec.Schema{ 12351 SchemaProps: spec.SchemaProps{ 12352 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.", 12353 Type: []string{"object"}, 12354 Properties: map[string]spec.Schema{ 12355 "kind": { 12356 SchemaProps: spec.SchemaProps{ 12357 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12358 Type: []string{"string"}, 12359 Format: "", 12360 }, 12361 }, 12362 "apiVersion": { 12363 SchemaProps: spec.SchemaProps{ 12364 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12365 Type: []string{"string"}, 12366 Format: "", 12367 }, 12368 }, 12369 "versions": { 12370 SchemaProps: spec.SchemaProps{ 12371 Description: "versions are the api versions that are available.", 12372 Type: []string{"array"}, 12373 Items: &spec.SchemaOrArray{ 12374 Schema: &spec.Schema{ 12375 SchemaProps: spec.SchemaProps{ 12376 Default: "", 12377 Type: []string{"string"}, 12378 Format: "", 12379 }, 12380 }, 12381 }, 12382 }, 12383 }, 12384 "serverAddressByClientCIDRs": { 12385 SchemaProps: spec.SchemaProps{ 12386 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.", 12387 Type: []string{"array"}, 12388 Items: &spec.SchemaOrArray{ 12389 Schema: &spec.Schema{ 12390 SchemaProps: spec.SchemaProps{ 12391 Default: map[string]interface{}{}, 12392 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 12393 }, 12394 }, 12395 }, 12396 }, 12397 }, 12398 }, 12399 Required: []string{"versions", "serverAddressByClientCIDRs"}, 12400 }, 12401 }, 12402 Dependencies: []string{ 12403 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 12404 } 12405 } 12406 12407 func schema_pkg_apis_meta_v1_ApplyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12408 return common.OpenAPIDefinition{ 12409 Schema: spec.Schema{ 12410 SchemaProps: spec.SchemaProps{ 12411 Description: "ApplyOptions may be provided when applying an API object. FieldManager is required for apply requests. ApplyOptions is equivalent to PatchOptions. It is provided as a convenience with documentation that speaks specifically to how the options fields relate to apply.", 12412 Type: []string{"object"}, 12413 Properties: map[string]spec.Schema{ 12414 "kind": { 12415 SchemaProps: spec.SchemaProps{ 12416 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12417 Type: []string{"string"}, 12418 Format: "", 12419 }, 12420 }, 12421 "apiVersion": { 12422 SchemaProps: spec.SchemaProps{ 12423 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12424 Type: []string{"string"}, 12425 Format: "", 12426 }, 12427 }, 12428 "dryRun": { 12429 SchemaProps: spec.SchemaProps{ 12430 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", 12431 Type: []string{"array"}, 12432 Items: &spec.SchemaOrArray{ 12433 Schema: &spec.Schema{ 12434 SchemaProps: spec.SchemaProps{ 12435 Default: "", 12436 Type: []string{"string"}, 12437 Format: "", 12438 }, 12439 }, 12440 }, 12441 }, 12442 }, 12443 "force": { 12444 SchemaProps: spec.SchemaProps{ 12445 Description: "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people.", 12446 Default: false, 12447 Type: []string{"boolean"}, 12448 Format: "", 12449 }, 12450 }, 12451 "fieldManager": { 12452 SchemaProps: spec.SchemaProps{ 12453 Description: "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required.", 12454 Default: "", 12455 Type: []string{"string"}, 12456 Format: "", 12457 }, 12458 }, 12459 }, 12460 Required: []string{"force", "fieldManager"}, 12461 }, 12462 }, 12463 } 12464 } 12465 12466 func schema_pkg_apis_meta_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { 12467 return common.OpenAPIDefinition{ 12468 Schema: spec.Schema{ 12469 SchemaProps: spec.SchemaProps{ 12470 Description: "Condition contains details for one aspect of the current state of this API Resource.", 12471 Type: []string{"object"}, 12472 Properties: map[string]spec.Schema{ 12473 "type": { 12474 SchemaProps: spec.SchemaProps{ 12475 Description: "type of condition in CamelCase or in foo.example.com/CamelCase.", 12476 Default: "", 12477 Type: []string{"string"}, 12478 Format: "", 12479 }, 12480 }, 12481 "status": { 12482 SchemaProps: spec.SchemaProps{ 12483 Description: "status of the condition, one of True, False, Unknown.", 12484 Default: "", 12485 Type: []string{"string"}, 12486 Format: "", 12487 }, 12488 }, 12489 "observedGeneration": { 12490 SchemaProps: spec.SchemaProps{ 12491 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.", 12492 Type: []string{"integer"}, 12493 Format: "int64", 12494 }, 12495 }, 12496 "lastTransitionTime": { 12497 SchemaProps: spec.SchemaProps{ 12498 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.", 12499 Default: map[string]interface{}{}, 12500 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 12501 }, 12502 }, 12503 "reason": { 12504 SchemaProps: spec.SchemaProps{ 12505 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.", 12506 Default: "", 12507 Type: []string{"string"}, 12508 Format: "", 12509 }, 12510 }, 12511 "message": { 12512 SchemaProps: spec.SchemaProps{ 12513 Description: "message is a human readable message indicating details about the transition. This may be an empty string.", 12514 Default: "", 12515 Type: []string{"string"}, 12516 Format: "", 12517 }, 12518 }, 12519 }, 12520 Required: []string{"type", "status", "lastTransitionTime", "reason", "message"}, 12521 }, 12522 }, 12523 Dependencies: []string{ 12524 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 12525 } 12526 } 12527 12528 func schema_pkg_apis_meta_v1_CreateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12529 return common.OpenAPIDefinition{ 12530 Schema: spec.Schema{ 12531 SchemaProps: spec.SchemaProps{ 12532 Description: "CreateOptions may be provided when creating an API object.", 12533 Type: []string{"object"}, 12534 Properties: map[string]spec.Schema{ 12535 "kind": { 12536 SchemaProps: spec.SchemaProps{ 12537 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12538 Type: []string{"string"}, 12539 Format: "", 12540 }, 12541 }, 12542 "apiVersion": { 12543 SchemaProps: spec.SchemaProps{ 12544 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12545 Type: []string{"string"}, 12546 Format: "", 12547 }, 12548 }, 12549 "dryRun": { 12550 SchemaProps: spec.SchemaProps{ 12551 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", 12552 Type: []string{"array"}, 12553 Items: &spec.SchemaOrArray{ 12554 Schema: &spec.Schema{ 12555 SchemaProps: spec.SchemaProps{ 12556 Default: "", 12557 Type: []string{"string"}, 12558 Format: "", 12559 }, 12560 }, 12561 }, 12562 }, 12563 }, 12564 "fieldManager": { 12565 SchemaProps: spec.SchemaProps{ 12566 Description: "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", 12567 Type: []string{"string"}, 12568 Format: "", 12569 }, 12570 }, 12571 "fieldValidation": { 12572 SchemaProps: spec.SchemaProps{ 12573 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", 12574 Type: []string{"string"}, 12575 Format: "", 12576 }, 12577 }, 12578 }, 12579 }, 12580 }, 12581 } 12582 } 12583 12584 func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12585 return common.OpenAPIDefinition{ 12586 Schema: spec.Schema{ 12587 SchemaProps: spec.SchemaProps{ 12588 Description: "DeleteOptions may be provided when deleting an API object.", 12589 Type: []string{"object"}, 12590 Properties: map[string]spec.Schema{ 12591 "kind": { 12592 SchemaProps: spec.SchemaProps{ 12593 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12594 Type: []string{"string"}, 12595 Format: "", 12596 }, 12597 }, 12598 "apiVersion": { 12599 SchemaProps: spec.SchemaProps{ 12600 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12601 Type: []string{"string"}, 12602 Format: "", 12603 }, 12604 }, 12605 "gracePeriodSeconds": { 12606 SchemaProps: spec.SchemaProps{ 12607 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.", 12608 Type: []string{"integer"}, 12609 Format: "int64", 12610 }, 12611 }, 12612 "preconditions": { 12613 SchemaProps: spec.SchemaProps{ 12614 Description: "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", 12615 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"), 12616 }, 12617 }, 12618 "orphanDependents": { 12619 SchemaProps: spec.SchemaProps{ 12620 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.", 12621 Type: []string{"boolean"}, 12622 Format: "", 12623 }, 12624 }, 12625 "propagationPolicy": { 12626 SchemaProps: spec.SchemaProps{ 12627 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.", 12628 Type: []string{"string"}, 12629 Format: "", 12630 }, 12631 }, 12632 "dryRun": { 12633 SchemaProps: spec.SchemaProps{ 12634 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", 12635 Type: []string{"array"}, 12636 Items: &spec.SchemaOrArray{ 12637 Schema: &spec.Schema{ 12638 SchemaProps: spec.SchemaProps{ 12639 Default: "", 12640 Type: []string{"string"}, 12641 Format: "", 12642 }, 12643 }, 12644 }, 12645 }, 12646 }, 12647 }, 12648 }, 12649 }, 12650 Dependencies: []string{ 12651 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"}, 12652 } 12653 } 12654 12655 func schema_pkg_apis_meta_v1_Duration(ref common.ReferenceCallback) common.OpenAPIDefinition { 12656 return common.OpenAPIDefinition{ 12657 Schema: spec.Schema{ 12658 SchemaProps: spec.SchemaProps{ 12659 Description: "Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json.", 12660 Type: v1.Duration{}.OpenAPISchemaType(), 12661 Format: v1.Duration{}.OpenAPISchemaFormat(), 12662 }, 12663 }, 12664 } 12665 } 12666 12667 func schema_pkg_apis_meta_v1_FieldsV1(ref common.ReferenceCallback) common.OpenAPIDefinition { 12668 return common.OpenAPIDefinition{ 12669 Schema: spec.Schema{ 12670 SchemaProps: spec.SchemaProps{ 12671 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:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> 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", 12672 Type: []string{"object"}, 12673 }, 12674 }, 12675 } 12676 } 12677 12678 func schema_pkg_apis_meta_v1_GetOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12679 return common.OpenAPIDefinition{ 12680 Schema: spec.Schema{ 12681 SchemaProps: spec.SchemaProps{ 12682 Description: "GetOptions is the standard query options to the standard REST get call.", 12683 Type: []string{"object"}, 12684 Properties: map[string]spec.Schema{ 12685 "kind": { 12686 SchemaProps: spec.SchemaProps{ 12687 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12688 Type: []string{"string"}, 12689 Format: "", 12690 }, 12691 }, 12692 "apiVersion": { 12693 SchemaProps: spec.SchemaProps{ 12694 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12695 Type: []string{"string"}, 12696 Format: "", 12697 }, 12698 }, 12699 "resourceVersion": { 12700 SchemaProps: spec.SchemaProps{ 12701 Description: "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", 12702 Type: []string{"string"}, 12703 Format: "", 12704 }, 12705 }, 12706 }, 12707 }, 12708 }, 12709 } 12710 } 12711 12712 func schema_pkg_apis_meta_v1_GroupKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 12713 return common.OpenAPIDefinition{ 12714 Schema: spec.Schema{ 12715 SchemaProps: spec.SchemaProps{ 12716 Description: "GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types", 12717 Type: []string{"object"}, 12718 Properties: map[string]spec.Schema{ 12719 "group": { 12720 SchemaProps: spec.SchemaProps{ 12721 Default: "", 12722 Type: []string{"string"}, 12723 Format: "", 12724 }, 12725 }, 12726 "kind": { 12727 SchemaProps: spec.SchemaProps{ 12728 Default: "", 12729 Type: []string{"string"}, 12730 Format: "", 12731 }, 12732 }, 12733 }, 12734 Required: []string{"group", "kind"}, 12735 }, 12736 }, 12737 } 12738 } 12739 12740 func schema_pkg_apis_meta_v1_GroupResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 12741 return common.OpenAPIDefinition{ 12742 Schema: spec.Schema{ 12743 SchemaProps: spec.SchemaProps{ 12744 Description: "GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types", 12745 Type: []string{"object"}, 12746 Properties: map[string]spec.Schema{ 12747 "group": { 12748 SchemaProps: spec.SchemaProps{ 12749 Default: "", 12750 Type: []string{"string"}, 12751 Format: "", 12752 }, 12753 }, 12754 "resource": { 12755 SchemaProps: spec.SchemaProps{ 12756 Default: "", 12757 Type: []string{"string"}, 12758 Format: "", 12759 }, 12760 }, 12761 }, 12762 Required: []string{"group", "resource"}, 12763 }, 12764 }, 12765 } 12766 } 12767 12768 func schema_pkg_apis_meta_v1_GroupVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { 12769 return common.OpenAPIDefinition{ 12770 Schema: spec.Schema{ 12771 SchemaProps: spec.SchemaProps{ 12772 Description: "GroupVersion contains the \"group\" and the \"version\", which uniquely identifies the API.", 12773 Type: []string{"object"}, 12774 Properties: map[string]spec.Schema{ 12775 "group": { 12776 SchemaProps: spec.SchemaProps{ 12777 Default: "", 12778 Type: []string{"string"}, 12779 Format: "", 12780 }, 12781 }, 12782 "version": { 12783 SchemaProps: spec.SchemaProps{ 12784 Default: "", 12785 Type: []string{"string"}, 12786 Format: "", 12787 }, 12788 }, 12789 }, 12790 Required: []string{"group", "version"}, 12791 }, 12792 }, 12793 } 12794 } 12795 12796 func schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref common.ReferenceCallback) common.OpenAPIDefinition { 12797 return common.OpenAPIDefinition{ 12798 Schema: spec.Schema{ 12799 SchemaProps: spec.SchemaProps{ 12800 Description: "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", 12801 Type: []string{"object"}, 12802 Properties: map[string]spec.Schema{ 12803 "groupVersion": { 12804 SchemaProps: spec.SchemaProps{ 12805 Description: "groupVersion specifies the API group and version in the form \"group/version\"", 12806 Default: "", 12807 Type: []string{"string"}, 12808 Format: "", 12809 }, 12810 }, 12811 "version": { 12812 SchemaProps: spec.SchemaProps{ 12813 Description: "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", 12814 Default: "", 12815 Type: []string{"string"}, 12816 Format: "", 12817 }, 12818 }, 12819 }, 12820 Required: []string{"groupVersion", "version"}, 12821 }, 12822 }, 12823 } 12824 } 12825 12826 func schema_pkg_apis_meta_v1_GroupVersionKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 12827 return common.OpenAPIDefinition{ 12828 Schema: spec.Schema{ 12829 SchemaProps: spec.SchemaProps{ 12830 Description: "GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling", 12831 Type: []string{"object"}, 12832 Properties: map[string]spec.Schema{ 12833 "group": { 12834 SchemaProps: spec.SchemaProps{ 12835 Default: "", 12836 Type: []string{"string"}, 12837 Format: "", 12838 }, 12839 }, 12840 "version": { 12841 SchemaProps: spec.SchemaProps{ 12842 Default: "", 12843 Type: []string{"string"}, 12844 Format: "", 12845 }, 12846 }, 12847 "kind": { 12848 SchemaProps: spec.SchemaProps{ 12849 Default: "", 12850 Type: []string{"string"}, 12851 Format: "", 12852 }, 12853 }, 12854 }, 12855 Required: []string{"group", "version", "kind"}, 12856 }, 12857 }, 12858 } 12859 } 12860 12861 func schema_pkg_apis_meta_v1_GroupVersionResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 12862 return common.OpenAPIDefinition{ 12863 Schema: spec.Schema{ 12864 SchemaProps: spec.SchemaProps{ 12865 Description: "GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling", 12866 Type: []string{"object"}, 12867 Properties: map[string]spec.Schema{ 12868 "group": { 12869 SchemaProps: spec.SchemaProps{ 12870 Default: "", 12871 Type: []string{"string"}, 12872 Format: "", 12873 }, 12874 }, 12875 "version": { 12876 SchemaProps: spec.SchemaProps{ 12877 Default: "", 12878 Type: []string{"string"}, 12879 Format: "", 12880 }, 12881 }, 12882 "resource": { 12883 SchemaProps: spec.SchemaProps{ 12884 Default: "", 12885 Type: []string{"string"}, 12886 Format: "", 12887 }, 12888 }, 12889 }, 12890 Required: []string{"group", "version", "resource"}, 12891 }, 12892 }, 12893 } 12894 } 12895 12896 func schema_pkg_apis_meta_v1_InternalEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 12897 return common.OpenAPIDefinition{ 12898 Schema: spec.Schema{ 12899 SchemaProps: spec.SchemaProps{ 12900 Description: "InternalEvent makes watch.Event versioned", 12901 Type: []string{"object"}, 12902 Properties: map[string]spec.Schema{ 12903 "Type": { 12904 SchemaProps: spec.SchemaProps{ 12905 Default: "", 12906 Type: []string{"string"}, 12907 Format: "", 12908 }, 12909 }, 12910 "Object": { 12911 SchemaProps: spec.SchemaProps{ 12912 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 Bookmark: the object (instance of a type being watched) where\n only ResourceVersion field is set. On successful restart of watch from a\n bookmark resourceVersion, client is guaranteed to not get repeat event\n nor miss any events.\n * If Type is Error: *api.Status is recommended; other types may make sense\n depending on context.", 12913 Ref: ref("k8s.io/apimachinery/pkg/runtime.Object"), 12914 }, 12915 }, 12916 }, 12917 Required: []string{"Type", "Object"}, 12918 }, 12919 }, 12920 Dependencies: []string{ 12921 "k8s.io/apimachinery/pkg/runtime.Object"}, 12922 } 12923 } 12924 12925 func schema_pkg_apis_meta_v1_LabelSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 12926 return common.OpenAPIDefinition{ 12927 Schema: spec.Schema{ 12928 SchemaProps: spec.SchemaProps{ 12929 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.", 12930 Type: []string{"object"}, 12931 Properties: map[string]spec.Schema{ 12932 "matchLabels": { 12933 SchemaProps: spec.SchemaProps{ 12934 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.", 12935 Type: []string{"object"}, 12936 AdditionalProperties: &spec.SchemaOrBool{ 12937 Allows: true, 12938 Schema: &spec.Schema{ 12939 SchemaProps: spec.SchemaProps{ 12940 Default: "", 12941 Type: []string{"string"}, 12942 Format: "", 12943 }, 12944 }, 12945 }, 12946 }, 12947 }, 12948 "matchExpressions": { 12949 SchemaProps: spec.SchemaProps{ 12950 Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", 12951 Type: []string{"array"}, 12952 Items: &spec.SchemaOrArray{ 12953 Schema: &spec.Schema{ 12954 SchemaProps: spec.SchemaProps{ 12955 Default: map[string]interface{}{}, 12956 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), 12957 }, 12958 }, 12959 }, 12960 }, 12961 }, 12962 }, 12963 }, 12964 VendorExtensible: spec.VendorExtensible{ 12965 Extensions: spec.Extensions{ 12966 "x-kubernetes-map-type": "atomic", 12967 }, 12968 }, 12969 }, 12970 Dependencies: []string{ 12971 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, 12972 } 12973 } 12974 12975 func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 12976 return common.OpenAPIDefinition{ 12977 Schema: spec.Schema{ 12978 SchemaProps: spec.SchemaProps{ 12979 Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", 12980 Type: []string{"object"}, 12981 Properties: map[string]spec.Schema{ 12982 "key": { 12983 VendorExtensible: spec.VendorExtensible{ 12984 Extensions: spec.Extensions{ 12985 "x-kubernetes-patch-merge-key": "key", 12986 "x-kubernetes-patch-strategy": "merge", 12987 }, 12988 }, 12989 SchemaProps: spec.SchemaProps{ 12990 Description: "key is the label key that the selector applies to.", 12991 Default: "", 12992 Type: []string{"string"}, 12993 Format: "", 12994 }, 12995 }, 12996 "operator": { 12997 SchemaProps: spec.SchemaProps{ 12998 Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", 12999 Default: "", 13000 Type: []string{"string"}, 13001 Format: "", 13002 }, 13003 }, 13004 "values": { 13005 SchemaProps: spec.SchemaProps{ 13006 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.", 13007 Type: []string{"array"}, 13008 Items: &spec.SchemaOrArray{ 13009 Schema: &spec.Schema{ 13010 SchemaProps: spec.SchemaProps{ 13011 Default: "", 13012 Type: []string{"string"}, 13013 Format: "", 13014 }, 13015 }, 13016 }, 13017 }, 13018 }, 13019 }, 13020 Required: []string{"key", "operator"}, 13021 }, 13022 }, 13023 } 13024 } 13025 13026 func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition { 13027 return common.OpenAPIDefinition{ 13028 Schema: spec.Schema{ 13029 SchemaProps: spec.SchemaProps{ 13030 Description: "List holds a list of objects, which may not be known by the server.", 13031 Type: []string{"object"}, 13032 Properties: map[string]spec.Schema{ 13033 "kind": { 13034 SchemaProps: spec.SchemaProps{ 13035 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13036 Type: []string{"string"}, 13037 Format: "", 13038 }, 13039 }, 13040 "apiVersion": { 13041 SchemaProps: spec.SchemaProps{ 13042 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13043 Type: []string{"string"}, 13044 Format: "", 13045 }, 13046 }, 13047 "metadata": { 13048 SchemaProps: spec.SchemaProps{ 13049 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13050 Default: map[string]interface{}{}, 13051 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 13052 }, 13053 }, 13054 "items": { 13055 SchemaProps: spec.SchemaProps{ 13056 Description: "List of objects", 13057 Type: []string{"array"}, 13058 Items: &spec.SchemaOrArray{ 13059 Schema: &spec.Schema{ 13060 SchemaProps: spec.SchemaProps{ 13061 Default: map[string]interface{}{}, 13062 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 13063 }, 13064 }, 13065 }, 13066 }, 13067 }, 13068 }, 13069 Required: []string{"items"}, 13070 }, 13071 }, 13072 Dependencies: []string{ 13073 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 13074 } 13075 } 13076 13077 func schema_pkg_apis_meta_v1_ListMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 13078 return common.OpenAPIDefinition{ 13079 Schema: spec.Schema{ 13080 SchemaProps: spec.SchemaProps{ 13081 Description: "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", 13082 Type: []string{"object"}, 13083 Properties: map[string]spec.Schema{ 13084 "selfLink": { 13085 SchemaProps: spec.SchemaProps{ 13086 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 13087 Type: []string{"string"}, 13088 Format: "", 13089 }, 13090 }, 13091 "resourceVersion": { 13092 SchemaProps: spec.SchemaProps{ 13093 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", 13094 Type: []string{"string"}, 13095 Format: "", 13096 }, 13097 }, 13098 "continue": { 13099 SchemaProps: spec.SchemaProps{ 13100 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.", 13101 Type: []string{"string"}, 13102 Format: "", 13103 }, 13104 }, 13105 "remainingItemCount": { 13106 SchemaProps: spec.SchemaProps{ 13107 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.", 13108 Type: []string{"integer"}, 13109 Format: "int64", 13110 }, 13111 }, 13112 }, 13113 }, 13114 }, 13115 } 13116 } 13117 13118 func schema_pkg_apis_meta_v1_ListOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 13119 return common.OpenAPIDefinition{ 13120 Schema: spec.Schema{ 13121 SchemaProps: spec.SchemaProps{ 13122 Description: "ListOptions is the query options to a standard REST list call.", 13123 Type: []string{"object"}, 13124 Properties: map[string]spec.Schema{ 13125 "kind": { 13126 SchemaProps: spec.SchemaProps{ 13127 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13128 Type: []string{"string"}, 13129 Format: "", 13130 }, 13131 }, 13132 "apiVersion": { 13133 SchemaProps: spec.SchemaProps{ 13134 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13135 Type: []string{"string"}, 13136 Format: "", 13137 }, 13138 }, 13139 "labelSelector": { 13140 SchemaProps: spec.SchemaProps{ 13141 Description: "A selector to restrict the list of returned objects by their labels. Defaults to everything.", 13142 Type: []string{"string"}, 13143 Format: "", 13144 }, 13145 }, 13146 "fieldSelector": { 13147 SchemaProps: spec.SchemaProps{ 13148 Description: "A selector to restrict the list of returned objects by their fields. Defaults to everything.", 13149 Type: []string{"string"}, 13150 Format: "", 13151 }, 13152 }, 13153 "watch": { 13154 SchemaProps: spec.SchemaProps{ 13155 Description: "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", 13156 Type: []string{"boolean"}, 13157 Format: "", 13158 }, 13159 }, 13160 "allowWatchBookmarks": { 13161 SchemaProps: spec.SchemaProps{ 13162 Description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", 13163 Type: []string{"boolean"}, 13164 Format: "", 13165 }, 13166 }, 13167 "resourceVersion": { 13168 SchemaProps: spec.SchemaProps{ 13169 Description: "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", 13170 Type: []string{"string"}, 13171 Format: "", 13172 }, 13173 }, 13174 "resourceVersionMatch": { 13175 SchemaProps: spec.SchemaProps{ 13176 Description: "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", 13177 Type: []string{"string"}, 13178 Format: "", 13179 }, 13180 }, 13181 "timeoutSeconds": { 13182 SchemaProps: spec.SchemaProps{ 13183 Description: "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", 13184 Type: []string{"integer"}, 13185 Format: "int64", 13186 }, 13187 }, 13188 "limit": { 13189 SchemaProps: spec.SchemaProps{ 13190 Description: "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", 13191 Type: []string{"integer"}, 13192 Format: "int64", 13193 }, 13194 }, 13195 "continue": { 13196 SchemaProps: spec.SchemaProps{ 13197 Description: "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", 13198 Type: []string{"string"}, 13199 Format: "", 13200 }, 13201 }, 13202 }, 13203 }, 13204 }, 13205 } 13206 } 13207 13208 func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { 13209 return common.OpenAPIDefinition{ 13210 Schema: spec.Schema{ 13211 SchemaProps: spec.SchemaProps{ 13212 Description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", 13213 Type: []string{"object"}, 13214 Properties: map[string]spec.Schema{ 13215 "manager": { 13216 SchemaProps: spec.SchemaProps{ 13217 Description: "Manager is an identifier of the workflow managing these fields.", 13218 Type: []string{"string"}, 13219 Format: "", 13220 }, 13221 }, 13222 "operation": { 13223 SchemaProps: spec.SchemaProps{ 13224 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'.", 13225 Type: []string{"string"}, 13226 Format: "", 13227 }, 13228 }, 13229 "apiVersion": { 13230 SchemaProps: spec.SchemaProps{ 13231 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.", 13232 Type: []string{"string"}, 13233 Format: "", 13234 }, 13235 }, 13236 "time": { 13237 SchemaProps: spec.SchemaProps{ 13238 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.", 13239 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 13240 }, 13241 }, 13242 "fieldsType": { 13243 SchemaProps: spec.SchemaProps{ 13244 Description: "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", 13245 Type: []string{"string"}, 13246 Format: "", 13247 }, 13248 }, 13249 "fieldsV1": { 13250 SchemaProps: spec.SchemaProps{ 13251 Description: "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", 13252 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1"), 13253 }, 13254 }, 13255 "subresource": { 13256 SchemaProps: spec.SchemaProps{ 13257 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.", 13258 Type: []string{"string"}, 13259 Format: "", 13260 }, 13261 }, 13262 }, 13263 }, 13264 }, 13265 Dependencies: []string{ 13266 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 13267 } 13268 } 13269 13270 func schema_pkg_apis_meta_v1_MicroTime(ref common.ReferenceCallback) common.OpenAPIDefinition { 13271 return common.OpenAPIDefinition{ 13272 Schema: spec.Schema{ 13273 SchemaProps: spec.SchemaProps{ 13274 Description: "MicroTime is version of Time with microsecond level precision.", 13275 Type: v1.MicroTime{}.OpenAPISchemaType(), 13276 Format: v1.MicroTime{}.OpenAPISchemaFormat(), 13277 }, 13278 }, 13279 } 13280 } 13281 13282 func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 13283 return common.OpenAPIDefinition{ 13284 Schema: spec.Schema{ 13285 SchemaProps: spec.SchemaProps{ 13286 Description: "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", 13287 Type: []string{"object"}, 13288 Properties: map[string]spec.Schema{ 13289 "name": { 13290 SchemaProps: spec.SchemaProps{ 13291 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", 13292 Type: []string{"string"}, 13293 Format: "", 13294 }, 13295 }, 13296 "generateName": { 13297 SchemaProps: spec.SchemaProps{ 13298 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", 13299 Type: []string{"string"}, 13300 Format: "", 13301 }, 13302 }, 13303 "namespace": { 13304 SchemaProps: spec.SchemaProps{ 13305 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: http://kubernetes.io/docs/user-guide/namespaces", 13306 Type: []string{"string"}, 13307 Format: "", 13308 }, 13309 }, 13310 "selfLink": { 13311 SchemaProps: spec.SchemaProps{ 13312 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 13313 Type: []string{"string"}, 13314 Format: "", 13315 }, 13316 }, 13317 "uid": { 13318 SchemaProps: spec.SchemaProps{ 13319 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: http://kubernetes.io/docs/user-guide/identifiers#uids", 13320 Type: []string{"string"}, 13321 Format: "", 13322 }, 13323 }, 13324 "resourceVersion": { 13325 SchemaProps: spec.SchemaProps{ 13326 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", 13327 Type: []string{"string"}, 13328 Format: "", 13329 }, 13330 }, 13331 "generation": { 13332 SchemaProps: spec.SchemaProps{ 13333 Description: "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", 13334 Type: []string{"integer"}, 13335 Format: "int64", 13336 }, 13337 }, 13338 "creationTimestamp": { 13339 SchemaProps: spec.SchemaProps{ 13340 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", 13341 Default: map[string]interface{}{}, 13342 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 13343 }, 13344 }, 13345 "deletionTimestamp": { 13346 SchemaProps: spec.SchemaProps{ 13347 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", 13348 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 13349 }, 13350 }, 13351 "deletionGracePeriodSeconds": { 13352 SchemaProps: spec.SchemaProps{ 13353 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.", 13354 Type: []string{"integer"}, 13355 Format: "int64", 13356 }, 13357 }, 13358 "labels": { 13359 SchemaProps: spec.SchemaProps{ 13360 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", 13361 Type: []string{"object"}, 13362 AdditionalProperties: &spec.SchemaOrBool{ 13363 Allows: true, 13364 Schema: &spec.Schema{ 13365 SchemaProps: spec.SchemaProps{ 13366 Default: "", 13367 Type: []string{"string"}, 13368 Format: "", 13369 }, 13370 }, 13371 }, 13372 }, 13373 }, 13374 "annotations": { 13375 SchemaProps: spec.SchemaProps{ 13376 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", 13377 Type: []string{"object"}, 13378 AdditionalProperties: &spec.SchemaOrBool{ 13379 Allows: true, 13380 Schema: &spec.Schema{ 13381 SchemaProps: spec.SchemaProps{ 13382 Default: "", 13383 Type: []string{"string"}, 13384 Format: "", 13385 }, 13386 }, 13387 }, 13388 }, 13389 }, 13390 "ownerReferences": { 13391 VendorExtensible: spec.VendorExtensible{ 13392 Extensions: spec.Extensions{ 13393 "x-kubernetes-patch-merge-key": "uid", 13394 "x-kubernetes-patch-strategy": "merge", 13395 }, 13396 }, 13397 SchemaProps: spec.SchemaProps{ 13398 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.", 13399 Type: []string{"array"}, 13400 Items: &spec.SchemaOrArray{ 13401 Schema: &spec.Schema{ 13402 SchemaProps: spec.SchemaProps{ 13403 Default: map[string]interface{}{}, 13404 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), 13405 }, 13406 }, 13407 }, 13408 }, 13409 }, 13410 "finalizers": { 13411 VendorExtensible: spec.VendorExtensible{ 13412 Extensions: spec.Extensions{ 13413 "x-kubernetes-patch-strategy": "merge", 13414 }, 13415 }, 13416 SchemaProps: spec.SchemaProps{ 13417 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.", 13418 Type: []string{"array"}, 13419 Items: &spec.SchemaOrArray{ 13420 Schema: &spec.Schema{ 13421 SchemaProps: spec.SchemaProps{ 13422 Default: "", 13423 Type: []string{"string"}, 13424 Format: "", 13425 }, 13426 }, 13427 }, 13428 }, 13429 }, 13430 "managedFields": { 13431 SchemaProps: spec.SchemaProps{ 13432 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.", 13433 Type: []string{"array"}, 13434 Items: &spec.SchemaOrArray{ 13435 Schema: &spec.Schema{ 13436 SchemaProps: spec.SchemaProps{ 13437 Default: map[string]interface{}{}, 13438 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry"), 13439 }, 13440 }, 13441 }, 13442 }, 13443 }, 13444 }, 13445 }, 13446 }, 13447 Dependencies: []string{ 13448 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 13449 } 13450 } 13451 13452 func schema_pkg_apis_meta_v1_OwnerReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 13453 return common.OpenAPIDefinition{ 13454 Schema: spec.Schema{ 13455 SchemaProps: spec.SchemaProps{ 13456 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.", 13457 Type: []string{"object"}, 13458 Properties: map[string]spec.Schema{ 13459 "apiVersion": { 13460 SchemaProps: spec.SchemaProps{ 13461 Description: "API version of the referent.", 13462 Default: "", 13463 Type: []string{"string"}, 13464 Format: "", 13465 }, 13466 }, 13467 "kind": { 13468 SchemaProps: spec.SchemaProps{ 13469 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13470 Default: "", 13471 Type: []string{"string"}, 13472 Format: "", 13473 }, 13474 }, 13475 "name": { 13476 SchemaProps: spec.SchemaProps{ 13477 Description: "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", 13478 Default: "", 13479 Type: []string{"string"}, 13480 Format: "", 13481 }, 13482 }, 13483 "uid": { 13484 SchemaProps: spec.SchemaProps{ 13485 Description: "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", 13486 Default: "", 13487 Type: []string{"string"}, 13488 Format: "", 13489 }, 13490 }, 13491 "controller": { 13492 SchemaProps: spec.SchemaProps{ 13493 Description: "If true, this reference points to the managing controller.", 13494 Type: []string{"boolean"}, 13495 Format: "", 13496 }, 13497 }, 13498 "blockOwnerDeletion": { 13499 SchemaProps: spec.SchemaProps{ 13500 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.", 13501 Type: []string{"boolean"}, 13502 Format: "", 13503 }, 13504 }, 13505 }, 13506 Required: []string{"apiVersion", "kind", "name", "uid"}, 13507 }, 13508 VendorExtensible: spec.VendorExtensible{ 13509 Extensions: spec.Extensions{ 13510 "x-kubernetes-map-type": "atomic", 13511 }, 13512 }, 13513 }, 13514 } 13515 } 13516 13517 func schema_pkg_apis_meta_v1_PartialObjectMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { 13518 return common.OpenAPIDefinition{ 13519 Schema: spec.Schema{ 13520 SchemaProps: spec.SchemaProps{ 13521 Description: "PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients to get access to a particular ObjectMeta schema without knowing the details of the version.", 13522 Type: []string{"object"}, 13523 Properties: map[string]spec.Schema{ 13524 "kind": { 13525 SchemaProps: spec.SchemaProps{ 13526 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13527 Type: []string{"string"}, 13528 Format: "", 13529 }, 13530 }, 13531 "apiVersion": { 13532 SchemaProps: spec.SchemaProps{ 13533 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13534 Type: []string{"string"}, 13535 Format: "", 13536 }, 13537 }, 13538 "metadata": { 13539 SchemaProps: spec.SchemaProps{ 13540 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 13541 Default: map[string]interface{}{}, 13542 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 13543 }, 13544 }, 13545 }, 13546 }, 13547 }, 13548 Dependencies: []string{ 13549 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 13550 } 13551 } 13552 13553 func schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref common.ReferenceCallback) common.OpenAPIDefinition { 13554 return common.OpenAPIDefinition{ 13555 Schema: spec.Schema{ 13556 SchemaProps: spec.SchemaProps{ 13557 Description: "PartialObjectMetadataList contains a list of objects containing only their metadata", 13558 Type: []string{"object"}, 13559 Properties: map[string]spec.Schema{ 13560 "kind": { 13561 SchemaProps: spec.SchemaProps{ 13562 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13563 Type: []string{"string"}, 13564 Format: "", 13565 }, 13566 }, 13567 "apiVersion": { 13568 SchemaProps: spec.SchemaProps{ 13569 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13570 Type: []string{"string"}, 13571 Format: "", 13572 }, 13573 }, 13574 "metadata": { 13575 SchemaProps: spec.SchemaProps{ 13576 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13577 Default: map[string]interface{}{}, 13578 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 13579 }, 13580 }, 13581 "items": { 13582 SchemaProps: spec.SchemaProps{ 13583 Description: "items contains each of the included items.", 13584 Type: []string{"array"}, 13585 Items: &spec.SchemaOrArray{ 13586 Schema: &spec.Schema{ 13587 SchemaProps: spec.SchemaProps{ 13588 Default: map[string]interface{}{}, 13589 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"), 13590 }, 13591 }, 13592 }, 13593 }, 13594 }, 13595 }, 13596 Required: []string{"items"}, 13597 }, 13598 }, 13599 Dependencies: []string{ 13600 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"}, 13601 } 13602 } 13603 13604 func schema_pkg_apis_meta_v1_Patch(ref common.ReferenceCallback) common.OpenAPIDefinition { 13605 return common.OpenAPIDefinition{ 13606 Schema: spec.Schema{ 13607 SchemaProps: spec.SchemaProps{ 13608 Description: "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", 13609 Type: []string{"object"}, 13610 }, 13611 }, 13612 } 13613 } 13614 13615 func schema_pkg_apis_meta_v1_PatchOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 13616 return common.OpenAPIDefinition{ 13617 Schema: spec.Schema{ 13618 SchemaProps: spec.SchemaProps{ 13619 Description: "PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.", 13620 Type: []string{"object"}, 13621 Properties: map[string]spec.Schema{ 13622 "kind": { 13623 SchemaProps: spec.SchemaProps{ 13624 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13625 Type: []string{"string"}, 13626 Format: "", 13627 }, 13628 }, 13629 "apiVersion": { 13630 SchemaProps: spec.SchemaProps{ 13631 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13632 Type: []string{"string"}, 13633 Format: "", 13634 }, 13635 }, 13636 "dryRun": { 13637 SchemaProps: spec.SchemaProps{ 13638 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", 13639 Type: []string{"array"}, 13640 Items: &spec.SchemaOrArray{ 13641 Schema: &spec.Schema{ 13642 SchemaProps: spec.SchemaProps{ 13643 Default: "", 13644 Type: []string{"string"}, 13645 Format: "", 13646 }, 13647 }, 13648 }, 13649 }, 13650 }, 13651 "force": { 13652 SchemaProps: spec.SchemaProps{ 13653 Description: "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", 13654 Type: []string{"boolean"}, 13655 Format: "", 13656 }, 13657 }, 13658 "fieldManager": { 13659 SchemaProps: spec.SchemaProps{ 13660 Description: "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", 13661 Type: []string{"string"}, 13662 Format: "", 13663 }, 13664 }, 13665 "fieldValidation": { 13666 SchemaProps: spec.SchemaProps{ 13667 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", 13668 Type: []string{"string"}, 13669 Format: "", 13670 }, 13671 }, 13672 }, 13673 }, 13674 }, 13675 } 13676 } 13677 13678 func schema_pkg_apis_meta_v1_Preconditions(ref common.ReferenceCallback) common.OpenAPIDefinition { 13679 return common.OpenAPIDefinition{ 13680 Schema: spec.Schema{ 13681 SchemaProps: spec.SchemaProps{ 13682 Description: "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", 13683 Type: []string{"object"}, 13684 Properties: map[string]spec.Schema{ 13685 "uid": { 13686 SchemaProps: spec.SchemaProps{ 13687 Description: "Specifies the target UID.", 13688 Type: []string{"string"}, 13689 Format: "", 13690 }, 13691 }, 13692 "resourceVersion": { 13693 SchemaProps: spec.SchemaProps{ 13694 Description: "Specifies the target ResourceVersion", 13695 Type: []string{"string"}, 13696 Format: "", 13697 }, 13698 }, 13699 }, 13700 }, 13701 }, 13702 } 13703 } 13704 13705 func schema_pkg_apis_meta_v1_RootPaths(ref common.ReferenceCallback) common.OpenAPIDefinition { 13706 return common.OpenAPIDefinition{ 13707 Schema: spec.Schema{ 13708 SchemaProps: spec.SchemaProps{ 13709 Description: "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".", 13710 Type: []string{"object"}, 13711 Properties: map[string]spec.Schema{ 13712 "paths": { 13713 SchemaProps: spec.SchemaProps{ 13714 Description: "paths are the paths available at root.", 13715 Type: []string{"array"}, 13716 Items: &spec.SchemaOrArray{ 13717 Schema: &spec.Schema{ 13718 SchemaProps: spec.SchemaProps{ 13719 Default: "", 13720 Type: []string{"string"}, 13721 Format: "", 13722 }, 13723 }, 13724 }, 13725 }, 13726 }, 13727 }, 13728 Required: []string{"paths"}, 13729 }, 13730 }, 13731 } 13732 } 13733 13734 func schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref common.ReferenceCallback) common.OpenAPIDefinition { 13735 return common.OpenAPIDefinition{ 13736 Schema: spec.Schema{ 13737 SchemaProps: spec.SchemaProps{ 13738 Description: "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", 13739 Type: []string{"object"}, 13740 Properties: map[string]spec.Schema{ 13741 "clientCIDR": { 13742 SchemaProps: spec.SchemaProps{ 13743 Description: "The CIDR with which clients can match their IP to figure out the server address that they should use.", 13744 Default: "", 13745 Type: []string{"string"}, 13746 Format: "", 13747 }, 13748 }, 13749 "serverAddress": { 13750 SchemaProps: spec.SchemaProps{ 13751 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.", 13752 Default: "", 13753 Type: []string{"string"}, 13754 Format: "", 13755 }, 13756 }, 13757 }, 13758 Required: []string{"clientCIDR", "serverAddress"}, 13759 }, 13760 }, 13761 } 13762 } 13763 13764 func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPIDefinition { 13765 return common.OpenAPIDefinition{ 13766 Schema: spec.Schema{ 13767 SchemaProps: spec.SchemaProps{ 13768 Description: "Status is a return value for calls that don't return other objects.", 13769 Type: []string{"object"}, 13770 Properties: map[string]spec.Schema{ 13771 "kind": { 13772 SchemaProps: spec.SchemaProps{ 13773 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13774 Type: []string{"string"}, 13775 Format: "", 13776 }, 13777 }, 13778 "apiVersion": { 13779 SchemaProps: spec.SchemaProps{ 13780 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13781 Type: []string{"string"}, 13782 Format: "", 13783 }, 13784 }, 13785 "metadata": { 13786 SchemaProps: spec.SchemaProps{ 13787 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13788 Default: map[string]interface{}{}, 13789 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 13790 }, 13791 }, 13792 "status": { 13793 SchemaProps: spec.SchemaProps{ 13794 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", 13795 Type: []string{"string"}, 13796 Format: "", 13797 }, 13798 }, 13799 "message": { 13800 SchemaProps: spec.SchemaProps{ 13801 Description: "A human-readable description of the status of this operation.", 13802 Type: []string{"string"}, 13803 Format: "", 13804 }, 13805 }, 13806 "reason": { 13807 SchemaProps: spec.SchemaProps{ 13808 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.", 13809 Type: []string{"string"}, 13810 Format: "", 13811 }, 13812 }, 13813 "details": { 13814 SchemaProps: spec.SchemaProps{ 13815 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.", 13816 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"), 13817 }, 13818 }, 13819 "code": { 13820 SchemaProps: spec.SchemaProps{ 13821 Description: "Suggested HTTP return code for this status, 0 if not set.", 13822 Type: []string{"integer"}, 13823 Format: "int32", 13824 }, 13825 }, 13826 }, 13827 }, 13828 }, 13829 Dependencies: []string{ 13830 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"}, 13831 } 13832 } 13833 13834 func schema_pkg_apis_meta_v1_StatusCause(ref common.ReferenceCallback) common.OpenAPIDefinition { 13835 return common.OpenAPIDefinition{ 13836 Schema: spec.Schema{ 13837 SchemaProps: spec.SchemaProps{ 13838 Description: "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", 13839 Type: []string{"object"}, 13840 Properties: map[string]spec.Schema{ 13841 "reason": { 13842 SchemaProps: spec.SchemaProps{ 13843 Description: "A machine-readable description of the cause of the error. If this value is empty there is no information available.", 13844 Type: []string{"string"}, 13845 Format: "", 13846 }, 13847 }, 13848 "message": { 13849 SchemaProps: spec.SchemaProps{ 13850 Description: "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", 13851 Type: []string{"string"}, 13852 Format: "", 13853 }, 13854 }, 13855 "field": { 13856 SchemaProps: spec.SchemaProps{ 13857 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\"", 13858 Type: []string{"string"}, 13859 Format: "", 13860 }, 13861 }, 13862 }, 13863 }, 13864 }, 13865 } 13866 } 13867 13868 func schema_pkg_apis_meta_v1_StatusDetails(ref common.ReferenceCallback) common.OpenAPIDefinition { 13869 return common.OpenAPIDefinition{ 13870 Schema: spec.Schema{ 13871 SchemaProps: spec.SchemaProps{ 13872 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.", 13873 Type: []string{"object"}, 13874 Properties: map[string]spec.Schema{ 13875 "name": { 13876 SchemaProps: spec.SchemaProps{ 13877 Description: "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", 13878 Type: []string{"string"}, 13879 Format: "", 13880 }, 13881 }, 13882 "group": { 13883 SchemaProps: spec.SchemaProps{ 13884 Description: "The group attribute of the resource associated with the status StatusReason.", 13885 Type: []string{"string"}, 13886 Format: "", 13887 }, 13888 }, 13889 "kind": { 13890 SchemaProps: spec.SchemaProps{ 13891 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", 13892 Type: []string{"string"}, 13893 Format: "", 13894 }, 13895 }, 13896 "uid": { 13897 SchemaProps: spec.SchemaProps{ 13898 Description: "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids", 13899 Type: []string{"string"}, 13900 Format: "", 13901 }, 13902 }, 13903 "causes": { 13904 SchemaProps: spec.SchemaProps{ 13905 Description: "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", 13906 Type: []string{"array"}, 13907 Items: &spec.SchemaOrArray{ 13908 Schema: &spec.Schema{ 13909 SchemaProps: spec.SchemaProps{ 13910 Default: map[string]interface{}{}, 13911 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"), 13912 }, 13913 }, 13914 }, 13915 }, 13916 }, 13917 "retryAfterSeconds": { 13918 SchemaProps: spec.SchemaProps{ 13919 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.", 13920 Type: []string{"integer"}, 13921 Format: "int32", 13922 }, 13923 }, 13924 }, 13925 }, 13926 }, 13927 Dependencies: []string{ 13928 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"}, 13929 } 13930 } 13931 13932 func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPIDefinition { 13933 return common.OpenAPIDefinition{ 13934 Schema: spec.Schema{ 13935 SchemaProps: spec.SchemaProps{ 13936 Description: "Table is a tabular representation of a set of API resources. The server transforms the object into a set of preferred columns for quickly reviewing the objects.", 13937 Type: []string{"object"}, 13938 Properties: map[string]spec.Schema{ 13939 "kind": { 13940 SchemaProps: spec.SchemaProps{ 13941 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13942 Type: []string{"string"}, 13943 Format: "", 13944 }, 13945 }, 13946 "apiVersion": { 13947 SchemaProps: spec.SchemaProps{ 13948 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13949 Type: []string{"string"}, 13950 Format: "", 13951 }, 13952 }, 13953 "metadata": { 13954 SchemaProps: spec.SchemaProps{ 13955 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13956 Default: map[string]interface{}{}, 13957 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 13958 }, 13959 }, 13960 "columnDefinitions": { 13961 SchemaProps: spec.SchemaProps{ 13962 Description: "columnDefinitions describes each column in the returned items array. The number of cells per row will always match the number of column definitions.", 13963 Type: []string{"array"}, 13964 Items: &spec.SchemaOrArray{ 13965 Schema: &spec.Schema{ 13966 SchemaProps: spec.SchemaProps{ 13967 Default: map[string]interface{}{}, 13968 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition"), 13969 }, 13970 }, 13971 }, 13972 }, 13973 }, 13974 "rows": { 13975 SchemaProps: spec.SchemaProps{ 13976 Description: "rows is the list of items in the table.", 13977 Type: []string{"array"}, 13978 Items: &spec.SchemaOrArray{ 13979 Schema: &spec.Schema{ 13980 SchemaProps: spec.SchemaProps{ 13981 Default: map[string]interface{}{}, 13982 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"), 13983 }, 13984 }, 13985 }, 13986 }, 13987 }, 13988 }, 13989 Required: []string{"columnDefinitions", "rows"}, 13990 }, 13991 }, 13992 Dependencies: []string{ 13993 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition", "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"}, 13994 } 13995 } 13996 13997 func schema_pkg_apis_meta_v1_TableColumnDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { 13998 return common.OpenAPIDefinition{ 13999 Schema: spec.Schema{ 14000 SchemaProps: spec.SchemaProps{ 14001 Description: "TableColumnDefinition contains information about a column returned in the Table.", 14002 Type: []string{"object"}, 14003 Properties: map[string]spec.Schema{ 14004 "name": { 14005 SchemaProps: spec.SchemaProps{ 14006 Description: "name is a human readable name for the column.", 14007 Default: "", 14008 Type: []string{"string"}, 14009 Format: "", 14010 }, 14011 }, 14012 "type": { 14013 SchemaProps: spec.SchemaProps{ 14014 Description: "type is an OpenAPI type definition for this column, such as number, integer, string, or array. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.", 14015 Default: "", 14016 Type: []string{"string"}, 14017 Format: "", 14018 }, 14019 }, 14020 "format": { 14021 SchemaProps: spec.SchemaProps{ 14022 Description: "format is an optional OpenAPI type modifier for this column. A format modifies the type and imposes additional rules, like date or time formatting for a string. The 'name' format is applied to the primary identifier column which has type 'string' 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 more.", 14023 Default: "", 14024 Type: []string{"string"}, 14025 Format: "", 14026 }, 14027 }, 14028 "description": { 14029 SchemaProps: spec.SchemaProps{ 14030 Description: "description is a human readable description of this column.", 14031 Default: "", 14032 Type: []string{"string"}, 14033 Format: "", 14034 }, 14035 }, 14036 "priority": { 14037 SchemaProps: spec.SchemaProps{ 14038 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 higher priority.", 14039 Default: 0, 14040 Type: []string{"integer"}, 14041 Format: "int32", 14042 }, 14043 }, 14044 }, 14045 Required: []string{"name", "type", "format", "description", "priority"}, 14046 }, 14047 }, 14048 } 14049 } 14050 14051 func schema_pkg_apis_meta_v1_TableOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 14052 return common.OpenAPIDefinition{ 14053 Schema: spec.Schema{ 14054 SchemaProps: spec.SchemaProps{ 14055 Description: "TableOptions are used when a Table is requested by the caller.", 14056 Type: []string{"object"}, 14057 Properties: map[string]spec.Schema{ 14058 "kind": { 14059 SchemaProps: spec.SchemaProps{ 14060 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14061 Type: []string{"string"}, 14062 Format: "", 14063 }, 14064 }, 14065 "apiVersion": { 14066 SchemaProps: spec.SchemaProps{ 14067 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14068 Type: []string{"string"}, 14069 Format: "", 14070 }, 14071 }, 14072 "includeObject": { 14073 SchemaProps: spec.SchemaProps{ 14074 Description: "includeObject decides whether to include each object along with its columnar information. Specifying \"None\" will return no object, specifying \"Object\" will return the full object contents, and specifying \"Metadata\" (the default) will return the object's metadata in the PartialObjectMetadata kind in version v1beta1 of the meta.k8s.io API group.", 14075 Type: []string{"string"}, 14076 Format: "", 14077 }, 14078 }, 14079 }, 14080 }, 14081 }, 14082 } 14083 } 14084 14085 func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenAPIDefinition { 14086 return common.OpenAPIDefinition{ 14087 Schema: spec.Schema{ 14088 SchemaProps: spec.SchemaProps{ 14089 Description: "TableRow is an individual row in a table.", 14090 Type: []string{"object"}, 14091 Properties: map[string]spec.Schema{ 14092 "cells": { 14093 SchemaProps: spec.SchemaProps{ 14094 Description: "cells will be as wide as the column definitions array and may contain strings, numbers (float64 or int64), booleans, simple maps, lists, or null. See the type field of the column definition for a more detailed description.", 14095 Type: []string{"array"}, 14096 Items: &spec.SchemaOrArray{ 14097 Schema: &spec.Schema{ 14098 SchemaProps: spec.SchemaProps{ 14099 Type: []string{"object"}, 14100 Format: "", 14101 }, 14102 }, 14103 }, 14104 }, 14105 }, 14106 "conditions": { 14107 SchemaProps: spec.SchemaProps{ 14108 Description: "conditions describe additional status of a row that are relevant for a human user. These conditions apply to the row, not to the object, and will be specific to table output. The only defined condition type is 'Completed', for a row that indicates a resource that has run to completion and can be given less visual priority.", 14109 Type: []string{"array"}, 14110 Items: &spec.SchemaOrArray{ 14111 Schema: &spec.Schema{ 14112 SchemaProps: spec.SchemaProps{ 14113 Default: map[string]interface{}{}, 14114 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition"), 14115 }, 14116 }, 14117 }, 14118 }, 14119 }, 14120 "object": { 14121 SchemaProps: spec.SchemaProps{ 14122 Description: "This field contains the requested additional information about each object based on the includeObject policy when requesting the Table. If \"None\", this field is empty, if \"Object\" this will be the default serialization of the object for the current API version, and if \"Metadata\" (the default) will contain the object metadata. Check the returned kind and apiVersion of the object before parsing. The media type of the object will always match the enclosing list - if this as a JSON table, these will be JSON encoded objects.", 14123 Default: map[string]interface{}{}, 14124 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 14125 }, 14126 }, 14127 }, 14128 Required: []string{"cells"}, 14129 }, 14130 }, 14131 Dependencies: []string{ 14132 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 14133 } 14134 } 14135 14136 func schema_pkg_apis_meta_v1_TableRowCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 14137 return common.OpenAPIDefinition{ 14138 Schema: spec.Schema{ 14139 SchemaProps: spec.SchemaProps{ 14140 Description: "TableRowCondition allows a row to be marked with additional information.", 14141 Type: []string{"object"}, 14142 Properties: map[string]spec.Schema{ 14143 "type": { 14144 SchemaProps: spec.SchemaProps{ 14145 Description: "Type of row condition. The only defined value is 'Completed' indicating that the object this row represents has reached a completed state and may be given less visual priority than other rows. Clients are not required to honor any conditions but should be consistent where possible about handling the conditions.", 14146 Default: "", 14147 Type: []string{"string"}, 14148 Format: "", 14149 }, 14150 }, 14151 "status": { 14152 SchemaProps: spec.SchemaProps{ 14153 Description: "Status of the condition, one of True, False, Unknown.", 14154 Default: "", 14155 Type: []string{"string"}, 14156 Format: "", 14157 }, 14158 }, 14159 "reason": { 14160 SchemaProps: spec.SchemaProps{ 14161 Description: "(brief) machine readable reason for the condition's last transition.", 14162 Type: []string{"string"}, 14163 Format: "", 14164 }, 14165 }, 14166 "message": { 14167 SchemaProps: spec.SchemaProps{ 14168 Description: "Human readable message indicating details about last transition.", 14169 Type: []string{"string"}, 14170 Format: "", 14171 }, 14172 }, 14173 }, 14174 Required: []string{"type", "status"}, 14175 }, 14176 }, 14177 } 14178 } 14179 14180 func schema_pkg_apis_meta_v1_Time(ref common.ReferenceCallback) common.OpenAPIDefinition { 14181 return common.OpenAPIDefinition{ 14182 Schema: spec.Schema{ 14183 SchemaProps: spec.SchemaProps{ 14184 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.", 14185 Type: v1.Time{}.OpenAPISchemaType(), 14186 Format: v1.Time{}.OpenAPISchemaFormat(), 14187 }, 14188 }, 14189 } 14190 } 14191 14192 func schema_pkg_apis_meta_v1_Timestamp(ref common.ReferenceCallback) common.OpenAPIDefinition { 14193 return common.OpenAPIDefinition{ 14194 Schema: spec.Schema{ 14195 SchemaProps: spec.SchemaProps{ 14196 Description: "Timestamp is a struct that is equivalent to Time, but intended for protobuf marshalling/unmarshalling. It is generated into a serialization that matches Time. Do not use in Go structs.", 14197 Type: []string{"object"}, 14198 Properties: map[string]spec.Schema{ 14199 "seconds": { 14200 SchemaProps: spec.SchemaProps{ 14201 Description: "Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.", 14202 Default: 0, 14203 Type: []string{"integer"}, 14204 Format: "int64", 14205 }, 14206 }, 14207 "nanos": { 14208 SchemaProps: spec.SchemaProps{ 14209 Description: "Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.", 14210 Default: 0, 14211 Type: []string{"integer"}, 14212 Format: "int32", 14213 }, 14214 }, 14215 }, 14216 Required: []string{"seconds", "nanos"}, 14217 }, 14218 }, 14219 } 14220 } 14221 14222 func schema_pkg_apis_meta_v1_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 14223 return common.OpenAPIDefinition{ 14224 Schema: spec.Schema{ 14225 SchemaProps: spec.SchemaProps{ 14226 Description: "TypeMeta describes an individual object in an API response or request with strings representing the type of the object and its API schema version. Structures that are versioned or persisted should inline TypeMeta.", 14227 Type: []string{"object"}, 14228 Properties: map[string]spec.Schema{ 14229 "kind": { 14230 SchemaProps: spec.SchemaProps{ 14231 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14232 Type: []string{"string"}, 14233 Format: "", 14234 }, 14235 }, 14236 "apiVersion": { 14237 SchemaProps: spec.SchemaProps{ 14238 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14239 Type: []string{"string"}, 14240 Format: "", 14241 }, 14242 }, 14243 }, 14244 }, 14245 }, 14246 } 14247 } 14248 14249 func schema_pkg_apis_meta_v1_UpdateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 14250 return common.OpenAPIDefinition{ 14251 Schema: spec.Schema{ 14252 SchemaProps: spec.SchemaProps{ 14253 Description: "UpdateOptions may be provided when updating an API object. All fields in UpdateOptions should also be present in PatchOptions.", 14254 Type: []string{"object"}, 14255 Properties: map[string]spec.Schema{ 14256 "kind": { 14257 SchemaProps: spec.SchemaProps{ 14258 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14259 Type: []string{"string"}, 14260 Format: "", 14261 }, 14262 }, 14263 "apiVersion": { 14264 SchemaProps: spec.SchemaProps{ 14265 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14266 Type: []string{"string"}, 14267 Format: "", 14268 }, 14269 }, 14270 "dryRun": { 14271 SchemaProps: spec.SchemaProps{ 14272 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", 14273 Type: []string{"array"}, 14274 Items: &spec.SchemaOrArray{ 14275 Schema: &spec.Schema{ 14276 SchemaProps: spec.SchemaProps{ 14277 Default: "", 14278 Type: []string{"string"}, 14279 Format: "", 14280 }, 14281 }, 14282 }, 14283 }, 14284 }, 14285 "fieldManager": { 14286 SchemaProps: spec.SchemaProps{ 14287 Description: "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", 14288 Type: []string{"string"}, 14289 Format: "", 14290 }, 14291 }, 14292 "fieldValidation": { 14293 SchemaProps: spec.SchemaProps{ 14294 Description: "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", 14295 Type: []string{"string"}, 14296 Format: "", 14297 }, 14298 }, 14299 }, 14300 }, 14301 }, 14302 } 14303 } 14304 14305 func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 14306 return common.OpenAPIDefinition{ 14307 Schema: spec.Schema{ 14308 SchemaProps: spec.SchemaProps{ 14309 Description: "Event represents a single event to a watched resource.", 14310 Type: []string{"object"}, 14311 Properties: map[string]spec.Schema{ 14312 "type": { 14313 SchemaProps: spec.SchemaProps{ 14314 Default: "", 14315 Type: []string{"string"}, 14316 Format: "", 14317 }, 14318 }, 14319 "object": { 14320 SchemaProps: spec.SchemaProps{ 14321 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.", 14322 Default: map[string]interface{}{}, 14323 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 14324 }, 14325 }, 14326 }, 14327 Required: []string{"type", "object"}, 14328 }, 14329 }, 14330 Dependencies: []string{ 14331 "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 14332 } 14333 } 14334 14335 func schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref common.ReferenceCallback) common.OpenAPIDefinition { 14336 return common.OpenAPIDefinition{ 14337 Schema: spec.Schema{ 14338 SchemaProps: spec.SchemaProps{ 14339 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.)", 14340 Type: []string{"object"}, 14341 }, 14342 }, 14343 } 14344 } 14345 14346 func schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 14347 return common.OpenAPIDefinition{ 14348 Schema: spec.Schema{ 14349 SchemaProps: spec.SchemaProps{ 14350 Description: "TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, like this:\n\n\ttype MyAwesomeAPIObject struct {\n\t runtime.TypeMeta `json:\",inline\"`\n\t ... // other fields\n\t}\n\nfunc (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind\n\nTypeMeta is provided here for convenience. You may use it directly from this package or define your own with the same fields.", 14351 Type: []string{"object"}, 14352 Properties: map[string]spec.Schema{ 14353 "apiVersion": { 14354 SchemaProps: spec.SchemaProps{ 14355 Type: []string{"string"}, 14356 Format: "", 14357 }, 14358 }, 14359 "kind": { 14360 SchemaProps: spec.SchemaProps{ 14361 Type: []string{"string"}, 14362 Format: "", 14363 }, 14364 }, 14365 }, 14366 }, 14367 }, 14368 } 14369 } 14370 14371 func schema_k8sio_apimachinery_pkg_runtime_Unknown(ref common.ReferenceCallback) common.OpenAPIDefinition { 14372 return common.OpenAPIDefinition{ 14373 Schema: spec.Schema{ 14374 SchemaProps: spec.SchemaProps{ 14375 Description: "Unknown allows api objects with unknown types to be passed-through. This can be used to deal with the API objects from a plug-in. Unknown objects still have functioning TypeMeta features-- kind, version, etc. metadata and field mutatation.", 14376 Type: []string{"object"}, 14377 Properties: map[string]spec.Schema{ 14378 "apiVersion": { 14379 SchemaProps: spec.SchemaProps{ 14380 Type: []string{"string"}, 14381 Format: "", 14382 }, 14383 }, 14384 "kind": { 14385 SchemaProps: spec.SchemaProps{ 14386 Type: []string{"string"}, 14387 Format: "", 14388 }, 14389 }, 14390 "Raw": { 14391 SchemaProps: spec.SchemaProps{ 14392 Description: "Raw will hold the complete serialized object which couldn't be matched with a registered type. Most likely, nothing should be done with this except for passing it through the system.", 14393 Type: []string{"string"}, 14394 Format: "byte", 14395 }, 14396 }, 14397 "ContentEncoding": { 14398 SchemaProps: spec.SchemaProps{ 14399 Description: "ContentEncoding is encoding used to encode 'Raw' data. Unspecified means no encoding.", 14400 Default: "", 14401 Type: []string{"string"}, 14402 Format: "", 14403 }, 14404 }, 14405 "ContentType": { 14406 SchemaProps: spec.SchemaProps{ 14407 Description: "ContentType is serialization method used to serialize 'Raw'. Unspecified means ContentTypeJSON.", 14408 Default: "", 14409 Type: []string{"string"}, 14410 Format: "", 14411 }, 14412 }, 14413 }, 14414 Required: []string{"Raw", "ContentEncoding", "ContentType"}, 14415 }, 14416 }, 14417 } 14418 } 14419 14420 func schema_kubesphereio_api_cluster_v1alpha1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { 14421 return common.OpenAPIDefinition{ 14422 Schema: spec.Schema{ 14423 SchemaProps: spec.SchemaProps{ 14424 Description: "Cluster is the schema for the clusters API", 14425 Type: []string{"object"}, 14426 Properties: map[string]spec.Schema{ 14427 "kind": { 14428 SchemaProps: spec.SchemaProps{ 14429 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14430 Type: []string{"string"}, 14431 Format: "", 14432 }, 14433 }, 14434 "apiVersion": { 14435 SchemaProps: spec.SchemaProps{ 14436 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14437 Type: []string{"string"}, 14438 Format: "", 14439 }, 14440 }, 14441 "metadata": { 14442 SchemaProps: spec.SchemaProps{ 14443 Default: map[string]interface{}{}, 14444 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 14445 }, 14446 }, 14447 "spec": { 14448 SchemaProps: spec.SchemaProps{ 14449 Default: map[string]interface{}{}, 14450 Ref: ref("kubesphere.io/api/cluster/v1alpha1.ClusterSpec"), 14451 }, 14452 }, 14453 "status": { 14454 SchemaProps: spec.SchemaProps{ 14455 Default: map[string]interface{}{}, 14456 Ref: ref("kubesphere.io/api/cluster/v1alpha1.ClusterStatus"), 14457 }, 14458 }, 14459 }, 14460 }, 14461 }, 14462 Dependencies: []string{ 14463 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/cluster/v1alpha1.ClusterSpec", "kubesphere.io/api/cluster/v1alpha1.ClusterStatus"}, 14464 } 14465 } 14466 14467 func schema_kubesphereio_api_cluster_v1alpha1_ClusterCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 14468 return common.OpenAPIDefinition{ 14469 Schema: spec.Schema{ 14470 SchemaProps: spec.SchemaProps{ 14471 Type: []string{"object"}, 14472 Properties: map[string]spec.Schema{ 14473 "type": { 14474 SchemaProps: spec.SchemaProps{ 14475 Description: "Type of the condition", 14476 Default: "", 14477 Type: []string{"string"}, 14478 Format: "", 14479 }, 14480 }, 14481 "status": { 14482 SchemaProps: spec.SchemaProps{ 14483 Description: "Status of the condition, one of True, False, Unknown.", 14484 Default: "", 14485 Type: []string{"string"}, 14486 Format: "", 14487 }, 14488 }, 14489 "lastUpdateTime": { 14490 SchemaProps: spec.SchemaProps{ 14491 Description: "The last time this condition was updated.", 14492 Default: map[string]interface{}{}, 14493 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 14494 }, 14495 }, 14496 "lastTransitionTime": { 14497 SchemaProps: spec.SchemaProps{ 14498 Description: "Last time the condition transitioned from one status to another.", 14499 Default: map[string]interface{}{}, 14500 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 14501 }, 14502 }, 14503 "reason": { 14504 SchemaProps: spec.SchemaProps{ 14505 Description: "The reason for the condition's last transition.", 14506 Type: []string{"string"}, 14507 Format: "", 14508 }, 14509 }, 14510 "message": { 14511 SchemaProps: spec.SchemaProps{ 14512 Description: "A human readable message indicating details about the transition.", 14513 Type: []string{"string"}, 14514 Format: "", 14515 }, 14516 }, 14517 }, 14518 Required: []string{"type", "status"}, 14519 }, 14520 }, 14521 Dependencies: []string{ 14522 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 14523 } 14524 } 14525 14526 func schema_kubesphereio_api_cluster_v1alpha1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { 14527 return common.OpenAPIDefinition{ 14528 Schema: spec.Schema{ 14529 SchemaProps: spec.SchemaProps{ 14530 Type: []string{"object"}, 14531 Properties: map[string]spec.Schema{ 14532 "kind": { 14533 SchemaProps: spec.SchemaProps{ 14534 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14535 Type: []string{"string"}, 14536 Format: "", 14537 }, 14538 }, 14539 "apiVersion": { 14540 SchemaProps: spec.SchemaProps{ 14541 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14542 Type: []string{"string"}, 14543 Format: "", 14544 }, 14545 }, 14546 "metadata": { 14547 SchemaProps: spec.SchemaProps{ 14548 Default: map[string]interface{}{}, 14549 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 14550 }, 14551 }, 14552 "items": { 14553 SchemaProps: spec.SchemaProps{ 14554 Type: []string{"array"}, 14555 Items: &spec.SchemaOrArray{ 14556 Schema: &spec.Schema{ 14557 SchemaProps: spec.SchemaProps{ 14558 Default: map[string]interface{}{}, 14559 Ref: ref("kubesphere.io/api/cluster/v1alpha1.Cluster"), 14560 }, 14561 }, 14562 }, 14563 }, 14564 }, 14565 }, 14566 Required: []string{"items"}, 14567 }, 14568 }, 14569 Dependencies: []string{ 14570 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/cluster/v1alpha1.Cluster"}, 14571 } 14572 } 14573 14574 func schema_kubesphereio_api_cluster_v1alpha1_ClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 14575 return common.OpenAPIDefinition{ 14576 Schema: spec.Schema{ 14577 SchemaProps: spec.SchemaProps{ 14578 Type: []string{"object"}, 14579 Properties: map[string]spec.Schema{ 14580 "joinFederation": { 14581 SchemaProps: spec.SchemaProps{ 14582 Description: "Join cluster as a kubefed cluster", 14583 Type: []string{"boolean"}, 14584 Format: "", 14585 }, 14586 }, 14587 "enable": { 14588 SchemaProps: spec.SchemaProps{ 14589 Description: "Desired state of the cluster", 14590 Type: []string{"boolean"}, 14591 Format: "", 14592 }, 14593 }, 14594 "provider": { 14595 SchemaProps: spec.SchemaProps{ 14596 Description: "Provider of the cluster, this field is just for description", 14597 Type: []string{"string"}, 14598 Format: "", 14599 }, 14600 }, 14601 "connection": { 14602 SchemaProps: spec.SchemaProps{ 14603 Description: "Connection holds info to connect to the member cluster", 14604 Default: map[string]interface{}{}, 14605 Ref: ref("kubesphere.io/api/cluster/v1alpha1.Connection"), 14606 }, 14607 }, 14608 "externalKubeAPIEnabled": { 14609 SchemaProps: spec.SchemaProps{ 14610 Description: "ExternalKubeAPIEnabled export kubeapiserver to public use a lb type service if connection type is proxy", 14611 Type: []string{"boolean"}, 14612 Format: "", 14613 }, 14614 }, 14615 }, 14616 }, 14617 }, 14618 Dependencies: []string{ 14619 "kubesphere.io/api/cluster/v1alpha1.Connection"}, 14620 } 14621 } 14622 14623 func schema_kubesphereio_api_cluster_v1alpha1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 14624 return common.OpenAPIDefinition{ 14625 Schema: spec.Schema{ 14626 SchemaProps: spec.SchemaProps{ 14627 Type: []string{"object"}, 14628 Properties: map[string]spec.Schema{ 14629 "conditions": { 14630 SchemaProps: spec.SchemaProps{ 14631 Description: "Represents the latest available observations of a cluster's current state.", 14632 Type: []string{"array"}, 14633 Items: &spec.SchemaOrArray{ 14634 Schema: &spec.Schema{ 14635 SchemaProps: spec.SchemaProps{ 14636 Default: map[string]interface{}{}, 14637 Ref: ref("kubesphere.io/api/cluster/v1alpha1.ClusterCondition"), 14638 }, 14639 }, 14640 }, 14641 }, 14642 }, 14643 "kubernetesVersion": { 14644 SchemaProps: spec.SchemaProps{ 14645 Description: "GitVersion of the kubernetes cluster, this field is populated by cluster controller", 14646 Type: []string{"string"}, 14647 Format: "", 14648 }, 14649 }, 14650 "kubeSphereVersion": { 14651 SchemaProps: spec.SchemaProps{ 14652 Description: "GitVersion of the /kapis/version api response, this field is populated by cluster controller", 14653 Type: []string{"string"}, 14654 Format: "", 14655 }, 14656 }, 14657 "nodeCount": { 14658 SchemaProps: spec.SchemaProps{ 14659 Description: "Count of the kubernetes cluster nodes This field may not reflect the instant status of the cluster.", 14660 Type: []string{"integer"}, 14661 Format: "int32", 14662 }, 14663 }, 14664 "zones": { 14665 SchemaProps: spec.SchemaProps{ 14666 Description: "Zones are the names of availability zones in which the nodes of the cluster exist, e.g. 'us-east1-a'.", 14667 Type: []string{"array"}, 14668 Items: &spec.SchemaOrArray{ 14669 Schema: &spec.Schema{ 14670 SchemaProps: spec.SchemaProps{ 14671 Default: "", 14672 Type: []string{"string"}, 14673 Format: "", 14674 }, 14675 }, 14676 }, 14677 }, 14678 }, 14679 "region": { 14680 SchemaProps: spec.SchemaProps{ 14681 Description: "Region is the name of the region in which all of the nodes in the cluster exist. e.g. 'us-east1'.", 14682 Type: []string{"string"}, 14683 Format: "", 14684 }, 14685 }, 14686 "configz": { 14687 SchemaProps: spec.SchemaProps{ 14688 Description: "Configz is status of components enabled in the member cluster. This is synchronized with member cluster every amount of time, like 5 minutes.", 14689 Type: []string{"object"}, 14690 AdditionalProperties: &spec.SchemaOrBool{ 14691 Allows: true, 14692 Schema: &spec.Schema{ 14693 SchemaProps: spec.SchemaProps{ 14694 Default: false, 14695 Type: []string{"boolean"}, 14696 Format: "", 14697 }, 14698 }, 14699 }, 14700 }, 14701 }, 14702 "uid": { 14703 SchemaProps: spec.SchemaProps{ 14704 Description: "UID is the kube-system namespace UID of the cluster, which represents the unique ID of the cluster.", 14705 Type: []string{"string"}, 14706 Format: "", 14707 }, 14708 }, 14709 }, 14710 }, 14711 }, 14712 Dependencies: []string{ 14713 "kubesphere.io/api/cluster/v1alpha1.ClusterCondition"}, 14714 } 14715 } 14716 14717 func schema_kubesphereio_api_cluster_v1alpha1_Connection(ref common.ReferenceCallback) common.OpenAPIDefinition { 14718 return common.OpenAPIDefinition{ 14719 Schema: spec.Schema{ 14720 SchemaProps: spec.SchemaProps{ 14721 Type: []string{"object"}, 14722 Properties: map[string]spec.Schema{ 14723 "type": { 14724 SchemaProps: spec.SchemaProps{ 14725 Description: "type defines how host cluster will connect to host cluster ConnectionTypeDirect means direct connection, this requires\n kubeconfig and kubesphere apiserver endpoint provided\nConnectionTypeProxy means using kubesphere proxy, no kubeconfig\n or kubesphere apiserver endpoint required", 14726 Type: []string{"string"}, 14727 Format: "", 14728 }, 14729 }, 14730 "kubesphereAPIEndpoint": { 14731 SchemaProps: spec.SchemaProps{ 14732 Description: "KubeSphere API Server endpoint. Example: http://10.10.0.11:8080 Should provide this field explicitly if connection type is direct. Will be populated by ks-apiserver if connection type is proxy.", 14733 Type: []string{"string"}, 14734 Format: "", 14735 }, 14736 }, 14737 "kubernetesAPIEndpoint": { 14738 SchemaProps: spec.SchemaProps{ 14739 Description: "Kubernetes API Server endpoint. Example: https://10.10.0.1:6443 Should provide this field explicitly if connection type is direct. Will be populated by ks-apiserver if connection type is proxy.", 14740 Type: []string{"string"}, 14741 Format: "", 14742 }, 14743 }, 14744 "externalKubernetesAPIEndpoint": { 14745 SchemaProps: spec.SchemaProps{ 14746 Description: "External Kubernetes API Server endpoint Will be populated by ks-apiserver if connection type is proxy and ExternalKubeAPIEnabled is true.", 14747 Type: []string{"string"}, 14748 Format: "", 14749 }, 14750 }, 14751 "kubeconfig": { 14752 SchemaProps: spec.SchemaProps{ 14753 Description: "KubeConfig content used to connect to cluster api server Should provide this field explicitly if connection type is direct. Will be populated by ks-proxy if connection type is proxy.", 14754 Type: []string{"string"}, 14755 Format: "byte", 14756 }, 14757 }, 14758 "token": { 14759 SchemaProps: spec.SchemaProps{ 14760 Description: "Token used by agents of member cluster to connect to host cluster proxy. This field is populated by apiserver only if connection type is proxy.", 14761 Type: []string{"string"}, 14762 Format: "", 14763 }, 14764 }, 14765 "kubernetesAPIServerPort": { 14766 SchemaProps: spec.SchemaProps{ 14767 Description: "KubeAPIServerPort is the port which listens for forwarding kube-apiserver traffic Only applicable when connection type is proxy.", 14768 Type: []string{"integer"}, 14769 Format: "int32", 14770 }, 14771 }, 14772 "kubesphereAPIServerPort": { 14773 SchemaProps: spec.SchemaProps{ 14774 Description: "KubeSphereAPIServerPort is the port which listens for forwarding kubesphere apigateway traffic Only applicable when connection type is proxy.", 14775 Type: []string{"integer"}, 14776 Format: "int32", 14777 }, 14778 }, 14779 }, 14780 }, 14781 }, 14782 } 14783 }