kubesphere.io/api@v0.0.0-20231107125330-c9a03957060c/devops/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/devops/v1alpha1.AuthConfig": schema_kubesphereio_api_devops_v1alpha1_AuthConfig(ref), 295 "kubesphere.io/api/devops/v1alpha1.CGroupLimits": schema_kubesphereio_api_devops_v1alpha1_CGroupLimits(ref), 296 "kubesphere.io/api/devops/v1alpha1.ContainerConfig": schema_kubesphereio_api_devops_v1alpha1_ContainerConfig(ref), 297 "kubesphere.io/api/devops/v1alpha1.ContainerInfo": schema_kubesphereio_api_devops_v1alpha1_ContainerInfo(ref), 298 "kubesphere.io/api/devops/v1alpha1.DockerConfig": schema_kubesphereio_api_devops_v1alpha1_DockerConfig(ref), 299 "kubesphere.io/api/devops/v1alpha1.DockerConfigEntry": schema_kubesphereio_api_devops_v1alpha1_DockerConfigEntry(ref), 300 "kubesphere.io/api/devops/v1alpha1.DockerConfigJson": schema_kubesphereio_api_devops_v1alpha1_DockerConfigJson(ref), 301 "kubesphere.io/api/devops/v1alpha1.EnvironmentSpec": schema_kubesphereio_api_devops_v1alpha1_EnvironmentSpec(ref), 302 "kubesphere.io/api/devops/v1alpha1.Parameter": schema_kubesphereio_api_devops_v1alpha1_Parameter(ref), 303 "kubesphere.io/api/devops/v1alpha1.ProxyConfig": schema_kubesphereio_api_devops_v1alpha1_ProxyConfig(ref), 304 "kubesphere.io/api/devops/v1alpha1.S2iAutoScale": schema_kubesphereio_api_devops_v1alpha1_S2iAutoScale(ref), 305 "kubesphere.io/api/devops/v1alpha1.S2iBinary": schema_kubesphereio_api_devops_v1alpha1_S2iBinary(ref), 306 "kubesphere.io/api/devops/v1alpha1.S2iBinaryList": schema_kubesphereio_api_devops_v1alpha1_S2iBinaryList(ref), 307 "kubesphere.io/api/devops/v1alpha1.S2iBinarySpec": schema_kubesphereio_api_devops_v1alpha1_S2iBinarySpec(ref), 308 "kubesphere.io/api/devops/v1alpha1.S2iBinaryStatus": schema_kubesphereio_api_devops_v1alpha1_S2iBinaryStatus(ref), 309 "kubesphere.io/api/devops/v1alpha1.S2iBuildResult": schema_kubesphereio_api_devops_v1alpha1_S2iBuildResult(ref), 310 "kubesphere.io/api/devops/v1alpha1.S2iBuildSource": schema_kubesphereio_api_devops_v1alpha1_S2iBuildSource(ref), 311 "kubesphere.io/api/devops/v1alpha1.S2iBuilder": schema_kubesphereio_api_devops_v1alpha1_S2iBuilder(ref), 312 "kubesphere.io/api/devops/v1alpha1.S2iBuilderList": schema_kubesphereio_api_devops_v1alpha1_S2iBuilderList(ref), 313 "kubesphere.io/api/devops/v1alpha1.S2iBuilderSpec": schema_kubesphereio_api_devops_v1alpha1_S2iBuilderSpec(ref), 314 "kubesphere.io/api/devops/v1alpha1.S2iBuilderStatus": schema_kubesphereio_api_devops_v1alpha1_S2iBuilderStatus(ref), 315 "kubesphere.io/api/devops/v1alpha1.S2iBuilderTemplate": schema_kubesphereio_api_devops_v1alpha1_S2iBuilderTemplate(ref), 316 "kubesphere.io/api/devops/v1alpha1.S2iBuilderTemplateList": schema_kubesphereio_api_devops_v1alpha1_S2iBuilderTemplateList(ref), 317 "kubesphere.io/api/devops/v1alpha1.S2iBuilderTemplateSpec": schema_kubesphereio_api_devops_v1alpha1_S2iBuilderTemplateSpec(ref), 318 "kubesphere.io/api/devops/v1alpha1.S2iBuilderTemplateStatus": schema_kubesphereio_api_devops_v1alpha1_S2iBuilderTemplateStatus(ref), 319 "kubesphere.io/api/devops/v1alpha1.S2iConfig": schema_kubesphereio_api_devops_v1alpha1_S2iConfig(ref), 320 "kubesphere.io/api/devops/v1alpha1.S2iRun": schema_kubesphereio_api_devops_v1alpha1_S2iRun(ref), 321 "kubesphere.io/api/devops/v1alpha1.S2iRunList": schema_kubesphereio_api_devops_v1alpha1_S2iRunList(ref), 322 "kubesphere.io/api/devops/v1alpha1.S2iRunSpec": schema_kubesphereio_api_devops_v1alpha1_S2iRunSpec(ref), 323 "kubesphere.io/api/devops/v1alpha1.S2iRunStatus": schema_kubesphereio_api_devops_v1alpha1_S2iRunStatus(ref), 324 "kubesphere.io/api/devops/v1alpha1.UserDefineTemplate": schema_kubesphereio_api_devops_v1alpha1_UserDefineTemplate(ref), 325 "kubesphere.io/api/devops/v1alpha1.VolumeSpec": schema_kubesphereio_api_devops_v1alpha1_VolumeSpec(ref), 326 } 327 } 328 329 func schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 330 return common.OpenAPIDefinition{ 331 Schema: spec.Schema{ 332 SchemaProps: spec.SchemaProps{ 333 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.", 334 Type: []string{"object"}, 335 Properties: map[string]spec.Schema{ 336 "volumeID": { 337 SchemaProps: spec.SchemaProps{ 338 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", 339 Default: "", 340 Type: []string{"string"}, 341 Format: "", 342 }, 343 }, 344 "fsType": { 345 SchemaProps: spec.SchemaProps{ 346 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", 347 Type: []string{"string"}, 348 Format: "", 349 }, 350 }, 351 "partition": { 352 SchemaProps: spec.SchemaProps{ 353 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).", 354 Type: []string{"integer"}, 355 Format: "int32", 356 }, 357 }, 358 "readOnly": { 359 SchemaProps: spec.SchemaProps{ 360 Description: "readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", 361 Type: []string{"boolean"}, 362 Format: "", 363 }, 364 }, 365 }, 366 Required: []string{"volumeID"}, 367 }, 368 }, 369 } 370 } 371 372 func schema_k8sio_api_core_v1_Affinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 373 return common.OpenAPIDefinition{ 374 Schema: spec.Schema{ 375 SchemaProps: spec.SchemaProps{ 376 Description: "Affinity is a group of affinity scheduling rules.", 377 Type: []string{"object"}, 378 Properties: map[string]spec.Schema{ 379 "nodeAffinity": { 380 SchemaProps: spec.SchemaProps{ 381 Description: "Describes node affinity scheduling rules for the pod.", 382 Ref: ref("k8s.io/api/core/v1.NodeAffinity"), 383 }, 384 }, 385 "podAffinity": { 386 SchemaProps: spec.SchemaProps{ 387 Description: "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).", 388 Ref: ref("k8s.io/api/core/v1.PodAffinity"), 389 }, 390 }, 391 "podAntiAffinity": { 392 SchemaProps: spec.SchemaProps{ 393 Description: "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).", 394 Ref: ref("k8s.io/api/core/v1.PodAntiAffinity"), 395 }, 396 }, 397 }, 398 }, 399 }, 400 Dependencies: []string{ 401 "k8s.io/api/core/v1.NodeAffinity", "k8s.io/api/core/v1.PodAffinity", "k8s.io/api/core/v1.PodAntiAffinity"}, 402 } 403 } 404 405 func schema_k8sio_api_core_v1_AttachedVolume(ref common.ReferenceCallback) common.OpenAPIDefinition { 406 return common.OpenAPIDefinition{ 407 Schema: spec.Schema{ 408 SchemaProps: spec.SchemaProps{ 409 Description: "AttachedVolume describes a volume attached to a node", 410 Type: []string{"object"}, 411 Properties: map[string]spec.Schema{ 412 "name": { 413 SchemaProps: spec.SchemaProps{ 414 Description: "Name of the attached volume", 415 Default: "", 416 Type: []string{"string"}, 417 Format: "", 418 }, 419 }, 420 "devicePath": { 421 SchemaProps: spec.SchemaProps{ 422 Description: "DevicePath represents the device path where the volume should be available", 423 Default: "", 424 Type: []string{"string"}, 425 Format: "", 426 }, 427 }, 428 }, 429 Required: []string{"name", "devicePath"}, 430 }, 431 }, 432 } 433 } 434 435 func schema_k8sio_api_core_v1_AvoidPods(ref common.ReferenceCallback) common.OpenAPIDefinition { 436 return common.OpenAPIDefinition{ 437 Schema: spec.Schema{ 438 SchemaProps: spec.SchemaProps{ 439 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.", 440 Type: []string{"object"}, 441 Properties: map[string]spec.Schema{ 442 "preferAvoidPods": { 443 SchemaProps: spec.SchemaProps{ 444 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.", 445 Type: []string{"array"}, 446 Items: &spec.SchemaOrArray{ 447 Schema: &spec.Schema{ 448 SchemaProps: spec.SchemaProps{ 449 Default: map[string]interface{}{}, 450 Ref: ref("k8s.io/api/core/v1.PreferAvoidPodsEntry"), 451 }, 452 }, 453 }, 454 }, 455 }, 456 }, 457 }, 458 }, 459 Dependencies: []string{ 460 "k8s.io/api/core/v1.PreferAvoidPodsEntry"}, 461 } 462 } 463 464 func schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 465 return common.OpenAPIDefinition{ 466 Schema: spec.Schema{ 467 SchemaProps: spec.SchemaProps{ 468 Description: "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 469 Type: []string{"object"}, 470 Properties: map[string]spec.Schema{ 471 "diskName": { 472 SchemaProps: spec.SchemaProps{ 473 Description: "diskName is the Name of the data disk in the blob storage", 474 Default: "", 475 Type: []string{"string"}, 476 Format: "", 477 }, 478 }, 479 "diskURI": { 480 SchemaProps: spec.SchemaProps{ 481 Description: "diskURI is the URI of data disk in the blob storage", 482 Default: "", 483 Type: []string{"string"}, 484 Format: "", 485 }, 486 }, 487 "cachingMode": { 488 SchemaProps: spec.SchemaProps{ 489 Description: "cachingMode is the Host Caching mode: None, Read Only, Read Write.", 490 Type: []string{"string"}, 491 Format: "", 492 }, 493 }, 494 "fsType": { 495 SchemaProps: spec.SchemaProps{ 496 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.", 497 Type: []string{"string"}, 498 Format: "", 499 }, 500 }, 501 "readOnly": { 502 SchemaProps: spec.SchemaProps{ 503 Description: "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 504 Type: []string{"boolean"}, 505 Format: "", 506 }, 507 }, 508 "kind": { 509 SchemaProps: spec.SchemaProps{ 510 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", 511 Type: []string{"string"}, 512 Format: "", 513 }, 514 }, 515 }, 516 Required: []string{"diskName", "diskURI"}, 517 }, 518 }, 519 } 520 } 521 522 func schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 523 return common.OpenAPIDefinition{ 524 Schema: spec.Schema{ 525 SchemaProps: spec.SchemaProps{ 526 Description: "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", 527 Type: []string{"object"}, 528 Properties: map[string]spec.Schema{ 529 "secretName": { 530 SchemaProps: spec.SchemaProps{ 531 Description: "secretName is the name of secret that contains Azure Storage Account Name and Key", 532 Default: "", 533 Type: []string{"string"}, 534 Format: "", 535 }, 536 }, 537 "shareName": { 538 SchemaProps: spec.SchemaProps{ 539 Description: "shareName is the azure Share Name", 540 Default: "", 541 Type: []string{"string"}, 542 Format: "", 543 }, 544 }, 545 "readOnly": { 546 SchemaProps: spec.SchemaProps{ 547 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 548 Type: []string{"boolean"}, 549 Format: "", 550 }, 551 }, 552 "secretNamespace": { 553 SchemaProps: spec.SchemaProps{ 554 Description: "secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod", 555 Type: []string{"string"}, 556 Format: "", 557 }, 558 }, 559 }, 560 Required: []string{"secretName", "shareName"}, 561 }, 562 }, 563 } 564 } 565 566 func schema_k8sio_api_core_v1_AzureFileVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 567 return common.OpenAPIDefinition{ 568 Schema: spec.Schema{ 569 SchemaProps: spec.SchemaProps{ 570 Description: "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", 571 Type: []string{"object"}, 572 Properties: map[string]spec.Schema{ 573 "secretName": { 574 SchemaProps: spec.SchemaProps{ 575 Description: "secretName is the name of secret that contains Azure Storage Account Name and Key", 576 Default: "", 577 Type: []string{"string"}, 578 Format: "", 579 }, 580 }, 581 "shareName": { 582 SchemaProps: spec.SchemaProps{ 583 Description: "shareName is the azure share Name", 584 Default: "", 585 Type: []string{"string"}, 586 Format: "", 587 }, 588 }, 589 "readOnly": { 590 SchemaProps: spec.SchemaProps{ 591 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 592 Type: []string{"boolean"}, 593 Format: "", 594 }, 595 }, 596 }, 597 Required: []string{"secretName", "shareName"}, 598 }, 599 }, 600 } 601 } 602 603 func schema_k8sio_api_core_v1_Binding(ref common.ReferenceCallback) common.OpenAPIDefinition { 604 return common.OpenAPIDefinition{ 605 Schema: spec.Schema{ 606 SchemaProps: spec.SchemaProps{ 607 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.", 608 Type: []string{"object"}, 609 Properties: map[string]spec.Schema{ 610 "kind": { 611 SchemaProps: spec.SchemaProps{ 612 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 613 Type: []string{"string"}, 614 Format: "", 615 }, 616 }, 617 "apiVersion": { 618 SchemaProps: spec.SchemaProps{ 619 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 620 Type: []string{"string"}, 621 Format: "", 622 }, 623 }, 624 "metadata": { 625 SchemaProps: spec.SchemaProps{ 626 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 627 Default: map[string]interface{}{}, 628 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 629 }, 630 }, 631 "target": { 632 SchemaProps: spec.SchemaProps{ 633 Description: "The target object that you want to bind to the standard object.", 634 Default: map[string]interface{}{}, 635 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 636 }, 637 }, 638 }, 639 Required: []string{"target"}, 640 }, 641 }, 642 Dependencies: []string{ 643 "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 644 } 645 } 646 647 func schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 648 return common.OpenAPIDefinition{ 649 Schema: spec.Schema{ 650 SchemaProps: spec.SchemaProps{ 651 Description: "Represents storage that is managed by an external CSI volume driver (Beta feature)", 652 Type: []string{"object"}, 653 Properties: map[string]spec.Schema{ 654 "driver": { 655 SchemaProps: spec.SchemaProps{ 656 Description: "driver is the name of the driver to use for this volume. Required.", 657 Default: "", 658 Type: []string{"string"}, 659 Format: "", 660 }, 661 }, 662 "volumeHandle": { 663 SchemaProps: spec.SchemaProps{ 664 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.", 665 Default: "", 666 Type: []string{"string"}, 667 Format: "", 668 }, 669 }, 670 "readOnly": { 671 SchemaProps: spec.SchemaProps{ 672 Description: "readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).", 673 Type: []string{"boolean"}, 674 Format: "", 675 }, 676 }, 677 "fsType": { 678 SchemaProps: spec.SchemaProps{ 679 Description: "fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".", 680 Type: []string{"string"}, 681 Format: "", 682 }, 683 }, 684 "volumeAttributes": { 685 SchemaProps: spec.SchemaProps{ 686 Description: "volumeAttributes of the volume to publish.", 687 Type: []string{"object"}, 688 AdditionalProperties: &spec.SchemaOrBool{ 689 Allows: true, 690 Schema: &spec.Schema{ 691 SchemaProps: spec.SchemaProps{ 692 Default: "", 693 Type: []string{"string"}, 694 Format: "", 695 }, 696 }, 697 }, 698 }, 699 }, 700 "controllerPublishSecretRef": { 701 SchemaProps: spec.SchemaProps{ 702 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.", 703 Ref: ref("k8s.io/api/core/v1.SecretReference"), 704 }, 705 }, 706 "nodeStageSecretRef": { 707 SchemaProps: spec.SchemaProps{ 708 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.", 709 Ref: ref("k8s.io/api/core/v1.SecretReference"), 710 }, 711 }, 712 "nodePublishSecretRef": { 713 SchemaProps: spec.SchemaProps{ 714 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.", 715 Ref: ref("k8s.io/api/core/v1.SecretReference"), 716 }, 717 }, 718 "controllerExpandSecretRef": { 719 SchemaProps: spec.SchemaProps{ 720 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.", 721 Ref: ref("k8s.io/api/core/v1.SecretReference"), 722 }, 723 }, 724 "nodeExpandSecretRef": { 725 SchemaProps: spec.SchemaProps{ 726 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.", 727 Ref: ref("k8s.io/api/core/v1.SecretReference"), 728 }, 729 }, 730 }, 731 Required: []string{"driver", "volumeHandle"}, 732 }, 733 }, 734 Dependencies: []string{ 735 "k8s.io/api/core/v1.SecretReference"}, 736 } 737 } 738 739 func schema_k8sio_api_core_v1_CSIVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 740 return common.OpenAPIDefinition{ 741 Schema: spec.Schema{ 742 SchemaProps: spec.SchemaProps{ 743 Description: "Represents a source location of a volume to mount, managed by an external CSI driver", 744 Type: []string{"object"}, 745 Properties: map[string]spec.Schema{ 746 "driver": { 747 SchemaProps: spec.SchemaProps{ 748 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.", 749 Default: "", 750 Type: []string{"string"}, 751 Format: "", 752 }, 753 }, 754 "readOnly": { 755 SchemaProps: spec.SchemaProps{ 756 Description: "readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).", 757 Type: []string{"boolean"}, 758 Format: "", 759 }, 760 }, 761 "fsType": { 762 SchemaProps: spec.SchemaProps{ 763 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.", 764 Type: []string{"string"}, 765 Format: "", 766 }, 767 }, 768 "volumeAttributes": { 769 SchemaProps: spec.SchemaProps{ 770 Description: "volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.", 771 Type: []string{"object"}, 772 AdditionalProperties: &spec.SchemaOrBool{ 773 Allows: true, 774 Schema: &spec.Schema{ 775 SchemaProps: spec.SchemaProps{ 776 Default: "", 777 Type: []string{"string"}, 778 Format: "", 779 }, 780 }, 781 }, 782 }, 783 }, 784 "nodePublishSecretRef": { 785 SchemaProps: spec.SchemaProps{ 786 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.", 787 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 788 }, 789 }, 790 }, 791 Required: []string{"driver"}, 792 }, 793 }, 794 Dependencies: []string{ 795 "k8s.io/api/core/v1.LocalObjectReference"}, 796 } 797 } 798 799 func schema_k8sio_api_core_v1_Capabilities(ref common.ReferenceCallback) common.OpenAPIDefinition { 800 return common.OpenAPIDefinition{ 801 Schema: spec.Schema{ 802 SchemaProps: spec.SchemaProps{ 803 Description: "Adds and removes POSIX capabilities from running containers.", 804 Type: []string{"object"}, 805 Properties: map[string]spec.Schema{ 806 "add": { 807 SchemaProps: spec.SchemaProps{ 808 Description: "Added capabilities", 809 Type: []string{"array"}, 810 Items: &spec.SchemaOrArray{ 811 Schema: &spec.Schema{ 812 SchemaProps: spec.SchemaProps{ 813 Default: "", 814 Type: []string{"string"}, 815 Format: "", 816 }, 817 }, 818 }, 819 }, 820 }, 821 "drop": { 822 SchemaProps: spec.SchemaProps{ 823 Description: "Removed capabilities", 824 Type: []string{"array"}, 825 Items: &spec.SchemaOrArray{ 826 Schema: &spec.Schema{ 827 SchemaProps: spec.SchemaProps{ 828 Default: "", 829 Type: []string{"string"}, 830 Format: "", 831 }, 832 }, 833 }, 834 }, 835 }, 836 }, 837 }, 838 }, 839 } 840 } 841 842 func schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 843 return common.OpenAPIDefinition{ 844 Schema: spec.Schema{ 845 SchemaProps: spec.SchemaProps{ 846 Description: "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", 847 Type: []string{"object"}, 848 Properties: map[string]spec.Schema{ 849 "monitors": { 850 SchemaProps: spec.SchemaProps{ 851 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", 852 Type: []string{"array"}, 853 Items: &spec.SchemaOrArray{ 854 Schema: &spec.Schema{ 855 SchemaProps: spec.SchemaProps{ 856 Default: "", 857 Type: []string{"string"}, 858 Format: "", 859 }, 860 }, 861 }, 862 }, 863 }, 864 "path": { 865 SchemaProps: spec.SchemaProps{ 866 Description: "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", 867 Type: []string{"string"}, 868 Format: "", 869 }, 870 }, 871 "user": { 872 SchemaProps: spec.SchemaProps{ 873 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", 874 Type: []string{"string"}, 875 Format: "", 876 }, 877 }, 878 "secretFile": { 879 SchemaProps: spec.SchemaProps{ 880 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", 881 Type: []string{"string"}, 882 Format: "", 883 }, 884 }, 885 "secretRef": { 886 SchemaProps: spec.SchemaProps{ 887 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", 888 Ref: ref("k8s.io/api/core/v1.SecretReference"), 889 }, 890 }, 891 "readOnly": { 892 SchemaProps: spec.SchemaProps{ 893 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", 894 Type: []string{"boolean"}, 895 Format: "", 896 }, 897 }, 898 }, 899 Required: []string{"monitors"}, 900 }, 901 }, 902 Dependencies: []string{ 903 "k8s.io/api/core/v1.SecretReference"}, 904 } 905 } 906 907 func schema_k8sio_api_core_v1_CephFSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 908 return common.OpenAPIDefinition{ 909 Schema: spec.Schema{ 910 SchemaProps: spec.SchemaProps{ 911 Description: "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.", 912 Type: []string{"object"}, 913 Properties: map[string]spec.Schema{ 914 "monitors": { 915 SchemaProps: spec.SchemaProps{ 916 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", 917 Type: []string{"array"}, 918 Items: &spec.SchemaOrArray{ 919 Schema: &spec.Schema{ 920 SchemaProps: spec.SchemaProps{ 921 Default: "", 922 Type: []string{"string"}, 923 Format: "", 924 }, 925 }, 926 }, 927 }, 928 }, 929 "path": { 930 SchemaProps: spec.SchemaProps{ 931 Description: "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /", 932 Type: []string{"string"}, 933 Format: "", 934 }, 935 }, 936 "user": { 937 SchemaProps: spec.SchemaProps{ 938 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", 939 Type: []string{"string"}, 940 Format: "", 941 }, 942 }, 943 "secretFile": { 944 SchemaProps: spec.SchemaProps{ 945 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", 946 Type: []string{"string"}, 947 Format: "", 948 }, 949 }, 950 "secretRef": { 951 SchemaProps: spec.SchemaProps{ 952 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", 953 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 954 }, 955 }, 956 "readOnly": { 957 SchemaProps: spec.SchemaProps{ 958 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", 959 Type: []string{"boolean"}, 960 Format: "", 961 }, 962 }, 963 }, 964 Required: []string{"monitors"}, 965 }, 966 }, 967 Dependencies: []string{ 968 "k8s.io/api/core/v1.LocalObjectReference"}, 969 } 970 } 971 972 func schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 973 return common.OpenAPIDefinition{ 974 Schema: spec.Schema{ 975 SchemaProps: spec.SchemaProps{ 976 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.", 977 Type: []string{"object"}, 978 Properties: map[string]spec.Schema{ 979 "volumeID": { 980 SchemaProps: spec.SchemaProps{ 981 Description: "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 982 Default: "", 983 Type: []string{"string"}, 984 Format: "", 985 }, 986 }, 987 "fsType": { 988 SchemaProps: spec.SchemaProps{ 989 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", 990 Type: []string{"string"}, 991 Format: "", 992 }, 993 }, 994 "readOnly": { 995 SchemaProps: spec.SchemaProps{ 996 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", 997 Type: []string{"boolean"}, 998 Format: "", 999 }, 1000 }, 1001 "secretRef": { 1002 SchemaProps: spec.SchemaProps{ 1003 Description: "secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.", 1004 Ref: ref("k8s.io/api/core/v1.SecretReference"), 1005 }, 1006 }, 1007 }, 1008 Required: []string{"volumeID"}, 1009 }, 1010 }, 1011 Dependencies: []string{ 1012 "k8s.io/api/core/v1.SecretReference"}, 1013 } 1014 } 1015 1016 func schema_k8sio_api_core_v1_CinderVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 1017 return common.OpenAPIDefinition{ 1018 Schema: spec.Schema{ 1019 SchemaProps: spec.SchemaProps{ 1020 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.", 1021 Type: []string{"object"}, 1022 Properties: map[string]spec.Schema{ 1023 "volumeID": { 1024 SchemaProps: spec.SchemaProps{ 1025 Description: "volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 1026 Default: "", 1027 Type: []string{"string"}, 1028 Format: "", 1029 }, 1030 }, 1031 "fsType": { 1032 SchemaProps: spec.SchemaProps{ 1033 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", 1034 Type: []string{"string"}, 1035 Format: "", 1036 }, 1037 }, 1038 "readOnly": { 1039 SchemaProps: spec.SchemaProps{ 1040 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", 1041 Type: []string{"boolean"}, 1042 Format: "", 1043 }, 1044 }, 1045 "secretRef": { 1046 SchemaProps: spec.SchemaProps{ 1047 Description: "secretRef is optional: points to a secret object containing parameters used to connect to OpenStack.", 1048 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 1049 }, 1050 }, 1051 }, 1052 Required: []string{"volumeID"}, 1053 }, 1054 }, 1055 Dependencies: []string{ 1056 "k8s.io/api/core/v1.LocalObjectReference"}, 1057 } 1058 } 1059 1060 func schema_k8sio_api_core_v1_ClientIPConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 1061 return common.OpenAPIDefinition{ 1062 Schema: spec.Schema{ 1063 SchemaProps: spec.SchemaProps{ 1064 Description: "ClientIPConfig represents the configurations of Client IP based session affinity.", 1065 Type: []string{"object"}, 1066 Properties: map[string]spec.Schema{ 1067 "timeoutSeconds": { 1068 SchemaProps: spec.SchemaProps{ 1069 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).", 1070 Type: []string{"integer"}, 1071 Format: "int32", 1072 }, 1073 }, 1074 }, 1075 }, 1076 }, 1077 } 1078 } 1079 1080 func schema_k8sio_api_core_v1_ComponentCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 1081 return common.OpenAPIDefinition{ 1082 Schema: spec.Schema{ 1083 SchemaProps: spec.SchemaProps{ 1084 Description: "Information about the condition of a component.", 1085 Type: []string{"object"}, 1086 Properties: map[string]spec.Schema{ 1087 "type": { 1088 SchemaProps: spec.SchemaProps{ 1089 Description: "Type of condition for a component. Valid value: \"Healthy\"", 1090 Default: "", 1091 Type: []string{"string"}, 1092 Format: "", 1093 }, 1094 }, 1095 "status": { 1096 SchemaProps: spec.SchemaProps{ 1097 Description: "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".", 1098 Default: "", 1099 Type: []string{"string"}, 1100 Format: "", 1101 }, 1102 }, 1103 "message": { 1104 SchemaProps: spec.SchemaProps{ 1105 Description: "Message about the condition for a component. For example, information about a health check.", 1106 Type: []string{"string"}, 1107 Format: "", 1108 }, 1109 }, 1110 "error": { 1111 SchemaProps: spec.SchemaProps{ 1112 Description: "Condition error code for a component. For example, a health check error code.", 1113 Type: []string{"string"}, 1114 Format: "", 1115 }, 1116 }, 1117 }, 1118 Required: []string{"type", "status"}, 1119 }, 1120 }, 1121 } 1122 } 1123 1124 func schema_k8sio_api_core_v1_ComponentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 1125 return common.OpenAPIDefinition{ 1126 Schema: spec.Schema{ 1127 SchemaProps: spec.SchemaProps{ 1128 Description: "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+", 1129 Type: []string{"object"}, 1130 Properties: map[string]spec.Schema{ 1131 "kind": { 1132 SchemaProps: spec.SchemaProps{ 1133 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1134 Type: []string{"string"}, 1135 Format: "", 1136 }, 1137 }, 1138 "apiVersion": { 1139 SchemaProps: spec.SchemaProps{ 1140 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1141 Type: []string{"string"}, 1142 Format: "", 1143 }, 1144 }, 1145 "metadata": { 1146 SchemaProps: spec.SchemaProps{ 1147 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 1148 Default: map[string]interface{}{}, 1149 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1150 }, 1151 }, 1152 "conditions": { 1153 VendorExtensible: spec.VendorExtensible{ 1154 Extensions: spec.Extensions{ 1155 "x-kubernetes-patch-merge-key": "type", 1156 "x-kubernetes-patch-strategy": "merge", 1157 }, 1158 }, 1159 SchemaProps: spec.SchemaProps{ 1160 Description: "List of component conditions observed", 1161 Type: []string{"array"}, 1162 Items: &spec.SchemaOrArray{ 1163 Schema: &spec.Schema{ 1164 SchemaProps: spec.SchemaProps{ 1165 Default: map[string]interface{}{}, 1166 Ref: ref("k8s.io/api/core/v1.ComponentCondition"), 1167 }, 1168 }, 1169 }, 1170 }, 1171 }, 1172 }, 1173 }, 1174 }, 1175 Dependencies: []string{ 1176 "k8s.io/api/core/v1.ComponentCondition", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1177 } 1178 } 1179 1180 func schema_k8sio_api_core_v1_ComponentStatusList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1181 return common.OpenAPIDefinition{ 1182 Schema: spec.Schema{ 1183 SchemaProps: spec.SchemaProps{ 1184 Description: "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+", 1185 Type: []string{"object"}, 1186 Properties: map[string]spec.Schema{ 1187 "kind": { 1188 SchemaProps: spec.SchemaProps{ 1189 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1190 Type: []string{"string"}, 1191 Format: "", 1192 }, 1193 }, 1194 "apiVersion": { 1195 SchemaProps: spec.SchemaProps{ 1196 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1197 Type: []string{"string"}, 1198 Format: "", 1199 }, 1200 }, 1201 "metadata": { 1202 SchemaProps: spec.SchemaProps{ 1203 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1204 Default: map[string]interface{}{}, 1205 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1206 }, 1207 }, 1208 "items": { 1209 SchemaProps: spec.SchemaProps{ 1210 Description: "List of ComponentStatus objects.", 1211 Type: []string{"array"}, 1212 Items: &spec.SchemaOrArray{ 1213 Schema: &spec.Schema{ 1214 SchemaProps: spec.SchemaProps{ 1215 Default: map[string]interface{}{}, 1216 Ref: ref("k8s.io/api/core/v1.ComponentStatus"), 1217 }, 1218 }, 1219 }, 1220 }, 1221 }, 1222 }, 1223 Required: []string{"items"}, 1224 }, 1225 }, 1226 Dependencies: []string{ 1227 "k8s.io/api/core/v1.ComponentStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1228 } 1229 } 1230 1231 func schema_k8sio_api_core_v1_ConfigMap(ref common.ReferenceCallback) common.OpenAPIDefinition { 1232 return common.OpenAPIDefinition{ 1233 Schema: spec.Schema{ 1234 SchemaProps: spec.SchemaProps{ 1235 Description: "ConfigMap holds configuration data for pods to consume.", 1236 Type: []string{"object"}, 1237 Properties: map[string]spec.Schema{ 1238 "kind": { 1239 SchemaProps: spec.SchemaProps{ 1240 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1241 Type: []string{"string"}, 1242 Format: "", 1243 }, 1244 }, 1245 "apiVersion": { 1246 SchemaProps: spec.SchemaProps{ 1247 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1248 Type: []string{"string"}, 1249 Format: "", 1250 }, 1251 }, 1252 "metadata": { 1253 SchemaProps: spec.SchemaProps{ 1254 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 1255 Default: map[string]interface{}{}, 1256 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 1257 }, 1258 }, 1259 "immutable": { 1260 SchemaProps: spec.SchemaProps{ 1261 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.", 1262 Type: []string{"boolean"}, 1263 Format: "", 1264 }, 1265 }, 1266 "data": { 1267 SchemaProps: spec.SchemaProps{ 1268 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.", 1269 Type: []string{"object"}, 1270 AdditionalProperties: &spec.SchemaOrBool{ 1271 Allows: true, 1272 Schema: &spec.Schema{ 1273 SchemaProps: spec.SchemaProps{ 1274 Default: "", 1275 Type: []string{"string"}, 1276 Format: "", 1277 }, 1278 }, 1279 }, 1280 }, 1281 }, 1282 "binaryData": { 1283 SchemaProps: spec.SchemaProps{ 1284 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.", 1285 Type: []string{"object"}, 1286 AdditionalProperties: &spec.SchemaOrBool{ 1287 Allows: true, 1288 Schema: &spec.Schema{ 1289 SchemaProps: spec.SchemaProps{ 1290 Type: []string{"string"}, 1291 Format: "byte", 1292 }, 1293 }, 1294 }, 1295 }, 1296 }, 1297 }, 1298 }, 1299 }, 1300 Dependencies: []string{ 1301 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 1302 } 1303 } 1304 1305 func schema_k8sio_api_core_v1_ConfigMapEnvSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 1306 return common.OpenAPIDefinition{ 1307 Schema: spec.Schema{ 1308 SchemaProps: spec.SchemaProps{ 1309 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.", 1310 Type: []string{"object"}, 1311 Properties: map[string]spec.Schema{ 1312 "name": { 1313 SchemaProps: spec.SchemaProps{ 1314 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 1315 Type: []string{"string"}, 1316 Format: "", 1317 }, 1318 }, 1319 "optional": { 1320 SchemaProps: spec.SchemaProps{ 1321 Description: "Specify whether the ConfigMap must be defined", 1322 Type: []string{"boolean"}, 1323 Format: "", 1324 }, 1325 }, 1326 }, 1327 }, 1328 }, 1329 } 1330 } 1331 1332 func schema_k8sio_api_core_v1_ConfigMapKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 1333 return common.OpenAPIDefinition{ 1334 Schema: spec.Schema{ 1335 SchemaProps: spec.SchemaProps{ 1336 Description: "Selects a key from a ConfigMap.", 1337 Type: []string{"object"}, 1338 Properties: map[string]spec.Schema{ 1339 "name": { 1340 SchemaProps: spec.SchemaProps{ 1341 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 1342 Type: []string{"string"}, 1343 Format: "", 1344 }, 1345 }, 1346 "key": { 1347 SchemaProps: spec.SchemaProps{ 1348 Description: "The key to select.", 1349 Default: "", 1350 Type: []string{"string"}, 1351 Format: "", 1352 }, 1353 }, 1354 "optional": { 1355 SchemaProps: spec.SchemaProps{ 1356 Description: "Specify whether the ConfigMap or its key must be defined", 1357 Type: []string{"boolean"}, 1358 Format: "", 1359 }, 1360 }, 1361 }, 1362 Required: []string{"key"}, 1363 }, 1364 VendorExtensible: spec.VendorExtensible{ 1365 Extensions: spec.Extensions{ 1366 "x-kubernetes-map-type": "atomic", 1367 }, 1368 }, 1369 }, 1370 } 1371 } 1372 1373 func schema_k8sio_api_core_v1_ConfigMapList(ref common.ReferenceCallback) common.OpenAPIDefinition { 1374 return common.OpenAPIDefinition{ 1375 Schema: spec.Schema{ 1376 SchemaProps: spec.SchemaProps{ 1377 Description: "ConfigMapList is a resource containing a list of ConfigMap objects.", 1378 Type: []string{"object"}, 1379 Properties: map[string]spec.Schema{ 1380 "kind": { 1381 SchemaProps: spec.SchemaProps{ 1382 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 1383 Type: []string{"string"}, 1384 Format: "", 1385 }, 1386 }, 1387 "apiVersion": { 1388 SchemaProps: spec.SchemaProps{ 1389 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 1390 Type: []string{"string"}, 1391 Format: "", 1392 }, 1393 }, 1394 "metadata": { 1395 SchemaProps: spec.SchemaProps{ 1396 Description: "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 1397 Default: map[string]interface{}{}, 1398 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 1399 }, 1400 }, 1401 "items": { 1402 SchemaProps: spec.SchemaProps{ 1403 Description: "Items is the list of ConfigMaps.", 1404 Type: []string{"array"}, 1405 Items: &spec.SchemaOrArray{ 1406 Schema: &spec.Schema{ 1407 SchemaProps: spec.SchemaProps{ 1408 Default: map[string]interface{}{}, 1409 Ref: ref("k8s.io/api/core/v1.ConfigMap"), 1410 }, 1411 }, 1412 }, 1413 }, 1414 }, 1415 }, 1416 Required: []string{"items"}, 1417 }, 1418 }, 1419 Dependencies: []string{ 1420 "k8s.io/api/core/v1.ConfigMap", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 1421 } 1422 } 1423 1424 func schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 1425 return common.OpenAPIDefinition{ 1426 Schema: spec.Schema{ 1427 SchemaProps: spec.SchemaProps{ 1428 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", 1429 Type: []string{"object"}, 1430 Properties: map[string]spec.Schema{ 1431 "namespace": { 1432 SchemaProps: spec.SchemaProps{ 1433 Description: "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.", 1434 Default: "", 1435 Type: []string{"string"}, 1436 Format: "", 1437 }, 1438 }, 1439 "name": { 1440 SchemaProps: spec.SchemaProps{ 1441 Description: "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.", 1442 Default: "", 1443 Type: []string{"string"}, 1444 Format: "", 1445 }, 1446 }, 1447 "uid": { 1448 SchemaProps: spec.SchemaProps{ 1449 Description: "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", 1450 Type: []string{"string"}, 1451 Format: "", 1452 }, 1453 }, 1454 "resourceVersion": { 1455 SchemaProps: spec.SchemaProps{ 1456 Description: "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.", 1457 Type: []string{"string"}, 1458 Format: "", 1459 }, 1460 }, 1461 "kubeletConfigKey": { 1462 SchemaProps: spec.SchemaProps{ 1463 Description: "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.", 1464 Default: "", 1465 Type: []string{"string"}, 1466 Format: "", 1467 }, 1468 }, 1469 }, 1470 Required: []string{"namespace", "name", "kubeletConfigKey"}, 1471 }, 1472 }, 1473 } 1474 } 1475 1476 func schema_k8sio_api_core_v1_ConfigMapProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 1477 return common.OpenAPIDefinition{ 1478 Schema: spec.Schema{ 1479 SchemaProps: spec.SchemaProps{ 1480 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.", 1481 Type: []string{"object"}, 1482 Properties: map[string]spec.Schema{ 1483 "name": { 1484 SchemaProps: spec.SchemaProps{ 1485 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 1486 Type: []string{"string"}, 1487 Format: "", 1488 }, 1489 }, 1490 "items": { 1491 SchemaProps: spec.SchemaProps{ 1492 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 '..'.", 1493 Type: []string{"array"}, 1494 Items: &spec.SchemaOrArray{ 1495 Schema: &spec.Schema{ 1496 SchemaProps: spec.SchemaProps{ 1497 Default: map[string]interface{}{}, 1498 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 1499 }, 1500 }, 1501 }, 1502 }, 1503 }, 1504 "optional": { 1505 SchemaProps: spec.SchemaProps{ 1506 Description: "optional specify whether the ConfigMap or its keys must be defined", 1507 Type: []string{"boolean"}, 1508 Format: "", 1509 }, 1510 }, 1511 }, 1512 }, 1513 }, 1514 Dependencies: []string{ 1515 "k8s.io/api/core/v1.KeyToPath"}, 1516 } 1517 } 1518 1519 func schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 1520 return common.OpenAPIDefinition{ 1521 Schema: spec.Schema{ 1522 SchemaProps: spec.SchemaProps{ 1523 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.", 1524 Type: []string{"object"}, 1525 Properties: map[string]spec.Schema{ 1526 "name": { 1527 SchemaProps: spec.SchemaProps{ 1528 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 1529 Type: []string{"string"}, 1530 Format: "", 1531 }, 1532 }, 1533 "items": { 1534 SchemaProps: spec.SchemaProps{ 1535 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 '..'.", 1536 Type: []string{"array"}, 1537 Items: &spec.SchemaOrArray{ 1538 Schema: &spec.Schema{ 1539 SchemaProps: spec.SchemaProps{ 1540 Default: map[string]interface{}{}, 1541 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 1542 }, 1543 }, 1544 }, 1545 }, 1546 }, 1547 "defaultMode": { 1548 SchemaProps: spec.SchemaProps{ 1549 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.", 1550 Type: []string{"integer"}, 1551 Format: "int32", 1552 }, 1553 }, 1554 "optional": { 1555 SchemaProps: spec.SchemaProps{ 1556 Description: "optional specify whether the ConfigMap or its keys must be defined", 1557 Type: []string{"boolean"}, 1558 Format: "", 1559 }, 1560 }, 1561 }, 1562 }, 1563 }, 1564 Dependencies: []string{ 1565 "k8s.io/api/core/v1.KeyToPath"}, 1566 } 1567 } 1568 1569 func schema_k8sio_api_core_v1_Container(ref common.ReferenceCallback) common.OpenAPIDefinition { 1570 return common.OpenAPIDefinition{ 1571 Schema: spec.Schema{ 1572 SchemaProps: spec.SchemaProps{ 1573 Description: "A single application container that you want to run within a pod.", 1574 Type: []string{"object"}, 1575 Properties: map[string]spec.Schema{ 1576 "name": { 1577 SchemaProps: spec.SchemaProps{ 1578 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.", 1579 Default: "", 1580 Type: []string{"string"}, 1581 Format: "", 1582 }, 1583 }, 1584 "image": { 1585 SchemaProps: spec.SchemaProps{ 1586 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.", 1587 Type: []string{"string"}, 1588 Format: "", 1589 }, 1590 }, 1591 "command": { 1592 SchemaProps: spec.SchemaProps{ 1593 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", 1594 Type: []string{"array"}, 1595 Items: &spec.SchemaOrArray{ 1596 Schema: &spec.Schema{ 1597 SchemaProps: spec.SchemaProps{ 1598 Default: "", 1599 Type: []string{"string"}, 1600 Format: "", 1601 }, 1602 }, 1603 }, 1604 }, 1605 }, 1606 "args": { 1607 SchemaProps: spec.SchemaProps{ 1608 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", 1609 Type: []string{"array"}, 1610 Items: &spec.SchemaOrArray{ 1611 Schema: &spec.Schema{ 1612 SchemaProps: spec.SchemaProps{ 1613 Default: "", 1614 Type: []string{"string"}, 1615 Format: "", 1616 }, 1617 }, 1618 }, 1619 }, 1620 }, 1621 "workingDir": { 1622 SchemaProps: spec.SchemaProps{ 1623 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.", 1624 Type: []string{"string"}, 1625 Format: "", 1626 }, 1627 }, 1628 "ports": { 1629 VendorExtensible: spec.VendorExtensible{ 1630 Extensions: spec.Extensions{ 1631 "x-kubernetes-list-map-keys": []interface{}{ 1632 "containerPort", 1633 "protocol", 1634 }, 1635 "x-kubernetes-list-type": "map", 1636 "x-kubernetes-patch-merge-key": "containerPort", 1637 "x-kubernetes-patch-strategy": "merge", 1638 }, 1639 }, 1640 SchemaProps: spec.SchemaProps{ 1641 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.", 1642 Type: []string{"array"}, 1643 Items: &spec.SchemaOrArray{ 1644 Schema: &spec.Schema{ 1645 SchemaProps: spec.SchemaProps{ 1646 Default: map[string]interface{}{}, 1647 Ref: ref("k8s.io/api/core/v1.ContainerPort"), 1648 }, 1649 }, 1650 }, 1651 }, 1652 }, 1653 "envFrom": { 1654 SchemaProps: spec.SchemaProps{ 1655 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.", 1656 Type: []string{"array"}, 1657 Items: &spec.SchemaOrArray{ 1658 Schema: &spec.Schema{ 1659 SchemaProps: spec.SchemaProps{ 1660 Default: map[string]interface{}{}, 1661 Ref: ref("k8s.io/api/core/v1.EnvFromSource"), 1662 }, 1663 }, 1664 }, 1665 }, 1666 }, 1667 "env": { 1668 VendorExtensible: spec.VendorExtensible{ 1669 Extensions: spec.Extensions{ 1670 "x-kubernetes-patch-merge-key": "name", 1671 "x-kubernetes-patch-strategy": "merge", 1672 }, 1673 }, 1674 SchemaProps: spec.SchemaProps{ 1675 Description: "List of environment variables to set in the container. Cannot be updated.", 1676 Type: []string{"array"}, 1677 Items: &spec.SchemaOrArray{ 1678 Schema: &spec.Schema{ 1679 SchemaProps: spec.SchemaProps{ 1680 Default: map[string]interface{}{}, 1681 Ref: ref("k8s.io/api/core/v1.EnvVar"), 1682 }, 1683 }, 1684 }, 1685 }, 1686 }, 1687 "resources": { 1688 SchemaProps: spec.SchemaProps{ 1689 Description: "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 1690 Default: map[string]interface{}{}, 1691 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 1692 }, 1693 }, 1694 "volumeMounts": { 1695 VendorExtensible: spec.VendorExtensible{ 1696 Extensions: spec.Extensions{ 1697 "x-kubernetes-patch-merge-key": "mountPath", 1698 "x-kubernetes-patch-strategy": "merge", 1699 }, 1700 }, 1701 SchemaProps: spec.SchemaProps{ 1702 Description: "Pod volumes to mount into the container's filesystem. Cannot be updated.", 1703 Type: []string{"array"}, 1704 Items: &spec.SchemaOrArray{ 1705 Schema: &spec.Schema{ 1706 SchemaProps: spec.SchemaProps{ 1707 Default: map[string]interface{}{}, 1708 Ref: ref("k8s.io/api/core/v1.VolumeMount"), 1709 }, 1710 }, 1711 }, 1712 }, 1713 }, 1714 "volumeDevices": { 1715 VendorExtensible: spec.VendorExtensible{ 1716 Extensions: spec.Extensions{ 1717 "x-kubernetes-patch-merge-key": "devicePath", 1718 "x-kubernetes-patch-strategy": "merge", 1719 }, 1720 }, 1721 SchemaProps: spec.SchemaProps{ 1722 Description: "volumeDevices is the list of block devices to be used by the container.", 1723 Type: []string{"array"}, 1724 Items: &spec.SchemaOrArray{ 1725 Schema: &spec.Schema{ 1726 SchemaProps: spec.SchemaProps{ 1727 Default: map[string]interface{}{}, 1728 Ref: ref("k8s.io/api/core/v1.VolumeDevice"), 1729 }, 1730 }, 1731 }, 1732 }, 1733 }, 1734 "livenessProbe": { 1735 SchemaProps: spec.SchemaProps{ 1736 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", 1737 Ref: ref("k8s.io/api/core/v1.Probe"), 1738 }, 1739 }, 1740 "readinessProbe": { 1741 SchemaProps: spec.SchemaProps{ 1742 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", 1743 Ref: ref("k8s.io/api/core/v1.Probe"), 1744 }, 1745 }, 1746 "startupProbe": { 1747 SchemaProps: spec.SchemaProps{ 1748 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", 1749 Ref: ref("k8s.io/api/core/v1.Probe"), 1750 }, 1751 }, 1752 "lifecycle": { 1753 SchemaProps: spec.SchemaProps{ 1754 Description: "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", 1755 Ref: ref("k8s.io/api/core/v1.Lifecycle"), 1756 }, 1757 }, 1758 "terminationMessagePath": { 1759 SchemaProps: spec.SchemaProps{ 1760 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.", 1761 Type: []string{"string"}, 1762 Format: "", 1763 }, 1764 }, 1765 "terminationMessagePolicy": { 1766 SchemaProps: spec.SchemaProps{ 1767 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.", 1768 Type: []string{"string"}, 1769 Format: "", 1770 Enum: []interface{}{"FallbackToLogsOnError", "File"}}, 1771 }, 1772 "imagePullPolicy": { 1773 SchemaProps: spec.SchemaProps{ 1774 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", 1775 Type: []string{"string"}, 1776 Format: "", 1777 Enum: []interface{}{"Always", "IfNotPresent", "Never"}}, 1778 }, 1779 "securityContext": { 1780 SchemaProps: spec.SchemaProps{ 1781 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/", 1782 Ref: ref("k8s.io/api/core/v1.SecurityContext"), 1783 }, 1784 }, 1785 "stdin": { 1786 SchemaProps: spec.SchemaProps{ 1787 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.", 1788 Type: []string{"boolean"}, 1789 Format: "", 1790 }, 1791 }, 1792 "stdinOnce": { 1793 SchemaProps: spec.SchemaProps{ 1794 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", 1795 Type: []string{"boolean"}, 1796 Format: "", 1797 }, 1798 }, 1799 "tty": { 1800 SchemaProps: spec.SchemaProps{ 1801 Description: "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", 1802 Type: []string{"boolean"}, 1803 Format: "", 1804 }, 1805 }, 1806 }, 1807 Required: []string{"name"}, 1808 }, 1809 }, 1810 Dependencies: []string{ 1811 "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"}, 1812 } 1813 } 1814 1815 func schema_k8sio_api_core_v1_ContainerImage(ref common.ReferenceCallback) common.OpenAPIDefinition { 1816 return common.OpenAPIDefinition{ 1817 Schema: spec.Schema{ 1818 SchemaProps: spec.SchemaProps{ 1819 Description: "Describe a container image", 1820 Type: []string{"object"}, 1821 Properties: map[string]spec.Schema{ 1822 "names": { 1823 SchemaProps: spec.SchemaProps{ 1824 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\"]", 1825 Type: []string{"array"}, 1826 Items: &spec.SchemaOrArray{ 1827 Schema: &spec.Schema{ 1828 SchemaProps: spec.SchemaProps{ 1829 Default: "", 1830 Type: []string{"string"}, 1831 Format: "", 1832 }, 1833 }, 1834 }, 1835 }, 1836 }, 1837 "sizeBytes": { 1838 SchemaProps: spec.SchemaProps{ 1839 Description: "The size of the image in bytes.", 1840 Type: []string{"integer"}, 1841 Format: "int64", 1842 }, 1843 }, 1844 }, 1845 }, 1846 }, 1847 } 1848 } 1849 1850 func schema_k8sio_api_core_v1_ContainerPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 1851 return common.OpenAPIDefinition{ 1852 Schema: spec.Schema{ 1853 SchemaProps: spec.SchemaProps{ 1854 Description: "ContainerPort represents a network port in a single container.", 1855 Type: []string{"object"}, 1856 Properties: map[string]spec.Schema{ 1857 "name": { 1858 SchemaProps: spec.SchemaProps{ 1859 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.", 1860 Type: []string{"string"}, 1861 Format: "", 1862 }, 1863 }, 1864 "hostPort": { 1865 SchemaProps: spec.SchemaProps{ 1866 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.", 1867 Type: []string{"integer"}, 1868 Format: "int32", 1869 }, 1870 }, 1871 "containerPort": { 1872 SchemaProps: spec.SchemaProps{ 1873 Description: "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", 1874 Default: 0, 1875 Type: []string{"integer"}, 1876 Format: "int32", 1877 }, 1878 }, 1879 "protocol": { 1880 SchemaProps: spec.SchemaProps{ 1881 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.", 1882 Default: "TCP", 1883 Type: []string{"string"}, 1884 Format: "", 1885 Enum: []interface{}{"SCTP", "TCP", "UDP"}}, 1886 }, 1887 "hostIP": { 1888 SchemaProps: spec.SchemaProps{ 1889 Description: "What host IP to bind the external port to.", 1890 Type: []string{"string"}, 1891 Format: "", 1892 }, 1893 }, 1894 }, 1895 Required: []string{"containerPort"}, 1896 }, 1897 }, 1898 } 1899 } 1900 1901 func schema_k8sio_api_core_v1_ContainerState(ref common.ReferenceCallback) common.OpenAPIDefinition { 1902 return common.OpenAPIDefinition{ 1903 Schema: spec.Schema{ 1904 SchemaProps: spec.SchemaProps{ 1905 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.", 1906 Type: []string{"object"}, 1907 Properties: map[string]spec.Schema{ 1908 "waiting": { 1909 SchemaProps: spec.SchemaProps{ 1910 Description: "Details about a waiting container", 1911 Ref: ref("k8s.io/api/core/v1.ContainerStateWaiting"), 1912 }, 1913 }, 1914 "running": { 1915 SchemaProps: spec.SchemaProps{ 1916 Description: "Details about a running container", 1917 Ref: ref("k8s.io/api/core/v1.ContainerStateRunning"), 1918 }, 1919 }, 1920 "terminated": { 1921 SchemaProps: spec.SchemaProps{ 1922 Description: "Details about a terminated container", 1923 Ref: ref("k8s.io/api/core/v1.ContainerStateTerminated"), 1924 }, 1925 }, 1926 }, 1927 }, 1928 }, 1929 Dependencies: []string{ 1930 "k8s.io/api/core/v1.ContainerStateRunning", "k8s.io/api/core/v1.ContainerStateTerminated", "k8s.io/api/core/v1.ContainerStateWaiting"}, 1931 } 1932 } 1933 1934 func schema_k8sio_api_core_v1_ContainerStateRunning(ref common.ReferenceCallback) common.OpenAPIDefinition { 1935 return common.OpenAPIDefinition{ 1936 Schema: spec.Schema{ 1937 SchemaProps: spec.SchemaProps{ 1938 Description: "ContainerStateRunning is a running state of a container.", 1939 Type: []string{"object"}, 1940 Properties: map[string]spec.Schema{ 1941 "startedAt": { 1942 SchemaProps: spec.SchemaProps{ 1943 Description: "Time at which the container was last (re-)started", 1944 Default: map[string]interface{}{}, 1945 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1946 }, 1947 }, 1948 }, 1949 }, 1950 }, 1951 Dependencies: []string{ 1952 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 1953 } 1954 } 1955 1956 func schema_k8sio_api_core_v1_ContainerStateTerminated(ref common.ReferenceCallback) common.OpenAPIDefinition { 1957 return common.OpenAPIDefinition{ 1958 Schema: spec.Schema{ 1959 SchemaProps: spec.SchemaProps{ 1960 Description: "ContainerStateTerminated is a terminated state of a container.", 1961 Type: []string{"object"}, 1962 Properties: map[string]spec.Schema{ 1963 "exitCode": { 1964 SchemaProps: spec.SchemaProps{ 1965 Description: "Exit status from the last termination of the container", 1966 Default: 0, 1967 Type: []string{"integer"}, 1968 Format: "int32", 1969 }, 1970 }, 1971 "signal": { 1972 SchemaProps: spec.SchemaProps{ 1973 Description: "Signal from the last termination of the container", 1974 Type: []string{"integer"}, 1975 Format: "int32", 1976 }, 1977 }, 1978 "reason": { 1979 SchemaProps: spec.SchemaProps{ 1980 Description: "(brief) reason from the last termination of the container", 1981 Type: []string{"string"}, 1982 Format: "", 1983 }, 1984 }, 1985 "message": { 1986 SchemaProps: spec.SchemaProps{ 1987 Description: "Message regarding the last termination of the container", 1988 Type: []string{"string"}, 1989 Format: "", 1990 }, 1991 }, 1992 "startedAt": { 1993 SchemaProps: spec.SchemaProps{ 1994 Description: "Time at which previous execution of the container started", 1995 Default: map[string]interface{}{}, 1996 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 1997 }, 1998 }, 1999 "finishedAt": { 2000 SchemaProps: spec.SchemaProps{ 2001 Description: "Time at which the container last terminated", 2002 Default: map[string]interface{}{}, 2003 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 2004 }, 2005 }, 2006 "containerID": { 2007 SchemaProps: spec.SchemaProps{ 2008 Description: "Container's ID in the format '<type>://<container_id>'", 2009 Type: []string{"string"}, 2010 Format: "", 2011 }, 2012 }, 2013 }, 2014 Required: []string{"exitCode"}, 2015 }, 2016 }, 2017 Dependencies: []string{ 2018 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 2019 } 2020 } 2021 2022 func schema_k8sio_api_core_v1_ContainerStateWaiting(ref common.ReferenceCallback) common.OpenAPIDefinition { 2023 return common.OpenAPIDefinition{ 2024 Schema: spec.Schema{ 2025 SchemaProps: spec.SchemaProps{ 2026 Description: "ContainerStateWaiting is a waiting state of a container.", 2027 Type: []string{"object"}, 2028 Properties: map[string]spec.Schema{ 2029 "reason": { 2030 SchemaProps: spec.SchemaProps{ 2031 Description: "(brief) reason the container is not yet running.", 2032 Type: []string{"string"}, 2033 Format: "", 2034 }, 2035 }, 2036 "message": { 2037 SchemaProps: spec.SchemaProps{ 2038 Description: "Message regarding why the container is not yet running.", 2039 Type: []string{"string"}, 2040 Format: "", 2041 }, 2042 }, 2043 }, 2044 }, 2045 }, 2046 } 2047 } 2048 2049 func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 2050 return common.OpenAPIDefinition{ 2051 Schema: spec.Schema{ 2052 SchemaProps: spec.SchemaProps{ 2053 Description: "ContainerStatus contains details for the current status of this container.", 2054 Type: []string{"object"}, 2055 Properties: map[string]spec.Schema{ 2056 "name": { 2057 SchemaProps: spec.SchemaProps{ 2058 Description: "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.", 2059 Default: "", 2060 Type: []string{"string"}, 2061 Format: "", 2062 }, 2063 }, 2064 "state": { 2065 SchemaProps: spec.SchemaProps{ 2066 Description: "Details about the container's current condition.", 2067 Default: map[string]interface{}{}, 2068 Ref: ref("k8s.io/api/core/v1.ContainerState"), 2069 }, 2070 }, 2071 "lastState": { 2072 SchemaProps: spec.SchemaProps{ 2073 Description: "Details about the container's last termination condition.", 2074 Default: map[string]interface{}{}, 2075 Ref: ref("k8s.io/api/core/v1.ContainerState"), 2076 }, 2077 }, 2078 "ready": { 2079 SchemaProps: spec.SchemaProps{ 2080 Description: "Specifies whether the container has passed its readiness probe.", 2081 Default: false, 2082 Type: []string{"boolean"}, 2083 Format: "", 2084 }, 2085 }, 2086 "restartCount": { 2087 SchemaProps: spec.SchemaProps{ 2088 Description: "The number of times the container has been restarted.", 2089 Default: 0, 2090 Type: []string{"integer"}, 2091 Format: "int32", 2092 }, 2093 }, 2094 "image": { 2095 SchemaProps: spec.SchemaProps{ 2096 Description: "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images.", 2097 Default: "", 2098 Type: []string{"string"}, 2099 Format: "", 2100 }, 2101 }, 2102 "imageID": { 2103 SchemaProps: spec.SchemaProps{ 2104 Description: "ImageID of the container's image.", 2105 Default: "", 2106 Type: []string{"string"}, 2107 Format: "", 2108 }, 2109 }, 2110 "containerID": { 2111 SchemaProps: spec.SchemaProps{ 2112 Description: "Container's ID in the format '<type>://<container_id>'.", 2113 Type: []string{"string"}, 2114 Format: "", 2115 }, 2116 }, 2117 "started": { 2118 SchemaProps: spec.SchemaProps{ 2119 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.", 2120 Type: []string{"boolean"}, 2121 Format: "", 2122 }, 2123 }, 2124 }, 2125 Required: []string{"name", "ready", "restartCount", "image", "imageID"}, 2126 }, 2127 }, 2128 Dependencies: []string{ 2129 "k8s.io/api/core/v1.ContainerState"}, 2130 } 2131 } 2132 2133 func schema_k8sio_api_core_v1_DaemonEndpoint(ref common.ReferenceCallback) common.OpenAPIDefinition { 2134 return common.OpenAPIDefinition{ 2135 Schema: spec.Schema{ 2136 SchemaProps: spec.SchemaProps{ 2137 Description: "DaemonEndpoint contains information about a single Daemon endpoint.", 2138 Type: []string{"object"}, 2139 Properties: map[string]spec.Schema{ 2140 "Port": { 2141 SchemaProps: spec.SchemaProps{ 2142 Description: "Port number of the given endpoint.", 2143 Default: 0, 2144 Type: []string{"integer"}, 2145 Format: "int32", 2146 }, 2147 }, 2148 }, 2149 Required: []string{"Port"}, 2150 }, 2151 }, 2152 } 2153 } 2154 2155 func schema_k8sio_api_core_v1_DownwardAPIProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 2156 return common.OpenAPIDefinition{ 2157 Schema: spec.Schema{ 2158 SchemaProps: spec.SchemaProps{ 2159 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.", 2160 Type: []string{"object"}, 2161 Properties: map[string]spec.Schema{ 2162 "items": { 2163 SchemaProps: spec.SchemaProps{ 2164 Description: "Items is a list of DownwardAPIVolume file", 2165 Type: []string{"array"}, 2166 Items: &spec.SchemaOrArray{ 2167 Schema: &spec.Schema{ 2168 SchemaProps: spec.SchemaProps{ 2169 Default: map[string]interface{}{}, 2170 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeFile"), 2171 }, 2172 }, 2173 }, 2174 }, 2175 }, 2176 }, 2177 }, 2178 }, 2179 Dependencies: []string{ 2180 "k8s.io/api/core/v1.DownwardAPIVolumeFile"}, 2181 } 2182 } 2183 2184 func schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref common.ReferenceCallback) common.OpenAPIDefinition { 2185 return common.OpenAPIDefinition{ 2186 Schema: spec.Schema{ 2187 SchemaProps: spec.SchemaProps{ 2188 Description: "DownwardAPIVolumeFile represents information to create the file containing the pod field", 2189 Type: []string{"object"}, 2190 Properties: map[string]spec.Schema{ 2191 "path": { 2192 SchemaProps: spec.SchemaProps{ 2193 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 '..'", 2194 Default: "", 2195 Type: []string{"string"}, 2196 Format: "", 2197 }, 2198 }, 2199 "fieldRef": { 2200 SchemaProps: spec.SchemaProps{ 2201 Description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", 2202 Ref: ref("k8s.io/api/core/v1.ObjectFieldSelector"), 2203 }, 2204 }, 2205 "resourceFieldRef": { 2206 SchemaProps: spec.SchemaProps{ 2207 Description: "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", 2208 Ref: ref("k8s.io/api/core/v1.ResourceFieldSelector"), 2209 }, 2210 }, 2211 "mode": { 2212 SchemaProps: spec.SchemaProps{ 2213 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.", 2214 Type: []string{"integer"}, 2215 Format: "int32", 2216 }, 2217 }, 2218 }, 2219 Required: []string{"path"}, 2220 }, 2221 }, 2222 Dependencies: []string{ 2223 "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector"}, 2224 } 2225 } 2226 2227 func schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2228 return common.OpenAPIDefinition{ 2229 Schema: spec.Schema{ 2230 SchemaProps: spec.SchemaProps{ 2231 Description: "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", 2232 Type: []string{"object"}, 2233 Properties: map[string]spec.Schema{ 2234 "items": { 2235 SchemaProps: spec.SchemaProps{ 2236 Description: "Items is a list of downward API volume file", 2237 Type: []string{"array"}, 2238 Items: &spec.SchemaOrArray{ 2239 Schema: &spec.Schema{ 2240 SchemaProps: spec.SchemaProps{ 2241 Default: map[string]interface{}{}, 2242 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeFile"), 2243 }, 2244 }, 2245 }, 2246 }, 2247 }, 2248 "defaultMode": { 2249 SchemaProps: spec.SchemaProps{ 2250 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.", 2251 Type: []string{"integer"}, 2252 Format: "int32", 2253 }, 2254 }, 2255 }, 2256 }, 2257 }, 2258 Dependencies: []string{ 2259 "k8s.io/api/core/v1.DownwardAPIVolumeFile"}, 2260 } 2261 } 2262 2263 func schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2264 return common.OpenAPIDefinition{ 2265 Schema: spec.Schema{ 2266 SchemaProps: spec.SchemaProps{ 2267 Description: "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.", 2268 Type: []string{"object"}, 2269 Properties: map[string]spec.Schema{ 2270 "medium": { 2271 SchemaProps: spec.SchemaProps{ 2272 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", 2273 Type: []string{"string"}, 2274 Format: "", 2275 }, 2276 }, 2277 "sizeLimit": { 2278 SchemaProps: spec.SchemaProps{ 2279 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", 2280 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 2281 }, 2282 }, 2283 }, 2284 }, 2285 }, 2286 Dependencies: []string{ 2287 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 2288 } 2289 } 2290 2291 func schema_k8sio_api_core_v1_EndpointAddress(ref common.ReferenceCallback) common.OpenAPIDefinition { 2292 return common.OpenAPIDefinition{ 2293 Schema: spec.Schema{ 2294 SchemaProps: spec.SchemaProps{ 2295 Description: "EndpointAddress is a tuple that describes single IP address.", 2296 Type: []string{"object"}, 2297 Properties: map[string]spec.Schema{ 2298 "ip": { 2299 SchemaProps: spec.SchemaProps{ 2300 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.", 2301 Default: "", 2302 Type: []string{"string"}, 2303 Format: "", 2304 }, 2305 }, 2306 "hostname": { 2307 SchemaProps: spec.SchemaProps{ 2308 Description: "The Hostname of this endpoint", 2309 Type: []string{"string"}, 2310 Format: "", 2311 }, 2312 }, 2313 "nodeName": { 2314 SchemaProps: spec.SchemaProps{ 2315 Description: "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.", 2316 Type: []string{"string"}, 2317 Format: "", 2318 }, 2319 }, 2320 "targetRef": { 2321 SchemaProps: spec.SchemaProps{ 2322 Description: "Reference to object providing the endpoint.", 2323 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 2324 }, 2325 }, 2326 }, 2327 Required: []string{"ip"}, 2328 }, 2329 VendorExtensible: spec.VendorExtensible{ 2330 Extensions: spec.Extensions{ 2331 "x-kubernetes-map-type": "atomic", 2332 }, 2333 }, 2334 }, 2335 Dependencies: []string{ 2336 "k8s.io/api/core/v1.ObjectReference"}, 2337 } 2338 } 2339 2340 func schema_k8sio_api_core_v1_EndpointPort(ref common.ReferenceCallback) common.OpenAPIDefinition { 2341 return common.OpenAPIDefinition{ 2342 Schema: spec.Schema{ 2343 SchemaProps: spec.SchemaProps{ 2344 Description: "EndpointPort is a tuple that describes a single port.", 2345 Type: []string{"object"}, 2346 Properties: map[string]spec.Schema{ 2347 "name": { 2348 SchemaProps: spec.SchemaProps{ 2349 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.", 2350 Type: []string{"string"}, 2351 Format: "", 2352 }, 2353 }, 2354 "port": { 2355 SchemaProps: spec.SchemaProps{ 2356 Description: "The port number of the endpoint.", 2357 Default: 0, 2358 Type: []string{"integer"}, 2359 Format: "int32", 2360 }, 2361 }, 2362 "protocol": { 2363 SchemaProps: spec.SchemaProps{ 2364 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.", 2365 Type: []string{"string"}, 2366 Format: "", 2367 Enum: []interface{}{"SCTP", "TCP", "UDP"}}, 2368 }, 2369 "appProtocol": { 2370 SchemaProps: spec.SchemaProps{ 2371 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.", 2372 Type: []string{"string"}, 2373 Format: "", 2374 }, 2375 }, 2376 }, 2377 Required: []string{"port"}, 2378 }, 2379 VendorExtensible: spec.VendorExtensible{ 2380 Extensions: spec.Extensions{ 2381 "x-kubernetes-map-type": "atomic", 2382 }, 2383 }, 2384 }, 2385 } 2386 } 2387 2388 func schema_k8sio_api_core_v1_EndpointSubset(ref common.ReferenceCallback) common.OpenAPIDefinition { 2389 return common.OpenAPIDefinition{ 2390 Schema: spec.Schema{ 2391 SchemaProps: spec.SchemaProps{ 2392 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 ]", 2393 Type: []string{"object"}, 2394 Properties: map[string]spec.Schema{ 2395 "addresses": { 2396 SchemaProps: spec.SchemaProps{ 2397 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.", 2398 Type: []string{"array"}, 2399 Items: &spec.SchemaOrArray{ 2400 Schema: &spec.Schema{ 2401 SchemaProps: spec.SchemaProps{ 2402 Default: map[string]interface{}{}, 2403 Ref: ref("k8s.io/api/core/v1.EndpointAddress"), 2404 }, 2405 }, 2406 }, 2407 }, 2408 }, 2409 "notReadyAddresses": { 2410 SchemaProps: spec.SchemaProps{ 2411 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.", 2412 Type: []string{"array"}, 2413 Items: &spec.SchemaOrArray{ 2414 Schema: &spec.Schema{ 2415 SchemaProps: spec.SchemaProps{ 2416 Default: map[string]interface{}{}, 2417 Ref: ref("k8s.io/api/core/v1.EndpointAddress"), 2418 }, 2419 }, 2420 }, 2421 }, 2422 }, 2423 "ports": { 2424 SchemaProps: spec.SchemaProps{ 2425 Description: "Port numbers available on the related IP addresses.", 2426 Type: []string{"array"}, 2427 Items: &spec.SchemaOrArray{ 2428 Schema: &spec.Schema{ 2429 SchemaProps: spec.SchemaProps{ 2430 Default: map[string]interface{}{}, 2431 Ref: ref("k8s.io/api/core/v1.EndpointPort"), 2432 }, 2433 }, 2434 }, 2435 }, 2436 }, 2437 }, 2438 }, 2439 }, 2440 Dependencies: []string{ 2441 "k8s.io/api/core/v1.EndpointAddress", "k8s.io/api/core/v1.EndpointPort"}, 2442 } 2443 } 2444 2445 func schema_k8sio_api_core_v1_Endpoints(ref common.ReferenceCallback) common.OpenAPIDefinition { 2446 return common.OpenAPIDefinition{ 2447 Schema: spec.Schema{ 2448 SchemaProps: spec.SchemaProps{ 2449 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]", 2450 Type: []string{"object"}, 2451 Properties: map[string]spec.Schema{ 2452 "kind": { 2453 SchemaProps: spec.SchemaProps{ 2454 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2455 Type: []string{"string"}, 2456 Format: "", 2457 }, 2458 }, 2459 "apiVersion": { 2460 SchemaProps: spec.SchemaProps{ 2461 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 2462 Type: []string{"string"}, 2463 Format: "", 2464 }, 2465 }, 2466 "metadata": { 2467 SchemaProps: spec.SchemaProps{ 2468 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 2469 Default: map[string]interface{}{}, 2470 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 2471 }, 2472 }, 2473 "subsets": { 2474 SchemaProps: spec.SchemaProps{ 2475 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.", 2476 Type: []string{"array"}, 2477 Items: &spec.SchemaOrArray{ 2478 Schema: &spec.Schema{ 2479 SchemaProps: spec.SchemaProps{ 2480 Default: map[string]interface{}{}, 2481 Ref: ref("k8s.io/api/core/v1.EndpointSubset"), 2482 }, 2483 }, 2484 }, 2485 }, 2486 }, 2487 }, 2488 }, 2489 }, 2490 Dependencies: []string{ 2491 "k8s.io/api/core/v1.EndpointSubset", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 2492 } 2493 } 2494 2495 func schema_k8sio_api_core_v1_EndpointsList(ref common.ReferenceCallback) common.OpenAPIDefinition { 2496 return common.OpenAPIDefinition{ 2497 Schema: spec.Schema{ 2498 SchemaProps: spec.SchemaProps{ 2499 Description: "EndpointsList is a list of endpoints.", 2500 Type: []string{"object"}, 2501 Properties: map[string]spec.Schema{ 2502 "kind": { 2503 SchemaProps: spec.SchemaProps{ 2504 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2505 Type: []string{"string"}, 2506 Format: "", 2507 }, 2508 }, 2509 "apiVersion": { 2510 SchemaProps: spec.SchemaProps{ 2511 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 2512 Type: []string{"string"}, 2513 Format: "", 2514 }, 2515 }, 2516 "metadata": { 2517 SchemaProps: spec.SchemaProps{ 2518 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 2519 Default: map[string]interface{}{}, 2520 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 2521 }, 2522 }, 2523 "items": { 2524 SchemaProps: spec.SchemaProps{ 2525 Description: "List of endpoints.", 2526 Type: []string{"array"}, 2527 Items: &spec.SchemaOrArray{ 2528 Schema: &spec.Schema{ 2529 SchemaProps: spec.SchemaProps{ 2530 Default: map[string]interface{}{}, 2531 Ref: ref("k8s.io/api/core/v1.Endpoints"), 2532 }, 2533 }, 2534 }, 2535 }, 2536 }, 2537 }, 2538 Required: []string{"items"}, 2539 }, 2540 }, 2541 Dependencies: []string{ 2542 "k8s.io/api/core/v1.Endpoints", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 2543 } 2544 } 2545 2546 func schema_k8sio_api_core_v1_EnvFromSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2547 return common.OpenAPIDefinition{ 2548 Schema: spec.Schema{ 2549 SchemaProps: spec.SchemaProps{ 2550 Description: "EnvFromSource represents the source of a set of ConfigMaps", 2551 Type: []string{"object"}, 2552 Properties: map[string]spec.Schema{ 2553 "prefix": { 2554 SchemaProps: spec.SchemaProps{ 2555 Description: "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", 2556 Type: []string{"string"}, 2557 Format: "", 2558 }, 2559 }, 2560 "configMapRef": { 2561 SchemaProps: spec.SchemaProps{ 2562 Description: "The ConfigMap to select from", 2563 Ref: ref("k8s.io/api/core/v1.ConfigMapEnvSource"), 2564 }, 2565 }, 2566 "secretRef": { 2567 SchemaProps: spec.SchemaProps{ 2568 Description: "The Secret to select from", 2569 Ref: ref("k8s.io/api/core/v1.SecretEnvSource"), 2570 }, 2571 }, 2572 }, 2573 }, 2574 }, 2575 Dependencies: []string{ 2576 "k8s.io/api/core/v1.ConfigMapEnvSource", "k8s.io/api/core/v1.SecretEnvSource"}, 2577 } 2578 } 2579 2580 func schema_k8sio_api_core_v1_EnvVar(ref common.ReferenceCallback) common.OpenAPIDefinition { 2581 return common.OpenAPIDefinition{ 2582 Schema: spec.Schema{ 2583 SchemaProps: spec.SchemaProps{ 2584 Description: "EnvVar represents an environment variable present in a Container.", 2585 Type: []string{"object"}, 2586 Properties: map[string]spec.Schema{ 2587 "name": { 2588 SchemaProps: spec.SchemaProps{ 2589 Description: "Name of the environment variable. Must be a C_IDENTIFIER.", 2590 Default: "", 2591 Type: []string{"string"}, 2592 Format: "", 2593 }, 2594 }, 2595 "value": { 2596 SchemaProps: spec.SchemaProps{ 2597 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 \"\".", 2598 Type: []string{"string"}, 2599 Format: "", 2600 }, 2601 }, 2602 "valueFrom": { 2603 SchemaProps: spec.SchemaProps{ 2604 Description: "Source for the environment variable's value. Cannot be used if value is not empty.", 2605 Ref: ref("k8s.io/api/core/v1.EnvVarSource"), 2606 }, 2607 }, 2608 }, 2609 Required: []string{"name"}, 2610 }, 2611 }, 2612 Dependencies: []string{ 2613 "k8s.io/api/core/v1.EnvVarSource"}, 2614 } 2615 } 2616 2617 func schema_k8sio_api_core_v1_EnvVarSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 2618 return common.OpenAPIDefinition{ 2619 Schema: spec.Schema{ 2620 SchemaProps: spec.SchemaProps{ 2621 Description: "EnvVarSource represents a source for the value of an EnvVar.", 2622 Type: []string{"object"}, 2623 Properties: map[string]spec.Schema{ 2624 "fieldRef": { 2625 SchemaProps: spec.SchemaProps{ 2626 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.", 2627 Ref: ref("k8s.io/api/core/v1.ObjectFieldSelector"), 2628 }, 2629 }, 2630 "resourceFieldRef": { 2631 SchemaProps: spec.SchemaProps{ 2632 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.", 2633 Ref: ref("k8s.io/api/core/v1.ResourceFieldSelector"), 2634 }, 2635 }, 2636 "configMapKeyRef": { 2637 SchemaProps: spec.SchemaProps{ 2638 Description: "Selects a key of a ConfigMap.", 2639 Ref: ref("k8s.io/api/core/v1.ConfigMapKeySelector"), 2640 }, 2641 }, 2642 "secretKeyRef": { 2643 SchemaProps: spec.SchemaProps{ 2644 Description: "Selects a key of a secret in the pod's namespace", 2645 Ref: ref("k8s.io/api/core/v1.SecretKeySelector"), 2646 }, 2647 }, 2648 }, 2649 }, 2650 }, 2651 Dependencies: []string{ 2652 "k8s.io/api/core/v1.ConfigMapKeySelector", "k8s.io/api/core/v1.ObjectFieldSelector", "k8s.io/api/core/v1.ResourceFieldSelector", "k8s.io/api/core/v1.SecretKeySelector"}, 2653 } 2654 } 2655 2656 func schema_k8sio_api_core_v1_EphemeralContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { 2657 return common.OpenAPIDefinition{ 2658 Schema: spec.Schema{ 2659 SchemaProps: spec.SchemaProps{ 2660 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.", 2661 Type: []string{"object"}, 2662 Properties: map[string]spec.Schema{ 2663 "name": { 2664 SchemaProps: spec.SchemaProps{ 2665 Description: "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", 2666 Default: "", 2667 Type: []string{"string"}, 2668 Format: "", 2669 }, 2670 }, 2671 "image": { 2672 SchemaProps: spec.SchemaProps{ 2673 Description: "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", 2674 Type: []string{"string"}, 2675 Format: "", 2676 }, 2677 }, 2678 "command": { 2679 SchemaProps: spec.SchemaProps{ 2680 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", 2681 Type: []string{"array"}, 2682 Items: &spec.SchemaOrArray{ 2683 Schema: &spec.Schema{ 2684 SchemaProps: spec.SchemaProps{ 2685 Default: "", 2686 Type: []string{"string"}, 2687 Format: "", 2688 }, 2689 }, 2690 }, 2691 }, 2692 }, 2693 "args": { 2694 SchemaProps: spec.SchemaProps{ 2695 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", 2696 Type: []string{"array"}, 2697 Items: &spec.SchemaOrArray{ 2698 Schema: &spec.Schema{ 2699 SchemaProps: spec.SchemaProps{ 2700 Default: "", 2701 Type: []string{"string"}, 2702 Format: "", 2703 }, 2704 }, 2705 }, 2706 }, 2707 }, 2708 "workingDir": { 2709 SchemaProps: spec.SchemaProps{ 2710 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.", 2711 Type: []string{"string"}, 2712 Format: "", 2713 }, 2714 }, 2715 "ports": { 2716 VendorExtensible: spec.VendorExtensible{ 2717 Extensions: spec.Extensions{ 2718 "x-kubernetes-list-map-keys": []interface{}{ 2719 "containerPort", 2720 "protocol", 2721 }, 2722 "x-kubernetes-list-type": "map", 2723 "x-kubernetes-patch-merge-key": "containerPort", 2724 "x-kubernetes-patch-strategy": "merge", 2725 }, 2726 }, 2727 SchemaProps: spec.SchemaProps{ 2728 Description: "Ports are not allowed for ephemeral containers.", 2729 Type: []string{"array"}, 2730 Items: &spec.SchemaOrArray{ 2731 Schema: &spec.Schema{ 2732 SchemaProps: spec.SchemaProps{ 2733 Default: map[string]interface{}{}, 2734 Ref: ref("k8s.io/api/core/v1.ContainerPort"), 2735 }, 2736 }, 2737 }, 2738 }, 2739 }, 2740 "envFrom": { 2741 SchemaProps: spec.SchemaProps{ 2742 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.", 2743 Type: []string{"array"}, 2744 Items: &spec.SchemaOrArray{ 2745 Schema: &spec.Schema{ 2746 SchemaProps: spec.SchemaProps{ 2747 Default: map[string]interface{}{}, 2748 Ref: ref("k8s.io/api/core/v1.EnvFromSource"), 2749 }, 2750 }, 2751 }, 2752 }, 2753 }, 2754 "env": { 2755 VendorExtensible: spec.VendorExtensible{ 2756 Extensions: spec.Extensions{ 2757 "x-kubernetes-patch-merge-key": "name", 2758 "x-kubernetes-patch-strategy": "merge", 2759 }, 2760 }, 2761 SchemaProps: spec.SchemaProps{ 2762 Description: "List of environment variables to set in the container. Cannot be updated.", 2763 Type: []string{"array"}, 2764 Items: &spec.SchemaOrArray{ 2765 Schema: &spec.Schema{ 2766 SchemaProps: spec.SchemaProps{ 2767 Default: map[string]interface{}{}, 2768 Ref: ref("k8s.io/api/core/v1.EnvVar"), 2769 }, 2770 }, 2771 }, 2772 }, 2773 }, 2774 "resources": { 2775 SchemaProps: spec.SchemaProps{ 2776 Description: "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.", 2777 Default: map[string]interface{}{}, 2778 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 2779 }, 2780 }, 2781 "volumeMounts": { 2782 VendorExtensible: spec.VendorExtensible{ 2783 Extensions: spec.Extensions{ 2784 "x-kubernetes-patch-merge-key": "mountPath", 2785 "x-kubernetes-patch-strategy": "merge", 2786 }, 2787 }, 2788 SchemaProps: spec.SchemaProps{ 2789 Description: "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", 2790 Type: []string{"array"}, 2791 Items: &spec.SchemaOrArray{ 2792 Schema: &spec.Schema{ 2793 SchemaProps: spec.SchemaProps{ 2794 Default: map[string]interface{}{}, 2795 Ref: ref("k8s.io/api/core/v1.VolumeMount"), 2796 }, 2797 }, 2798 }, 2799 }, 2800 }, 2801 "volumeDevices": { 2802 VendorExtensible: spec.VendorExtensible{ 2803 Extensions: spec.Extensions{ 2804 "x-kubernetes-patch-merge-key": "devicePath", 2805 "x-kubernetes-patch-strategy": "merge", 2806 }, 2807 }, 2808 SchemaProps: spec.SchemaProps{ 2809 Description: "volumeDevices is the list of block devices to be used by the container.", 2810 Type: []string{"array"}, 2811 Items: &spec.SchemaOrArray{ 2812 Schema: &spec.Schema{ 2813 SchemaProps: spec.SchemaProps{ 2814 Default: map[string]interface{}{}, 2815 Ref: ref("k8s.io/api/core/v1.VolumeDevice"), 2816 }, 2817 }, 2818 }, 2819 }, 2820 }, 2821 "livenessProbe": { 2822 SchemaProps: spec.SchemaProps{ 2823 Description: "Probes are not allowed for ephemeral containers.", 2824 Ref: ref("k8s.io/api/core/v1.Probe"), 2825 }, 2826 }, 2827 "readinessProbe": { 2828 SchemaProps: spec.SchemaProps{ 2829 Description: "Probes are not allowed for ephemeral containers.", 2830 Ref: ref("k8s.io/api/core/v1.Probe"), 2831 }, 2832 }, 2833 "startupProbe": { 2834 SchemaProps: spec.SchemaProps{ 2835 Description: "Probes are not allowed for ephemeral containers.", 2836 Ref: ref("k8s.io/api/core/v1.Probe"), 2837 }, 2838 }, 2839 "lifecycle": { 2840 SchemaProps: spec.SchemaProps{ 2841 Description: "Lifecycle is not allowed for ephemeral containers.", 2842 Ref: ref("k8s.io/api/core/v1.Lifecycle"), 2843 }, 2844 }, 2845 "terminationMessagePath": { 2846 SchemaProps: spec.SchemaProps{ 2847 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.", 2848 Type: []string{"string"}, 2849 Format: "", 2850 }, 2851 }, 2852 "terminationMessagePolicy": { 2853 SchemaProps: spec.SchemaProps{ 2854 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.", 2855 Type: []string{"string"}, 2856 Format: "", 2857 Enum: []interface{}{"FallbackToLogsOnError", "File"}}, 2858 }, 2859 "imagePullPolicy": { 2860 SchemaProps: spec.SchemaProps{ 2861 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", 2862 Type: []string{"string"}, 2863 Format: "", 2864 Enum: []interface{}{"Always", "IfNotPresent", "Never"}}, 2865 }, 2866 "securityContext": { 2867 SchemaProps: spec.SchemaProps{ 2868 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.", 2869 Ref: ref("k8s.io/api/core/v1.SecurityContext"), 2870 }, 2871 }, 2872 "stdin": { 2873 SchemaProps: spec.SchemaProps{ 2874 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.", 2875 Type: []string{"boolean"}, 2876 Format: "", 2877 }, 2878 }, 2879 "stdinOnce": { 2880 SchemaProps: spec.SchemaProps{ 2881 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", 2882 Type: []string{"boolean"}, 2883 Format: "", 2884 }, 2885 }, 2886 "tty": { 2887 SchemaProps: spec.SchemaProps{ 2888 Description: "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", 2889 Type: []string{"boolean"}, 2890 Format: "", 2891 }, 2892 }, 2893 "targetContainerName": { 2894 SchemaProps: spec.SchemaProps{ 2895 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.", 2896 Type: []string{"string"}, 2897 Format: "", 2898 }, 2899 }, 2900 }, 2901 Required: []string{"name"}, 2902 }, 2903 }, 2904 Dependencies: []string{ 2905 "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"}, 2906 } 2907 } 2908 2909 func schema_k8sio_api_core_v1_EphemeralContainerCommon(ref common.ReferenceCallback) common.OpenAPIDefinition { 2910 return common.OpenAPIDefinition{ 2911 Schema: spec.Schema{ 2912 SchemaProps: spec.SchemaProps{ 2913 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.", 2914 Type: []string{"object"}, 2915 Properties: map[string]spec.Schema{ 2916 "name": { 2917 SchemaProps: spec.SchemaProps{ 2918 Description: "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.", 2919 Default: "", 2920 Type: []string{"string"}, 2921 Format: "", 2922 }, 2923 }, 2924 "image": { 2925 SchemaProps: spec.SchemaProps{ 2926 Description: "Container image name. More info: https://kubernetes.io/docs/concepts/containers/images", 2927 Type: []string{"string"}, 2928 Format: "", 2929 }, 2930 }, 2931 "command": { 2932 SchemaProps: spec.SchemaProps{ 2933 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", 2934 Type: []string{"array"}, 2935 Items: &spec.SchemaOrArray{ 2936 Schema: &spec.Schema{ 2937 SchemaProps: spec.SchemaProps{ 2938 Default: "", 2939 Type: []string{"string"}, 2940 Format: "", 2941 }, 2942 }, 2943 }, 2944 }, 2945 }, 2946 "args": { 2947 SchemaProps: spec.SchemaProps{ 2948 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", 2949 Type: []string{"array"}, 2950 Items: &spec.SchemaOrArray{ 2951 Schema: &spec.Schema{ 2952 SchemaProps: spec.SchemaProps{ 2953 Default: "", 2954 Type: []string{"string"}, 2955 Format: "", 2956 }, 2957 }, 2958 }, 2959 }, 2960 }, 2961 "workingDir": { 2962 SchemaProps: spec.SchemaProps{ 2963 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.", 2964 Type: []string{"string"}, 2965 Format: "", 2966 }, 2967 }, 2968 "ports": { 2969 VendorExtensible: spec.VendorExtensible{ 2970 Extensions: spec.Extensions{ 2971 "x-kubernetes-list-map-keys": []interface{}{ 2972 "containerPort", 2973 "protocol", 2974 }, 2975 "x-kubernetes-list-type": "map", 2976 "x-kubernetes-patch-merge-key": "containerPort", 2977 "x-kubernetes-patch-strategy": "merge", 2978 }, 2979 }, 2980 SchemaProps: spec.SchemaProps{ 2981 Description: "Ports are not allowed for ephemeral containers.", 2982 Type: []string{"array"}, 2983 Items: &spec.SchemaOrArray{ 2984 Schema: &spec.Schema{ 2985 SchemaProps: spec.SchemaProps{ 2986 Default: map[string]interface{}{}, 2987 Ref: ref("k8s.io/api/core/v1.ContainerPort"), 2988 }, 2989 }, 2990 }, 2991 }, 2992 }, 2993 "envFrom": { 2994 SchemaProps: spec.SchemaProps{ 2995 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.", 2996 Type: []string{"array"}, 2997 Items: &spec.SchemaOrArray{ 2998 Schema: &spec.Schema{ 2999 SchemaProps: spec.SchemaProps{ 3000 Default: map[string]interface{}{}, 3001 Ref: ref("k8s.io/api/core/v1.EnvFromSource"), 3002 }, 3003 }, 3004 }, 3005 }, 3006 }, 3007 "env": { 3008 VendorExtensible: spec.VendorExtensible{ 3009 Extensions: spec.Extensions{ 3010 "x-kubernetes-patch-merge-key": "name", 3011 "x-kubernetes-patch-strategy": "merge", 3012 }, 3013 }, 3014 SchemaProps: spec.SchemaProps{ 3015 Description: "List of environment variables to set in the container. Cannot be updated.", 3016 Type: []string{"array"}, 3017 Items: &spec.SchemaOrArray{ 3018 Schema: &spec.Schema{ 3019 SchemaProps: spec.SchemaProps{ 3020 Default: map[string]interface{}{}, 3021 Ref: ref("k8s.io/api/core/v1.EnvVar"), 3022 }, 3023 }, 3024 }, 3025 }, 3026 }, 3027 "resources": { 3028 SchemaProps: spec.SchemaProps{ 3029 Description: "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.", 3030 Default: map[string]interface{}{}, 3031 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 3032 }, 3033 }, 3034 "volumeMounts": { 3035 VendorExtensible: spec.VendorExtensible{ 3036 Extensions: spec.Extensions{ 3037 "x-kubernetes-patch-merge-key": "mountPath", 3038 "x-kubernetes-patch-strategy": "merge", 3039 }, 3040 }, 3041 SchemaProps: spec.SchemaProps{ 3042 Description: "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.", 3043 Type: []string{"array"}, 3044 Items: &spec.SchemaOrArray{ 3045 Schema: &spec.Schema{ 3046 SchemaProps: spec.SchemaProps{ 3047 Default: map[string]interface{}{}, 3048 Ref: ref("k8s.io/api/core/v1.VolumeMount"), 3049 }, 3050 }, 3051 }, 3052 }, 3053 }, 3054 "volumeDevices": { 3055 VendorExtensible: spec.VendorExtensible{ 3056 Extensions: spec.Extensions{ 3057 "x-kubernetes-patch-merge-key": "devicePath", 3058 "x-kubernetes-patch-strategy": "merge", 3059 }, 3060 }, 3061 SchemaProps: spec.SchemaProps{ 3062 Description: "volumeDevices is the list of block devices to be used by the container.", 3063 Type: []string{"array"}, 3064 Items: &spec.SchemaOrArray{ 3065 Schema: &spec.Schema{ 3066 SchemaProps: spec.SchemaProps{ 3067 Default: map[string]interface{}{}, 3068 Ref: ref("k8s.io/api/core/v1.VolumeDevice"), 3069 }, 3070 }, 3071 }, 3072 }, 3073 }, 3074 "livenessProbe": { 3075 SchemaProps: spec.SchemaProps{ 3076 Description: "Probes are not allowed for ephemeral containers.", 3077 Ref: ref("k8s.io/api/core/v1.Probe"), 3078 }, 3079 }, 3080 "readinessProbe": { 3081 SchemaProps: spec.SchemaProps{ 3082 Description: "Probes are not allowed for ephemeral containers.", 3083 Ref: ref("k8s.io/api/core/v1.Probe"), 3084 }, 3085 }, 3086 "startupProbe": { 3087 SchemaProps: spec.SchemaProps{ 3088 Description: "Probes are not allowed for ephemeral containers.", 3089 Ref: ref("k8s.io/api/core/v1.Probe"), 3090 }, 3091 }, 3092 "lifecycle": { 3093 SchemaProps: spec.SchemaProps{ 3094 Description: "Lifecycle is not allowed for ephemeral containers.", 3095 Ref: ref("k8s.io/api/core/v1.Lifecycle"), 3096 }, 3097 }, 3098 "terminationMessagePath": { 3099 SchemaProps: spec.SchemaProps{ 3100 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.", 3101 Type: []string{"string"}, 3102 Format: "", 3103 }, 3104 }, 3105 "terminationMessagePolicy": { 3106 SchemaProps: spec.SchemaProps{ 3107 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.", 3108 Type: []string{"string"}, 3109 Format: "", 3110 Enum: []interface{}{"FallbackToLogsOnError", "File"}}, 3111 }, 3112 "imagePullPolicy": { 3113 SchemaProps: spec.SchemaProps{ 3114 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", 3115 Type: []string{"string"}, 3116 Format: "", 3117 Enum: []interface{}{"Always", "IfNotPresent", "Never"}}, 3118 }, 3119 "securityContext": { 3120 SchemaProps: spec.SchemaProps{ 3121 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.", 3122 Ref: ref("k8s.io/api/core/v1.SecurityContext"), 3123 }, 3124 }, 3125 "stdin": { 3126 SchemaProps: spec.SchemaProps{ 3127 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.", 3128 Type: []string{"boolean"}, 3129 Format: "", 3130 }, 3131 }, 3132 "stdinOnce": { 3133 SchemaProps: spec.SchemaProps{ 3134 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", 3135 Type: []string{"boolean"}, 3136 Format: "", 3137 }, 3138 }, 3139 "tty": { 3140 SchemaProps: spec.SchemaProps{ 3141 Description: "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.", 3142 Type: []string{"boolean"}, 3143 Format: "", 3144 }, 3145 }, 3146 }, 3147 Required: []string{"name"}, 3148 }, 3149 }, 3150 Dependencies: []string{ 3151 "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"}, 3152 } 3153 } 3154 3155 func schema_k8sio_api_core_v1_EphemeralVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3156 return common.OpenAPIDefinition{ 3157 Schema: spec.Schema{ 3158 SchemaProps: spec.SchemaProps{ 3159 Description: "Represents an ephemeral volume that is handled by a normal storage driver.", 3160 Type: []string{"object"}, 3161 Properties: map[string]spec.Schema{ 3162 "volumeClaimTemplate": { 3163 SchemaProps: spec.SchemaProps{ 3164 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.", 3165 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimTemplate"), 3166 }, 3167 }, 3168 }, 3169 }, 3170 }, 3171 Dependencies: []string{ 3172 "k8s.io/api/core/v1.PersistentVolumeClaimTemplate"}, 3173 } 3174 } 3175 3176 func schema_k8sio_api_core_v1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { 3177 return common.OpenAPIDefinition{ 3178 Schema: spec.Schema{ 3179 SchemaProps: spec.SchemaProps{ 3180 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.", 3181 Type: []string{"object"}, 3182 Properties: map[string]spec.Schema{ 3183 "kind": { 3184 SchemaProps: spec.SchemaProps{ 3185 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3186 Type: []string{"string"}, 3187 Format: "", 3188 }, 3189 }, 3190 "apiVersion": { 3191 SchemaProps: spec.SchemaProps{ 3192 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3193 Type: []string{"string"}, 3194 Format: "", 3195 }, 3196 }, 3197 "metadata": { 3198 SchemaProps: spec.SchemaProps{ 3199 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 3200 Default: map[string]interface{}{}, 3201 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 3202 }, 3203 }, 3204 "involvedObject": { 3205 SchemaProps: spec.SchemaProps{ 3206 Description: "The object that this event is about.", 3207 Default: map[string]interface{}{}, 3208 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 3209 }, 3210 }, 3211 "reason": { 3212 SchemaProps: spec.SchemaProps{ 3213 Description: "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", 3214 Type: []string{"string"}, 3215 Format: "", 3216 }, 3217 }, 3218 "message": { 3219 SchemaProps: spec.SchemaProps{ 3220 Description: "A human-readable description of the status of this operation.", 3221 Type: []string{"string"}, 3222 Format: "", 3223 }, 3224 }, 3225 "source": { 3226 SchemaProps: spec.SchemaProps{ 3227 Description: "The component reporting this event. Should be a short machine understandable string.", 3228 Default: map[string]interface{}{}, 3229 Ref: ref("k8s.io/api/core/v1.EventSource"), 3230 }, 3231 }, 3232 "firstTimestamp": { 3233 SchemaProps: spec.SchemaProps{ 3234 Description: "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", 3235 Default: map[string]interface{}{}, 3236 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 3237 }, 3238 }, 3239 "lastTimestamp": { 3240 SchemaProps: spec.SchemaProps{ 3241 Description: "The time at which the most recent occurrence of this event was recorded.", 3242 Default: map[string]interface{}{}, 3243 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 3244 }, 3245 }, 3246 "count": { 3247 SchemaProps: spec.SchemaProps{ 3248 Description: "The number of times this event has occurred.", 3249 Type: []string{"integer"}, 3250 Format: "int32", 3251 }, 3252 }, 3253 "type": { 3254 SchemaProps: spec.SchemaProps{ 3255 Description: "Type of this event (Normal, Warning), new types could be added in the future", 3256 Type: []string{"string"}, 3257 Format: "", 3258 }, 3259 }, 3260 "eventTime": { 3261 SchemaProps: spec.SchemaProps{ 3262 Description: "Time when this Event was first observed.", 3263 Default: map[string]interface{}{}, 3264 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), 3265 }, 3266 }, 3267 "series": { 3268 SchemaProps: spec.SchemaProps{ 3269 Description: "Data about the Event series this event represents or nil if it's a singleton Event.", 3270 Ref: ref("k8s.io/api/core/v1.EventSeries"), 3271 }, 3272 }, 3273 "action": { 3274 SchemaProps: spec.SchemaProps{ 3275 Description: "What action was taken/failed regarding to the Regarding object.", 3276 Type: []string{"string"}, 3277 Format: "", 3278 }, 3279 }, 3280 "related": { 3281 SchemaProps: spec.SchemaProps{ 3282 Description: "Optional secondary object for more complex actions.", 3283 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 3284 }, 3285 }, 3286 "reportingComponent": { 3287 SchemaProps: spec.SchemaProps{ 3288 Description: "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.", 3289 Default: "", 3290 Type: []string{"string"}, 3291 Format: "", 3292 }, 3293 }, 3294 "reportingInstance": { 3295 SchemaProps: spec.SchemaProps{ 3296 Description: "ID of the controller instance, e.g. `kubelet-xyzf`.", 3297 Default: "", 3298 Type: []string{"string"}, 3299 Format: "", 3300 }, 3301 }, 3302 }, 3303 Required: []string{"metadata", "involvedObject"}, 3304 }, 3305 }, 3306 Dependencies: []string{ 3307 "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"}, 3308 } 3309 } 3310 3311 func schema_k8sio_api_core_v1_EventList(ref common.ReferenceCallback) common.OpenAPIDefinition { 3312 return common.OpenAPIDefinition{ 3313 Schema: spec.Schema{ 3314 SchemaProps: spec.SchemaProps{ 3315 Description: "EventList is a list of events.", 3316 Type: []string{"object"}, 3317 Properties: map[string]spec.Schema{ 3318 "kind": { 3319 SchemaProps: spec.SchemaProps{ 3320 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3321 Type: []string{"string"}, 3322 Format: "", 3323 }, 3324 }, 3325 "apiVersion": { 3326 SchemaProps: spec.SchemaProps{ 3327 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 3328 Type: []string{"string"}, 3329 Format: "", 3330 }, 3331 }, 3332 "metadata": { 3333 SchemaProps: spec.SchemaProps{ 3334 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 3335 Default: map[string]interface{}{}, 3336 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 3337 }, 3338 }, 3339 "items": { 3340 SchemaProps: spec.SchemaProps{ 3341 Description: "List of events", 3342 Type: []string{"array"}, 3343 Items: &spec.SchemaOrArray{ 3344 Schema: &spec.Schema{ 3345 SchemaProps: spec.SchemaProps{ 3346 Default: map[string]interface{}{}, 3347 Ref: ref("k8s.io/api/core/v1.Event"), 3348 }, 3349 }, 3350 }, 3351 }, 3352 }, 3353 }, 3354 Required: []string{"items"}, 3355 }, 3356 }, 3357 Dependencies: []string{ 3358 "k8s.io/api/core/v1.Event", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 3359 } 3360 } 3361 3362 func schema_k8sio_api_core_v1_EventSeries(ref common.ReferenceCallback) common.OpenAPIDefinition { 3363 return common.OpenAPIDefinition{ 3364 Schema: spec.Schema{ 3365 SchemaProps: spec.SchemaProps{ 3366 Description: "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.", 3367 Type: []string{"object"}, 3368 Properties: map[string]spec.Schema{ 3369 "count": { 3370 SchemaProps: spec.SchemaProps{ 3371 Description: "Number of occurrences in this series up to the last heartbeat time", 3372 Type: []string{"integer"}, 3373 Format: "int32", 3374 }, 3375 }, 3376 "lastObservedTime": { 3377 SchemaProps: spec.SchemaProps{ 3378 Description: "Time of the last occurrence observed", 3379 Default: map[string]interface{}{}, 3380 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"), 3381 }, 3382 }, 3383 }, 3384 }, 3385 }, 3386 Dependencies: []string{ 3387 "k8s.io/apimachinery/pkg/apis/meta/v1.MicroTime"}, 3388 } 3389 } 3390 3391 func schema_k8sio_api_core_v1_EventSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3392 return common.OpenAPIDefinition{ 3393 Schema: spec.Schema{ 3394 SchemaProps: spec.SchemaProps{ 3395 Description: "EventSource contains information for an event.", 3396 Type: []string{"object"}, 3397 Properties: map[string]spec.Schema{ 3398 "component": { 3399 SchemaProps: spec.SchemaProps{ 3400 Description: "Component from which the event is generated.", 3401 Type: []string{"string"}, 3402 Format: "", 3403 }, 3404 }, 3405 "host": { 3406 SchemaProps: spec.SchemaProps{ 3407 Description: "Node name on which the event is generated.", 3408 Type: []string{"string"}, 3409 Format: "", 3410 }, 3411 }, 3412 }, 3413 }, 3414 }, 3415 } 3416 } 3417 3418 func schema_k8sio_api_core_v1_ExecAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 3419 return common.OpenAPIDefinition{ 3420 Schema: spec.Schema{ 3421 SchemaProps: spec.SchemaProps{ 3422 Description: "ExecAction describes a \"run in container\" action.", 3423 Type: []string{"object"}, 3424 Properties: map[string]spec.Schema{ 3425 "command": { 3426 SchemaProps: spec.SchemaProps{ 3427 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.", 3428 Type: []string{"array"}, 3429 Items: &spec.SchemaOrArray{ 3430 Schema: &spec.Schema{ 3431 SchemaProps: spec.SchemaProps{ 3432 Default: "", 3433 Type: []string{"string"}, 3434 Format: "", 3435 }, 3436 }, 3437 }, 3438 }, 3439 }, 3440 }, 3441 }, 3442 }, 3443 } 3444 } 3445 3446 func schema_k8sio_api_core_v1_FCVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3447 return common.OpenAPIDefinition{ 3448 Schema: spec.Schema{ 3449 SchemaProps: spec.SchemaProps{ 3450 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.", 3451 Type: []string{"object"}, 3452 Properties: map[string]spec.Schema{ 3453 "targetWWNs": { 3454 SchemaProps: spec.SchemaProps{ 3455 Description: "targetWWNs is Optional: FC target worldwide names (WWNs)", 3456 Type: []string{"array"}, 3457 Items: &spec.SchemaOrArray{ 3458 Schema: &spec.Schema{ 3459 SchemaProps: spec.SchemaProps{ 3460 Default: "", 3461 Type: []string{"string"}, 3462 Format: "", 3463 }, 3464 }, 3465 }, 3466 }, 3467 }, 3468 "lun": { 3469 SchemaProps: spec.SchemaProps{ 3470 Description: "lun is Optional: FC target lun number", 3471 Type: []string{"integer"}, 3472 Format: "int32", 3473 }, 3474 }, 3475 "fsType": { 3476 SchemaProps: spec.SchemaProps{ 3477 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.", 3478 Type: []string{"string"}, 3479 Format: "", 3480 }, 3481 }, 3482 "readOnly": { 3483 SchemaProps: spec.SchemaProps{ 3484 Description: "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 3485 Type: []string{"boolean"}, 3486 Format: "", 3487 }, 3488 }, 3489 "wwids": { 3490 SchemaProps: spec.SchemaProps{ 3491 Description: "wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.", 3492 Type: []string{"array"}, 3493 Items: &spec.SchemaOrArray{ 3494 Schema: &spec.Schema{ 3495 SchemaProps: spec.SchemaProps{ 3496 Default: "", 3497 Type: []string{"string"}, 3498 Format: "", 3499 }, 3500 }, 3501 }, 3502 }, 3503 }, 3504 }, 3505 }, 3506 }, 3507 } 3508 } 3509 3510 func schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3511 return common.OpenAPIDefinition{ 3512 Schema: spec.Schema{ 3513 SchemaProps: spec.SchemaProps{ 3514 Description: "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.", 3515 Type: []string{"object"}, 3516 Properties: map[string]spec.Schema{ 3517 "driver": { 3518 SchemaProps: spec.SchemaProps{ 3519 Description: "driver is the name of the driver to use for this volume.", 3520 Default: "", 3521 Type: []string{"string"}, 3522 Format: "", 3523 }, 3524 }, 3525 "fsType": { 3526 SchemaProps: spec.SchemaProps{ 3527 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.", 3528 Type: []string{"string"}, 3529 Format: "", 3530 }, 3531 }, 3532 "secretRef": { 3533 SchemaProps: spec.SchemaProps{ 3534 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.", 3535 Ref: ref("k8s.io/api/core/v1.SecretReference"), 3536 }, 3537 }, 3538 "readOnly": { 3539 SchemaProps: spec.SchemaProps{ 3540 Description: "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 3541 Type: []string{"boolean"}, 3542 Format: "", 3543 }, 3544 }, 3545 "options": { 3546 SchemaProps: spec.SchemaProps{ 3547 Description: "options is Optional: this field holds extra command options if any.", 3548 Type: []string{"object"}, 3549 AdditionalProperties: &spec.SchemaOrBool{ 3550 Allows: true, 3551 Schema: &spec.Schema{ 3552 SchemaProps: spec.SchemaProps{ 3553 Default: "", 3554 Type: []string{"string"}, 3555 Format: "", 3556 }, 3557 }, 3558 }, 3559 }, 3560 }, 3561 }, 3562 Required: []string{"driver"}, 3563 }, 3564 }, 3565 Dependencies: []string{ 3566 "k8s.io/api/core/v1.SecretReference"}, 3567 } 3568 } 3569 3570 func schema_k8sio_api_core_v1_FlexVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3571 return common.OpenAPIDefinition{ 3572 Schema: spec.Schema{ 3573 SchemaProps: spec.SchemaProps{ 3574 Description: "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 3575 Type: []string{"object"}, 3576 Properties: map[string]spec.Schema{ 3577 "driver": { 3578 SchemaProps: spec.SchemaProps{ 3579 Description: "driver is the name of the driver to use for this volume.", 3580 Default: "", 3581 Type: []string{"string"}, 3582 Format: "", 3583 }, 3584 }, 3585 "fsType": { 3586 SchemaProps: spec.SchemaProps{ 3587 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.", 3588 Type: []string{"string"}, 3589 Format: "", 3590 }, 3591 }, 3592 "secretRef": { 3593 SchemaProps: spec.SchemaProps{ 3594 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.", 3595 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 3596 }, 3597 }, 3598 "readOnly": { 3599 SchemaProps: spec.SchemaProps{ 3600 Description: "readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 3601 Type: []string{"boolean"}, 3602 Format: "", 3603 }, 3604 }, 3605 "options": { 3606 SchemaProps: spec.SchemaProps{ 3607 Description: "options is Optional: this field holds extra command options if any.", 3608 Type: []string{"object"}, 3609 AdditionalProperties: &spec.SchemaOrBool{ 3610 Allows: true, 3611 Schema: &spec.Schema{ 3612 SchemaProps: spec.SchemaProps{ 3613 Default: "", 3614 Type: []string{"string"}, 3615 Format: "", 3616 }, 3617 }, 3618 }, 3619 }, 3620 }, 3621 }, 3622 Required: []string{"driver"}, 3623 }, 3624 }, 3625 Dependencies: []string{ 3626 "k8s.io/api/core/v1.LocalObjectReference"}, 3627 } 3628 } 3629 3630 func schema_k8sio_api_core_v1_FlockerVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3631 return common.OpenAPIDefinition{ 3632 Schema: spec.Schema{ 3633 SchemaProps: spec.SchemaProps{ 3634 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.", 3635 Type: []string{"object"}, 3636 Properties: map[string]spec.Schema{ 3637 "datasetName": { 3638 SchemaProps: spec.SchemaProps{ 3639 Description: "datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated", 3640 Type: []string{"string"}, 3641 Format: "", 3642 }, 3643 }, 3644 "datasetUUID": { 3645 SchemaProps: spec.SchemaProps{ 3646 Description: "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset", 3647 Type: []string{"string"}, 3648 Format: "", 3649 }, 3650 }, 3651 }, 3652 }, 3653 }, 3654 } 3655 } 3656 3657 func schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3658 return common.OpenAPIDefinition{ 3659 Schema: spec.Schema{ 3660 SchemaProps: spec.SchemaProps{ 3661 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.", 3662 Type: []string{"object"}, 3663 Properties: map[string]spec.Schema{ 3664 "pdName": { 3665 SchemaProps: spec.SchemaProps{ 3666 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", 3667 Default: "", 3668 Type: []string{"string"}, 3669 Format: "", 3670 }, 3671 }, 3672 "fsType": { 3673 SchemaProps: spec.SchemaProps{ 3674 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", 3675 Type: []string{"string"}, 3676 Format: "", 3677 }, 3678 }, 3679 "partition": { 3680 SchemaProps: spec.SchemaProps{ 3681 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", 3682 Type: []string{"integer"}, 3683 Format: "int32", 3684 }, 3685 }, 3686 "readOnly": { 3687 SchemaProps: spec.SchemaProps{ 3688 Description: "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", 3689 Type: []string{"boolean"}, 3690 Format: "", 3691 }, 3692 }, 3693 }, 3694 Required: []string{"pdName"}, 3695 }, 3696 }, 3697 } 3698 } 3699 3700 func schema_k8sio_api_core_v1_GRPCAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 3701 return common.OpenAPIDefinition{ 3702 Schema: spec.Schema{ 3703 SchemaProps: spec.SchemaProps{ 3704 Type: []string{"object"}, 3705 Properties: map[string]spec.Schema{ 3706 "port": { 3707 SchemaProps: spec.SchemaProps{ 3708 Description: "Port number of the gRPC service. Number must be in the range 1 to 65535.", 3709 Default: 0, 3710 Type: []string{"integer"}, 3711 Format: "int32", 3712 }, 3713 }, 3714 "service": { 3715 SchemaProps: spec.SchemaProps{ 3716 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.", 3717 Default: "", 3718 Type: []string{"string"}, 3719 Format: "", 3720 }, 3721 }, 3722 }, 3723 Required: []string{"port"}, 3724 }, 3725 }, 3726 } 3727 } 3728 3729 func schema_k8sio_api_core_v1_GitRepoVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3730 return common.OpenAPIDefinition{ 3731 Schema: spec.Schema{ 3732 SchemaProps: spec.SchemaProps{ 3733 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.", 3734 Type: []string{"object"}, 3735 Properties: map[string]spec.Schema{ 3736 "repository": { 3737 SchemaProps: spec.SchemaProps{ 3738 Description: "repository is the URL", 3739 Default: "", 3740 Type: []string{"string"}, 3741 Format: "", 3742 }, 3743 }, 3744 "revision": { 3745 SchemaProps: spec.SchemaProps{ 3746 Description: "revision is the commit hash for the specified revision.", 3747 Type: []string{"string"}, 3748 Format: "", 3749 }, 3750 }, 3751 "directory": { 3752 SchemaProps: spec.SchemaProps{ 3753 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.", 3754 Type: []string{"string"}, 3755 Format: "", 3756 }, 3757 }, 3758 }, 3759 Required: []string{"repository"}, 3760 }, 3761 }, 3762 } 3763 } 3764 3765 func schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3766 return common.OpenAPIDefinition{ 3767 Schema: spec.Schema{ 3768 SchemaProps: spec.SchemaProps{ 3769 Description: "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", 3770 Type: []string{"object"}, 3771 Properties: map[string]spec.Schema{ 3772 "endpoints": { 3773 SchemaProps: spec.SchemaProps{ 3774 Description: "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 3775 Default: "", 3776 Type: []string{"string"}, 3777 Format: "", 3778 }, 3779 }, 3780 "path": { 3781 SchemaProps: spec.SchemaProps{ 3782 Description: "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 3783 Default: "", 3784 Type: []string{"string"}, 3785 Format: "", 3786 }, 3787 }, 3788 "readOnly": { 3789 SchemaProps: spec.SchemaProps{ 3790 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", 3791 Type: []string{"boolean"}, 3792 Format: "", 3793 }, 3794 }, 3795 "endpointsNamespace": { 3796 SchemaProps: spec.SchemaProps{ 3797 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", 3798 Type: []string{"string"}, 3799 Format: "", 3800 }, 3801 }, 3802 }, 3803 Required: []string{"endpoints", "path"}, 3804 }, 3805 }, 3806 } 3807 } 3808 3809 func schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3810 return common.OpenAPIDefinition{ 3811 Schema: spec.Schema{ 3812 SchemaProps: spec.SchemaProps{ 3813 Description: "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.", 3814 Type: []string{"object"}, 3815 Properties: map[string]spec.Schema{ 3816 "endpoints": { 3817 SchemaProps: spec.SchemaProps{ 3818 Description: "endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 3819 Default: "", 3820 Type: []string{"string"}, 3821 Format: "", 3822 }, 3823 }, 3824 "path": { 3825 SchemaProps: spec.SchemaProps{ 3826 Description: "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", 3827 Default: "", 3828 Type: []string{"string"}, 3829 Format: "", 3830 }, 3831 }, 3832 "readOnly": { 3833 SchemaProps: spec.SchemaProps{ 3834 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", 3835 Type: []string{"boolean"}, 3836 Format: "", 3837 }, 3838 }, 3839 }, 3840 Required: []string{"endpoints", "path"}, 3841 }, 3842 }, 3843 } 3844 } 3845 3846 func schema_k8sio_api_core_v1_HTTPGetAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 3847 return common.OpenAPIDefinition{ 3848 Schema: spec.Schema{ 3849 SchemaProps: spec.SchemaProps{ 3850 Description: "HTTPGetAction describes an action based on HTTP Get requests.", 3851 Type: []string{"object"}, 3852 Properties: map[string]spec.Schema{ 3853 "path": { 3854 SchemaProps: spec.SchemaProps{ 3855 Description: "Path to access on the HTTP server.", 3856 Type: []string{"string"}, 3857 Format: "", 3858 }, 3859 }, 3860 "port": { 3861 SchemaProps: spec.SchemaProps{ 3862 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.", 3863 Default: map[string]interface{}{}, 3864 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 3865 }, 3866 }, 3867 "host": { 3868 SchemaProps: spec.SchemaProps{ 3869 Description: "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.", 3870 Type: []string{"string"}, 3871 Format: "", 3872 }, 3873 }, 3874 "scheme": { 3875 SchemaProps: spec.SchemaProps{ 3876 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://", 3877 Type: []string{"string"}, 3878 Format: "", 3879 Enum: []interface{}{"HTTP", "HTTPS"}}, 3880 }, 3881 "httpHeaders": { 3882 SchemaProps: spec.SchemaProps{ 3883 Description: "Custom headers to set in the request. HTTP allows repeated headers.", 3884 Type: []string{"array"}, 3885 Items: &spec.SchemaOrArray{ 3886 Schema: &spec.Schema{ 3887 SchemaProps: spec.SchemaProps{ 3888 Default: map[string]interface{}{}, 3889 Ref: ref("k8s.io/api/core/v1.HTTPHeader"), 3890 }, 3891 }, 3892 }, 3893 }, 3894 }, 3895 }, 3896 Required: []string{"port"}, 3897 }, 3898 }, 3899 Dependencies: []string{ 3900 "k8s.io/api/core/v1.HTTPHeader", "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 3901 } 3902 } 3903 3904 func schema_k8sio_api_core_v1_HTTPHeader(ref common.ReferenceCallback) common.OpenAPIDefinition { 3905 return common.OpenAPIDefinition{ 3906 Schema: spec.Schema{ 3907 SchemaProps: spec.SchemaProps{ 3908 Description: "HTTPHeader describes a custom header to be used in HTTP probes", 3909 Type: []string{"object"}, 3910 Properties: map[string]spec.Schema{ 3911 "name": { 3912 SchemaProps: spec.SchemaProps{ 3913 Description: "The header field name", 3914 Default: "", 3915 Type: []string{"string"}, 3916 Format: "", 3917 }, 3918 }, 3919 "value": { 3920 SchemaProps: spec.SchemaProps{ 3921 Description: "The header field value", 3922 Default: "", 3923 Type: []string{"string"}, 3924 Format: "", 3925 }, 3926 }, 3927 }, 3928 Required: []string{"name", "value"}, 3929 }, 3930 }, 3931 } 3932 } 3933 3934 func schema_k8sio_api_core_v1_HostAlias(ref common.ReferenceCallback) common.OpenAPIDefinition { 3935 return common.OpenAPIDefinition{ 3936 Schema: spec.Schema{ 3937 SchemaProps: spec.SchemaProps{ 3938 Description: "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", 3939 Type: []string{"object"}, 3940 Properties: map[string]spec.Schema{ 3941 "ip": { 3942 SchemaProps: spec.SchemaProps{ 3943 Description: "IP address of the host file entry.", 3944 Type: []string{"string"}, 3945 Format: "", 3946 }, 3947 }, 3948 "hostnames": { 3949 SchemaProps: spec.SchemaProps{ 3950 Description: "Hostnames for the above IP address.", 3951 Type: []string{"array"}, 3952 Items: &spec.SchemaOrArray{ 3953 Schema: &spec.Schema{ 3954 SchemaProps: spec.SchemaProps{ 3955 Default: "", 3956 Type: []string{"string"}, 3957 Format: "", 3958 }, 3959 }, 3960 }, 3961 }, 3962 }, 3963 }, 3964 }, 3965 }, 3966 } 3967 } 3968 3969 func schema_k8sio_api_core_v1_HostPathVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3970 return common.OpenAPIDefinition{ 3971 Schema: spec.Schema{ 3972 SchemaProps: spec.SchemaProps{ 3973 Description: "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", 3974 Type: []string{"object"}, 3975 Properties: map[string]spec.Schema{ 3976 "path": { 3977 SchemaProps: spec.SchemaProps{ 3978 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", 3979 Default: "", 3980 Type: []string{"string"}, 3981 Format: "", 3982 }, 3983 }, 3984 "type": { 3985 SchemaProps: spec.SchemaProps{ 3986 Description: "type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", 3987 Type: []string{"string"}, 3988 Format: "", 3989 }, 3990 }, 3991 }, 3992 Required: []string{"path"}, 3993 }, 3994 }, 3995 } 3996 } 3997 3998 func schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 3999 return common.OpenAPIDefinition{ 4000 Schema: spec.Schema{ 4001 SchemaProps: spec.SchemaProps{ 4002 Description: "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", 4003 Type: []string{"object"}, 4004 Properties: map[string]spec.Schema{ 4005 "targetPortal": { 4006 SchemaProps: spec.SchemaProps{ 4007 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).", 4008 Default: "", 4009 Type: []string{"string"}, 4010 Format: "", 4011 }, 4012 }, 4013 "iqn": { 4014 SchemaProps: spec.SchemaProps{ 4015 Description: "iqn is Target iSCSI Qualified Name.", 4016 Default: "", 4017 Type: []string{"string"}, 4018 Format: "", 4019 }, 4020 }, 4021 "lun": { 4022 SchemaProps: spec.SchemaProps{ 4023 Description: "lun is iSCSI Target Lun number.", 4024 Default: 0, 4025 Type: []string{"integer"}, 4026 Format: "int32", 4027 }, 4028 }, 4029 "iscsiInterface": { 4030 SchemaProps: spec.SchemaProps{ 4031 Description: "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", 4032 Type: []string{"string"}, 4033 Format: "", 4034 }, 4035 }, 4036 "fsType": { 4037 SchemaProps: spec.SchemaProps{ 4038 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", 4039 Type: []string{"string"}, 4040 Format: "", 4041 }, 4042 }, 4043 "readOnly": { 4044 SchemaProps: spec.SchemaProps{ 4045 Description: "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", 4046 Type: []string{"boolean"}, 4047 Format: "", 4048 }, 4049 }, 4050 "portals": { 4051 SchemaProps: spec.SchemaProps{ 4052 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).", 4053 Type: []string{"array"}, 4054 Items: &spec.SchemaOrArray{ 4055 Schema: &spec.Schema{ 4056 SchemaProps: spec.SchemaProps{ 4057 Default: "", 4058 Type: []string{"string"}, 4059 Format: "", 4060 }, 4061 }, 4062 }, 4063 }, 4064 }, 4065 "chapAuthDiscovery": { 4066 SchemaProps: spec.SchemaProps{ 4067 Description: "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", 4068 Type: []string{"boolean"}, 4069 Format: "", 4070 }, 4071 }, 4072 "chapAuthSession": { 4073 SchemaProps: spec.SchemaProps{ 4074 Description: "chapAuthSession defines whether support iSCSI Session CHAP authentication", 4075 Type: []string{"boolean"}, 4076 Format: "", 4077 }, 4078 }, 4079 "secretRef": { 4080 SchemaProps: spec.SchemaProps{ 4081 Description: "secretRef is the CHAP Secret for iSCSI target and initiator authentication", 4082 Ref: ref("k8s.io/api/core/v1.SecretReference"), 4083 }, 4084 }, 4085 "initiatorName": { 4086 SchemaProps: spec.SchemaProps{ 4087 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.", 4088 Type: []string{"string"}, 4089 Format: "", 4090 }, 4091 }, 4092 }, 4093 Required: []string{"targetPortal", "iqn", "lun"}, 4094 }, 4095 }, 4096 Dependencies: []string{ 4097 "k8s.io/api/core/v1.SecretReference"}, 4098 } 4099 } 4100 4101 func schema_k8sio_api_core_v1_ISCSIVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 4102 return common.OpenAPIDefinition{ 4103 Schema: spec.Schema{ 4104 SchemaProps: spec.SchemaProps{ 4105 Description: "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.", 4106 Type: []string{"object"}, 4107 Properties: map[string]spec.Schema{ 4108 "targetPortal": { 4109 SchemaProps: spec.SchemaProps{ 4110 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).", 4111 Default: "", 4112 Type: []string{"string"}, 4113 Format: "", 4114 }, 4115 }, 4116 "iqn": { 4117 SchemaProps: spec.SchemaProps{ 4118 Description: "iqn is the target iSCSI Qualified Name.", 4119 Default: "", 4120 Type: []string{"string"}, 4121 Format: "", 4122 }, 4123 }, 4124 "lun": { 4125 SchemaProps: spec.SchemaProps{ 4126 Description: "lun represents iSCSI Target Lun number.", 4127 Default: 0, 4128 Type: []string{"integer"}, 4129 Format: "int32", 4130 }, 4131 }, 4132 "iscsiInterface": { 4133 SchemaProps: spec.SchemaProps{ 4134 Description: "iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).", 4135 Type: []string{"string"}, 4136 Format: "", 4137 }, 4138 }, 4139 "fsType": { 4140 SchemaProps: spec.SchemaProps{ 4141 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", 4142 Type: []string{"string"}, 4143 Format: "", 4144 }, 4145 }, 4146 "readOnly": { 4147 SchemaProps: spec.SchemaProps{ 4148 Description: "readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.", 4149 Type: []string{"boolean"}, 4150 Format: "", 4151 }, 4152 }, 4153 "portals": { 4154 SchemaProps: spec.SchemaProps{ 4155 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).", 4156 Type: []string{"array"}, 4157 Items: &spec.SchemaOrArray{ 4158 Schema: &spec.Schema{ 4159 SchemaProps: spec.SchemaProps{ 4160 Default: "", 4161 Type: []string{"string"}, 4162 Format: "", 4163 }, 4164 }, 4165 }, 4166 }, 4167 }, 4168 "chapAuthDiscovery": { 4169 SchemaProps: spec.SchemaProps{ 4170 Description: "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication", 4171 Type: []string{"boolean"}, 4172 Format: "", 4173 }, 4174 }, 4175 "chapAuthSession": { 4176 SchemaProps: spec.SchemaProps{ 4177 Description: "chapAuthSession defines whether support iSCSI Session CHAP authentication", 4178 Type: []string{"boolean"}, 4179 Format: "", 4180 }, 4181 }, 4182 "secretRef": { 4183 SchemaProps: spec.SchemaProps{ 4184 Description: "secretRef is the CHAP Secret for iSCSI target and initiator authentication", 4185 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 4186 }, 4187 }, 4188 "initiatorName": { 4189 SchemaProps: spec.SchemaProps{ 4190 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.", 4191 Type: []string{"string"}, 4192 Format: "", 4193 }, 4194 }, 4195 }, 4196 Required: []string{"targetPortal", "iqn", "lun"}, 4197 }, 4198 }, 4199 Dependencies: []string{ 4200 "k8s.io/api/core/v1.LocalObjectReference"}, 4201 } 4202 } 4203 4204 func schema_k8sio_api_core_v1_KeyToPath(ref common.ReferenceCallback) common.OpenAPIDefinition { 4205 return common.OpenAPIDefinition{ 4206 Schema: spec.Schema{ 4207 SchemaProps: spec.SchemaProps{ 4208 Description: "Maps a string key to a path within a volume.", 4209 Type: []string{"object"}, 4210 Properties: map[string]spec.Schema{ 4211 "key": { 4212 SchemaProps: spec.SchemaProps{ 4213 Description: "key is the key to project.", 4214 Default: "", 4215 Type: []string{"string"}, 4216 Format: "", 4217 }, 4218 }, 4219 "path": { 4220 SchemaProps: spec.SchemaProps{ 4221 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 '..'.", 4222 Default: "", 4223 Type: []string{"string"}, 4224 Format: "", 4225 }, 4226 }, 4227 "mode": { 4228 SchemaProps: spec.SchemaProps{ 4229 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.", 4230 Type: []string{"integer"}, 4231 Format: "int32", 4232 }, 4233 }, 4234 }, 4235 Required: []string{"key", "path"}, 4236 }, 4237 }, 4238 } 4239 } 4240 4241 func schema_k8sio_api_core_v1_Lifecycle(ref common.ReferenceCallback) common.OpenAPIDefinition { 4242 return common.OpenAPIDefinition{ 4243 Schema: spec.Schema{ 4244 SchemaProps: spec.SchemaProps{ 4245 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.", 4246 Type: []string{"object"}, 4247 Properties: map[string]spec.Schema{ 4248 "postStart": { 4249 SchemaProps: spec.SchemaProps{ 4250 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", 4251 Ref: ref("k8s.io/api/core/v1.LifecycleHandler"), 4252 }, 4253 }, 4254 "preStop": { 4255 SchemaProps: spec.SchemaProps{ 4256 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", 4257 Ref: ref("k8s.io/api/core/v1.LifecycleHandler"), 4258 }, 4259 }, 4260 }, 4261 }, 4262 }, 4263 Dependencies: []string{ 4264 "k8s.io/api/core/v1.LifecycleHandler"}, 4265 } 4266 } 4267 4268 func schema_k8sio_api_core_v1_LifecycleHandler(ref common.ReferenceCallback) common.OpenAPIDefinition { 4269 return common.OpenAPIDefinition{ 4270 Schema: spec.Schema{ 4271 SchemaProps: spec.SchemaProps{ 4272 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.", 4273 Type: []string{"object"}, 4274 Properties: map[string]spec.Schema{ 4275 "exec": { 4276 SchemaProps: spec.SchemaProps{ 4277 Description: "Exec specifies the action to take.", 4278 Ref: ref("k8s.io/api/core/v1.ExecAction"), 4279 }, 4280 }, 4281 "httpGet": { 4282 SchemaProps: spec.SchemaProps{ 4283 Description: "HTTPGet specifies the http request to perform.", 4284 Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), 4285 }, 4286 }, 4287 "tcpSocket": { 4288 SchemaProps: spec.SchemaProps{ 4289 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.", 4290 Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), 4291 }, 4292 }, 4293 }, 4294 }, 4295 }, 4296 Dependencies: []string{ 4297 "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, 4298 } 4299 } 4300 4301 func schema_k8sio_api_core_v1_LimitRange(ref common.ReferenceCallback) common.OpenAPIDefinition { 4302 return common.OpenAPIDefinition{ 4303 Schema: spec.Schema{ 4304 SchemaProps: spec.SchemaProps{ 4305 Description: "LimitRange sets resource usage limits for each kind of resource in a Namespace.", 4306 Type: []string{"object"}, 4307 Properties: map[string]spec.Schema{ 4308 "kind": { 4309 SchemaProps: spec.SchemaProps{ 4310 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4311 Type: []string{"string"}, 4312 Format: "", 4313 }, 4314 }, 4315 "apiVersion": { 4316 SchemaProps: spec.SchemaProps{ 4317 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4318 Type: []string{"string"}, 4319 Format: "", 4320 }, 4321 }, 4322 "metadata": { 4323 SchemaProps: spec.SchemaProps{ 4324 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 4325 Default: map[string]interface{}{}, 4326 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4327 }, 4328 }, 4329 "spec": { 4330 SchemaProps: spec.SchemaProps{ 4331 Description: "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 4332 Default: map[string]interface{}{}, 4333 Ref: ref("k8s.io/api/core/v1.LimitRangeSpec"), 4334 }, 4335 }, 4336 }, 4337 }, 4338 }, 4339 Dependencies: []string{ 4340 "k8s.io/api/core/v1.LimitRangeSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 4341 } 4342 } 4343 4344 func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) common.OpenAPIDefinition { 4345 return common.OpenAPIDefinition{ 4346 Schema: spec.Schema{ 4347 SchemaProps: spec.SchemaProps{ 4348 Description: "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.", 4349 Type: []string{"object"}, 4350 Properties: map[string]spec.Schema{ 4351 "type": { 4352 SchemaProps: spec.SchemaProps{ 4353 Description: "Type of resource that this limit applies to.", 4354 Default: "", 4355 Type: []string{"string"}, 4356 Format: "", 4357 }, 4358 }, 4359 "max": { 4360 SchemaProps: spec.SchemaProps{ 4361 Description: "Max usage constraints on this kind by resource name.", 4362 Type: []string{"object"}, 4363 AdditionalProperties: &spec.SchemaOrBool{ 4364 Allows: true, 4365 Schema: &spec.Schema{ 4366 SchemaProps: spec.SchemaProps{ 4367 Default: map[string]interface{}{}, 4368 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 4369 }, 4370 }, 4371 }, 4372 }, 4373 }, 4374 "min": { 4375 SchemaProps: spec.SchemaProps{ 4376 Description: "Min usage constraints on this kind by resource name.", 4377 Type: []string{"object"}, 4378 AdditionalProperties: &spec.SchemaOrBool{ 4379 Allows: true, 4380 Schema: &spec.Schema{ 4381 SchemaProps: spec.SchemaProps{ 4382 Default: map[string]interface{}{}, 4383 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 4384 }, 4385 }, 4386 }, 4387 }, 4388 }, 4389 "default": { 4390 SchemaProps: spec.SchemaProps{ 4391 Description: "Default resource requirement limit value by resource name if resource limit is omitted.", 4392 Type: []string{"object"}, 4393 AdditionalProperties: &spec.SchemaOrBool{ 4394 Allows: true, 4395 Schema: &spec.Schema{ 4396 SchemaProps: spec.SchemaProps{ 4397 Default: map[string]interface{}{}, 4398 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 4399 }, 4400 }, 4401 }, 4402 }, 4403 }, 4404 "defaultRequest": { 4405 SchemaProps: spec.SchemaProps{ 4406 Description: "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", 4407 Type: []string{"object"}, 4408 AdditionalProperties: &spec.SchemaOrBool{ 4409 Allows: true, 4410 Schema: &spec.Schema{ 4411 SchemaProps: spec.SchemaProps{ 4412 Default: map[string]interface{}{}, 4413 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 4414 }, 4415 }, 4416 }, 4417 }, 4418 }, 4419 "maxLimitRequestRatio": { 4420 SchemaProps: spec.SchemaProps{ 4421 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.", 4422 Type: []string{"object"}, 4423 AdditionalProperties: &spec.SchemaOrBool{ 4424 Allows: true, 4425 Schema: &spec.Schema{ 4426 SchemaProps: spec.SchemaProps{ 4427 Default: map[string]interface{}{}, 4428 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 4429 }, 4430 }, 4431 }, 4432 }, 4433 }, 4434 }, 4435 Required: []string{"type"}, 4436 }, 4437 }, 4438 Dependencies: []string{ 4439 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 4440 } 4441 } 4442 4443 func schema_k8sio_api_core_v1_LimitRangeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 4444 return common.OpenAPIDefinition{ 4445 Schema: spec.Schema{ 4446 SchemaProps: spec.SchemaProps{ 4447 Description: "LimitRangeList is a list of LimitRange items.", 4448 Type: []string{"object"}, 4449 Properties: map[string]spec.Schema{ 4450 "kind": { 4451 SchemaProps: spec.SchemaProps{ 4452 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4453 Type: []string{"string"}, 4454 Format: "", 4455 }, 4456 }, 4457 "apiVersion": { 4458 SchemaProps: spec.SchemaProps{ 4459 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4460 Type: []string{"string"}, 4461 Format: "", 4462 }, 4463 }, 4464 "metadata": { 4465 SchemaProps: spec.SchemaProps{ 4466 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4467 Default: map[string]interface{}{}, 4468 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4469 }, 4470 }, 4471 "items": { 4472 SchemaProps: spec.SchemaProps{ 4473 Description: "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 4474 Type: []string{"array"}, 4475 Items: &spec.SchemaOrArray{ 4476 Schema: &spec.Schema{ 4477 SchemaProps: spec.SchemaProps{ 4478 Default: map[string]interface{}{}, 4479 Ref: ref("k8s.io/api/core/v1.LimitRange"), 4480 }, 4481 }, 4482 }, 4483 }, 4484 }, 4485 }, 4486 Required: []string{"items"}, 4487 }, 4488 }, 4489 Dependencies: []string{ 4490 "k8s.io/api/core/v1.LimitRange", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 4491 } 4492 } 4493 4494 func schema_k8sio_api_core_v1_LimitRangeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4495 return common.OpenAPIDefinition{ 4496 Schema: spec.Schema{ 4497 SchemaProps: spec.SchemaProps{ 4498 Description: "LimitRangeSpec defines a min/max usage limit for resources that match on kind.", 4499 Type: []string{"object"}, 4500 Properties: map[string]spec.Schema{ 4501 "limits": { 4502 SchemaProps: spec.SchemaProps{ 4503 Description: "Limits is the list of LimitRangeItem objects that are enforced.", 4504 Type: []string{"array"}, 4505 Items: &spec.SchemaOrArray{ 4506 Schema: &spec.Schema{ 4507 SchemaProps: spec.SchemaProps{ 4508 Default: map[string]interface{}{}, 4509 Ref: ref("k8s.io/api/core/v1.LimitRangeItem"), 4510 }, 4511 }, 4512 }, 4513 }, 4514 }, 4515 }, 4516 Required: []string{"limits"}, 4517 }, 4518 }, 4519 Dependencies: []string{ 4520 "k8s.io/api/core/v1.LimitRangeItem"}, 4521 } 4522 } 4523 4524 func schema_k8sio_api_core_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition { 4525 return common.OpenAPIDefinition{ 4526 Schema: spec.Schema{ 4527 SchemaProps: spec.SchemaProps{ 4528 Description: "List holds a list of objects, which may not be known by the server.", 4529 Type: []string{"object"}, 4530 Properties: map[string]spec.Schema{ 4531 "kind": { 4532 SchemaProps: spec.SchemaProps{ 4533 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4534 Type: []string{"string"}, 4535 Format: "", 4536 }, 4537 }, 4538 "apiVersion": { 4539 SchemaProps: spec.SchemaProps{ 4540 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4541 Type: []string{"string"}, 4542 Format: "", 4543 }, 4544 }, 4545 "metadata": { 4546 SchemaProps: spec.SchemaProps{ 4547 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4548 Default: map[string]interface{}{}, 4549 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4550 }, 4551 }, 4552 "items": { 4553 SchemaProps: spec.SchemaProps{ 4554 Description: "List of objects", 4555 Type: []string{"array"}, 4556 Items: &spec.SchemaOrArray{ 4557 Schema: &spec.Schema{ 4558 SchemaProps: spec.SchemaProps{ 4559 Default: map[string]interface{}{}, 4560 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 4561 }, 4562 }, 4563 }, 4564 }, 4565 }, 4566 }, 4567 Required: []string{"items"}, 4568 }, 4569 }, 4570 Dependencies: []string{ 4571 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 4572 } 4573 } 4574 4575 func schema_k8sio_api_core_v1_LoadBalancerIngress(ref common.ReferenceCallback) common.OpenAPIDefinition { 4576 return common.OpenAPIDefinition{ 4577 Schema: spec.Schema{ 4578 SchemaProps: spec.SchemaProps{ 4579 Description: "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.", 4580 Type: []string{"object"}, 4581 Properties: map[string]spec.Schema{ 4582 "ip": { 4583 SchemaProps: spec.SchemaProps{ 4584 Description: "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)", 4585 Type: []string{"string"}, 4586 Format: "", 4587 }, 4588 }, 4589 "hostname": { 4590 SchemaProps: spec.SchemaProps{ 4591 Description: "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)", 4592 Type: []string{"string"}, 4593 Format: "", 4594 }, 4595 }, 4596 "ports": { 4597 VendorExtensible: spec.VendorExtensible{ 4598 Extensions: spec.Extensions{ 4599 "x-kubernetes-list-type": "atomic", 4600 }, 4601 }, 4602 SchemaProps: spec.SchemaProps{ 4603 Description: "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it", 4604 Type: []string{"array"}, 4605 Items: &spec.SchemaOrArray{ 4606 Schema: &spec.Schema{ 4607 SchemaProps: spec.SchemaProps{ 4608 Default: map[string]interface{}{}, 4609 Ref: ref("k8s.io/api/core/v1.PortStatus"), 4610 }, 4611 }, 4612 }, 4613 }, 4614 }, 4615 }, 4616 }, 4617 }, 4618 Dependencies: []string{ 4619 "k8s.io/api/core/v1.PortStatus"}, 4620 } 4621 } 4622 4623 func schema_k8sio_api_core_v1_LoadBalancerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 4624 return common.OpenAPIDefinition{ 4625 Schema: spec.Schema{ 4626 SchemaProps: spec.SchemaProps{ 4627 Description: "LoadBalancerStatus represents the status of a load-balancer.", 4628 Type: []string{"object"}, 4629 Properties: map[string]spec.Schema{ 4630 "ingress": { 4631 SchemaProps: spec.SchemaProps{ 4632 Description: "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.", 4633 Type: []string{"array"}, 4634 Items: &spec.SchemaOrArray{ 4635 Schema: &spec.Schema{ 4636 SchemaProps: spec.SchemaProps{ 4637 Default: map[string]interface{}{}, 4638 Ref: ref("k8s.io/api/core/v1.LoadBalancerIngress"), 4639 }, 4640 }, 4641 }, 4642 }, 4643 }, 4644 }, 4645 }, 4646 }, 4647 Dependencies: []string{ 4648 "k8s.io/api/core/v1.LoadBalancerIngress"}, 4649 } 4650 } 4651 4652 func schema_k8sio_api_core_v1_LocalObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 4653 return common.OpenAPIDefinition{ 4654 Schema: spec.Schema{ 4655 SchemaProps: spec.SchemaProps{ 4656 Description: "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", 4657 Type: []string{"object"}, 4658 Properties: map[string]spec.Schema{ 4659 "name": { 4660 SchemaProps: spec.SchemaProps{ 4661 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 4662 Type: []string{"string"}, 4663 Format: "", 4664 }, 4665 }, 4666 }, 4667 }, 4668 VendorExtensible: spec.VendorExtensible{ 4669 Extensions: spec.Extensions{ 4670 "x-kubernetes-map-type": "atomic", 4671 }, 4672 }, 4673 }, 4674 } 4675 } 4676 4677 func schema_k8sio_api_core_v1_LocalVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 4678 return common.OpenAPIDefinition{ 4679 Schema: spec.Schema{ 4680 SchemaProps: spec.SchemaProps{ 4681 Description: "Local represents directly-attached storage with node affinity (Beta feature)", 4682 Type: []string{"object"}, 4683 Properties: map[string]spec.Schema{ 4684 "path": { 4685 SchemaProps: spec.SchemaProps{ 4686 Description: "path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).", 4687 Default: "", 4688 Type: []string{"string"}, 4689 Format: "", 4690 }, 4691 }, 4692 "fsType": { 4693 SchemaProps: spec.SchemaProps{ 4694 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.", 4695 Type: []string{"string"}, 4696 Format: "", 4697 }, 4698 }, 4699 }, 4700 Required: []string{"path"}, 4701 }, 4702 }, 4703 } 4704 } 4705 4706 func schema_k8sio_api_core_v1_NFSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 4707 return common.OpenAPIDefinition{ 4708 Schema: spec.Schema{ 4709 SchemaProps: spec.SchemaProps{ 4710 Description: "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.", 4711 Type: []string{"object"}, 4712 Properties: map[string]spec.Schema{ 4713 "server": { 4714 SchemaProps: spec.SchemaProps{ 4715 Description: "server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 4716 Default: "", 4717 Type: []string{"string"}, 4718 Format: "", 4719 }, 4720 }, 4721 "path": { 4722 SchemaProps: spec.SchemaProps{ 4723 Description: "path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 4724 Default: "", 4725 Type: []string{"string"}, 4726 Format: "", 4727 }, 4728 }, 4729 "readOnly": { 4730 SchemaProps: spec.SchemaProps{ 4731 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", 4732 Type: []string{"boolean"}, 4733 Format: "", 4734 }, 4735 }, 4736 }, 4737 Required: []string{"server", "path"}, 4738 }, 4739 }, 4740 } 4741 } 4742 4743 func schema_k8sio_api_core_v1_Namespace(ref common.ReferenceCallback) common.OpenAPIDefinition { 4744 return common.OpenAPIDefinition{ 4745 Schema: spec.Schema{ 4746 SchemaProps: spec.SchemaProps{ 4747 Description: "Namespace provides a scope for Names. Use of multiple namespaces is optional.", 4748 Type: []string{"object"}, 4749 Properties: map[string]spec.Schema{ 4750 "kind": { 4751 SchemaProps: spec.SchemaProps{ 4752 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4753 Type: []string{"string"}, 4754 Format: "", 4755 }, 4756 }, 4757 "apiVersion": { 4758 SchemaProps: spec.SchemaProps{ 4759 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4760 Type: []string{"string"}, 4761 Format: "", 4762 }, 4763 }, 4764 "metadata": { 4765 SchemaProps: spec.SchemaProps{ 4766 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 4767 Default: map[string]interface{}{}, 4768 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4769 }, 4770 }, 4771 "spec": { 4772 SchemaProps: spec.SchemaProps{ 4773 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", 4774 Default: map[string]interface{}{}, 4775 Ref: ref("k8s.io/api/core/v1.NamespaceSpec"), 4776 }, 4777 }, 4778 "status": { 4779 SchemaProps: spec.SchemaProps{ 4780 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", 4781 Default: map[string]interface{}{}, 4782 Ref: ref("k8s.io/api/core/v1.NamespaceStatus"), 4783 }, 4784 }, 4785 }, 4786 }, 4787 }, 4788 Dependencies: []string{ 4789 "k8s.io/api/core/v1.NamespaceSpec", "k8s.io/api/core/v1.NamespaceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 4790 } 4791 } 4792 4793 func schema_k8sio_api_core_v1_NamespaceCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 4794 return common.OpenAPIDefinition{ 4795 Schema: spec.Schema{ 4796 SchemaProps: spec.SchemaProps{ 4797 Description: "NamespaceCondition contains details about state of namespace.", 4798 Type: []string{"object"}, 4799 Properties: map[string]spec.Schema{ 4800 "type": { 4801 SchemaProps: spec.SchemaProps{ 4802 Description: "Type of namespace controller condition.", 4803 Default: "", 4804 Type: []string{"string"}, 4805 Format: "", 4806 }, 4807 }, 4808 "status": { 4809 SchemaProps: spec.SchemaProps{ 4810 Description: "Status of the condition, one of True, False, Unknown.", 4811 Default: "", 4812 Type: []string{"string"}, 4813 Format: "", 4814 }, 4815 }, 4816 "lastTransitionTime": { 4817 SchemaProps: spec.SchemaProps{ 4818 Default: map[string]interface{}{}, 4819 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 4820 }, 4821 }, 4822 "reason": { 4823 SchemaProps: spec.SchemaProps{ 4824 Type: []string{"string"}, 4825 Format: "", 4826 }, 4827 }, 4828 "message": { 4829 SchemaProps: spec.SchemaProps{ 4830 Type: []string{"string"}, 4831 Format: "", 4832 }, 4833 }, 4834 }, 4835 Required: []string{"type", "status"}, 4836 }, 4837 }, 4838 Dependencies: []string{ 4839 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 4840 } 4841 } 4842 4843 func schema_k8sio_api_core_v1_NamespaceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 4844 return common.OpenAPIDefinition{ 4845 Schema: spec.Schema{ 4846 SchemaProps: spec.SchemaProps{ 4847 Description: "NamespaceList is a list of Namespaces.", 4848 Type: []string{"object"}, 4849 Properties: map[string]spec.Schema{ 4850 "kind": { 4851 SchemaProps: spec.SchemaProps{ 4852 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4853 Type: []string{"string"}, 4854 Format: "", 4855 }, 4856 }, 4857 "apiVersion": { 4858 SchemaProps: spec.SchemaProps{ 4859 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4860 Type: []string{"string"}, 4861 Format: "", 4862 }, 4863 }, 4864 "metadata": { 4865 SchemaProps: spec.SchemaProps{ 4866 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4867 Default: map[string]interface{}{}, 4868 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 4869 }, 4870 }, 4871 "items": { 4872 SchemaProps: spec.SchemaProps{ 4873 Description: "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", 4874 Type: []string{"array"}, 4875 Items: &spec.SchemaOrArray{ 4876 Schema: &spec.Schema{ 4877 SchemaProps: spec.SchemaProps{ 4878 Default: map[string]interface{}{}, 4879 Ref: ref("k8s.io/api/core/v1.Namespace"), 4880 }, 4881 }, 4882 }, 4883 }, 4884 }, 4885 }, 4886 Required: []string{"items"}, 4887 }, 4888 }, 4889 Dependencies: []string{ 4890 "k8s.io/api/core/v1.Namespace", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 4891 } 4892 } 4893 4894 func schema_k8sio_api_core_v1_NamespaceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 4895 return common.OpenAPIDefinition{ 4896 Schema: spec.Schema{ 4897 SchemaProps: spec.SchemaProps{ 4898 Description: "NamespaceSpec describes the attributes on a Namespace.", 4899 Type: []string{"object"}, 4900 Properties: map[string]spec.Schema{ 4901 "finalizers": { 4902 SchemaProps: spec.SchemaProps{ 4903 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/", 4904 Type: []string{"array"}, 4905 Items: &spec.SchemaOrArray{ 4906 Schema: &spec.Schema{ 4907 SchemaProps: spec.SchemaProps{ 4908 Default: "", 4909 Type: []string{"string"}, 4910 Format: "", 4911 }, 4912 }, 4913 }, 4914 }, 4915 }, 4916 }, 4917 }, 4918 }, 4919 } 4920 } 4921 4922 func schema_k8sio_api_core_v1_NamespaceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 4923 return common.OpenAPIDefinition{ 4924 Schema: spec.Schema{ 4925 SchemaProps: spec.SchemaProps{ 4926 Description: "NamespaceStatus is information about the current status of a Namespace.", 4927 Type: []string{"object"}, 4928 Properties: map[string]spec.Schema{ 4929 "phase": { 4930 SchemaProps: spec.SchemaProps{ 4931 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", 4932 Type: []string{"string"}, 4933 Format: "", 4934 Enum: []interface{}{"Active", "Terminating"}}, 4935 }, 4936 "conditions": { 4937 VendorExtensible: spec.VendorExtensible{ 4938 Extensions: spec.Extensions{ 4939 "x-kubernetes-patch-merge-key": "type", 4940 "x-kubernetes-patch-strategy": "merge", 4941 }, 4942 }, 4943 SchemaProps: spec.SchemaProps{ 4944 Description: "Represents the latest available observations of a namespace's current state.", 4945 Type: []string{"array"}, 4946 Items: &spec.SchemaOrArray{ 4947 Schema: &spec.Schema{ 4948 SchemaProps: spec.SchemaProps{ 4949 Default: map[string]interface{}{}, 4950 Ref: ref("k8s.io/api/core/v1.NamespaceCondition"), 4951 }, 4952 }, 4953 }, 4954 }, 4955 }, 4956 }, 4957 }, 4958 }, 4959 Dependencies: []string{ 4960 "k8s.io/api/core/v1.NamespaceCondition"}, 4961 } 4962 } 4963 4964 func schema_k8sio_api_core_v1_Node(ref common.ReferenceCallback) common.OpenAPIDefinition { 4965 return common.OpenAPIDefinition{ 4966 Schema: spec.Schema{ 4967 SchemaProps: spec.SchemaProps{ 4968 Description: "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).", 4969 Type: []string{"object"}, 4970 Properties: map[string]spec.Schema{ 4971 "kind": { 4972 SchemaProps: spec.SchemaProps{ 4973 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 4974 Type: []string{"string"}, 4975 Format: "", 4976 }, 4977 }, 4978 "apiVersion": { 4979 SchemaProps: spec.SchemaProps{ 4980 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 4981 Type: []string{"string"}, 4982 Format: "", 4983 }, 4984 }, 4985 "metadata": { 4986 SchemaProps: spec.SchemaProps{ 4987 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 4988 Default: map[string]interface{}{}, 4989 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 4990 }, 4991 }, 4992 "spec": { 4993 SchemaProps: spec.SchemaProps{ 4994 Description: "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 4995 Default: map[string]interface{}{}, 4996 Ref: ref("k8s.io/api/core/v1.NodeSpec"), 4997 }, 4998 }, 4999 "status": { 5000 SchemaProps: spec.SchemaProps{ 5001 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", 5002 Default: map[string]interface{}{}, 5003 Ref: ref("k8s.io/api/core/v1.NodeStatus"), 5004 }, 5005 }, 5006 }, 5007 }, 5008 }, 5009 Dependencies: []string{ 5010 "k8s.io/api/core/v1.NodeSpec", "k8s.io/api/core/v1.NodeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 5011 } 5012 } 5013 5014 func schema_k8sio_api_core_v1_NodeAddress(ref common.ReferenceCallback) common.OpenAPIDefinition { 5015 return common.OpenAPIDefinition{ 5016 Schema: spec.Schema{ 5017 SchemaProps: spec.SchemaProps{ 5018 Description: "NodeAddress contains information for the node's address.", 5019 Type: []string{"object"}, 5020 Properties: map[string]spec.Schema{ 5021 "type": { 5022 SchemaProps: spec.SchemaProps{ 5023 Description: "Node address type, one of Hostname, ExternalIP or InternalIP.", 5024 Default: "", 5025 Type: []string{"string"}, 5026 Format: "", 5027 }, 5028 }, 5029 "address": { 5030 SchemaProps: spec.SchemaProps{ 5031 Description: "The node address.", 5032 Default: "", 5033 Type: []string{"string"}, 5034 Format: "", 5035 }, 5036 }, 5037 }, 5038 Required: []string{"type", "address"}, 5039 }, 5040 }, 5041 } 5042 } 5043 5044 func schema_k8sio_api_core_v1_NodeAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 5045 return common.OpenAPIDefinition{ 5046 Schema: spec.Schema{ 5047 SchemaProps: spec.SchemaProps{ 5048 Description: "Node affinity is a group of node affinity scheduling rules.", 5049 Type: []string{"object"}, 5050 Properties: map[string]spec.Schema{ 5051 "requiredDuringSchedulingIgnoredDuringExecution": { 5052 SchemaProps: spec.SchemaProps{ 5053 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.", 5054 Ref: ref("k8s.io/api/core/v1.NodeSelector"), 5055 }, 5056 }, 5057 "preferredDuringSchedulingIgnoredDuringExecution": { 5058 SchemaProps: spec.SchemaProps{ 5059 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.", 5060 Type: []string{"array"}, 5061 Items: &spec.SchemaOrArray{ 5062 Schema: &spec.Schema{ 5063 SchemaProps: spec.SchemaProps{ 5064 Default: map[string]interface{}{}, 5065 Ref: ref("k8s.io/api/core/v1.PreferredSchedulingTerm"), 5066 }, 5067 }, 5068 }, 5069 }, 5070 }, 5071 }, 5072 }, 5073 }, 5074 Dependencies: []string{ 5075 "k8s.io/api/core/v1.NodeSelector", "k8s.io/api/core/v1.PreferredSchedulingTerm"}, 5076 } 5077 } 5078 5079 func schema_k8sio_api_core_v1_NodeCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 5080 return common.OpenAPIDefinition{ 5081 Schema: spec.Schema{ 5082 SchemaProps: spec.SchemaProps{ 5083 Description: "NodeCondition contains condition information for a node.", 5084 Type: []string{"object"}, 5085 Properties: map[string]spec.Schema{ 5086 "type": { 5087 SchemaProps: spec.SchemaProps{ 5088 Description: "Type of node condition.", 5089 Default: "", 5090 Type: []string{"string"}, 5091 Format: "", 5092 }, 5093 }, 5094 "status": { 5095 SchemaProps: spec.SchemaProps{ 5096 Description: "Status of the condition, one of True, False, Unknown.", 5097 Default: "", 5098 Type: []string{"string"}, 5099 Format: "", 5100 }, 5101 }, 5102 "lastHeartbeatTime": { 5103 SchemaProps: spec.SchemaProps{ 5104 Description: "Last time we got an update on a given condition.", 5105 Default: map[string]interface{}{}, 5106 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 5107 }, 5108 }, 5109 "lastTransitionTime": { 5110 SchemaProps: spec.SchemaProps{ 5111 Description: "Last time the condition transit from one status to another.", 5112 Default: map[string]interface{}{}, 5113 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 5114 }, 5115 }, 5116 "reason": { 5117 SchemaProps: spec.SchemaProps{ 5118 Description: "(brief) reason for the condition's last transition.", 5119 Type: []string{"string"}, 5120 Format: "", 5121 }, 5122 }, 5123 "message": { 5124 SchemaProps: spec.SchemaProps{ 5125 Description: "Human readable message indicating details about last transition.", 5126 Type: []string{"string"}, 5127 Format: "", 5128 }, 5129 }, 5130 }, 5131 Required: []string{"type", "status"}, 5132 }, 5133 }, 5134 Dependencies: []string{ 5135 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 5136 } 5137 } 5138 5139 func schema_k8sio_api_core_v1_NodeConfigSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 5140 return common.OpenAPIDefinition{ 5141 Schema: spec.Schema{ 5142 SchemaProps: spec.SchemaProps{ 5143 Description: "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22", 5144 Type: []string{"object"}, 5145 Properties: map[string]spec.Schema{ 5146 "configMap": { 5147 SchemaProps: spec.SchemaProps{ 5148 Description: "ConfigMap is a reference to a Node's ConfigMap", 5149 Ref: ref("k8s.io/api/core/v1.ConfigMapNodeConfigSource"), 5150 }, 5151 }, 5152 }, 5153 }, 5154 }, 5155 Dependencies: []string{ 5156 "k8s.io/api/core/v1.ConfigMapNodeConfigSource"}, 5157 } 5158 } 5159 5160 func schema_k8sio_api_core_v1_NodeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 5161 return common.OpenAPIDefinition{ 5162 Schema: spec.Schema{ 5163 SchemaProps: spec.SchemaProps{ 5164 Description: "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.", 5165 Type: []string{"object"}, 5166 Properties: map[string]spec.Schema{ 5167 "assigned": { 5168 SchemaProps: spec.SchemaProps{ 5169 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.", 5170 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 5171 }, 5172 }, 5173 "active": { 5174 SchemaProps: spec.SchemaProps{ 5175 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.", 5176 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 5177 }, 5178 }, 5179 "lastKnownGood": { 5180 SchemaProps: spec.SchemaProps{ 5181 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.", 5182 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 5183 }, 5184 }, 5185 "error": { 5186 SchemaProps: spec.SchemaProps{ 5187 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.", 5188 Type: []string{"string"}, 5189 Format: "", 5190 }, 5191 }, 5192 }, 5193 }, 5194 }, 5195 Dependencies: []string{ 5196 "k8s.io/api/core/v1.NodeConfigSource"}, 5197 } 5198 } 5199 5200 func schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref common.ReferenceCallback) common.OpenAPIDefinition { 5201 return common.OpenAPIDefinition{ 5202 Schema: spec.Schema{ 5203 SchemaProps: spec.SchemaProps{ 5204 Description: "NodeDaemonEndpoints lists ports opened by daemons running on the Node.", 5205 Type: []string{"object"}, 5206 Properties: map[string]spec.Schema{ 5207 "kubeletEndpoint": { 5208 SchemaProps: spec.SchemaProps{ 5209 Description: "Endpoint on which Kubelet is listening.", 5210 Default: map[string]interface{}{}, 5211 Ref: ref("k8s.io/api/core/v1.DaemonEndpoint"), 5212 }, 5213 }, 5214 }, 5215 }, 5216 }, 5217 Dependencies: []string{ 5218 "k8s.io/api/core/v1.DaemonEndpoint"}, 5219 } 5220 } 5221 5222 func schema_k8sio_api_core_v1_NodeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 5223 return common.OpenAPIDefinition{ 5224 Schema: spec.Schema{ 5225 SchemaProps: spec.SchemaProps{ 5226 Description: "NodeList is the whole list of all Nodes which have been registered with master.", 5227 Type: []string{"object"}, 5228 Properties: map[string]spec.Schema{ 5229 "kind": { 5230 SchemaProps: spec.SchemaProps{ 5231 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5232 Type: []string{"string"}, 5233 Format: "", 5234 }, 5235 }, 5236 "apiVersion": { 5237 SchemaProps: spec.SchemaProps{ 5238 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 5239 Type: []string{"string"}, 5240 Format: "", 5241 }, 5242 }, 5243 "metadata": { 5244 SchemaProps: spec.SchemaProps{ 5245 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5246 Default: map[string]interface{}{}, 5247 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 5248 }, 5249 }, 5250 "items": { 5251 SchemaProps: spec.SchemaProps{ 5252 Description: "List of nodes", 5253 Type: []string{"array"}, 5254 Items: &spec.SchemaOrArray{ 5255 Schema: &spec.Schema{ 5256 SchemaProps: spec.SchemaProps{ 5257 Default: map[string]interface{}{}, 5258 Ref: ref("k8s.io/api/core/v1.Node"), 5259 }, 5260 }, 5261 }, 5262 }, 5263 }, 5264 }, 5265 Required: []string{"items"}, 5266 }, 5267 }, 5268 Dependencies: []string{ 5269 "k8s.io/api/core/v1.Node", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 5270 } 5271 } 5272 5273 func schema_k8sio_api_core_v1_NodeProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 5274 return common.OpenAPIDefinition{ 5275 Schema: spec.Schema{ 5276 SchemaProps: spec.SchemaProps{ 5277 Description: "NodeProxyOptions is the query options to a Node's proxy call.", 5278 Type: []string{"object"}, 5279 Properties: map[string]spec.Schema{ 5280 "kind": { 5281 SchemaProps: spec.SchemaProps{ 5282 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5283 Type: []string{"string"}, 5284 Format: "", 5285 }, 5286 }, 5287 "apiVersion": { 5288 SchemaProps: spec.SchemaProps{ 5289 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 5290 Type: []string{"string"}, 5291 Format: "", 5292 }, 5293 }, 5294 "path": { 5295 SchemaProps: spec.SchemaProps{ 5296 Description: "Path is the URL path to use for the current proxy request to node.", 5297 Type: []string{"string"}, 5298 Format: "", 5299 }, 5300 }, 5301 }, 5302 }, 5303 }, 5304 } 5305 } 5306 5307 func schema_k8sio_api_core_v1_NodeResources(ref common.ReferenceCallback) common.OpenAPIDefinition { 5308 return common.OpenAPIDefinition{ 5309 Schema: spec.Schema{ 5310 SchemaProps: spec.SchemaProps{ 5311 Description: "NodeResources is an object for conveying resource information about a node. see https://kubernetes.io/docs/concepts/architecture/nodes/#capacity for more details.", 5312 Type: []string{"object"}, 5313 Properties: map[string]spec.Schema{ 5314 "Capacity": { 5315 SchemaProps: spec.SchemaProps{ 5316 Description: "Capacity represents the available resources of a node", 5317 Type: []string{"object"}, 5318 AdditionalProperties: &spec.SchemaOrBool{ 5319 Allows: true, 5320 Schema: &spec.Schema{ 5321 SchemaProps: spec.SchemaProps{ 5322 Default: map[string]interface{}{}, 5323 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 5324 }, 5325 }, 5326 }, 5327 }, 5328 }, 5329 }, 5330 Required: []string{"Capacity"}, 5331 }, 5332 }, 5333 Dependencies: []string{ 5334 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 5335 } 5336 } 5337 5338 func schema_k8sio_api_core_v1_NodeSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 5339 return common.OpenAPIDefinition{ 5340 Schema: spec.Schema{ 5341 SchemaProps: spec.SchemaProps{ 5342 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.", 5343 Type: []string{"object"}, 5344 Properties: map[string]spec.Schema{ 5345 "nodeSelectorTerms": { 5346 SchemaProps: spec.SchemaProps{ 5347 Description: "Required. A list of node selector terms. The terms are ORed.", 5348 Type: []string{"array"}, 5349 Items: &spec.SchemaOrArray{ 5350 Schema: &spec.Schema{ 5351 SchemaProps: spec.SchemaProps{ 5352 Default: map[string]interface{}{}, 5353 Ref: ref("k8s.io/api/core/v1.NodeSelectorTerm"), 5354 }, 5355 }, 5356 }, 5357 }, 5358 }, 5359 }, 5360 Required: []string{"nodeSelectorTerms"}, 5361 }, 5362 VendorExtensible: spec.VendorExtensible{ 5363 Extensions: spec.Extensions{ 5364 "x-kubernetes-map-type": "atomic", 5365 }, 5366 }, 5367 }, 5368 Dependencies: []string{ 5369 "k8s.io/api/core/v1.NodeSelectorTerm"}, 5370 } 5371 } 5372 5373 func schema_k8sio_api_core_v1_NodeSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 5374 return common.OpenAPIDefinition{ 5375 Schema: spec.Schema{ 5376 SchemaProps: spec.SchemaProps{ 5377 Description: "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", 5378 Type: []string{"object"}, 5379 Properties: map[string]spec.Schema{ 5380 "key": { 5381 SchemaProps: spec.SchemaProps{ 5382 Description: "The label key that the selector applies to.", 5383 Default: "", 5384 Type: []string{"string"}, 5385 Format: "", 5386 }, 5387 }, 5388 "operator": { 5389 SchemaProps: spec.SchemaProps{ 5390 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\"`", 5391 Default: "", 5392 Type: []string{"string"}, 5393 Format: "", 5394 Enum: []interface{}{"DoesNotExist", "Exists", "Gt", "In", "Lt", "NotIn"}}, 5395 }, 5396 "values": { 5397 SchemaProps: spec.SchemaProps{ 5398 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.", 5399 Type: []string{"array"}, 5400 Items: &spec.SchemaOrArray{ 5401 Schema: &spec.Schema{ 5402 SchemaProps: spec.SchemaProps{ 5403 Default: "", 5404 Type: []string{"string"}, 5405 Format: "", 5406 }, 5407 }, 5408 }, 5409 }, 5410 }, 5411 }, 5412 Required: []string{"key", "operator"}, 5413 }, 5414 }, 5415 } 5416 } 5417 5418 func schema_k8sio_api_core_v1_NodeSelectorTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 5419 return common.OpenAPIDefinition{ 5420 Schema: spec.Schema{ 5421 SchemaProps: spec.SchemaProps{ 5422 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.", 5423 Type: []string{"object"}, 5424 Properties: map[string]spec.Schema{ 5425 "matchExpressions": { 5426 SchemaProps: spec.SchemaProps{ 5427 Description: "A list of node selector requirements by node's labels.", 5428 Type: []string{"array"}, 5429 Items: &spec.SchemaOrArray{ 5430 Schema: &spec.Schema{ 5431 SchemaProps: spec.SchemaProps{ 5432 Default: map[string]interface{}{}, 5433 Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), 5434 }, 5435 }, 5436 }, 5437 }, 5438 }, 5439 "matchFields": { 5440 SchemaProps: spec.SchemaProps{ 5441 Description: "A list of node selector requirements by node's fields.", 5442 Type: []string{"array"}, 5443 Items: &spec.SchemaOrArray{ 5444 Schema: &spec.Schema{ 5445 SchemaProps: spec.SchemaProps{ 5446 Default: map[string]interface{}{}, 5447 Ref: ref("k8s.io/api/core/v1.NodeSelectorRequirement"), 5448 }, 5449 }, 5450 }, 5451 }, 5452 }, 5453 }, 5454 }, 5455 VendorExtensible: spec.VendorExtensible{ 5456 Extensions: spec.Extensions{ 5457 "x-kubernetes-map-type": "atomic", 5458 }, 5459 }, 5460 }, 5461 Dependencies: []string{ 5462 "k8s.io/api/core/v1.NodeSelectorRequirement"}, 5463 } 5464 } 5465 5466 func schema_k8sio_api_core_v1_NodeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 5467 return common.OpenAPIDefinition{ 5468 Schema: spec.Schema{ 5469 SchemaProps: spec.SchemaProps{ 5470 Description: "NodeSpec describes the attributes that a node is created with.", 5471 Type: []string{"object"}, 5472 Properties: map[string]spec.Schema{ 5473 "podCIDR": { 5474 SchemaProps: spec.SchemaProps{ 5475 Description: "PodCIDR represents the pod IP range assigned to the node.", 5476 Type: []string{"string"}, 5477 Format: "", 5478 }, 5479 }, 5480 "podCIDRs": { 5481 VendorExtensible: spec.VendorExtensible{ 5482 Extensions: spec.Extensions{ 5483 "x-kubernetes-patch-strategy": "merge", 5484 }, 5485 }, 5486 SchemaProps: spec.SchemaProps{ 5487 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.", 5488 Type: []string{"array"}, 5489 Items: &spec.SchemaOrArray{ 5490 Schema: &spec.Schema{ 5491 SchemaProps: spec.SchemaProps{ 5492 Default: "", 5493 Type: []string{"string"}, 5494 Format: "", 5495 }, 5496 }, 5497 }, 5498 }, 5499 }, 5500 "providerID": { 5501 SchemaProps: spec.SchemaProps{ 5502 Description: "ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>", 5503 Type: []string{"string"}, 5504 Format: "", 5505 }, 5506 }, 5507 "unschedulable": { 5508 SchemaProps: spec.SchemaProps{ 5509 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", 5510 Type: []string{"boolean"}, 5511 Format: "", 5512 }, 5513 }, 5514 "taints": { 5515 SchemaProps: spec.SchemaProps{ 5516 Description: "If specified, the node's taints.", 5517 Type: []string{"array"}, 5518 Items: &spec.SchemaOrArray{ 5519 Schema: &spec.Schema{ 5520 SchemaProps: spec.SchemaProps{ 5521 Default: map[string]interface{}{}, 5522 Ref: ref("k8s.io/api/core/v1.Taint"), 5523 }, 5524 }, 5525 }, 5526 }, 5527 }, 5528 "configSource": { 5529 SchemaProps: spec.SchemaProps{ 5530 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.", 5531 Ref: ref("k8s.io/api/core/v1.NodeConfigSource"), 5532 }, 5533 }, 5534 "externalID": { 5535 SchemaProps: spec.SchemaProps{ 5536 Description: "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", 5537 Type: []string{"string"}, 5538 Format: "", 5539 }, 5540 }, 5541 }, 5542 }, 5543 }, 5544 Dependencies: []string{ 5545 "k8s.io/api/core/v1.NodeConfigSource", "k8s.io/api/core/v1.Taint"}, 5546 } 5547 } 5548 5549 func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 5550 return common.OpenAPIDefinition{ 5551 Schema: spec.Schema{ 5552 SchemaProps: spec.SchemaProps{ 5553 Description: "NodeStatus is information about the current status of a node.", 5554 Type: []string{"object"}, 5555 Properties: map[string]spec.Schema{ 5556 "capacity": { 5557 SchemaProps: spec.SchemaProps{ 5558 Description: "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", 5559 Type: []string{"object"}, 5560 AdditionalProperties: &spec.SchemaOrBool{ 5561 Allows: true, 5562 Schema: &spec.Schema{ 5563 SchemaProps: spec.SchemaProps{ 5564 Default: map[string]interface{}{}, 5565 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 5566 }, 5567 }, 5568 }, 5569 }, 5570 }, 5571 "allocatable": { 5572 SchemaProps: spec.SchemaProps{ 5573 Description: "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", 5574 Type: []string{"object"}, 5575 AdditionalProperties: &spec.SchemaOrBool{ 5576 Allows: true, 5577 Schema: &spec.Schema{ 5578 SchemaProps: spec.SchemaProps{ 5579 Default: map[string]interface{}{}, 5580 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 5581 }, 5582 }, 5583 }, 5584 }, 5585 }, 5586 "phase": { 5587 SchemaProps: spec.SchemaProps{ 5588 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.", 5589 Type: []string{"string"}, 5590 Format: "", 5591 Enum: []interface{}{"Pending", "Running", "Terminated"}}, 5592 }, 5593 "conditions": { 5594 VendorExtensible: spec.VendorExtensible{ 5595 Extensions: spec.Extensions{ 5596 "x-kubernetes-patch-merge-key": "type", 5597 "x-kubernetes-patch-strategy": "merge", 5598 }, 5599 }, 5600 SchemaProps: spec.SchemaProps{ 5601 Description: "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition", 5602 Type: []string{"array"}, 5603 Items: &spec.SchemaOrArray{ 5604 Schema: &spec.Schema{ 5605 SchemaProps: spec.SchemaProps{ 5606 Default: map[string]interface{}{}, 5607 Ref: ref("k8s.io/api/core/v1.NodeCondition"), 5608 }, 5609 }, 5610 }, 5611 }, 5612 }, 5613 "addresses": { 5614 VendorExtensible: spec.VendorExtensible{ 5615 Extensions: spec.Extensions{ 5616 "x-kubernetes-patch-merge-key": "type", 5617 "x-kubernetes-patch-strategy": "merge", 5618 }, 5619 }, 5620 SchemaProps: spec.SchemaProps{ 5621 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.", 5622 Type: []string{"array"}, 5623 Items: &spec.SchemaOrArray{ 5624 Schema: &spec.Schema{ 5625 SchemaProps: spec.SchemaProps{ 5626 Default: map[string]interface{}{}, 5627 Ref: ref("k8s.io/api/core/v1.NodeAddress"), 5628 }, 5629 }, 5630 }, 5631 }, 5632 }, 5633 "daemonEndpoints": { 5634 SchemaProps: spec.SchemaProps{ 5635 Description: "Endpoints of daemons running on the Node.", 5636 Default: map[string]interface{}{}, 5637 Ref: ref("k8s.io/api/core/v1.NodeDaemonEndpoints"), 5638 }, 5639 }, 5640 "nodeInfo": { 5641 SchemaProps: spec.SchemaProps{ 5642 Description: "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info", 5643 Default: map[string]interface{}{}, 5644 Ref: ref("k8s.io/api/core/v1.NodeSystemInfo"), 5645 }, 5646 }, 5647 "images": { 5648 SchemaProps: spec.SchemaProps{ 5649 Description: "List of container images on this node", 5650 Type: []string{"array"}, 5651 Items: &spec.SchemaOrArray{ 5652 Schema: &spec.Schema{ 5653 SchemaProps: spec.SchemaProps{ 5654 Default: map[string]interface{}{}, 5655 Ref: ref("k8s.io/api/core/v1.ContainerImage"), 5656 }, 5657 }, 5658 }, 5659 }, 5660 }, 5661 "volumesInUse": { 5662 SchemaProps: spec.SchemaProps{ 5663 Description: "List of attachable volumes in use (mounted) by the node.", 5664 Type: []string{"array"}, 5665 Items: &spec.SchemaOrArray{ 5666 Schema: &spec.Schema{ 5667 SchemaProps: spec.SchemaProps{ 5668 Default: "", 5669 Type: []string{"string"}, 5670 Format: "", 5671 }, 5672 }, 5673 }, 5674 }, 5675 }, 5676 "volumesAttached": { 5677 SchemaProps: spec.SchemaProps{ 5678 Description: "List of volumes that are attached to the node.", 5679 Type: []string{"array"}, 5680 Items: &spec.SchemaOrArray{ 5681 Schema: &spec.Schema{ 5682 SchemaProps: spec.SchemaProps{ 5683 Default: map[string]interface{}{}, 5684 Ref: ref("k8s.io/api/core/v1.AttachedVolume"), 5685 }, 5686 }, 5687 }, 5688 }, 5689 }, 5690 "config": { 5691 SchemaProps: spec.SchemaProps{ 5692 Description: "Status of the config assigned to the node via the dynamic Kubelet config feature.", 5693 Ref: ref("k8s.io/api/core/v1.NodeConfigStatus"), 5694 }, 5695 }, 5696 }, 5697 }, 5698 }, 5699 Dependencies: []string{ 5700 "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"}, 5701 } 5702 } 5703 5704 func schema_k8sio_api_core_v1_NodeSystemInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { 5705 return common.OpenAPIDefinition{ 5706 Schema: spec.Schema{ 5707 SchemaProps: spec.SchemaProps{ 5708 Description: "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.", 5709 Type: []string{"object"}, 5710 Properties: map[string]spec.Schema{ 5711 "machineID": { 5712 SchemaProps: spec.SchemaProps{ 5713 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", 5714 Default: "", 5715 Type: []string{"string"}, 5716 Format: "", 5717 }, 5718 }, 5719 "systemUUID": { 5720 SchemaProps: spec.SchemaProps{ 5721 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", 5722 Default: "", 5723 Type: []string{"string"}, 5724 Format: "", 5725 }, 5726 }, 5727 "bootID": { 5728 SchemaProps: spec.SchemaProps{ 5729 Description: "Boot ID reported by the node.", 5730 Default: "", 5731 Type: []string{"string"}, 5732 Format: "", 5733 }, 5734 }, 5735 "kernelVersion": { 5736 SchemaProps: spec.SchemaProps{ 5737 Description: "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).", 5738 Default: "", 5739 Type: []string{"string"}, 5740 Format: "", 5741 }, 5742 }, 5743 "osImage": { 5744 SchemaProps: spec.SchemaProps{ 5745 Description: "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).", 5746 Default: "", 5747 Type: []string{"string"}, 5748 Format: "", 5749 }, 5750 }, 5751 "containerRuntimeVersion": { 5752 SchemaProps: spec.SchemaProps{ 5753 Description: "ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).", 5754 Default: "", 5755 Type: []string{"string"}, 5756 Format: "", 5757 }, 5758 }, 5759 "kubeletVersion": { 5760 SchemaProps: spec.SchemaProps{ 5761 Description: "Kubelet Version reported by the node.", 5762 Default: "", 5763 Type: []string{"string"}, 5764 Format: "", 5765 }, 5766 }, 5767 "kubeProxyVersion": { 5768 SchemaProps: spec.SchemaProps{ 5769 Description: "KubeProxy Version reported by the node.", 5770 Default: "", 5771 Type: []string{"string"}, 5772 Format: "", 5773 }, 5774 }, 5775 "operatingSystem": { 5776 SchemaProps: spec.SchemaProps{ 5777 Description: "The Operating System reported by the node", 5778 Default: "", 5779 Type: []string{"string"}, 5780 Format: "", 5781 }, 5782 }, 5783 "architecture": { 5784 SchemaProps: spec.SchemaProps{ 5785 Description: "The Architecture reported by the node", 5786 Default: "", 5787 Type: []string{"string"}, 5788 Format: "", 5789 }, 5790 }, 5791 }, 5792 Required: []string{"machineID", "systemUUID", "bootID", "kernelVersion", "osImage", "containerRuntimeVersion", "kubeletVersion", "kubeProxyVersion", "operatingSystem", "architecture"}, 5793 }, 5794 }, 5795 } 5796 } 5797 5798 func schema_k8sio_api_core_v1_ObjectFieldSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 5799 return common.OpenAPIDefinition{ 5800 Schema: spec.Schema{ 5801 SchemaProps: spec.SchemaProps{ 5802 Description: "ObjectFieldSelector selects an APIVersioned field of an object.", 5803 Type: []string{"object"}, 5804 Properties: map[string]spec.Schema{ 5805 "apiVersion": { 5806 SchemaProps: spec.SchemaProps{ 5807 Description: "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".", 5808 Type: []string{"string"}, 5809 Format: "", 5810 }, 5811 }, 5812 "fieldPath": { 5813 SchemaProps: spec.SchemaProps{ 5814 Description: "Path of the field to select in the specified API version.", 5815 Default: "", 5816 Type: []string{"string"}, 5817 Format: "", 5818 }, 5819 }, 5820 }, 5821 Required: []string{"fieldPath"}, 5822 }, 5823 VendorExtensible: spec.VendorExtensible{ 5824 Extensions: spec.Extensions{ 5825 "x-kubernetes-map-type": "atomic", 5826 }, 5827 }, 5828 }, 5829 } 5830 } 5831 5832 func schema_k8sio_api_core_v1_ObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 5833 return common.OpenAPIDefinition{ 5834 Schema: spec.Schema{ 5835 SchemaProps: spec.SchemaProps{ 5836 Description: "ObjectReference contains enough information to let you inspect or modify the referred object.", 5837 Type: []string{"object"}, 5838 Properties: map[string]spec.Schema{ 5839 "kind": { 5840 SchemaProps: spec.SchemaProps{ 5841 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5842 Type: []string{"string"}, 5843 Format: "", 5844 }, 5845 }, 5846 "namespace": { 5847 SchemaProps: spec.SchemaProps{ 5848 Description: "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/", 5849 Type: []string{"string"}, 5850 Format: "", 5851 }, 5852 }, 5853 "name": { 5854 SchemaProps: spec.SchemaProps{ 5855 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 5856 Type: []string{"string"}, 5857 Format: "", 5858 }, 5859 }, 5860 "uid": { 5861 SchemaProps: spec.SchemaProps{ 5862 Description: "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids", 5863 Type: []string{"string"}, 5864 Format: "", 5865 }, 5866 }, 5867 "apiVersion": { 5868 SchemaProps: spec.SchemaProps{ 5869 Description: "API version of the referent.", 5870 Type: []string{"string"}, 5871 Format: "", 5872 }, 5873 }, 5874 "resourceVersion": { 5875 SchemaProps: spec.SchemaProps{ 5876 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", 5877 Type: []string{"string"}, 5878 Format: "", 5879 }, 5880 }, 5881 "fieldPath": { 5882 SchemaProps: spec.SchemaProps{ 5883 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.", 5884 Type: []string{"string"}, 5885 Format: "", 5886 }, 5887 }, 5888 }, 5889 }, 5890 VendorExtensible: spec.VendorExtensible{ 5891 Extensions: spec.Extensions{ 5892 "x-kubernetes-map-type": "atomic", 5893 }, 5894 }, 5895 }, 5896 } 5897 } 5898 5899 func schema_k8sio_api_core_v1_PersistentVolume(ref common.ReferenceCallback) common.OpenAPIDefinition { 5900 return common.OpenAPIDefinition{ 5901 Schema: spec.Schema{ 5902 SchemaProps: spec.SchemaProps{ 5903 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", 5904 Type: []string{"object"}, 5905 Properties: map[string]spec.Schema{ 5906 "kind": { 5907 SchemaProps: spec.SchemaProps{ 5908 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5909 Type: []string{"string"}, 5910 Format: "", 5911 }, 5912 }, 5913 "apiVersion": { 5914 SchemaProps: spec.SchemaProps{ 5915 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 5916 Type: []string{"string"}, 5917 Format: "", 5918 }, 5919 }, 5920 "metadata": { 5921 SchemaProps: spec.SchemaProps{ 5922 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 5923 Default: map[string]interface{}{}, 5924 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 5925 }, 5926 }, 5927 "spec": { 5928 SchemaProps: spec.SchemaProps{ 5929 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", 5930 Default: map[string]interface{}{}, 5931 Ref: ref("k8s.io/api/core/v1.PersistentVolumeSpec"), 5932 }, 5933 }, 5934 "status": { 5935 SchemaProps: spec.SchemaProps{ 5936 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", 5937 Default: map[string]interface{}{}, 5938 Ref: ref("k8s.io/api/core/v1.PersistentVolumeStatus"), 5939 }, 5940 }, 5941 }, 5942 }, 5943 }, 5944 Dependencies: []string{ 5945 "k8s.io/api/core/v1.PersistentVolumeSpec", "k8s.io/api/core/v1.PersistentVolumeStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 5946 } 5947 } 5948 5949 func schema_k8sio_api_core_v1_PersistentVolumeClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { 5950 return common.OpenAPIDefinition{ 5951 Schema: spec.Schema{ 5952 SchemaProps: spec.SchemaProps{ 5953 Description: "PersistentVolumeClaim is a user's request for and claim to a persistent volume", 5954 Type: []string{"object"}, 5955 Properties: map[string]spec.Schema{ 5956 "kind": { 5957 SchemaProps: spec.SchemaProps{ 5958 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 5959 Type: []string{"string"}, 5960 Format: "", 5961 }, 5962 }, 5963 "apiVersion": { 5964 SchemaProps: spec.SchemaProps{ 5965 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 5966 Type: []string{"string"}, 5967 Format: "", 5968 }, 5969 }, 5970 "metadata": { 5971 SchemaProps: spec.SchemaProps{ 5972 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 5973 Default: map[string]interface{}{}, 5974 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 5975 }, 5976 }, 5977 "spec": { 5978 SchemaProps: spec.SchemaProps{ 5979 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", 5980 Default: map[string]interface{}{}, 5981 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), 5982 }, 5983 }, 5984 "status": { 5985 SchemaProps: spec.SchemaProps{ 5986 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", 5987 Default: map[string]interface{}{}, 5988 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimStatus"), 5989 }, 5990 }, 5991 }, 5992 }, 5993 }, 5994 Dependencies: []string{ 5995 "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/api/core/v1.PersistentVolumeClaimStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 5996 } 5997 } 5998 5999 func schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 6000 return common.OpenAPIDefinition{ 6001 Schema: spec.Schema{ 6002 SchemaProps: spec.SchemaProps{ 6003 Description: "PersistentVolumeClaimCondition contails details about state of pvc", 6004 Type: []string{"object"}, 6005 Properties: map[string]spec.Schema{ 6006 "type": { 6007 SchemaProps: spec.SchemaProps{ 6008 Default: "", 6009 Type: []string{"string"}, 6010 Format: "", 6011 }, 6012 }, 6013 "status": { 6014 SchemaProps: spec.SchemaProps{ 6015 Default: "", 6016 Type: []string{"string"}, 6017 Format: "", 6018 }, 6019 }, 6020 "lastProbeTime": { 6021 SchemaProps: spec.SchemaProps{ 6022 Description: "lastProbeTime is the time we probed the condition.", 6023 Default: map[string]interface{}{}, 6024 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 6025 }, 6026 }, 6027 "lastTransitionTime": { 6028 SchemaProps: spec.SchemaProps{ 6029 Description: "lastTransitionTime is the time the condition transitioned from one status to another.", 6030 Default: map[string]interface{}{}, 6031 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 6032 }, 6033 }, 6034 "reason": { 6035 SchemaProps: spec.SchemaProps{ 6036 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.", 6037 Type: []string{"string"}, 6038 Format: "", 6039 }, 6040 }, 6041 "message": { 6042 SchemaProps: spec.SchemaProps{ 6043 Description: "message is the human-readable message indicating details about last transition.", 6044 Type: []string{"string"}, 6045 Format: "", 6046 }, 6047 }, 6048 }, 6049 Required: []string{"type", "status"}, 6050 }, 6051 }, 6052 Dependencies: []string{ 6053 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 6054 } 6055 } 6056 6057 func schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { 6058 return common.OpenAPIDefinition{ 6059 Schema: spec.Schema{ 6060 SchemaProps: spec.SchemaProps{ 6061 Description: "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.", 6062 Type: []string{"object"}, 6063 Properties: map[string]spec.Schema{ 6064 "kind": { 6065 SchemaProps: spec.SchemaProps{ 6066 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6067 Type: []string{"string"}, 6068 Format: "", 6069 }, 6070 }, 6071 "apiVersion": { 6072 SchemaProps: spec.SchemaProps{ 6073 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 6074 Type: []string{"string"}, 6075 Format: "", 6076 }, 6077 }, 6078 "metadata": { 6079 SchemaProps: spec.SchemaProps{ 6080 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6081 Default: map[string]interface{}{}, 6082 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 6083 }, 6084 }, 6085 "items": { 6086 SchemaProps: spec.SchemaProps{ 6087 Description: "items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", 6088 Type: []string{"array"}, 6089 Items: &spec.SchemaOrArray{ 6090 Schema: &spec.Schema{ 6091 SchemaProps: spec.SchemaProps{ 6092 Default: map[string]interface{}{}, 6093 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaim"), 6094 }, 6095 }, 6096 }, 6097 }, 6098 }, 6099 }, 6100 Required: []string{"items"}, 6101 }, 6102 }, 6103 Dependencies: []string{ 6104 "k8s.io/api/core/v1.PersistentVolumeClaim", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 6105 } 6106 } 6107 6108 func schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 6109 return common.OpenAPIDefinition{ 6110 Schema: spec.Schema{ 6111 SchemaProps: spec.SchemaProps{ 6112 Description: "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes", 6113 Type: []string{"object"}, 6114 Properties: map[string]spec.Schema{ 6115 "accessModes": { 6116 SchemaProps: spec.SchemaProps{ 6117 Description: "accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1", 6118 Type: []string{"array"}, 6119 Items: &spec.SchemaOrArray{ 6120 Schema: &spec.Schema{ 6121 SchemaProps: spec.SchemaProps{ 6122 Default: "", 6123 Type: []string{"string"}, 6124 Format: "", 6125 }, 6126 }, 6127 }, 6128 }, 6129 }, 6130 "selector": { 6131 SchemaProps: spec.SchemaProps{ 6132 Description: "selector is a label query over volumes to consider for binding.", 6133 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 6134 }, 6135 }, 6136 "resources": { 6137 SchemaProps: spec.SchemaProps{ 6138 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", 6139 Default: map[string]interface{}{}, 6140 Ref: ref("k8s.io/api/core/v1.ResourceRequirements"), 6141 }, 6142 }, 6143 "volumeName": { 6144 SchemaProps: spec.SchemaProps{ 6145 Description: "volumeName is the binding reference to the PersistentVolume backing this claim.", 6146 Type: []string{"string"}, 6147 Format: "", 6148 }, 6149 }, 6150 "storageClassName": { 6151 SchemaProps: spec.SchemaProps{ 6152 Description: "storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1", 6153 Type: []string{"string"}, 6154 Format: "", 6155 }, 6156 }, 6157 "volumeMode": { 6158 SchemaProps: spec.SchemaProps{ 6159 Description: "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.", 6160 Type: []string{"string"}, 6161 Format: "", 6162 }, 6163 }, 6164 "dataSource": { 6165 SchemaProps: spec.SchemaProps{ 6166 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.", 6167 Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), 6168 }, 6169 }, 6170 "dataSourceRef": { 6171 SchemaProps: spec.SchemaProps{ 6172 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.", 6173 Ref: ref("k8s.io/api/core/v1.TypedLocalObjectReference"), 6174 }, 6175 }, 6176 }, 6177 }, 6178 }, 6179 Dependencies: []string{ 6180 "k8s.io/api/core/v1.ResourceRequirements", "k8s.io/api/core/v1.TypedLocalObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 6181 } 6182 } 6183 6184 func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 6185 return common.OpenAPIDefinition{ 6186 Schema: spec.Schema{ 6187 SchemaProps: spec.SchemaProps{ 6188 Description: "PersistentVolumeClaimStatus is the current status of a persistent volume claim.", 6189 Type: []string{"object"}, 6190 Properties: map[string]spec.Schema{ 6191 "phase": { 6192 SchemaProps: spec.SchemaProps{ 6193 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", 6194 Type: []string{"string"}, 6195 Format: "", 6196 Enum: []interface{}{"Bound", "Lost", "Pending"}}, 6197 }, 6198 "accessModes": { 6199 SchemaProps: spec.SchemaProps{ 6200 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", 6201 Type: []string{"array"}, 6202 Items: &spec.SchemaOrArray{ 6203 Schema: &spec.Schema{ 6204 SchemaProps: spec.SchemaProps{ 6205 Default: "", 6206 Type: []string{"string"}, 6207 Format: "", 6208 }, 6209 }, 6210 }, 6211 }, 6212 }, 6213 "capacity": { 6214 SchemaProps: spec.SchemaProps{ 6215 Description: "capacity represents the actual resources of the underlying volume.", 6216 Type: []string{"object"}, 6217 AdditionalProperties: &spec.SchemaOrBool{ 6218 Allows: true, 6219 Schema: &spec.Schema{ 6220 SchemaProps: spec.SchemaProps{ 6221 Default: map[string]interface{}{}, 6222 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 6223 }, 6224 }, 6225 }, 6226 }, 6227 }, 6228 "conditions": { 6229 VendorExtensible: spec.VendorExtensible{ 6230 Extensions: spec.Extensions{ 6231 "x-kubernetes-patch-merge-key": "type", 6232 "x-kubernetes-patch-strategy": "merge", 6233 }, 6234 }, 6235 SchemaProps: spec.SchemaProps{ 6236 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'.", 6237 Type: []string{"array"}, 6238 Items: &spec.SchemaOrArray{ 6239 Schema: &spec.Schema{ 6240 SchemaProps: spec.SchemaProps{ 6241 Default: map[string]interface{}{}, 6242 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimCondition"), 6243 }, 6244 }, 6245 }, 6246 }, 6247 }, 6248 "allocatedResources": { 6249 SchemaProps: spec.SchemaProps{ 6250 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.", 6251 Type: []string{"object"}, 6252 AdditionalProperties: &spec.SchemaOrBool{ 6253 Allows: true, 6254 Schema: &spec.Schema{ 6255 SchemaProps: spec.SchemaProps{ 6256 Default: map[string]interface{}{}, 6257 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 6258 }, 6259 }, 6260 }, 6261 }, 6262 }, 6263 "resizeStatus": { 6264 SchemaProps: spec.SchemaProps{ 6265 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.", 6266 Type: []string{"string"}, 6267 Format: "", 6268 }, 6269 }, 6270 }, 6271 }, 6272 }, 6273 Dependencies: []string{ 6274 "k8s.io/api/core/v1.PersistentVolumeClaimCondition", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 6275 } 6276 } 6277 6278 func schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 6279 return common.OpenAPIDefinition{ 6280 Schema: spec.Schema{ 6281 SchemaProps: spec.SchemaProps{ 6282 Description: "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.", 6283 Type: []string{"object"}, 6284 Properties: map[string]spec.Schema{ 6285 "metadata": { 6286 SchemaProps: spec.SchemaProps{ 6287 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.", 6288 Default: map[string]interface{}{}, 6289 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 6290 }, 6291 }, 6292 "spec": { 6293 SchemaProps: spec.SchemaProps{ 6294 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.", 6295 Default: map[string]interface{}{}, 6296 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimSpec"), 6297 }, 6298 }, 6299 }, 6300 Required: []string{"spec"}, 6301 }, 6302 }, 6303 Dependencies: []string{ 6304 "k8s.io/api/core/v1.PersistentVolumeClaimSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 6305 } 6306 } 6307 6308 func schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 6309 return common.OpenAPIDefinition{ 6310 Schema: spec.Schema{ 6311 SchemaProps: spec.SchemaProps{ 6312 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).", 6313 Type: []string{"object"}, 6314 Properties: map[string]spec.Schema{ 6315 "claimName": { 6316 SchemaProps: spec.SchemaProps{ 6317 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", 6318 Default: "", 6319 Type: []string{"string"}, 6320 Format: "", 6321 }, 6322 }, 6323 "readOnly": { 6324 SchemaProps: spec.SchemaProps{ 6325 Description: "readOnly Will force the ReadOnly setting in VolumeMounts. Default false.", 6326 Type: []string{"boolean"}, 6327 Format: "", 6328 }, 6329 }, 6330 }, 6331 Required: []string{"claimName"}, 6332 }, 6333 }, 6334 } 6335 } 6336 6337 func schema_k8sio_api_core_v1_PersistentVolumeList(ref common.ReferenceCallback) common.OpenAPIDefinition { 6338 return common.OpenAPIDefinition{ 6339 Schema: spec.Schema{ 6340 SchemaProps: spec.SchemaProps{ 6341 Description: "PersistentVolumeList is a list of PersistentVolume items.", 6342 Type: []string{"object"}, 6343 Properties: map[string]spec.Schema{ 6344 "kind": { 6345 SchemaProps: spec.SchemaProps{ 6346 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6347 Type: []string{"string"}, 6348 Format: "", 6349 }, 6350 }, 6351 "apiVersion": { 6352 SchemaProps: spec.SchemaProps{ 6353 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 6354 Type: []string{"string"}, 6355 Format: "", 6356 }, 6357 }, 6358 "metadata": { 6359 SchemaProps: spec.SchemaProps{ 6360 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6361 Default: map[string]interface{}{}, 6362 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 6363 }, 6364 }, 6365 "items": { 6366 SchemaProps: spec.SchemaProps{ 6367 Description: "items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes", 6368 Type: []string{"array"}, 6369 Items: &spec.SchemaOrArray{ 6370 Schema: &spec.Schema{ 6371 SchemaProps: spec.SchemaProps{ 6372 Default: map[string]interface{}{}, 6373 Ref: ref("k8s.io/api/core/v1.PersistentVolume"), 6374 }, 6375 }, 6376 }, 6377 }, 6378 }, 6379 }, 6380 Required: []string{"items"}, 6381 }, 6382 }, 6383 Dependencies: []string{ 6384 "k8s.io/api/core/v1.PersistentVolume", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 6385 } 6386 } 6387 6388 func schema_k8sio_api_core_v1_PersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 6389 return common.OpenAPIDefinition{ 6390 Schema: spec.Schema{ 6391 SchemaProps: spec.SchemaProps{ 6392 Description: "PersistentVolumeSource is similar to VolumeSource but meant for the administrator who creates PVs. Exactly one of its members must be set.", 6393 Type: []string{"object"}, 6394 Properties: map[string]spec.Schema{ 6395 "gcePersistentDisk": { 6396 SchemaProps: spec.SchemaProps{ 6397 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", 6398 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 6399 }, 6400 }, 6401 "awsElasticBlockStore": { 6402 SchemaProps: spec.SchemaProps{ 6403 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", 6404 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 6405 }, 6406 }, 6407 "hostPath": { 6408 SchemaProps: spec.SchemaProps{ 6409 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", 6410 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 6411 }, 6412 }, 6413 "glusterfs": { 6414 SchemaProps: spec.SchemaProps{ 6415 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", 6416 Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), 6417 }, 6418 }, 6419 "nfs": { 6420 SchemaProps: spec.SchemaProps{ 6421 Description: "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 6422 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 6423 }, 6424 }, 6425 "rbd": { 6426 SchemaProps: spec.SchemaProps{ 6427 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", 6428 Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), 6429 }, 6430 }, 6431 "iscsi": { 6432 SchemaProps: spec.SchemaProps{ 6433 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.", 6434 Ref: ref("k8s.io/api/core/v1.ISCSIPersistentVolumeSource"), 6435 }, 6436 }, 6437 "cinder": { 6438 SchemaProps: spec.SchemaProps{ 6439 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 6440 Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), 6441 }, 6442 }, 6443 "cephfs": { 6444 SchemaProps: spec.SchemaProps{ 6445 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 6446 Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), 6447 }, 6448 }, 6449 "fc": { 6450 SchemaProps: spec.SchemaProps{ 6451 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 6452 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 6453 }, 6454 }, 6455 "flocker": { 6456 SchemaProps: spec.SchemaProps{ 6457 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", 6458 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 6459 }, 6460 }, 6461 "flexVolume": { 6462 SchemaProps: spec.SchemaProps{ 6463 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 6464 Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), 6465 }, 6466 }, 6467 "azureFile": { 6468 SchemaProps: spec.SchemaProps{ 6469 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 6470 Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), 6471 }, 6472 }, 6473 "vsphereVolume": { 6474 SchemaProps: spec.SchemaProps{ 6475 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 6476 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 6477 }, 6478 }, 6479 "quobyte": { 6480 SchemaProps: spec.SchemaProps{ 6481 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 6482 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 6483 }, 6484 }, 6485 "azureDisk": { 6486 SchemaProps: spec.SchemaProps{ 6487 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 6488 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 6489 }, 6490 }, 6491 "photonPersistentDisk": { 6492 SchemaProps: spec.SchemaProps{ 6493 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 6494 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 6495 }, 6496 }, 6497 "portworxVolume": { 6498 SchemaProps: spec.SchemaProps{ 6499 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 6500 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 6501 }, 6502 }, 6503 "scaleIO": { 6504 SchemaProps: spec.SchemaProps{ 6505 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 6506 Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), 6507 }, 6508 }, 6509 "local": { 6510 SchemaProps: spec.SchemaProps{ 6511 Description: "local represents directly-attached storage with node affinity", 6512 Ref: ref("k8s.io/api/core/v1.LocalVolumeSource"), 6513 }, 6514 }, 6515 "storageos": { 6516 SchemaProps: spec.SchemaProps{ 6517 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", 6518 Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), 6519 }, 6520 }, 6521 "csi": { 6522 SchemaProps: spec.SchemaProps{ 6523 Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", 6524 Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), 6525 }, 6526 }, 6527 }, 6528 }, 6529 }, 6530 Dependencies: []string{ 6531 "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"}, 6532 } 6533 } 6534 6535 func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 6536 return common.OpenAPIDefinition{ 6537 Schema: spec.Schema{ 6538 SchemaProps: spec.SchemaProps{ 6539 Description: "PersistentVolumeSpec is the specification of a persistent volume.", 6540 Type: []string{"object"}, 6541 Properties: map[string]spec.Schema{ 6542 "capacity": { 6543 SchemaProps: spec.SchemaProps{ 6544 Description: "capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity", 6545 Type: []string{"object"}, 6546 AdditionalProperties: &spec.SchemaOrBool{ 6547 Allows: true, 6548 Schema: &spec.Schema{ 6549 SchemaProps: spec.SchemaProps{ 6550 Default: map[string]interface{}{}, 6551 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 6552 }, 6553 }, 6554 }, 6555 }, 6556 }, 6557 "gcePersistentDisk": { 6558 SchemaProps: spec.SchemaProps{ 6559 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", 6560 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 6561 }, 6562 }, 6563 "awsElasticBlockStore": { 6564 SchemaProps: spec.SchemaProps{ 6565 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", 6566 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 6567 }, 6568 }, 6569 "hostPath": { 6570 SchemaProps: spec.SchemaProps{ 6571 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", 6572 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 6573 }, 6574 }, 6575 "glusterfs": { 6576 SchemaProps: spec.SchemaProps{ 6577 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", 6578 Ref: ref("k8s.io/api/core/v1.GlusterfsPersistentVolumeSource"), 6579 }, 6580 }, 6581 "nfs": { 6582 SchemaProps: spec.SchemaProps{ 6583 Description: "nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", 6584 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 6585 }, 6586 }, 6587 "rbd": { 6588 SchemaProps: spec.SchemaProps{ 6589 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", 6590 Ref: ref("k8s.io/api/core/v1.RBDPersistentVolumeSource"), 6591 }, 6592 }, 6593 "iscsi": { 6594 SchemaProps: spec.SchemaProps{ 6595 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.", 6596 Ref: ref("k8s.io/api/core/v1.ISCSIPersistentVolumeSource"), 6597 }, 6598 }, 6599 "cinder": { 6600 SchemaProps: spec.SchemaProps{ 6601 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 6602 Ref: ref("k8s.io/api/core/v1.CinderPersistentVolumeSource"), 6603 }, 6604 }, 6605 "cephfs": { 6606 SchemaProps: spec.SchemaProps{ 6607 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 6608 Ref: ref("k8s.io/api/core/v1.CephFSPersistentVolumeSource"), 6609 }, 6610 }, 6611 "fc": { 6612 SchemaProps: spec.SchemaProps{ 6613 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 6614 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 6615 }, 6616 }, 6617 "flocker": { 6618 SchemaProps: spec.SchemaProps{ 6619 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", 6620 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 6621 }, 6622 }, 6623 "flexVolume": { 6624 SchemaProps: spec.SchemaProps{ 6625 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 6626 Ref: ref("k8s.io/api/core/v1.FlexPersistentVolumeSource"), 6627 }, 6628 }, 6629 "azureFile": { 6630 SchemaProps: spec.SchemaProps{ 6631 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 6632 Ref: ref("k8s.io/api/core/v1.AzureFilePersistentVolumeSource"), 6633 }, 6634 }, 6635 "vsphereVolume": { 6636 SchemaProps: spec.SchemaProps{ 6637 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 6638 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 6639 }, 6640 }, 6641 "quobyte": { 6642 SchemaProps: spec.SchemaProps{ 6643 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 6644 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 6645 }, 6646 }, 6647 "azureDisk": { 6648 SchemaProps: spec.SchemaProps{ 6649 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 6650 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 6651 }, 6652 }, 6653 "photonPersistentDisk": { 6654 SchemaProps: spec.SchemaProps{ 6655 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 6656 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 6657 }, 6658 }, 6659 "portworxVolume": { 6660 SchemaProps: spec.SchemaProps{ 6661 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 6662 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 6663 }, 6664 }, 6665 "scaleIO": { 6666 SchemaProps: spec.SchemaProps{ 6667 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 6668 Ref: ref("k8s.io/api/core/v1.ScaleIOPersistentVolumeSource"), 6669 }, 6670 }, 6671 "local": { 6672 SchemaProps: spec.SchemaProps{ 6673 Description: "local represents directly-attached storage with node affinity", 6674 Ref: ref("k8s.io/api/core/v1.LocalVolumeSource"), 6675 }, 6676 }, 6677 "storageos": { 6678 SchemaProps: spec.SchemaProps{ 6679 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", 6680 Ref: ref("k8s.io/api/core/v1.StorageOSPersistentVolumeSource"), 6681 }, 6682 }, 6683 "csi": { 6684 SchemaProps: spec.SchemaProps{ 6685 Description: "csi represents storage that is handled by an external CSI driver (Beta feature).", 6686 Ref: ref("k8s.io/api/core/v1.CSIPersistentVolumeSource"), 6687 }, 6688 }, 6689 "accessModes": { 6690 SchemaProps: spec.SchemaProps{ 6691 Description: "accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes", 6692 Type: []string{"array"}, 6693 Items: &spec.SchemaOrArray{ 6694 Schema: &spec.Schema{ 6695 SchemaProps: spec.SchemaProps{ 6696 Default: "", 6697 Type: []string{"string"}, 6698 Format: "", 6699 }, 6700 }, 6701 }, 6702 }, 6703 }, 6704 "claimRef": { 6705 VendorExtensible: spec.VendorExtensible{ 6706 Extensions: spec.Extensions{ 6707 "x-kubernetes-map-type": "granular", 6708 }, 6709 }, 6710 SchemaProps: spec.SchemaProps{ 6711 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", 6712 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 6713 }, 6714 }, 6715 "persistentVolumeReclaimPolicy": { 6716 SchemaProps: spec.SchemaProps{ 6717 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.", 6718 Type: []string{"string"}, 6719 Format: "", 6720 Enum: []interface{}{"Delete", "Recycle", "Retain"}}, 6721 }, 6722 "storageClassName": { 6723 SchemaProps: spec.SchemaProps{ 6724 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.", 6725 Type: []string{"string"}, 6726 Format: "", 6727 }, 6728 }, 6729 "mountOptions": { 6730 SchemaProps: spec.SchemaProps{ 6731 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", 6732 Type: []string{"array"}, 6733 Items: &spec.SchemaOrArray{ 6734 Schema: &spec.Schema{ 6735 SchemaProps: spec.SchemaProps{ 6736 Default: "", 6737 Type: []string{"string"}, 6738 Format: "", 6739 }, 6740 }, 6741 }, 6742 }, 6743 }, 6744 "volumeMode": { 6745 SchemaProps: spec.SchemaProps{ 6746 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.", 6747 Type: []string{"string"}, 6748 Format: "", 6749 }, 6750 }, 6751 "nodeAffinity": { 6752 SchemaProps: spec.SchemaProps{ 6753 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.", 6754 Ref: ref("k8s.io/api/core/v1.VolumeNodeAffinity"), 6755 }, 6756 }, 6757 }, 6758 }, 6759 }, 6760 Dependencies: []string{ 6761 "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"}, 6762 } 6763 } 6764 6765 func schema_k8sio_api_core_v1_PersistentVolumeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 6766 return common.OpenAPIDefinition{ 6767 Schema: spec.Schema{ 6768 SchemaProps: spec.SchemaProps{ 6769 Description: "PersistentVolumeStatus is the current status of a persistent volume.", 6770 Type: []string{"object"}, 6771 Properties: map[string]spec.Schema{ 6772 "phase": { 6773 SchemaProps: spec.SchemaProps{ 6774 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", 6775 Type: []string{"string"}, 6776 Format: "", 6777 Enum: []interface{}{"Available", "Bound", "Failed", "Pending", "Released"}}, 6778 }, 6779 "message": { 6780 SchemaProps: spec.SchemaProps{ 6781 Description: "message is a human-readable message indicating details about why the volume is in this state.", 6782 Type: []string{"string"}, 6783 Format: "", 6784 }, 6785 }, 6786 "reason": { 6787 SchemaProps: spec.SchemaProps{ 6788 Description: "reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.", 6789 Type: []string{"string"}, 6790 Format: "", 6791 }, 6792 }, 6793 }, 6794 }, 6795 }, 6796 } 6797 } 6798 6799 func schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 6800 return common.OpenAPIDefinition{ 6801 Schema: spec.Schema{ 6802 SchemaProps: spec.SchemaProps{ 6803 Description: "Represents a Photon Controller persistent disk resource.", 6804 Type: []string{"object"}, 6805 Properties: map[string]spec.Schema{ 6806 "pdID": { 6807 SchemaProps: spec.SchemaProps{ 6808 Description: "pdID is the ID that identifies Photon Controller persistent disk", 6809 Default: "", 6810 Type: []string{"string"}, 6811 Format: "", 6812 }, 6813 }, 6814 "fsType": { 6815 SchemaProps: spec.SchemaProps{ 6816 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.", 6817 Type: []string{"string"}, 6818 Format: "", 6819 }, 6820 }, 6821 }, 6822 Required: []string{"pdID"}, 6823 }, 6824 }, 6825 } 6826 } 6827 6828 func schema_k8sio_api_core_v1_Pod(ref common.ReferenceCallback) common.OpenAPIDefinition { 6829 return common.OpenAPIDefinition{ 6830 Schema: spec.Schema{ 6831 SchemaProps: spec.SchemaProps{ 6832 Description: "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.", 6833 Type: []string{"object"}, 6834 Properties: map[string]spec.Schema{ 6835 "kind": { 6836 SchemaProps: spec.SchemaProps{ 6837 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 6838 Type: []string{"string"}, 6839 Format: "", 6840 }, 6841 }, 6842 "apiVersion": { 6843 SchemaProps: spec.SchemaProps{ 6844 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 6845 Type: []string{"string"}, 6846 Format: "", 6847 }, 6848 }, 6849 "metadata": { 6850 SchemaProps: spec.SchemaProps{ 6851 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 6852 Default: map[string]interface{}{}, 6853 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 6854 }, 6855 }, 6856 "spec": { 6857 SchemaProps: spec.SchemaProps{ 6858 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", 6859 Default: map[string]interface{}{}, 6860 Ref: ref("k8s.io/api/core/v1.PodSpec"), 6861 }, 6862 }, 6863 "status": { 6864 SchemaProps: spec.SchemaProps{ 6865 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", 6866 Default: map[string]interface{}{}, 6867 Ref: ref("k8s.io/api/core/v1.PodStatus"), 6868 }, 6869 }, 6870 }, 6871 }, 6872 }, 6873 Dependencies: []string{ 6874 "k8s.io/api/core/v1.PodSpec", "k8s.io/api/core/v1.PodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 6875 } 6876 } 6877 6878 func schema_k8sio_api_core_v1_PodAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 6879 return common.OpenAPIDefinition{ 6880 Schema: spec.Schema{ 6881 SchemaProps: spec.SchemaProps{ 6882 Description: "Pod affinity is a group of inter pod affinity scheduling rules.", 6883 Type: []string{"object"}, 6884 Properties: map[string]spec.Schema{ 6885 "requiredDuringSchedulingIgnoredDuringExecution": { 6886 SchemaProps: spec.SchemaProps{ 6887 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.", 6888 Type: []string{"array"}, 6889 Items: &spec.SchemaOrArray{ 6890 Schema: &spec.Schema{ 6891 SchemaProps: spec.SchemaProps{ 6892 Default: map[string]interface{}{}, 6893 Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), 6894 }, 6895 }, 6896 }, 6897 }, 6898 }, 6899 "preferredDuringSchedulingIgnoredDuringExecution": { 6900 SchemaProps: spec.SchemaProps{ 6901 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.", 6902 Type: []string{"array"}, 6903 Items: &spec.SchemaOrArray{ 6904 Schema: &spec.Schema{ 6905 SchemaProps: spec.SchemaProps{ 6906 Default: map[string]interface{}{}, 6907 Ref: ref("k8s.io/api/core/v1.WeightedPodAffinityTerm"), 6908 }, 6909 }, 6910 }, 6911 }, 6912 }, 6913 }, 6914 }, 6915 }, 6916 Dependencies: []string{ 6917 "k8s.io/api/core/v1.PodAffinityTerm", "k8s.io/api/core/v1.WeightedPodAffinityTerm"}, 6918 } 6919 } 6920 6921 func schema_k8sio_api_core_v1_PodAffinityTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 6922 return common.OpenAPIDefinition{ 6923 Schema: spec.Schema{ 6924 SchemaProps: spec.SchemaProps{ 6925 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", 6926 Type: []string{"object"}, 6927 Properties: map[string]spec.Schema{ 6928 "labelSelector": { 6929 SchemaProps: spec.SchemaProps{ 6930 Description: "A label query over a set of resources, in this case pods.", 6931 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 6932 }, 6933 }, 6934 "namespaces": { 6935 SchemaProps: spec.SchemaProps{ 6936 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\".", 6937 Type: []string{"array"}, 6938 Items: &spec.SchemaOrArray{ 6939 Schema: &spec.Schema{ 6940 SchemaProps: spec.SchemaProps{ 6941 Default: "", 6942 Type: []string{"string"}, 6943 Format: "", 6944 }, 6945 }, 6946 }, 6947 }, 6948 }, 6949 "topologyKey": { 6950 SchemaProps: spec.SchemaProps{ 6951 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.", 6952 Default: "", 6953 Type: []string{"string"}, 6954 Format: "", 6955 }, 6956 }, 6957 "namespaceSelector": { 6958 SchemaProps: spec.SchemaProps{ 6959 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.", 6960 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 6961 }, 6962 }, 6963 }, 6964 Required: []string{"topologyKey"}, 6965 }, 6966 }, 6967 Dependencies: []string{ 6968 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 6969 } 6970 } 6971 6972 func schema_k8sio_api_core_v1_PodAntiAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 6973 return common.OpenAPIDefinition{ 6974 Schema: spec.Schema{ 6975 SchemaProps: spec.SchemaProps{ 6976 Description: "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", 6977 Type: []string{"object"}, 6978 Properties: map[string]spec.Schema{ 6979 "requiredDuringSchedulingIgnoredDuringExecution": { 6980 SchemaProps: spec.SchemaProps{ 6981 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.", 6982 Type: []string{"array"}, 6983 Items: &spec.SchemaOrArray{ 6984 Schema: &spec.Schema{ 6985 SchemaProps: spec.SchemaProps{ 6986 Default: map[string]interface{}{}, 6987 Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), 6988 }, 6989 }, 6990 }, 6991 }, 6992 }, 6993 "preferredDuringSchedulingIgnoredDuringExecution": { 6994 SchemaProps: spec.SchemaProps{ 6995 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.", 6996 Type: []string{"array"}, 6997 Items: &spec.SchemaOrArray{ 6998 Schema: &spec.Schema{ 6999 SchemaProps: spec.SchemaProps{ 7000 Default: map[string]interface{}{}, 7001 Ref: ref("k8s.io/api/core/v1.WeightedPodAffinityTerm"), 7002 }, 7003 }, 7004 }, 7005 }, 7006 }, 7007 }, 7008 }, 7009 }, 7010 Dependencies: []string{ 7011 "k8s.io/api/core/v1.PodAffinityTerm", "k8s.io/api/core/v1.WeightedPodAffinityTerm"}, 7012 } 7013 } 7014 7015 func schema_k8sio_api_core_v1_PodAttachOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 7016 return common.OpenAPIDefinition{ 7017 Schema: spec.Schema{ 7018 SchemaProps: spec.SchemaProps{ 7019 Description: "PodAttachOptions is the query options to a Pod's remote attach call.", 7020 Type: []string{"object"}, 7021 Properties: map[string]spec.Schema{ 7022 "kind": { 7023 SchemaProps: spec.SchemaProps{ 7024 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7025 Type: []string{"string"}, 7026 Format: "", 7027 }, 7028 }, 7029 "apiVersion": { 7030 SchemaProps: spec.SchemaProps{ 7031 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7032 Type: []string{"string"}, 7033 Format: "", 7034 }, 7035 }, 7036 "stdin": { 7037 SchemaProps: spec.SchemaProps{ 7038 Description: "Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.", 7039 Type: []string{"boolean"}, 7040 Format: "", 7041 }, 7042 }, 7043 "stdout": { 7044 SchemaProps: spec.SchemaProps{ 7045 Description: "Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.", 7046 Type: []string{"boolean"}, 7047 Format: "", 7048 }, 7049 }, 7050 "stderr": { 7051 SchemaProps: spec.SchemaProps{ 7052 Description: "Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.", 7053 Type: []string{"boolean"}, 7054 Format: "", 7055 }, 7056 }, 7057 "tty": { 7058 SchemaProps: spec.SchemaProps{ 7059 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.", 7060 Type: []string{"boolean"}, 7061 Format: "", 7062 }, 7063 }, 7064 "container": { 7065 SchemaProps: spec.SchemaProps{ 7066 Description: "The container in which to execute the command. Defaults to only container if there is only one container in the pod.", 7067 Type: []string{"string"}, 7068 Format: "", 7069 }, 7070 }, 7071 }, 7072 }, 7073 }, 7074 } 7075 } 7076 7077 func schema_k8sio_api_core_v1_PodCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 7078 return common.OpenAPIDefinition{ 7079 Schema: spec.Schema{ 7080 SchemaProps: spec.SchemaProps{ 7081 Description: "PodCondition contains details for the current condition of this pod.", 7082 Type: []string{"object"}, 7083 Properties: map[string]spec.Schema{ 7084 "type": { 7085 SchemaProps: spec.SchemaProps{ 7086 Description: "Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", 7087 Default: "", 7088 Type: []string{"string"}, 7089 Format: "", 7090 }, 7091 }, 7092 "status": { 7093 SchemaProps: spec.SchemaProps{ 7094 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", 7095 Default: "", 7096 Type: []string{"string"}, 7097 Format: "", 7098 }, 7099 }, 7100 "lastProbeTime": { 7101 SchemaProps: spec.SchemaProps{ 7102 Description: "Last time we probed the condition.", 7103 Default: map[string]interface{}{}, 7104 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 7105 }, 7106 }, 7107 "lastTransitionTime": { 7108 SchemaProps: spec.SchemaProps{ 7109 Description: "Last time the condition transitioned from one status to another.", 7110 Default: map[string]interface{}{}, 7111 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 7112 }, 7113 }, 7114 "reason": { 7115 SchemaProps: spec.SchemaProps{ 7116 Description: "Unique, one-word, CamelCase reason for the condition's last transition.", 7117 Type: []string{"string"}, 7118 Format: "", 7119 }, 7120 }, 7121 "message": { 7122 SchemaProps: spec.SchemaProps{ 7123 Description: "Human-readable message indicating details about last transition.", 7124 Type: []string{"string"}, 7125 Format: "", 7126 }, 7127 }, 7128 }, 7129 Required: []string{"type", "status"}, 7130 }, 7131 }, 7132 Dependencies: []string{ 7133 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 7134 } 7135 } 7136 7137 func schema_k8sio_api_core_v1_PodDNSConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 7138 return common.OpenAPIDefinition{ 7139 Schema: spec.Schema{ 7140 SchemaProps: spec.SchemaProps{ 7141 Description: "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", 7142 Type: []string{"object"}, 7143 Properties: map[string]spec.Schema{ 7144 "nameservers": { 7145 SchemaProps: spec.SchemaProps{ 7146 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.", 7147 Type: []string{"array"}, 7148 Items: &spec.SchemaOrArray{ 7149 Schema: &spec.Schema{ 7150 SchemaProps: spec.SchemaProps{ 7151 Default: "", 7152 Type: []string{"string"}, 7153 Format: "", 7154 }, 7155 }, 7156 }, 7157 }, 7158 }, 7159 "searches": { 7160 SchemaProps: spec.SchemaProps{ 7161 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.", 7162 Type: []string{"array"}, 7163 Items: &spec.SchemaOrArray{ 7164 Schema: &spec.Schema{ 7165 SchemaProps: spec.SchemaProps{ 7166 Default: "", 7167 Type: []string{"string"}, 7168 Format: "", 7169 }, 7170 }, 7171 }, 7172 }, 7173 }, 7174 "options": { 7175 SchemaProps: spec.SchemaProps{ 7176 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.", 7177 Type: []string{"array"}, 7178 Items: &spec.SchemaOrArray{ 7179 Schema: &spec.Schema{ 7180 SchemaProps: spec.SchemaProps{ 7181 Default: map[string]interface{}{}, 7182 Ref: ref("k8s.io/api/core/v1.PodDNSConfigOption"), 7183 }, 7184 }, 7185 }, 7186 }, 7187 }, 7188 }, 7189 }, 7190 }, 7191 Dependencies: []string{ 7192 "k8s.io/api/core/v1.PodDNSConfigOption"}, 7193 } 7194 } 7195 7196 func schema_k8sio_api_core_v1_PodDNSConfigOption(ref common.ReferenceCallback) common.OpenAPIDefinition { 7197 return common.OpenAPIDefinition{ 7198 Schema: spec.Schema{ 7199 SchemaProps: spec.SchemaProps{ 7200 Description: "PodDNSConfigOption defines DNS resolver options of a pod.", 7201 Type: []string{"object"}, 7202 Properties: map[string]spec.Schema{ 7203 "name": { 7204 SchemaProps: spec.SchemaProps{ 7205 Description: "Required.", 7206 Type: []string{"string"}, 7207 Format: "", 7208 }, 7209 }, 7210 "value": { 7211 SchemaProps: spec.SchemaProps{ 7212 Type: []string{"string"}, 7213 Format: "", 7214 }, 7215 }, 7216 }, 7217 }, 7218 }, 7219 } 7220 } 7221 7222 func schema_k8sio_api_core_v1_PodExecOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 7223 return common.OpenAPIDefinition{ 7224 Schema: spec.Schema{ 7225 SchemaProps: spec.SchemaProps{ 7226 Description: "PodExecOptions is the query options to a Pod's remote exec call.", 7227 Type: []string{"object"}, 7228 Properties: map[string]spec.Schema{ 7229 "kind": { 7230 SchemaProps: spec.SchemaProps{ 7231 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7232 Type: []string{"string"}, 7233 Format: "", 7234 }, 7235 }, 7236 "apiVersion": { 7237 SchemaProps: spec.SchemaProps{ 7238 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7239 Type: []string{"string"}, 7240 Format: "", 7241 }, 7242 }, 7243 "stdin": { 7244 SchemaProps: spec.SchemaProps{ 7245 Description: "Redirect the standard input stream of the pod for this call. Defaults to false.", 7246 Type: []string{"boolean"}, 7247 Format: "", 7248 }, 7249 }, 7250 "stdout": { 7251 SchemaProps: spec.SchemaProps{ 7252 Description: "Redirect the standard output stream of the pod for this call.", 7253 Type: []string{"boolean"}, 7254 Format: "", 7255 }, 7256 }, 7257 "stderr": { 7258 SchemaProps: spec.SchemaProps{ 7259 Description: "Redirect the standard error stream of the pod for this call.", 7260 Type: []string{"boolean"}, 7261 Format: "", 7262 }, 7263 }, 7264 "tty": { 7265 SchemaProps: spec.SchemaProps{ 7266 Description: "TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.", 7267 Type: []string{"boolean"}, 7268 Format: "", 7269 }, 7270 }, 7271 "container": { 7272 SchemaProps: spec.SchemaProps{ 7273 Description: "Container in which to execute the command. Defaults to only container if there is only one container in the pod.", 7274 Type: []string{"string"}, 7275 Format: "", 7276 }, 7277 }, 7278 "command": { 7279 SchemaProps: spec.SchemaProps{ 7280 Description: "Command is the remote command to execute. argv array. Not executed within a shell.", 7281 Type: []string{"array"}, 7282 Items: &spec.SchemaOrArray{ 7283 Schema: &spec.Schema{ 7284 SchemaProps: spec.SchemaProps{ 7285 Default: "", 7286 Type: []string{"string"}, 7287 Format: "", 7288 }, 7289 }, 7290 }, 7291 }, 7292 }, 7293 }, 7294 Required: []string{"command"}, 7295 }, 7296 }, 7297 } 7298 } 7299 7300 func schema_k8sio_api_core_v1_PodIP(ref common.ReferenceCallback) common.OpenAPIDefinition { 7301 return common.OpenAPIDefinition{ 7302 Schema: spec.Schema{ 7303 SchemaProps: spec.SchemaProps{ 7304 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.", 7305 Type: []string{"object"}, 7306 Properties: map[string]spec.Schema{ 7307 "ip": { 7308 SchemaProps: spec.SchemaProps{ 7309 Description: "ip is an IP address (IPv4 or IPv6) assigned to the pod", 7310 Type: []string{"string"}, 7311 Format: "", 7312 }, 7313 }, 7314 }, 7315 }, 7316 }, 7317 } 7318 } 7319 7320 func schema_k8sio_api_core_v1_PodList(ref common.ReferenceCallback) common.OpenAPIDefinition { 7321 return common.OpenAPIDefinition{ 7322 Schema: spec.Schema{ 7323 SchemaProps: spec.SchemaProps{ 7324 Description: "PodList is a list of Pods.", 7325 Type: []string{"object"}, 7326 Properties: map[string]spec.Schema{ 7327 "kind": { 7328 SchemaProps: spec.SchemaProps{ 7329 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7330 Type: []string{"string"}, 7331 Format: "", 7332 }, 7333 }, 7334 "apiVersion": { 7335 SchemaProps: spec.SchemaProps{ 7336 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7337 Type: []string{"string"}, 7338 Format: "", 7339 }, 7340 }, 7341 "metadata": { 7342 SchemaProps: spec.SchemaProps{ 7343 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7344 Default: map[string]interface{}{}, 7345 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 7346 }, 7347 }, 7348 "items": { 7349 SchemaProps: spec.SchemaProps{ 7350 Description: "List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md", 7351 Type: []string{"array"}, 7352 Items: &spec.SchemaOrArray{ 7353 Schema: &spec.Schema{ 7354 SchemaProps: spec.SchemaProps{ 7355 Default: map[string]interface{}{}, 7356 Ref: ref("k8s.io/api/core/v1.Pod"), 7357 }, 7358 }, 7359 }, 7360 }, 7361 }, 7362 }, 7363 Required: []string{"items"}, 7364 }, 7365 }, 7366 Dependencies: []string{ 7367 "k8s.io/api/core/v1.Pod", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 7368 } 7369 } 7370 7371 func schema_k8sio_api_core_v1_PodLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 7372 return common.OpenAPIDefinition{ 7373 Schema: spec.Schema{ 7374 SchemaProps: spec.SchemaProps{ 7375 Description: "PodLogOptions is the query options for a Pod's logs REST call.", 7376 Type: []string{"object"}, 7377 Properties: map[string]spec.Schema{ 7378 "kind": { 7379 SchemaProps: spec.SchemaProps{ 7380 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7381 Type: []string{"string"}, 7382 Format: "", 7383 }, 7384 }, 7385 "apiVersion": { 7386 SchemaProps: spec.SchemaProps{ 7387 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7388 Type: []string{"string"}, 7389 Format: "", 7390 }, 7391 }, 7392 "container": { 7393 SchemaProps: spec.SchemaProps{ 7394 Description: "The container for which to stream logs. Defaults to only container if there is one container in the pod.", 7395 Type: []string{"string"}, 7396 Format: "", 7397 }, 7398 }, 7399 "follow": { 7400 SchemaProps: spec.SchemaProps{ 7401 Description: "Follow the log stream of the pod. Defaults to false.", 7402 Type: []string{"boolean"}, 7403 Format: "", 7404 }, 7405 }, 7406 "previous": { 7407 SchemaProps: spec.SchemaProps{ 7408 Description: "Return previous terminated container logs. Defaults to false.", 7409 Type: []string{"boolean"}, 7410 Format: "", 7411 }, 7412 }, 7413 "sinceSeconds": { 7414 SchemaProps: spec.SchemaProps{ 7415 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.", 7416 Type: []string{"integer"}, 7417 Format: "int64", 7418 }, 7419 }, 7420 "sinceTime": { 7421 SchemaProps: spec.SchemaProps{ 7422 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.", 7423 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 7424 }, 7425 }, 7426 "timestamps": { 7427 SchemaProps: spec.SchemaProps{ 7428 Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", 7429 Type: []string{"boolean"}, 7430 Format: "", 7431 }, 7432 }, 7433 "tailLines": { 7434 SchemaProps: spec.SchemaProps{ 7435 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", 7436 Type: []string{"integer"}, 7437 Format: "int64", 7438 }, 7439 }, 7440 "limitBytes": { 7441 SchemaProps: spec.SchemaProps{ 7442 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.", 7443 Type: []string{"integer"}, 7444 Format: "int64", 7445 }, 7446 }, 7447 "insecureSkipTLSVerifyBackend": { 7448 SchemaProps: spec.SchemaProps{ 7449 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).", 7450 Type: []string{"boolean"}, 7451 Format: "", 7452 }, 7453 }, 7454 }, 7455 }, 7456 }, 7457 Dependencies: []string{ 7458 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 7459 } 7460 } 7461 7462 func schema_k8sio_api_core_v1_PodOS(ref common.ReferenceCallback) common.OpenAPIDefinition { 7463 return common.OpenAPIDefinition{ 7464 Schema: spec.Schema{ 7465 SchemaProps: spec.SchemaProps{ 7466 Description: "PodOS defines the OS parameters of a pod.", 7467 Type: []string{"object"}, 7468 Properties: map[string]spec.Schema{ 7469 "name": { 7470 SchemaProps: spec.SchemaProps{ 7471 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", 7472 Default: "", 7473 Type: []string{"string"}, 7474 Format: "", 7475 }, 7476 }, 7477 }, 7478 Required: []string{"name"}, 7479 }, 7480 }, 7481 } 7482 } 7483 7484 func schema_k8sio_api_core_v1_PodPortForwardOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 7485 return common.OpenAPIDefinition{ 7486 Schema: spec.Schema{ 7487 SchemaProps: spec.SchemaProps{ 7488 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.", 7489 Type: []string{"object"}, 7490 Properties: map[string]spec.Schema{ 7491 "kind": { 7492 SchemaProps: spec.SchemaProps{ 7493 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7494 Type: []string{"string"}, 7495 Format: "", 7496 }, 7497 }, 7498 "apiVersion": { 7499 SchemaProps: spec.SchemaProps{ 7500 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7501 Type: []string{"string"}, 7502 Format: "", 7503 }, 7504 }, 7505 "ports": { 7506 SchemaProps: spec.SchemaProps{ 7507 Description: "List of ports to forward Required when using WebSockets", 7508 Type: []string{"array"}, 7509 Items: &spec.SchemaOrArray{ 7510 Schema: &spec.Schema{ 7511 SchemaProps: spec.SchemaProps{ 7512 Default: 0, 7513 Type: []string{"integer"}, 7514 Format: "int32", 7515 }, 7516 }, 7517 }, 7518 }, 7519 }, 7520 }, 7521 }, 7522 }, 7523 } 7524 } 7525 7526 func schema_k8sio_api_core_v1_PodProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 7527 return common.OpenAPIDefinition{ 7528 Schema: spec.Schema{ 7529 SchemaProps: spec.SchemaProps{ 7530 Description: "PodProxyOptions is the query options to a Pod's proxy call.", 7531 Type: []string{"object"}, 7532 Properties: map[string]spec.Schema{ 7533 "kind": { 7534 SchemaProps: spec.SchemaProps{ 7535 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 7536 Type: []string{"string"}, 7537 Format: "", 7538 }, 7539 }, 7540 "apiVersion": { 7541 SchemaProps: spec.SchemaProps{ 7542 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 7543 Type: []string{"string"}, 7544 Format: "", 7545 }, 7546 }, 7547 "path": { 7548 SchemaProps: spec.SchemaProps{ 7549 Description: "Path is the URL path to use for the current proxy request to pod.", 7550 Type: []string{"string"}, 7551 Format: "", 7552 }, 7553 }, 7554 }, 7555 }, 7556 }, 7557 } 7558 } 7559 7560 func schema_k8sio_api_core_v1_PodReadinessGate(ref common.ReferenceCallback) common.OpenAPIDefinition { 7561 return common.OpenAPIDefinition{ 7562 Schema: spec.Schema{ 7563 SchemaProps: spec.SchemaProps{ 7564 Description: "PodReadinessGate contains the reference to a pod condition", 7565 Type: []string{"object"}, 7566 Properties: map[string]spec.Schema{ 7567 "conditionType": { 7568 SchemaProps: spec.SchemaProps{ 7569 Description: "ConditionType refers to a condition in the pod's condition list with matching type.", 7570 Default: "", 7571 Type: []string{"string"}, 7572 Format: "", 7573 }, 7574 }, 7575 }, 7576 Required: []string{"conditionType"}, 7577 }, 7578 }, 7579 } 7580 } 7581 7582 func schema_k8sio_api_core_v1_PodSecurityContext(ref common.ReferenceCallback) common.OpenAPIDefinition { 7583 return common.OpenAPIDefinition{ 7584 Schema: spec.Schema{ 7585 SchemaProps: spec.SchemaProps{ 7586 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.", 7587 Type: []string{"object"}, 7588 Properties: map[string]spec.Schema{ 7589 "seLinuxOptions": { 7590 SchemaProps: spec.SchemaProps{ 7591 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.", 7592 Ref: ref("k8s.io/api/core/v1.SELinuxOptions"), 7593 }, 7594 }, 7595 "windowsOptions": { 7596 SchemaProps: spec.SchemaProps{ 7597 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.", 7598 Ref: ref("k8s.io/api/core/v1.WindowsSecurityContextOptions"), 7599 }, 7600 }, 7601 "runAsUser": { 7602 SchemaProps: spec.SchemaProps{ 7603 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.", 7604 Type: []string{"integer"}, 7605 Format: "int64", 7606 }, 7607 }, 7608 "runAsGroup": { 7609 SchemaProps: spec.SchemaProps{ 7610 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.", 7611 Type: []string{"integer"}, 7612 Format: "int64", 7613 }, 7614 }, 7615 "runAsNonRoot": { 7616 SchemaProps: spec.SchemaProps{ 7617 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.", 7618 Type: []string{"boolean"}, 7619 Format: "", 7620 }, 7621 }, 7622 "supplementalGroups": { 7623 SchemaProps: spec.SchemaProps{ 7624 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.", 7625 Type: []string{"array"}, 7626 Items: &spec.SchemaOrArray{ 7627 Schema: &spec.Schema{ 7628 SchemaProps: spec.SchemaProps{ 7629 Default: 0, 7630 Type: []string{"integer"}, 7631 Format: "int64", 7632 }, 7633 }, 7634 }, 7635 }, 7636 }, 7637 "fsGroup": { 7638 SchemaProps: spec.SchemaProps{ 7639 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.", 7640 Type: []string{"integer"}, 7641 Format: "int64", 7642 }, 7643 }, 7644 "sysctls": { 7645 SchemaProps: spec.SchemaProps{ 7646 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.", 7647 Type: []string{"array"}, 7648 Items: &spec.SchemaOrArray{ 7649 Schema: &spec.Schema{ 7650 SchemaProps: spec.SchemaProps{ 7651 Default: map[string]interface{}{}, 7652 Ref: ref("k8s.io/api/core/v1.Sysctl"), 7653 }, 7654 }, 7655 }, 7656 }, 7657 }, 7658 "fsGroupChangePolicy": { 7659 SchemaProps: spec.SchemaProps{ 7660 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.", 7661 Type: []string{"string"}, 7662 Format: "", 7663 }, 7664 }, 7665 "seccompProfile": { 7666 SchemaProps: spec.SchemaProps{ 7667 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.", 7668 Ref: ref("k8s.io/api/core/v1.SeccompProfile"), 7669 }, 7670 }, 7671 }, 7672 }, 7673 }, 7674 Dependencies: []string{ 7675 "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.Sysctl", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, 7676 } 7677 } 7678 7679 func schema_k8sio_api_core_v1_PodSignature(ref common.ReferenceCallback) common.OpenAPIDefinition { 7680 return common.OpenAPIDefinition{ 7681 Schema: spec.Schema{ 7682 SchemaProps: spec.SchemaProps{ 7683 Description: "Describes the class of pods that should avoid this node. Exactly one field should be set.", 7684 Type: []string{"object"}, 7685 Properties: map[string]spec.Schema{ 7686 "podController": { 7687 SchemaProps: spec.SchemaProps{ 7688 Description: "Reference to controller whose pods should avoid this node.", 7689 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), 7690 }, 7691 }, 7692 }, 7693 }, 7694 }, 7695 Dependencies: []string{ 7696 "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"}, 7697 } 7698 } 7699 7700 func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 7701 return common.OpenAPIDefinition{ 7702 Schema: spec.Schema{ 7703 SchemaProps: spec.SchemaProps{ 7704 Description: "PodSpec is a description of a pod.", 7705 Type: []string{"object"}, 7706 Properties: map[string]spec.Schema{ 7707 "volumes": { 7708 VendorExtensible: spec.VendorExtensible{ 7709 Extensions: spec.Extensions{ 7710 "x-kubernetes-patch-merge-key": "name", 7711 "x-kubernetes-patch-strategy": "merge,retainKeys", 7712 }, 7713 }, 7714 SchemaProps: spec.SchemaProps{ 7715 Description: "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes", 7716 Type: []string{"array"}, 7717 Items: &spec.SchemaOrArray{ 7718 Schema: &spec.Schema{ 7719 SchemaProps: spec.SchemaProps{ 7720 Default: map[string]interface{}{}, 7721 Ref: ref("k8s.io/api/core/v1.Volume"), 7722 }, 7723 }, 7724 }, 7725 }, 7726 }, 7727 "initContainers": { 7728 VendorExtensible: spec.VendorExtensible{ 7729 Extensions: spec.Extensions{ 7730 "x-kubernetes-patch-merge-key": "name", 7731 "x-kubernetes-patch-strategy": "merge", 7732 }, 7733 }, 7734 SchemaProps: spec.SchemaProps{ 7735 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/", 7736 Type: []string{"array"}, 7737 Items: &spec.SchemaOrArray{ 7738 Schema: &spec.Schema{ 7739 SchemaProps: spec.SchemaProps{ 7740 Default: map[string]interface{}{}, 7741 Ref: ref("k8s.io/api/core/v1.Container"), 7742 }, 7743 }, 7744 }, 7745 }, 7746 }, 7747 "containers": { 7748 VendorExtensible: spec.VendorExtensible{ 7749 Extensions: spec.Extensions{ 7750 "x-kubernetes-patch-merge-key": "name", 7751 "x-kubernetes-patch-strategy": "merge", 7752 }, 7753 }, 7754 SchemaProps: spec.SchemaProps{ 7755 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.", 7756 Type: []string{"array"}, 7757 Items: &spec.SchemaOrArray{ 7758 Schema: &spec.Schema{ 7759 SchemaProps: spec.SchemaProps{ 7760 Default: map[string]interface{}{}, 7761 Ref: ref("k8s.io/api/core/v1.Container"), 7762 }, 7763 }, 7764 }, 7765 }, 7766 }, 7767 "ephemeralContainers": { 7768 VendorExtensible: spec.VendorExtensible{ 7769 Extensions: spec.Extensions{ 7770 "x-kubernetes-patch-merge-key": "name", 7771 "x-kubernetes-patch-strategy": "merge", 7772 }, 7773 }, 7774 SchemaProps: spec.SchemaProps{ 7775 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.", 7776 Type: []string{"array"}, 7777 Items: &spec.SchemaOrArray{ 7778 Schema: &spec.Schema{ 7779 SchemaProps: spec.SchemaProps{ 7780 Default: map[string]interface{}{}, 7781 Ref: ref("k8s.io/api/core/v1.EphemeralContainer"), 7782 }, 7783 }, 7784 }, 7785 }, 7786 }, 7787 "restartPolicy": { 7788 SchemaProps: spec.SchemaProps{ 7789 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\"`", 7790 Type: []string{"string"}, 7791 Format: "", 7792 Enum: []interface{}{"Always", "Never", "OnFailure"}}, 7793 }, 7794 "terminationGracePeriodSeconds": { 7795 SchemaProps: spec.SchemaProps{ 7796 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.", 7797 Type: []string{"integer"}, 7798 Format: "int64", 7799 }, 7800 }, 7801 "activeDeadlineSeconds": { 7802 SchemaProps: spec.SchemaProps{ 7803 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.", 7804 Type: []string{"integer"}, 7805 Format: "int64", 7806 }, 7807 }, 7808 "dnsPolicy": { 7809 SchemaProps: spec.SchemaProps{ 7810 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.", 7811 Type: []string{"string"}, 7812 Format: "", 7813 Enum: []interface{}{"ClusterFirst", "ClusterFirstWithHostNet", "Default", "None"}}, 7814 }, 7815 "nodeSelector": { 7816 VendorExtensible: spec.VendorExtensible{ 7817 Extensions: spec.Extensions{ 7818 "x-kubernetes-map-type": "atomic", 7819 }, 7820 }, 7821 SchemaProps: spec.SchemaProps{ 7822 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/", 7823 Type: []string{"object"}, 7824 AdditionalProperties: &spec.SchemaOrBool{ 7825 Allows: true, 7826 Schema: &spec.Schema{ 7827 SchemaProps: spec.SchemaProps{ 7828 Default: "", 7829 Type: []string{"string"}, 7830 Format: "", 7831 }, 7832 }, 7833 }, 7834 }, 7835 }, 7836 "serviceAccountName": { 7837 SchemaProps: spec.SchemaProps{ 7838 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/", 7839 Type: []string{"string"}, 7840 Format: "", 7841 }, 7842 }, 7843 "serviceAccount": { 7844 SchemaProps: spec.SchemaProps{ 7845 Description: "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.", 7846 Type: []string{"string"}, 7847 Format: "", 7848 }, 7849 }, 7850 "automountServiceAccountToken": { 7851 SchemaProps: spec.SchemaProps{ 7852 Description: "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", 7853 Type: []string{"boolean"}, 7854 Format: "", 7855 }, 7856 }, 7857 "nodeName": { 7858 SchemaProps: spec.SchemaProps{ 7859 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.", 7860 Type: []string{"string"}, 7861 Format: "", 7862 }, 7863 }, 7864 "hostNetwork": { 7865 SchemaProps: spec.SchemaProps{ 7866 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.", 7867 Type: []string{"boolean"}, 7868 Format: "", 7869 }, 7870 }, 7871 "hostPID": { 7872 SchemaProps: spec.SchemaProps{ 7873 Description: "Use the host's pid namespace. Optional: Default to false.", 7874 Type: []string{"boolean"}, 7875 Format: "", 7876 }, 7877 }, 7878 "hostIPC": { 7879 SchemaProps: spec.SchemaProps{ 7880 Description: "Use the host's ipc namespace. Optional: Default to false.", 7881 Type: []string{"boolean"}, 7882 Format: "", 7883 }, 7884 }, 7885 "shareProcessNamespace": { 7886 SchemaProps: spec.SchemaProps{ 7887 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.", 7888 Type: []string{"boolean"}, 7889 Format: "", 7890 }, 7891 }, 7892 "securityContext": { 7893 SchemaProps: spec.SchemaProps{ 7894 Description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", 7895 Ref: ref("k8s.io/api/core/v1.PodSecurityContext"), 7896 }, 7897 }, 7898 "imagePullSecrets": { 7899 VendorExtensible: spec.VendorExtensible{ 7900 Extensions: spec.Extensions{ 7901 "x-kubernetes-patch-merge-key": "name", 7902 "x-kubernetes-patch-strategy": "merge", 7903 }, 7904 }, 7905 SchemaProps: spec.SchemaProps{ 7906 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", 7907 Type: []string{"array"}, 7908 Items: &spec.SchemaOrArray{ 7909 Schema: &spec.Schema{ 7910 SchemaProps: spec.SchemaProps{ 7911 Default: map[string]interface{}{}, 7912 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 7913 }, 7914 }, 7915 }, 7916 }, 7917 }, 7918 "hostname": { 7919 SchemaProps: spec.SchemaProps{ 7920 Description: "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.", 7921 Type: []string{"string"}, 7922 Format: "", 7923 }, 7924 }, 7925 "subdomain": { 7926 SchemaProps: spec.SchemaProps{ 7927 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.", 7928 Type: []string{"string"}, 7929 Format: "", 7930 }, 7931 }, 7932 "affinity": { 7933 SchemaProps: spec.SchemaProps{ 7934 Description: "If specified, the pod's scheduling constraints", 7935 Ref: ref("k8s.io/api/core/v1.Affinity"), 7936 }, 7937 }, 7938 "schedulerName": { 7939 SchemaProps: spec.SchemaProps{ 7940 Description: "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", 7941 Type: []string{"string"}, 7942 Format: "", 7943 }, 7944 }, 7945 "tolerations": { 7946 SchemaProps: spec.SchemaProps{ 7947 Description: "If specified, the pod's tolerations.", 7948 Type: []string{"array"}, 7949 Items: &spec.SchemaOrArray{ 7950 Schema: &spec.Schema{ 7951 SchemaProps: spec.SchemaProps{ 7952 Default: map[string]interface{}{}, 7953 Ref: ref("k8s.io/api/core/v1.Toleration"), 7954 }, 7955 }, 7956 }, 7957 }, 7958 }, 7959 "hostAliases": { 7960 VendorExtensible: spec.VendorExtensible{ 7961 Extensions: spec.Extensions{ 7962 "x-kubernetes-patch-merge-key": "ip", 7963 "x-kubernetes-patch-strategy": "merge", 7964 }, 7965 }, 7966 SchemaProps: spec.SchemaProps{ 7967 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.", 7968 Type: []string{"array"}, 7969 Items: &spec.SchemaOrArray{ 7970 Schema: &spec.Schema{ 7971 SchemaProps: spec.SchemaProps{ 7972 Default: map[string]interface{}{}, 7973 Ref: ref("k8s.io/api/core/v1.HostAlias"), 7974 }, 7975 }, 7976 }, 7977 }, 7978 }, 7979 "priorityClassName": { 7980 SchemaProps: spec.SchemaProps{ 7981 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.", 7982 Type: []string{"string"}, 7983 Format: "", 7984 }, 7985 }, 7986 "priority": { 7987 SchemaProps: spec.SchemaProps{ 7988 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.", 7989 Type: []string{"integer"}, 7990 Format: "int32", 7991 }, 7992 }, 7993 "dnsConfig": { 7994 SchemaProps: spec.SchemaProps{ 7995 Description: "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.", 7996 Ref: ref("k8s.io/api/core/v1.PodDNSConfig"), 7997 }, 7998 }, 7999 "readinessGates": { 8000 SchemaProps: spec.SchemaProps{ 8001 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", 8002 Type: []string{"array"}, 8003 Items: &spec.SchemaOrArray{ 8004 Schema: &spec.Schema{ 8005 SchemaProps: spec.SchemaProps{ 8006 Default: map[string]interface{}{}, 8007 Ref: ref("k8s.io/api/core/v1.PodReadinessGate"), 8008 }, 8009 }, 8010 }, 8011 }, 8012 }, 8013 "runtimeClassName": { 8014 SchemaProps: spec.SchemaProps{ 8015 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", 8016 Type: []string{"string"}, 8017 Format: "", 8018 }, 8019 }, 8020 "enableServiceLinks": { 8021 SchemaProps: spec.SchemaProps{ 8022 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.", 8023 Type: []string{"boolean"}, 8024 Format: "", 8025 }, 8026 }, 8027 "preemptionPolicy": { 8028 SchemaProps: spec.SchemaProps{ 8029 Description: "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.", 8030 Type: []string{"string"}, 8031 Format: "", 8032 }, 8033 }, 8034 "overhead": { 8035 SchemaProps: spec.SchemaProps{ 8036 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", 8037 Type: []string{"object"}, 8038 AdditionalProperties: &spec.SchemaOrBool{ 8039 Allows: true, 8040 Schema: &spec.Schema{ 8041 SchemaProps: spec.SchemaProps{ 8042 Default: map[string]interface{}{}, 8043 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 8044 }, 8045 }, 8046 }, 8047 }, 8048 }, 8049 "topologySpreadConstraints": { 8050 VendorExtensible: spec.VendorExtensible{ 8051 Extensions: spec.Extensions{ 8052 "x-kubernetes-list-map-keys": []interface{}{ 8053 "topologyKey", 8054 "whenUnsatisfiable", 8055 }, 8056 "x-kubernetes-list-type": "map", 8057 "x-kubernetes-patch-merge-key": "topologyKey", 8058 "x-kubernetes-patch-strategy": "merge", 8059 }, 8060 }, 8061 SchemaProps: spec.SchemaProps{ 8062 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.", 8063 Type: []string{"array"}, 8064 Items: &spec.SchemaOrArray{ 8065 Schema: &spec.Schema{ 8066 SchemaProps: spec.SchemaProps{ 8067 Default: map[string]interface{}{}, 8068 Ref: ref("k8s.io/api/core/v1.TopologySpreadConstraint"), 8069 }, 8070 }, 8071 }, 8072 }, 8073 }, 8074 "setHostnameAsFQDN": { 8075 SchemaProps: spec.SchemaProps{ 8076 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.", 8077 Type: []string{"boolean"}, 8078 Format: "", 8079 }, 8080 }, 8081 "os": { 8082 SchemaProps: spec.SchemaProps{ 8083 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", 8084 Ref: ref("k8s.io/api/core/v1.PodOS"), 8085 }, 8086 }, 8087 "hostUsers": { 8088 SchemaProps: spec.SchemaProps{ 8089 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.", 8090 Type: []string{"boolean"}, 8091 Format: "", 8092 }, 8093 }, 8094 }, 8095 Required: []string{"containers"}, 8096 }, 8097 }, 8098 Dependencies: []string{ 8099 "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"}, 8100 } 8101 } 8102 8103 func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 8104 return common.OpenAPIDefinition{ 8105 Schema: spec.Schema{ 8106 SchemaProps: spec.SchemaProps{ 8107 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.", 8108 Type: []string{"object"}, 8109 Properties: map[string]spec.Schema{ 8110 "phase": { 8111 SchemaProps: spec.SchemaProps{ 8112 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)", 8113 Type: []string{"string"}, 8114 Format: "", 8115 Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}}, 8116 }, 8117 "conditions": { 8118 VendorExtensible: spec.VendorExtensible{ 8119 Extensions: spec.Extensions{ 8120 "x-kubernetes-patch-merge-key": "type", 8121 "x-kubernetes-patch-strategy": "merge", 8122 }, 8123 }, 8124 SchemaProps: spec.SchemaProps{ 8125 Description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", 8126 Type: []string{"array"}, 8127 Items: &spec.SchemaOrArray{ 8128 Schema: &spec.Schema{ 8129 SchemaProps: spec.SchemaProps{ 8130 Default: map[string]interface{}{}, 8131 Ref: ref("k8s.io/api/core/v1.PodCondition"), 8132 }, 8133 }, 8134 }, 8135 }, 8136 }, 8137 "message": { 8138 SchemaProps: spec.SchemaProps{ 8139 Description: "A human readable message indicating details about why the pod is in this condition.", 8140 Type: []string{"string"}, 8141 Format: "", 8142 }, 8143 }, 8144 "reason": { 8145 SchemaProps: spec.SchemaProps{ 8146 Description: "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", 8147 Type: []string{"string"}, 8148 Format: "", 8149 }, 8150 }, 8151 "nominatedNodeName": { 8152 SchemaProps: spec.SchemaProps{ 8153 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.", 8154 Type: []string{"string"}, 8155 Format: "", 8156 }, 8157 }, 8158 "hostIP": { 8159 SchemaProps: spec.SchemaProps{ 8160 Description: "IP address of the host to which the pod is assigned. Empty if not yet scheduled.", 8161 Type: []string{"string"}, 8162 Format: "", 8163 }, 8164 }, 8165 "podIP": { 8166 SchemaProps: spec.SchemaProps{ 8167 Description: "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.", 8168 Type: []string{"string"}, 8169 Format: "", 8170 }, 8171 }, 8172 "podIPs": { 8173 VendorExtensible: spec.VendorExtensible{ 8174 Extensions: spec.Extensions{ 8175 "x-kubernetes-patch-merge-key": "ip", 8176 "x-kubernetes-patch-strategy": "merge", 8177 }, 8178 }, 8179 SchemaProps: spec.SchemaProps{ 8180 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.", 8181 Type: []string{"array"}, 8182 Items: &spec.SchemaOrArray{ 8183 Schema: &spec.Schema{ 8184 SchemaProps: spec.SchemaProps{ 8185 Default: map[string]interface{}{}, 8186 Ref: ref("k8s.io/api/core/v1.PodIP"), 8187 }, 8188 }, 8189 }, 8190 }, 8191 }, 8192 "startTime": { 8193 SchemaProps: spec.SchemaProps{ 8194 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.", 8195 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 8196 }, 8197 }, 8198 "initContainerStatuses": { 8199 SchemaProps: spec.SchemaProps{ 8200 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", 8201 Type: []string{"array"}, 8202 Items: &spec.SchemaOrArray{ 8203 Schema: &spec.Schema{ 8204 SchemaProps: spec.SchemaProps{ 8205 Default: map[string]interface{}{}, 8206 Ref: ref("k8s.io/api/core/v1.ContainerStatus"), 8207 }, 8208 }, 8209 }, 8210 }, 8211 }, 8212 "containerStatuses": { 8213 SchemaProps: spec.SchemaProps{ 8214 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", 8215 Type: []string{"array"}, 8216 Items: &spec.SchemaOrArray{ 8217 Schema: &spec.Schema{ 8218 SchemaProps: spec.SchemaProps{ 8219 Default: map[string]interface{}{}, 8220 Ref: ref("k8s.io/api/core/v1.ContainerStatus"), 8221 }, 8222 }, 8223 }, 8224 }, 8225 }, 8226 "qosClass": { 8227 SchemaProps: spec.SchemaProps{ 8228 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.", 8229 Type: []string{"string"}, 8230 Format: "", 8231 Enum: []interface{}{"BestEffort", "Burstable", "Guaranteed"}}, 8232 }, 8233 "ephemeralContainerStatuses": { 8234 SchemaProps: spec.SchemaProps{ 8235 Description: "Status for any ephemeral containers that have run in this pod.", 8236 Type: []string{"array"}, 8237 Items: &spec.SchemaOrArray{ 8238 Schema: &spec.Schema{ 8239 SchemaProps: spec.SchemaProps{ 8240 Default: map[string]interface{}{}, 8241 Ref: ref("k8s.io/api/core/v1.ContainerStatus"), 8242 }, 8243 }, 8244 }, 8245 }, 8246 }, 8247 }, 8248 }, 8249 }, 8250 Dependencies: []string{ 8251 "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"}, 8252 } 8253 } 8254 8255 func schema_k8sio_api_core_v1_PodStatusResult(ref common.ReferenceCallback) common.OpenAPIDefinition { 8256 return common.OpenAPIDefinition{ 8257 Schema: spec.Schema{ 8258 SchemaProps: spec.SchemaProps{ 8259 Description: "PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded", 8260 Type: []string{"object"}, 8261 Properties: map[string]spec.Schema{ 8262 "kind": { 8263 SchemaProps: spec.SchemaProps{ 8264 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8265 Type: []string{"string"}, 8266 Format: "", 8267 }, 8268 }, 8269 "apiVersion": { 8270 SchemaProps: spec.SchemaProps{ 8271 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8272 Type: []string{"string"}, 8273 Format: "", 8274 }, 8275 }, 8276 "metadata": { 8277 SchemaProps: spec.SchemaProps{ 8278 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 8279 Default: map[string]interface{}{}, 8280 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8281 }, 8282 }, 8283 "status": { 8284 SchemaProps: spec.SchemaProps{ 8285 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", 8286 Default: map[string]interface{}{}, 8287 Ref: ref("k8s.io/api/core/v1.PodStatus"), 8288 }, 8289 }, 8290 }, 8291 }, 8292 }, 8293 Dependencies: []string{ 8294 "k8s.io/api/core/v1.PodStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8295 } 8296 } 8297 8298 func schema_k8sio_api_core_v1_PodTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 8299 return common.OpenAPIDefinition{ 8300 Schema: spec.Schema{ 8301 SchemaProps: spec.SchemaProps{ 8302 Description: "PodTemplate describes a template for creating copies of a predefined pod.", 8303 Type: []string{"object"}, 8304 Properties: map[string]spec.Schema{ 8305 "kind": { 8306 SchemaProps: spec.SchemaProps{ 8307 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8308 Type: []string{"string"}, 8309 Format: "", 8310 }, 8311 }, 8312 "apiVersion": { 8313 SchemaProps: spec.SchemaProps{ 8314 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8315 Type: []string{"string"}, 8316 Format: "", 8317 }, 8318 }, 8319 "metadata": { 8320 SchemaProps: spec.SchemaProps{ 8321 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 8322 Default: map[string]interface{}{}, 8323 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8324 }, 8325 }, 8326 "template": { 8327 SchemaProps: spec.SchemaProps{ 8328 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", 8329 Default: map[string]interface{}{}, 8330 Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), 8331 }, 8332 }, 8333 }, 8334 }, 8335 }, 8336 Dependencies: []string{ 8337 "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8338 } 8339 } 8340 8341 func schema_k8sio_api_core_v1_PodTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { 8342 return common.OpenAPIDefinition{ 8343 Schema: spec.Schema{ 8344 SchemaProps: spec.SchemaProps{ 8345 Description: "PodTemplateList is a list of PodTemplates.", 8346 Type: []string{"object"}, 8347 Properties: map[string]spec.Schema{ 8348 "kind": { 8349 SchemaProps: spec.SchemaProps{ 8350 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8351 Type: []string{"string"}, 8352 Format: "", 8353 }, 8354 }, 8355 "apiVersion": { 8356 SchemaProps: spec.SchemaProps{ 8357 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8358 Type: []string{"string"}, 8359 Format: "", 8360 }, 8361 }, 8362 "metadata": { 8363 SchemaProps: spec.SchemaProps{ 8364 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8365 Default: map[string]interface{}{}, 8366 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 8367 }, 8368 }, 8369 "items": { 8370 SchemaProps: spec.SchemaProps{ 8371 Description: "List of pod templates", 8372 Type: []string{"array"}, 8373 Items: &spec.SchemaOrArray{ 8374 Schema: &spec.Schema{ 8375 SchemaProps: spec.SchemaProps{ 8376 Default: map[string]interface{}{}, 8377 Ref: ref("k8s.io/api/core/v1.PodTemplate"), 8378 }, 8379 }, 8380 }, 8381 }, 8382 }, 8383 }, 8384 Required: []string{"items"}, 8385 }, 8386 }, 8387 Dependencies: []string{ 8388 "k8s.io/api/core/v1.PodTemplate", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 8389 } 8390 } 8391 8392 func schema_k8sio_api_core_v1_PodTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 8393 return common.OpenAPIDefinition{ 8394 Schema: spec.Schema{ 8395 SchemaProps: spec.SchemaProps{ 8396 Description: "PodTemplateSpec describes the data a pod should have when created from a template", 8397 Type: []string{"object"}, 8398 Properties: map[string]spec.Schema{ 8399 "metadata": { 8400 SchemaProps: spec.SchemaProps{ 8401 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 8402 Default: map[string]interface{}{}, 8403 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8404 }, 8405 }, 8406 "spec": { 8407 SchemaProps: spec.SchemaProps{ 8408 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", 8409 Default: map[string]interface{}{}, 8410 Ref: ref("k8s.io/api/core/v1.PodSpec"), 8411 }, 8412 }, 8413 }, 8414 }, 8415 }, 8416 Dependencies: []string{ 8417 "k8s.io/api/core/v1.PodSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8418 } 8419 } 8420 8421 func schema_k8sio_api_core_v1_PortStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 8422 return common.OpenAPIDefinition{ 8423 Schema: spec.Schema{ 8424 SchemaProps: spec.SchemaProps{ 8425 Type: []string{"object"}, 8426 Properties: map[string]spec.Schema{ 8427 "port": { 8428 SchemaProps: spec.SchemaProps{ 8429 Description: "Port is the port number of the service port of which status is recorded here", 8430 Default: 0, 8431 Type: []string{"integer"}, 8432 Format: "int32", 8433 }, 8434 }, 8435 "protocol": { 8436 SchemaProps: spec.SchemaProps{ 8437 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.", 8438 Default: "", 8439 Type: []string{"string"}, 8440 Format: "", 8441 Enum: []interface{}{"SCTP", "TCP", "UDP"}}, 8442 }, 8443 "error": { 8444 SchemaProps: spec.SchemaProps{ 8445 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.", 8446 Type: []string{"string"}, 8447 Format: "", 8448 }, 8449 }, 8450 }, 8451 Required: []string{"port", "protocol"}, 8452 }, 8453 }, 8454 } 8455 } 8456 8457 func schema_k8sio_api_core_v1_PortworxVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8458 return common.OpenAPIDefinition{ 8459 Schema: spec.Schema{ 8460 SchemaProps: spec.SchemaProps{ 8461 Description: "PortworxVolumeSource represents a Portworx volume resource.", 8462 Type: []string{"object"}, 8463 Properties: map[string]spec.Schema{ 8464 "volumeID": { 8465 SchemaProps: spec.SchemaProps{ 8466 Description: "volumeID uniquely identifies a Portworx volume", 8467 Default: "", 8468 Type: []string{"string"}, 8469 Format: "", 8470 }, 8471 }, 8472 "fsType": { 8473 SchemaProps: spec.SchemaProps{ 8474 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.", 8475 Type: []string{"string"}, 8476 Format: "", 8477 }, 8478 }, 8479 "readOnly": { 8480 SchemaProps: spec.SchemaProps{ 8481 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 8482 Type: []string{"boolean"}, 8483 Format: "", 8484 }, 8485 }, 8486 }, 8487 Required: []string{"volumeID"}, 8488 }, 8489 }, 8490 } 8491 } 8492 8493 func schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { 8494 return common.OpenAPIDefinition{ 8495 Schema: spec.Schema{ 8496 SchemaProps: spec.SchemaProps{ 8497 Description: "Describes a class of pods that should avoid this node.", 8498 Type: []string{"object"}, 8499 Properties: map[string]spec.Schema{ 8500 "podSignature": { 8501 SchemaProps: spec.SchemaProps{ 8502 Description: "The class of pods.", 8503 Default: map[string]interface{}{}, 8504 Ref: ref("k8s.io/api/core/v1.PodSignature"), 8505 }, 8506 }, 8507 "evictionTime": { 8508 SchemaProps: spec.SchemaProps{ 8509 Description: "Time at which this entry was added to the list.", 8510 Default: map[string]interface{}{}, 8511 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 8512 }, 8513 }, 8514 "reason": { 8515 SchemaProps: spec.SchemaProps{ 8516 Description: "(brief) reason why this entry was added to the list.", 8517 Type: []string{"string"}, 8518 Format: "", 8519 }, 8520 }, 8521 "message": { 8522 SchemaProps: spec.SchemaProps{ 8523 Description: "Human readable message indicating why this entry was added to the list.", 8524 Type: []string{"string"}, 8525 Format: "", 8526 }, 8527 }, 8528 }, 8529 Required: []string{"podSignature"}, 8530 }, 8531 }, 8532 Dependencies: []string{ 8533 "k8s.io/api/core/v1.PodSignature", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 8534 } 8535 } 8536 8537 func schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 8538 return common.OpenAPIDefinition{ 8539 Schema: spec.Schema{ 8540 SchemaProps: spec.SchemaProps{ 8541 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).", 8542 Type: []string{"object"}, 8543 Properties: map[string]spec.Schema{ 8544 "weight": { 8545 SchemaProps: spec.SchemaProps{ 8546 Description: "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", 8547 Default: 0, 8548 Type: []string{"integer"}, 8549 Format: "int32", 8550 }, 8551 }, 8552 "preference": { 8553 SchemaProps: spec.SchemaProps{ 8554 Description: "A node selector term, associated with the corresponding weight.", 8555 Default: map[string]interface{}{}, 8556 Ref: ref("k8s.io/api/core/v1.NodeSelectorTerm"), 8557 }, 8558 }, 8559 }, 8560 Required: []string{"weight", "preference"}, 8561 }, 8562 }, 8563 Dependencies: []string{ 8564 "k8s.io/api/core/v1.NodeSelectorTerm"}, 8565 } 8566 } 8567 8568 func schema_k8sio_api_core_v1_Probe(ref common.ReferenceCallback) common.OpenAPIDefinition { 8569 return common.OpenAPIDefinition{ 8570 Schema: spec.Schema{ 8571 SchemaProps: spec.SchemaProps{ 8572 Description: "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", 8573 Type: []string{"object"}, 8574 Properties: map[string]spec.Schema{ 8575 "exec": { 8576 SchemaProps: spec.SchemaProps{ 8577 Description: "Exec specifies the action to take.", 8578 Ref: ref("k8s.io/api/core/v1.ExecAction"), 8579 }, 8580 }, 8581 "httpGet": { 8582 SchemaProps: spec.SchemaProps{ 8583 Description: "HTTPGet specifies the http request to perform.", 8584 Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), 8585 }, 8586 }, 8587 "tcpSocket": { 8588 SchemaProps: spec.SchemaProps{ 8589 Description: "TCPSocket specifies an action involving a TCP port.", 8590 Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), 8591 }, 8592 }, 8593 "grpc": { 8594 SchemaProps: spec.SchemaProps{ 8595 Description: "GRPC specifies an action involving a GRPC port. This is a beta field and requires enabling GRPCContainerProbe feature gate.", 8596 Ref: ref("k8s.io/api/core/v1.GRPCAction"), 8597 }, 8598 }, 8599 "initialDelaySeconds": { 8600 SchemaProps: spec.SchemaProps{ 8601 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", 8602 Type: []string{"integer"}, 8603 Format: "int32", 8604 }, 8605 }, 8606 "timeoutSeconds": { 8607 SchemaProps: spec.SchemaProps{ 8608 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", 8609 Type: []string{"integer"}, 8610 Format: "int32", 8611 }, 8612 }, 8613 "periodSeconds": { 8614 SchemaProps: spec.SchemaProps{ 8615 Description: "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.", 8616 Type: []string{"integer"}, 8617 Format: "int32", 8618 }, 8619 }, 8620 "successThreshold": { 8621 SchemaProps: spec.SchemaProps{ 8622 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.", 8623 Type: []string{"integer"}, 8624 Format: "int32", 8625 }, 8626 }, 8627 "failureThreshold": { 8628 SchemaProps: spec.SchemaProps{ 8629 Description: "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.", 8630 Type: []string{"integer"}, 8631 Format: "int32", 8632 }, 8633 }, 8634 "terminationGracePeriodSeconds": { 8635 SchemaProps: spec.SchemaProps{ 8636 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.", 8637 Type: []string{"integer"}, 8638 Format: "int64", 8639 }, 8640 }, 8641 }, 8642 }, 8643 }, 8644 Dependencies: []string{ 8645 "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.GRPCAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, 8646 } 8647 } 8648 8649 func schema_k8sio_api_core_v1_ProbeHandler(ref common.ReferenceCallback) common.OpenAPIDefinition { 8650 return common.OpenAPIDefinition{ 8651 Schema: spec.Schema{ 8652 SchemaProps: spec.SchemaProps{ 8653 Description: "ProbeHandler defines a specific action that should be taken in a probe. One and only one of the fields must be specified.", 8654 Type: []string{"object"}, 8655 Properties: map[string]spec.Schema{ 8656 "exec": { 8657 SchemaProps: spec.SchemaProps{ 8658 Description: "Exec specifies the action to take.", 8659 Ref: ref("k8s.io/api/core/v1.ExecAction"), 8660 }, 8661 }, 8662 "httpGet": { 8663 SchemaProps: spec.SchemaProps{ 8664 Description: "HTTPGet specifies the http request to perform.", 8665 Ref: ref("k8s.io/api/core/v1.HTTPGetAction"), 8666 }, 8667 }, 8668 "tcpSocket": { 8669 SchemaProps: spec.SchemaProps{ 8670 Description: "TCPSocket specifies an action involving a TCP port.", 8671 Ref: ref("k8s.io/api/core/v1.TCPSocketAction"), 8672 }, 8673 }, 8674 "grpc": { 8675 SchemaProps: spec.SchemaProps{ 8676 Description: "GRPC specifies an action involving a GRPC port. This is a beta field and requires enabling GRPCContainerProbe feature gate.", 8677 Ref: ref("k8s.io/api/core/v1.GRPCAction"), 8678 }, 8679 }, 8680 }, 8681 }, 8682 }, 8683 Dependencies: []string{ 8684 "k8s.io/api/core/v1.ExecAction", "k8s.io/api/core/v1.GRPCAction", "k8s.io/api/core/v1.HTTPGetAction", "k8s.io/api/core/v1.TCPSocketAction"}, 8685 } 8686 } 8687 8688 func schema_k8sio_api_core_v1_ProjectedVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8689 return common.OpenAPIDefinition{ 8690 Schema: spec.Schema{ 8691 SchemaProps: spec.SchemaProps{ 8692 Description: "Represents a projected volume source", 8693 Type: []string{"object"}, 8694 Properties: map[string]spec.Schema{ 8695 "sources": { 8696 SchemaProps: spec.SchemaProps{ 8697 Description: "sources is the list of volume projections", 8698 Type: []string{"array"}, 8699 Items: &spec.SchemaOrArray{ 8700 Schema: &spec.Schema{ 8701 SchemaProps: spec.SchemaProps{ 8702 Default: map[string]interface{}{}, 8703 Ref: ref("k8s.io/api/core/v1.VolumeProjection"), 8704 }, 8705 }, 8706 }, 8707 }, 8708 }, 8709 "defaultMode": { 8710 SchemaProps: spec.SchemaProps{ 8711 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.", 8712 Type: []string{"integer"}, 8713 Format: "int32", 8714 }, 8715 }, 8716 }, 8717 }, 8718 }, 8719 Dependencies: []string{ 8720 "k8s.io/api/core/v1.VolumeProjection"}, 8721 } 8722 } 8723 8724 func schema_k8sio_api_core_v1_QuobyteVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8725 return common.OpenAPIDefinition{ 8726 Schema: spec.Schema{ 8727 SchemaProps: spec.SchemaProps{ 8728 Description: "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", 8729 Type: []string{"object"}, 8730 Properties: map[string]spec.Schema{ 8731 "registry": { 8732 SchemaProps: spec.SchemaProps{ 8733 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", 8734 Default: "", 8735 Type: []string{"string"}, 8736 Format: "", 8737 }, 8738 }, 8739 "volume": { 8740 SchemaProps: spec.SchemaProps{ 8741 Description: "volume is a string that references an already created Quobyte volume by name.", 8742 Default: "", 8743 Type: []string{"string"}, 8744 Format: "", 8745 }, 8746 }, 8747 "readOnly": { 8748 SchemaProps: spec.SchemaProps{ 8749 Description: "readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", 8750 Type: []string{"boolean"}, 8751 Format: "", 8752 }, 8753 }, 8754 "user": { 8755 SchemaProps: spec.SchemaProps{ 8756 Description: "user to map volume access to Defaults to serivceaccount user", 8757 Type: []string{"string"}, 8758 Format: "", 8759 }, 8760 }, 8761 "group": { 8762 SchemaProps: spec.SchemaProps{ 8763 Description: "group to map volume access to Default is no group", 8764 Type: []string{"string"}, 8765 Format: "", 8766 }, 8767 }, 8768 "tenant": { 8769 SchemaProps: spec.SchemaProps{ 8770 Description: "tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin", 8771 Type: []string{"string"}, 8772 Format: "", 8773 }, 8774 }, 8775 }, 8776 Required: []string{"registry", "volume"}, 8777 }, 8778 }, 8779 } 8780 } 8781 8782 func schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8783 return common.OpenAPIDefinition{ 8784 Schema: spec.Schema{ 8785 SchemaProps: spec.SchemaProps{ 8786 Description: "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", 8787 Type: []string{"object"}, 8788 Properties: map[string]spec.Schema{ 8789 "monitors": { 8790 SchemaProps: spec.SchemaProps{ 8791 Description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8792 Type: []string{"array"}, 8793 Items: &spec.SchemaOrArray{ 8794 Schema: &spec.Schema{ 8795 SchemaProps: spec.SchemaProps{ 8796 Default: "", 8797 Type: []string{"string"}, 8798 Format: "", 8799 }, 8800 }, 8801 }, 8802 }, 8803 }, 8804 "image": { 8805 SchemaProps: spec.SchemaProps{ 8806 Description: "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8807 Default: "", 8808 Type: []string{"string"}, 8809 Format: "", 8810 }, 8811 }, 8812 "fsType": { 8813 SchemaProps: spec.SchemaProps{ 8814 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", 8815 Type: []string{"string"}, 8816 Format: "", 8817 }, 8818 }, 8819 "pool": { 8820 SchemaProps: spec.SchemaProps{ 8821 Description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8822 Type: []string{"string"}, 8823 Format: "", 8824 }, 8825 }, 8826 "user": { 8827 SchemaProps: spec.SchemaProps{ 8828 Description: "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8829 Type: []string{"string"}, 8830 Format: "", 8831 }, 8832 }, 8833 "keyring": { 8834 SchemaProps: spec.SchemaProps{ 8835 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", 8836 Type: []string{"string"}, 8837 Format: "", 8838 }, 8839 }, 8840 "secretRef": { 8841 SchemaProps: spec.SchemaProps{ 8842 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", 8843 Ref: ref("k8s.io/api/core/v1.SecretReference"), 8844 }, 8845 }, 8846 "readOnly": { 8847 SchemaProps: spec.SchemaProps{ 8848 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", 8849 Type: []string{"boolean"}, 8850 Format: "", 8851 }, 8852 }, 8853 }, 8854 Required: []string{"monitors", "image"}, 8855 }, 8856 }, 8857 Dependencies: []string{ 8858 "k8s.io/api/core/v1.SecretReference"}, 8859 } 8860 } 8861 8862 func schema_k8sio_api_core_v1_RBDVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 8863 return common.OpenAPIDefinition{ 8864 Schema: spec.Schema{ 8865 SchemaProps: spec.SchemaProps{ 8866 Description: "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", 8867 Type: []string{"object"}, 8868 Properties: map[string]spec.Schema{ 8869 "monitors": { 8870 SchemaProps: spec.SchemaProps{ 8871 Description: "monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8872 Type: []string{"array"}, 8873 Items: &spec.SchemaOrArray{ 8874 Schema: &spec.Schema{ 8875 SchemaProps: spec.SchemaProps{ 8876 Default: "", 8877 Type: []string{"string"}, 8878 Format: "", 8879 }, 8880 }, 8881 }, 8882 }, 8883 }, 8884 "image": { 8885 SchemaProps: spec.SchemaProps{ 8886 Description: "image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8887 Default: "", 8888 Type: []string{"string"}, 8889 Format: "", 8890 }, 8891 }, 8892 "fsType": { 8893 SchemaProps: spec.SchemaProps{ 8894 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", 8895 Type: []string{"string"}, 8896 Format: "", 8897 }, 8898 }, 8899 "pool": { 8900 SchemaProps: spec.SchemaProps{ 8901 Description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8902 Type: []string{"string"}, 8903 Format: "", 8904 }, 8905 }, 8906 "user": { 8907 SchemaProps: spec.SchemaProps{ 8908 Description: "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", 8909 Type: []string{"string"}, 8910 Format: "", 8911 }, 8912 }, 8913 "keyring": { 8914 SchemaProps: spec.SchemaProps{ 8915 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", 8916 Type: []string{"string"}, 8917 Format: "", 8918 }, 8919 }, 8920 "secretRef": { 8921 SchemaProps: spec.SchemaProps{ 8922 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", 8923 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 8924 }, 8925 }, 8926 "readOnly": { 8927 SchemaProps: spec.SchemaProps{ 8928 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", 8929 Type: []string{"boolean"}, 8930 Format: "", 8931 }, 8932 }, 8933 }, 8934 Required: []string{"monitors", "image"}, 8935 }, 8936 }, 8937 Dependencies: []string{ 8938 "k8s.io/api/core/v1.LocalObjectReference"}, 8939 } 8940 } 8941 8942 func schema_k8sio_api_core_v1_RangeAllocation(ref common.ReferenceCallback) common.OpenAPIDefinition { 8943 return common.OpenAPIDefinition{ 8944 Schema: spec.Schema{ 8945 SchemaProps: spec.SchemaProps{ 8946 Description: "RangeAllocation is not a public type.", 8947 Type: []string{"object"}, 8948 Properties: map[string]spec.Schema{ 8949 "kind": { 8950 SchemaProps: spec.SchemaProps{ 8951 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 8952 Type: []string{"string"}, 8953 Format: "", 8954 }, 8955 }, 8956 "apiVersion": { 8957 SchemaProps: spec.SchemaProps{ 8958 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 8959 Type: []string{"string"}, 8960 Format: "", 8961 }, 8962 }, 8963 "metadata": { 8964 SchemaProps: spec.SchemaProps{ 8965 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 8966 Default: map[string]interface{}{}, 8967 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 8968 }, 8969 }, 8970 "range": { 8971 SchemaProps: spec.SchemaProps{ 8972 Description: "Range is string that identifies the range represented by 'data'.", 8973 Default: "", 8974 Type: []string{"string"}, 8975 Format: "", 8976 }, 8977 }, 8978 "data": { 8979 SchemaProps: spec.SchemaProps{ 8980 Description: "Data is a bit array containing all allocated addresses in the previous segment.", 8981 Type: []string{"string"}, 8982 Format: "byte", 8983 }, 8984 }, 8985 }, 8986 Required: []string{"range", "data"}, 8987 }, 8988 }, 8989 Dependencies: []string{ 8990 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 8991 } 8992 } 8993 8994 func schema_k8sio_api_core_v1_ReplicationController(ref common.ReferenceCallback) common.OpenAPIDefinition { 8995 return common.OpenAPIDefinition{ 8996 Schema: spec.Schema{ 8997 SchemaProps: spec.SchemaProps{ 8998 Description: "ReplicationController represents the configuration of a replication controller.", 8999 Type: []string{"object"}, 9000 Properties: map[string]spec.Schema{ 9001 "kind": { 9002 SchemaProps: spec.SchemaProps{ 9003 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9004 Type: []string{"string"}, 9005 Format: "", 9006 }, 9007 }, 9008 "apiVersion": { 9009 SchemaProps: spec.SchemaProps{ 9010 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9011 Type: []string{"string"}, 9012 Format: "", 9013 }, 9014 }, 9015 "metadata": { 9016 SchemaProps: spec.SchemaProps{ 9017 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", 9018 Default: map[string]interface{}{}, 9019 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 9020 }, 9021 }, 9022 "spec": { 9023 SchemaProps: spec.SchemaProps{ 9024 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", 9025 Default: map[string]interface{}{}, 9026 Ref: ref("k8s.io/api/core/v1.ReplicationControllerSpec"), 9027 }, 9028 }, 9029 "status": { 9030 SchemaProps: spec.SchemaProps{ 9031 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", 9032 Default: map[string]interface{}{}, 9033 Ref: ref("k8s.io/api/core/v1.ReplicationControllerStatus"), 9034 }, 9035 }, 9036 }, 9037 }, 9038 }, 9039 Dependencies: []string{ 9040 "k8s.io/api/core/v1.ReplicationControllerSpec", "k8s.io/api/core/v1.ReplicationControllerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 9041 } 9042 } 9043 9044 func schema_k8sio_api_core_v1_ReplicationControllerCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 9045 return common.OpenAPIDefinition{ 9046 Schema: spec.Schema{ 9047 SchemaProps: spec.SchemaProps{ 9048 Description: "ReplicationControllerCondition describes the state of a replication controller at a certain point.", 9049 Type: []string{"object"}, 9050 Properties: map[string]spec.Schema{ 9051 "type": { 9052 SchemaProps: spec.SchemaProps{ 9053 Description: "Type of replication controller condition.", 9054 Default: "", 9055 Type: []string{"string"}, 9056 Format: "", 9057 }, 9058 }, 9059 "status": { 9060 SchemaProps: spec.SchemaProps{ 9061 Description: "Status of the condition, one of True, False, Unknown.", 9062 Default: "", 9063 Type: []string{"string"}, 9064 Format: "", 9065 }, 9066 }, 9067 "lastTransitionTime": { 9068 SchemaProps: spec.SchemaProps{ 9069 Description: "The last time the condition transitioned from one status to another.", 9070 Default: map[string]interface{}{}, 9071 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 9072 }, 9073 }, 9074 "reason": { 9075 SchemaProps: spec.SchemaProps{ 9076 Description: "The reason for the condition's last transition.", 9077 Type: []string{"string"}, 9078 Format: "", 9079 }, 9080 }, 9081 "message": { 9082 SchemaProps: spec.SchemaProps{ 9083 Description: "A human readable message indicating details about the transition.", 9084 Type: []string{"string"}, 9085 Format: "", 9086 }, 9087 }, 9088 }, 9089 Required: []string{"type", "status"}, 9090 }, 9091 }, 9092 Dependencies: []string{ 9093 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 9094 } 9095 } 9096 9097 func schema_k8sio_api_core_v1_ReplicationControllerList(ref common.ReferenceCallback) common.OpenAPIDefinition { 9098 return common.OpenAPIDefinition{ 9099 Schema: spec.Schema{ 9100 SchemaProps: spec.SchemaProps{ 9101 Description: "ReplicationControllerList is a collection of replication controllers.", 9102 Type: []string{"object"}, 9103 Properties: map[string]spec.Schema{ 9104 "kind": { 9105 SchemaProps: spec.SchemaProps{ 9106 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9107 Type: []string{"string"}, 9108 Format: "", 9109 }, 9110 }, 9111 "apiVersion": { 9112 SchemaProps: spec.SchemaProps{ 9113 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9114 Type: []string{"string"}, 9115 Format: "", 9116 }, 9117 }, 9118 "metadata": { 9119 SchemaProps: spec.SchemaProps{ 9120 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9121 Default: map[string]interface{}{}, 9122 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 9123 }, 9124 }, 9125 "items": { 9126 SchemaProps: spec.SchemaProps{ 9127 Description: "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller", 9128 Type: []string{"array"}, 9129 Items: &spec.SchemaOrArray{ 9130 Schema: &spec.Schema{ 9131 SchemaProps: spec.SchemaProps{ 9132 Default: map[string]interface{}{}, 9133 Ref: ref("k8s.io/api/core/v1.ReplicationController"), 9134 }, 9135 }, 9136 }, 9137 }, 9138 }, 9139 }, 9140 Required: []string{"items"}, 9141 }, 9142 }, 9143 Dependencies: []string{ 9144 "k8s.io/api/core/v1.ReplicationController", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 9145 } 9146 } 9147 9148 func schema_k8sio_api_core_v1_ReplicationControllerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 9149 return common.OpenAPIDefinition{ 9150 Schema: spec.Schema{ 9151 SchemaProps: spec.SchemaProps{ 9152 Description: "ReplicationControllerSpec is the specification of a replication controller.", 9153 Type: []string{"object"}, 9154 Properties: map[string]spec.Schema{ 9155 "replicas": { 9156 SchemaProps: spec.SchemaProps{ 9157 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", 9158 Type: []string{"integer"}, 9159 Format: "int32", 9160 }, 9161 }, 9162 "minReadySeconds": { 9163 SchemaProps: spec.SchemaProps{ 9164 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)", 9165 Type: []string{"integer"}, 9166 Format: "int32", 9167 }, 9168 }, 9169 "selector": { 9170 VendorExtensible: spec.VendorExtensible{ 9171 Extensions: spec.Extensions{ 9172 "x-kubernetes-map-type": "atomic", 9173 }, 9174 }, 9175 SchemaProps: spec.SchemaProps{ 9176 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", 9177 Type: []string{"object"}, 9178 AdditionalProperties: &spec.SchemaOrBool{ 9179 Allows: true, 9180 Schema: &spec.Schema{ 9181 SchemaProps: spec.SchemaProps{ 9182 Default: "", 9183 Type: []string{"string"}, 9184 Format: "", 9185 }, 9186 }, 9187 }, 9188 }, 9189 }, 9190 "template": { 9191 SchemaProps: spec.SchemaProps{ 9192 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", 9193 Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), 9194 }, 9195 }, 9196 }, 9197 }, 9198 }, 9199 Dependencies: []string{ 9200 "k8s.io/api/core/v1.PodTemplateSpec"}, 9201 } 9202 } 9203 9204 func schema_k8sio_api_core_v1_ReplicationControllerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 9205 return common.OpenAPIDefinition{ 9206 Schema: spec.Schema{ 9207 SchemaProps: spec.SchemaProps{ 9208 Description: "ReplicationControllerStatus represents the current status of a replication controller.", 9209 Type: []string{"object"}, 9210 Properties: map[string]spec.Schema{ 9211 "replicas": { 9212 SchemaProps: spec.SchemaProps{ 9213 Description: "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", 9214 Default: 0, 9215 Type: []string{"integer"}, 9216 Format: "int32", 9217 }, 9218 }, 9219 "fullyLabeledReplicas": { 9220 SchemaProps: spec.SchemaProps{ 9221 Description: "The number of pods that have labels matching the labels of the pod template of the replication controller.", 9222 Type: []string{"integer"}, 9223 Format: "int32", 9224 }, 9225 }, 9226 "readyReplicas": { 9227 SchemaProps: spec.SchemaProps{ 9228 Description: "The number of ready replicas for this replication controller.", 9229 Type: []string{"integer"}, 9230 Format: "int32", 9231 }, 9232 }, 9233 "availableReplicas": { 9234 SchemaProps: spec.SchemaProps{ 9235 Description: "The number of available replicas (ready for at least minReadySeconds) for this replication controller.", 9236 Type: []string{"integer"}, 9237 Format: "int32", 9238 }, 9239 }, 9240 "observedGeneration": { 9241 SchemaProps: spec.SchemaProps{ 9242 Description: "ObservedGeneration reflects the generation of the most recently observed replication controller.", 9243 Type: []string{"integer"}, 9244 Format: "int64", 9245 }, 9246 }, 9247 "conditions": { 9248 VendorExtensible: spec.VendorExtensible{ 9249 Extensions: spec.Extensions{ 9250 "x-kubernetes-patch-merge-key": "type", 9251 "x-kubernetes-patch-strategy": "merge", 9252 }, 9253 }, 9254 SchemaProps: spec.SchemaProps{ 9255 Description: "Represents the latest available observations of a replication controller's current state.", 9256 Type: []string{"array"}, 9257 Items: &spec.SchemaOrArray{ 9258 Schema: &spec.Schema{ 9259 SchemaProps: spec.SchemaProps{ 9260 Default: map[string]interface{}{}, 9261 Ref: ref("k8s.io/api/core/v1.ReplicationControllerCondition"), 9262 }, 9263 }, 9264 }, 9265 }, 9266 }, 9267 }, 9268 Required: []string{"replicas"}, 9269 }, 9270 }, 9271 Dependencies: []string{ 9272 "k8s.io/api/core/v1.ReplicationControllerCondition"}, 9273 } 9274 } 9275 9276 func schema_k8sio_api_core_v1_ResourceFieldSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 9277 return common.OpenAPIDefinition{ 9278 Schema: spec.Schema{ 9279 SchemaProps: spec.SchemaProps{ 9280 Description: "ResourceFieldSelector represents container resources (cpu, memory) and their output format", 9281 Type: []string{"object"}, 9282 Properties: map[string]spec.Schema{ 9283 "containerName": { 9284 SchemaProps: spec.SchemaProps{ 9285 Description: "Container name: required for volumes, optional for env vars", 9286 Type: []string{"string"}, 9287 Format: "", 9288 }, 9289 }, 9290 "resource": { 9291 SchemaProps: spec.SchemaProps{ 9292 Description: "Required: resource to select", 9293 Default: "", 9294 Type: []string{"string"}, 9295 Format: "", 9296 }, 9297 }, 9298 "divisor": { 9299 SchemaProps: spec.SchemaProps{ 9300 Description: "Specifies the output format of the exposed resources, defaults to \"1\"", 9301 Default: map[string]interface{}{}, 9302 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9303 }, 9304 }, 9305 }, 9306 Required: []string{"resource"}, 9307 }, 9308 VendorExtensible: spec.VendorExtensible{ 9309 Extensions: spec.Extensions{ 9310 "x-kubernetes-map-type": "atomic", 9311 }, 9312 }, 9313 }, 9314 Dependencies: []string{ 9315 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 9316 } 9317 } 9318 9319 func schema_k8sio_api_core_v1_ResourceQuota(ref common.ReferenceCallback) common.OpenAPIDefinition { 9320 return common.OpenAPIDefinition{ 9321 Schema: spec.Schema{ 9322 SchemaProps: spec.SchemaProps{ 9323 Description: "ResourceQuota sets aggregate quota restrictions enforced per namespace", 9324 Type: []string{"object"}, 9325 Properties: map[string]spec.Schema{ 9326 "kind": { 9327 SchemaProps: spec.SchemaProps{ 9328 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9329 Type: []string{"string"}, 9330 Format: "", 9331 }, 9332 }, 9333 "apiVersion": { 9334 SchemaProps: spec.SchemaProps{ 9335 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9336 Type: []string{"string"}, 9337 Format: "", 9338 }, 9339 }, 9340 "metadata": { 9341 SchemaProps: spec.SchemaProps{ 9342 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 9343 Default: map[string]interface{}{}, 9344 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 9345 }, 9346 }, 9347 "spec": { 9348 SchemaProps: spec.SchemaProps{ 9349 Description: "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 9350 Default: map[string]interface{}{}, 9351 Ref: ref("k8s.io/api/core/v1.ResourceQuotaSpec"), 9352 }, 9353 }, 9354 "status": { 9355 SchemaProps: spec.SchemaProps{ 9356 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", 9357 Default: map[string]interface{}{}, 9358 Ref: ref("k8s.io/api/core/v1.ResourceQuotaStatus"), 9359 }, 9360 }, 9361 }, 9362 }, 9363 }, 9364 Dependencies: []string{ 9365 "k8s.io/api/core/v1.ResourceQuotaSpec", "k8s.io/api/core/v1.ResourceQuotaStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 9366 } 9367 } 9368 9369 func schema_k8sio_api_core_v1_ResourceQuotaList(ref common.ReferenceCallback) common.OpenAPIDefinition { 9370 return common.OpenAPIDefinition{ 9371 Schema: spec.Schema{ 9372 SchemaProps: spec.SchemaProps{ 9373 Description: "ResourceQuotaList is a list of ResourceQuota items.", 9374 Type: []string{"object"}, 9375 Properties: map[string]spec.Schema{ 9376 "kind": { 9377 SchemaProps: spec.SchemaProps{ 9378 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9379 Type: []string{"string"}, 9380 Format: "", 9381 }, 9382 }, 9383 "apiVersion": { 9384 SchemaProps: spec.SchemaProps{ 9385 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9386 Type: []string{"string"}, 9387 Format: "", 9388 }, 9389 }, 9390 "metadata": { 9391 SchemaProps: spec.SchemaProps{ 9392 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9393 Default: map[string]interface{}{}, 9394 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 9395 }, 9396 }, 9397 "items": { 9398 SchemaProps: spec.SchemaProps{ 9399 Description: "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", 9400 Type: []string{"array"}, 9401 Items: &spec.SchemaOrArray{ 9402 Schema: &spec.Schema{ 9403 SchemaProps: spec.SchemaProps{ 9404 Default: map[string]interface{}{}, 9405 Ref: ref("k8s.io/api/core/v1.ResourceQuota"), 9406 }, 9407 }, 9408 }, 9409 }, 9410 }, 9411 }, 9412 Required: []string{"items"}, 9413 }, 9414 }, 9415 Dependencies: []string{ 9416 "k8s.io/api/core/v1.ResourceQuota", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 9417 } 9418 } 9419 9420 func schema_k8sio_api_core_v1_ResourceQuotaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 9421 return common.OpenAPIDefinition{ 9422 Schema: spec.Schema{ 9423 SchemaProps: spec.SchemaProps{ 9424 Description: "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", 9425 Type: []string{"object"}, 9426 Properties: map[string]spec.Schema{ 9427 "hard": { 9428 SchemaProps: spec.SchemaProps{ 9429 Description: "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", 9430 Type: []string{"object"}, 9431 AdditionalProperties: &spec.SchemaOrBool{ 9432 Allows: true, 9433 Schema: &spec.Schema{ 9434 SchemaProps: spec.SchemaProps{ 9435 Default: map[string]interface{}{}, 9436 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9437 }, 9438 }, 9439 }, 9440 }, 9441 }, 9442 "scopes": { 9443 SchemaProps: spec.SchemaProps{ 9444 Description: "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", 9445 Type: []string{"array"}, 9446 Items: &spec.SchemaOrArray{ 9447 Schema: &spec.Schema{ 9448 SchemaProps: spec.SchemaProps{ 9449 Default: "", 9450 Type: []string{"string"}, 9451 Format: "", 9452 }, 9453 }, 9454 }, 9455 }, 9456 }, 9457 "scopeSelector": { 9458 SchemaProps: spec.SchemaProps{ 9459 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.", 9460 Ref: ref("k8s.io/api/core/v1.ScopeSelector"), 9461 }, 9462 }, 9463 }, 9464 }, 9465 }, 9466 Dependencies: []string{ 9467 "k8s.io/api/core/v1.ScopeSelector", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 9468 } 9469 } 9470 9471 func schema_k8sio_api_core_v1_ResourceQuotaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 9472 return common.OpenAPIDefinition{ 9473 Schema: spec.Schema{ 9474 SchemaProps: spec.SchemaProps{ 9475 Description: "ResourceQuotaStatus defines the enforced hard limits and observed use.", 9476 Type: []string{"object"}, 9477 Properties: map[string]spec.Schema{ 9478 "hard": { 9479 SchemaProps: spec.SchemaProps{ 9480 Description: "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", 9481 Type: []string{"object"}, 9482 AdditionalProperties: &spec.SchemaOrBool{ 9483 Allows: true, 9484 Schema: &spec.Schema{ 9485 SchemaProps: spec.SchemaProps{ 9486 Default: map[string]interface{}{}, 9487 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9488 }, 9489 }, 9490 }, 9491 }, 9492 }, 9493 "used": { 9494 SchemaProps: spec.SchemaProps{ 9495 Description: "Used is the current observed total usage of the resource in the namespace.", 9496 Type: []string{"object"}, 9497 AdditionalProperties: &spec.SchemaOrBool{ 9498 Allows: true, 9499 Schema: &spec.Schema{ 9500 SchemaProps: spec.SchemaProps{ 9501 Default: map[string]interface{}{}, 9502 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9503 }, 9504 }, 9505 }, 9506 }, 9507 }, 9508 }, 9509 }, 9510 }, 9511 Dependencies: []string{ 9512 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 9513 } 9514 } 9515 9516 func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { 9517 return common.OpenAPIDefinition{ 9518 Schema: spec.Schema{ 9519 SchemaProps: spec.SchemaProps{ 9520 Description: "ResourceRequirements describes the compute resource requirements.", 9521 Type: []string{"object"}, 9522 Properties: map[string]spec.Schema{ 9523 "limits": { 9524 SchemaProps: spec.SchemaProps{ 9525 Description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", 9526 Type: []string{"object"}, 9527 AdditionalProperties: &spec.SchemaOrBool{ 9528 Allows: true, 9529 Schema: &spec.Schema{ 9530 SchemaProps: spec.SchemaProps{ 9531 Default: map[string]interface{}{}, 9532 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9533 }, 9534 }, 9535 }, 9536 }, 9537 }, 9538 "requests": { 9539 SchemaProps: spec.SchemaProps{ 9540 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/", 9541 Type: []string{"object"}, 9542 AdditionalProperties: &spec.SchemaOrBool{ 9543 Allows: true, 9544 Schema: &spec.Schema{ 9545 SchemaProps: spec.SchemaProps{ 9546 Default: map[string]interface{}{}, 9547 Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), 9548 }, 9549 }, 9550 }, 9551 }, 9552 }, 9553 }, 9554 }, 9555 }, 9556 Dependencies: []string{ 9557 "k8s.io/apimachinery/pkg/api/resource.Quantity"}, 9558 } 9559 } 9560 9561 func schema_k8sio_api_core_v1_SELinuxOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 9562 return common.OpenAPIDefinition{ 9563 Schema: spec.Schema{ 9564 SchemaProps: spec.SchemaProps{ 9565 Description: "SELinuxOptions are the labels to be applied to the container", 9566 Type: []string{"object"}, 9567 Properties: map[string]spec.Schema{ 9568 "user": { 9569 SchemaProps: spec.SchemaProps{ 9570 Description: "User is a SELinux user label that applies to the container.", 9571 Type: []string{"string"}, 9572 Format: "", 9573 }, 9574 }, 9575 "role": { 9576 SchemaProps: spec.SchemaProps{ 9577 Description: "Role is a SELinux role label that applies to the container.", 9578 Type: []string{"string"}, 9579 Format: "", 9580 }, 9581 }, 9582 "type": { 9583 SchemaProps: spec.SchemaProps{ 9584 Description: "Type is a SELinux type label that applies to the container.", 9585 Type: []string{"string"}, 9586 Format: "", 9587 }, 9588 }, 9589 "level": { 9590 SchemaProps: spec.SchemaProps{ 9591 Description: "Level is SELinux level label that applies to the container.", 9592 Type: []string{"string"}, 9593 Format: "", 9594 }, 9595 }, 9596 }, 9597 }, 9598 }, 9599 } 9600 } 9601 9602 func schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 9603 return common.OpenAPIDefinition{ 9604 Schema: spec.Schema{ 9605 SchemaProps: spec.SchemaProps{ 9606 Description: "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", 9607 Type: []string{"object"}, 9608 Properties: map[string]spec.Schema{ 9609 "gateway": { 9610 SchemaProps: spec.SchemaProps{ 9611 Description: "gateway is the host address of the ScaleIO API Gateway.", 9612 Default: "", 9613 Type: []string{"string"}, 9614 Format: "", 9615 }, 9616 }, 9617 "system": { 9618 SchemaProps: spec.SchemaProps{ 9619 Description: "system is the name of the storage system as configured in ScaleIO.", 9620 Default: "", 9621 Type: []string{"string"}, 9622 Format: "", 9623 }, 9624 }, 9625 "secretRef": { 9626 SchemaProps: spec.SchemaProps{ 9627 Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", 9628 Ref: ref("k8s.io/api/core/v1.SecretReference"), 9629 }, 9630 }, 9631 "sslEnabled": { 9632 SchemaProps: spec.SchemaProps{ 9633 Description: "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false", 9634 Type: []string{"boolean"}, 9635 Format: "", 9636 }, 9637 }, 9638 "protectionDomain": { 9639 SchemaProps: spec.SchemaProps{ 9640 Description: "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", 9641 Type: []string{"string"}, 9642 Format: "", 9643 }, 9644 }, 9645 "storagePool": { 9646 SchemaProps: spec.SchemaProps{ 9647 Description: "storagePool is the ScaleIO Storage Pool associated with the protection domain.", 9648 Type: []string{"string"}, 9649 Format: "", 9650 }, 9651 }, 9652 "storageMode": { 9653 SchemaProps: spec.SchemaProps{ 9654 Description: "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", 9655 Type: []string{"string"}, 9656 Format: "", 9657 }, 9658 }, 9659 "volumeName": { 9660 SchemaProps: spec.SchemaProps{ 9661 Description: "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", 9662 Type: []string{"string"}, 9663 Format: "", 9664 }, 9665 }, 9666 "fsType": { 9667 SchemaProps: spec.SchemaProps{ 9668 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\"", 9669 Type: []string{"string"}, 9670 Format: "", 9671 }, 9672 }, 9673 "readOnly": { 9674 SchemaProps: spec.SchemaProps{ 9675 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 9676 Type: []string{"boolean"}, 9677 Format: "", 9678 }, 9679 }, 9680 }, 9681 Required: []string{"gateway", "system", "secretRef"}, 9682 }, 9683 }, 9684 Dependencies: []string{ 9685 "k8s.io/api/core/v1.SecretReference"}, 9686 } 9687 } 9688 9689 func schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 9690 return common.OpenAPIDefinition{ 9691 Schema: spec.Schema{ 9692 SchemaProps: spec.SchemaProps{ 9693 Description: "ScaleIOVolumeSource represents a persistent ScaleIO volume", 9694 Type: []string{"object"}, 9695 Properties: map[string]spec.Schema{ 9696 "gateway": { 9697 SchemaProps: spec.SchemaProps{ 9698 Description: "gateway is the host address of the ScaleIO API Gateway.", 9699 Default: "", 9700 Type: []string{"string"}, 9701 Format: "", 9702 }, 9703 }, 9704 "system": { 9705 SchemaProps: spec.SchemaProps{ 9706 Description: "system is the name of the storage system as configured in ScaleIO.", 9707 Default: "", 9708 Type: []string{"string"}, 9709 Format: "", 9710 }, 9711 }, 9712 "secretRef": { 9713 SchemaProps: spec.SchemaProps{ 9714 Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", 9715 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 9716 }, 9717 }, 9718 "sslEnabled": { 9719 SchemaProps: spec.SchemaProps{ 9720 Description: "sslEnabled Flag enable/disable SSL communication with Gateway, default false", 9721 Type: []string{"boolean"}, 9722 Format: "", 9723 }, 9724 }, 9725 "protectionDomain": { 9726 SchemaProps: spec.SchemaProps{ 9727 Description: "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", 9728 Type: []string{"string"}, 9729 Format: "", 9730 }, 9731 }, 9732 "storagePool": { 9733 SchemaProps: spec.SchemaProps{ 9734 Description: "storagePool is the ScaleIO Storage Pool associated with the protection domain.", 9735 Type: []string{"string"}, 9736 Format: "", 9737 }, 9738 }, 9739 "storageMode": { 9740 SchemaProps: spec.SchemaProps{ 9741 Description: "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", 9742 Type: []string{"string"}, 9743 Format: "", 9744 }, 9745 }, 9746 "volumeName": { 9747 SchemaProps: spec.SchemaProps{ 9748 Description: "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", 9749 Type: []string{"string"}, 9750 Format: "", 9751 }, 9752 }, 9753 "fsType": { 9754 SchemaProps: spec.SchemaProps{ 9755 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\".", 9756 Type: []string{"string"}, 9757 Format: "", 9758 }, 9759 }, 9760 "readOnly": { 9761 SchemaProps: spec.SchemaProps{ 9762 Description: "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 9763 Type: []string{"boolean"}, 9764 Format: "", 9765 }, 9766 }, 9767 }, 9768 Required: []string{"gateway", "system", "secretRef"}, 9769 }, 9770 }, 9771 Dependencies: []string{ 9772 "k8s.io/api/core/v1.LocalObjectReference"}, 9773 } 9774 } 9775 9776 func schema_k8sio_api_core_v1_ScopeSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 9777 return common.OpenAPIDefinition{ 9778 Schema: spec.Schema{ 9779 SchemaProps: spec.SchemaProps{ 9780 Description: "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", 9781 Type: []string{"object"}, 9782 Properties: map[string]spec.Schema{ 9783 "matchExpressions": { 9784 SchemaProps: spec.SchemaProps{ 9785 Description: "A list of scope selector requirements by scope of the resources.", 9786 Type: []string{"array"}, 9787 Items: &spec.SchemaOrArray{ 9788 Schema: &spec.Schema{ 9789 SchemaProps: spec.SchemaProps{ 9790 Default: map[string]interface{}{}, 9791 Ref: ref("k8s.io/api/core/v1.ScopedResourceSelectorRequirement"), 9792 }, 9793 }, 9794 }, 9795 }, 9796 }, 9797 }, 9798 }, 9799 VendorExtensible: spec.VendorExtensible{ 9800 Extensions: spec.Extensions{ 9801 "x-kubernetes-map-type": "atomic", 9802 }, 9803 }, 9804 }, 9805 Dependencies: []string{ 9806 "k8s.io/api/core/v1.ScopedResourceSelectorRequirement"}, 9807 } 9808 } 9809 9810 func schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 9811 return common.OpenAPIDefinition{ 9812 Schema: spec.Schema{ 9813 SchemaProps: spec.SchemaProps{ 9814 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.", 9815 Type: []string{"object"}, 9816 Properties: map[string]spec.Schema{ 9817 "scopeName": { 9818 SchemaProps: spec.SchemaProps{ 9819 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", 9820 Default: "", 9821 Type: []string{"string"}, 9822 Format: "", 9823 Enum: []interface{}{"BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating"}}, 9824 }, 9825 "operator": { 9826 SchemaProps: spec.SchemaProps{ 9827 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\"`", 9828 Default: "", 9829 Type: []string{"string"}, 9830 Format: "", 9831 Enum: []interface{}{"DoesNotExist", "Exists", "In", "NotIn"}}, 9832 }, 9833 "values": { 9834 SchemaProps: spec.SchemaProps{ 9835 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.", 9836 Type: []string{"array"}, 9837 Items: &spec.SchemaOrArray{ 9838 Schema: &spec.Schema{ 9839 SchemaProps: spec.SchemaProps{ 9840 Default: "", 9841 Type: []string{"string"}, 9842 Format: "", 9843 }, 9844 }, 9845 }, 9846 }, 9847 }, 9848 }, 9849 Required: []string{"scopeName", "operator"}, 9850 }, 9851 }, 9852 } 9853 } 9854 9855 func schema_k8sio_api_core_v1_SeccompProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { 9856 return common.OpenAPIDefinition{ 9857 Schema: spec.Schema{ 9858 SchemaProps: spec.SchemaProps{ 9859 Description: "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", 9860 Type: []string{"object"}, 9861 Properties: map[string]spec.Schema{ 9862 "type": { 9863 SchemaProps: spec.SchemaProps{ 9864 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).", 9865 Default: "", 9866 Type: []string{"string"}, 9867 Format: "", 9868 Enum: []interface{}{"Localhost", "RuntimeDefault", "Unconfined"}}, 9869 }, 9870 "localhostProfile": { 9871 SchemaProps: spec.SchemaProps{ 9872 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\".", 9873 Type: []string{"string"}, 9874 Format: "", 9875 }, 9876 }, 9877 }, 9878 Required: []string{"type"}, 9879 }, 9880 VendorExtensible: spec.VendorExtensible{ 9881 Extensions: spec.Extensions{ 9882 "x-kubernetes-unions": []interface{}{ 9883 map[string]interface{}{ 9884 "discriminator": "type", 9885 "fields-to-discriminateBy": map[string]interface{}{ 9886 "localhostProfile": "LocalhostProfile", 9887 }, 9888 }, 9889 }, 9890 }, 9891 }, 9892 }, 9893 } 9894 } 9895 9896 func schema_k8sio_api_core_v1_Secret(ref common.ReferenceCallback) common.OpenAPIDefinition { 9897 return common.OpenAPIDefinition{ 9898 Schema: spec.Schema{ 9899 SchemaProps: spec.SchemaProps{ 9900 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.", 9901 Type: []string{"object"}, 9902 Properties: map[string]spec.Schema{ 9903 "kind": { 9904 SchemaProps: spec.SchemaProps{ 9905 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 9906 Type: []string{"string"}, 9907 Format: "", 9908 }, 9909 }, 9910 "apiVersion": { 9911 SchemaProps: spec.SchemaProps{ 9912 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 9913 Type: []string{"string"}, 9914 Format: "", 9915 }, 9916 }, 9917 "metadata": { 9918 SchemaProps: spec.SchemaProps{ 9919 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 9920 Default: map[string]interface{}{}, 9921 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 9922 }, 9923 }, 9924 "immutable": { 9925 SchemaProps: spec.SchemaProps{ 9926 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.", 9927 Type: []string{"boolean"}, 9928 Format: "", 9929 }, 9930 }, 9931 "data": { 9932 SchemaProps: spec.SchemaProps{ 9933 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", 9934 Type: []string{"object"}, 9935 AdditionalProperties: &spec.SchemaOrBool{ 9936 Allows: true, 9937 Schema: &spec.Schema{ 9938 SchemaProps: spec.SchemaProps{ 9939 Type: []string{"string"}, 9940 Format: "byte", 9941 }, 9942 }, 9943 }, 9944 }, 9945 }, 9946 "stringData": { 9947 SchemaProps: spec.SchemaProps{ 9948 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.", 9949 Type: []string{"object"}, 9950 AdditionalProperties: &spec.SchemaOrBool{ 9951 Allows: true, 9952 Schema: &spec.Schema{ 9953 SchemaProps: spec.SchemaProps{ 9954 Default: "", 9955 Type: []string{"string"}, 9956 Format: "", 9957 }, 9958 }, 9959 }, 9960 }, 9961 }, 9962 "type": { 9963 SchemaProps: spec.SchemaProps{ 9964 Description: "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", 9965 Type: []string{"string"}, 9966 Format: "", 9967 }, 9968 }, 9969 }, 9970 }, 9971 }, 9972 Dependencies: []string{ 9973 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 9974 } 9975 } 9976 9977 func schema_k8sio_api_core_v1_SecretEnvSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 9978 return common.OpenAPIDefinition{ 9979 Schema: spec.Schema{ 9980 SchemaProps: spec.SchemaProps{ 9981 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.", 9982 Type: []string{"object"}, 9983 Properties: map[string]spec.Schema{ 9984 "name": { 9985 SchemaProps: spec.SchemaProps{ 9986 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 9987 Type: []string{"string"}, 9988 Format: "", 9989 }, 9990 }, 9991 "optional": { 9992 SchemaProps: spec.SchemaProps{ 9993 Description: "Specify whether the Secret must be defined", 9994 Type: []string{"boolean"}, 9995 Format: "", 9996 }, 9997 }, 9998 }, 9999 }, 10000 }, 10001 } 10002 } 10003 10004 func schema_k8sio_api_core_v1_SecretKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 10005 return common.OpenAPIDefinition{ 10006 Schema: spec.Schema{ 10007 SchemaProps: spec.SchemaProps{ 10008 Description: "SecretKeySelector selects a key of a Secret.", 10009 Type: []string{"object"}, 10010 Properties: map[string]spec.Schema{ 10011 "name": { 10012 SchemaProps: spec.SchemaProps{ 10013 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 10014 Type: []string{"string"}, 10015 Format: "", 10016 }, 10017 }, 10018 "key": { 10019 SchemaProps: spec.SchemaProps{ 10020 Description: "The key of the secret to select from. Must be a valid secret key.", 10021 Default: "", 10022 Type: []string{"string"}, 10023 Format: "", 10024 }, 10025 }, 10026 "optional": { 10027 SchemaProps: spec.SchemaProps{ 10028 Description: "Specify whether the Secret or its key must be defined", 10029 Type: []string{"boolean"}, 10030 Format: "", 10031 }, 10032 }, 10033 }, 10034 Required: []string{"key"}, 10035 }, 10036 VendorExtensible: spec.VendorExtensible{ 10037 Extensions: spec.Extensions{ 10038 "x-kubernetes-map-type": "atomic", 10039 }, 10040 }, 10041 }, 10042 } 10043 } 10044 10045 func schema_k8sio_api_core_v1_SecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { 10046 return common.OpenAPIDefinition{ 10047 Schema: spec.Schema{ 10048 SchemaProps: spec.SchemaProps{ 10049 Description: "SecretList is a list of Secret.", 10050 Type: []string{"object"}, 10051 Properties: map[string]spec.Schema{ 10052 "kind": { 10053 SchemaProps: spec.SchemaProps{ 10054 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10055 Type: []string{"string"}, 10056 Format: "", 10057 }, 10058 }, 10059 "apiVersion": { 10060 SchemaProps: spec.SchemaProps{ 10061 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10062 Type: []string{"string"}, 10063 Format: "", 10064 }, 10065 }, 10066 "metadata": { 10067 SchemaProps: spec.SchemaProps{ 10068 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10069 Default: map[string]interface{}{}, 10070 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 10071 }, 10072 }, 10073 "items": { 10074 SchemaProps: spec.SchemaProps{ 10075 Description: "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", 10076 Type: []string{"array"}, 10077 Items: &spec.SchemaOrArray{ 10078 Schema: &spec.Schema{ 10079 SchemaProps: spec.SchemaProps{ 10080 Default: map[string]interface{}{}, 10081 Ref: ref("k8s.io/api/core/v1.Secret"), 10082 }, 10083 }, 10084 }, 10085 }, 10086 }, 10087 }, 10088 Required: []string{"items"}, 10089 }, 10090 }, 10091 Dependencies: []string{ 10092 "k8s.io/api/core/v1.Secret", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 10093 } 10094 } 10095 10096 func schema_k8sio_api_core_v1_SecretProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 10097 return common.OpenAPIDefinition{ 10098 Schema: spec.Schema{ 10099 SchemaProps: spec.SchemaProps{ 10100 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.", 10101 Type: []string{"object"}, 10102 Properties: map[string]spec.Schema{ 10103 "name": { 10104 SchemaProps: spec.SchemaProps{ 10105 Description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", 10106 Type: []string{"string"}, 10107 Format: "", 10108 }, 10109 }, 10110 "items": { 10111 SchemaProps: spec.SchemaProps{ 10112 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 '..'.", 10113 Type: []string{"array"}, 10114 Items: &spec.SchemaOrArray{ 10115 Schema: &spec.Schema{ 10116 SchemaProps: spec.SchemaProps{ 10117 Default: map[string]interface{}{}, 10118 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 10119 }, 10120 }, 10121 }, 10122 }, 10123 }, 10124 "optional": { 10125 SchemaProps: spec.SchemaProps{ 10126 Description: "optional field specify whether the Secret or its key must be defined", 10127 Type: []string{"boolean"}, 10128 Format: "", 10129 }, 10130 }, 10131 }, 10132 }, 10133 }, 10134 Dependencies: []string{ 10135 "k8s.io/api/core/v1.KeyToPath"}, 10136 } 10137 } 10138 10139 func schema_k8sio_api_core_v1_SecretReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 10140 return common.OpenAPIDefinition{ 10141 Schema: spec.Schema{ 10142 SchemaProps: spec.SchemaProps{ 10143 Description: "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", 10144 Type: []string{"object"}, 10145 Properties: map[string]spec.Schema{ 10146 "name": { 10147 SchemaProps: spec.SchemaProps{ 10148 Description: "name is unique within a namespace to reference a secret resource.", 10149 Type: []string{"string"}, 10150 Format: "", 10151 }, 10152 }, 10153 "namespace": { 10154 SchemaProps: spec.SchemaProps{ 10155 Description: "namespace defines the space within which the secret name must be unique.", 10156 Type: []string{"string"}, 10157 Format: "", 10158 }, 10159 }, 10160 }, 10161 }, 10162 VendorExtensible: spec.VendorExtensible{ 10163 Extensions: spec.Extensions{ 10164 "x-kubernetes-map-type": "atomic", 10165 }, 10166 }, 10167 }, 10168 } 10169 } 10170 10171 func schema_k8sio_api_core_v1_SecretVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 10172 return common.OpenAPIDefinition{ 10173 Schema: spec.Schema{ 10174 SchemaProps: spec.SchemaProps{ 10175 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.", 10176 Type: []string{"object"}, 10177 Properties: map[string]spec.Schema{ 10178 "secretName": { 10179 SchemaProps: spec.SchemaProps{ 10180 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", 10181 Type: []string{"string"}, 10182 Format: "", 10183 }, 10184 }, 10185 "items": { 10186 SchemaProps: spec.SchemaProps{ 10187 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 '..'.", 10188 Type: []string{"array"}, 10189 Items: &spec.SchemaOrArray{ 10190 Schema: &spec.Schema{ 10191 SchemaProps: spec.SchemaProps{ 10192 Default: map[string]interface{}{}, 10193 Ref: ref("k8s.io/api/core/v1.KeyToPath"), 10194 }, 10195 }, 10196 }, 10197 }, 10198 }, 10199 "defaultMode": { 10200 SchemaProps: spec.SchemaProps{ 10201 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.", 10202 Type: []string{"integer"}, 10203 Format: "int32", 10204 }, 10205 }, 10206 "optional": { 10207 SchemaProps: spec.SchemaProps{ 10208 Description: "optional field specify whether the Secret or its keys must be defined", 10209 Type: []string{"boolean"}, 10210 Format: "", 10211 }, 10212 }, 10213 }, 10214 }, 10215 }, 10216 Dependencies: []string{ 10217 "k8s.io/api/core/v1.KeyToPath"}, 10218 } 10219 } 10220 10221 func schema_k8sio_api_core_v1_SecurityContext(ref common.ReferenceCallback) common.OpenAPIDefinition { 10222 return common.OpenAPIDefinition{ 10223 Schema: spec.Schema{ 10224 SchemaProps: spec.SchemaProps{ 10225 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.", 10226 Type: []string{"object"}, 10227 Properties: map[string]spec.Schema{ 10228 "capabilities": { 10229 SchemaProps: spec.SchemaProps{ 10230 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.", 10231 Ref: ref("k8s.io/api/core/v1.Capabilities"), 10232 }, 10233 }, 10234 "privileged": { 10235 SchemaProps: spec.SchemaProps{ 10236 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.", 10237 Type: []string{"boolean"}, 10238 Format: "", 10239 }, 10240 }, 10241 "seLinuxOptions": { 10242 SchemaProps: spec.SchemaProps{ 10243 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.", 10244 Ref: ref("k8s.io/api/core/v1.SELinuxOptions"), 10245 }, 10246 }, 10247 "windowsOptions": { 10248 SchemaProps: spec.SchemaProps{ 10249 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.", 10250 Ref: ref("k8s.io/api/core/v1.WindowsSecurityContextOptions"), 10251 }, 10252 }, 10253 "runAsUser": { 10254 SchemaProps: spec.SchemaProps{ 10255 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.", 10256 Type: []string{"integer"}, 10257 Format: "int64", 10258 }, 10259 }, 10260 "runAsGroup": { 10261 SchemaProps: spec.SchemaProps{ 10262 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.", 10263 Type: []string{"integer"}, 10264 Format: "int64", 10265 }, 10266 }, 10267 "runAsNonRoot": { 10268 SchemaProps: spec.SchemaProps{ 10269 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.", 10270 Type: []string{"boolean"}, 10271 Format: "", 10272 }, 10273 }, 10274 "readOnlyRootFilesystem": { 10275 SchemaProps: spec.SchemaProps{ 10276 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.", 10277 Type: []string{"boolean"}, 10278 Format: "", 10279 }, 10280 }, 10281 "allowPrivilegeEscalation": { 10282 SchemaProps: spec.SchemaProps{ 10283 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.", 10284 Type: []string{"boolean"}, 10285 Format: "", 10286 }, 10287 }, 10288 "procMount": { 10289 SchemaProps: spec.SchemaProps{ 10290 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.", 10291 Type: []string{"string"}, 10292 Format: "", 10293 }, 10294 }, 10295 "seccompProfile": { 10296 SchemaProps: spec.SchemaProps{ 10297 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.", 10298 Ref: ref("k8s.io/api/core/v1.SeccompProfile"), 10299 }, 10300 }, 10301 }, 10302 }, 10303 }, 10304 Dependencies: []string{ 10305 "k8s.io/api/core/v1.Capabilities", "k8s.io/api/core/v1.SELinuxOptions", "k8s.io/api/core/v1.SeccompProfile", "k8s.io/api/core/v1.WindowsSecurityContextOptions"}, 10306 } 10307 } 10308 10309 func schema_k8sio_api_core_v1_SerializedReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 10310 return common.OpenAPIDefinition{ 10311 Schema: spec.Schema{ 10312 SchemaProps: spec.SchemaProps{ 10313 Description: "SerializedReference is a reference to serialized object.", 10314 Type: []string{"object"}, 10315 Properties: map[string]spec.Schema{ 10316 "kind": { 10317 SchemaProps: spec.SchemaProps{ 10318 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10319 Type: []string{"string"}, 10320 Format: "", 10321 }, 10322 }, 10323 "apiVersion": { 10324 SchemaProps: spec.SchemaProps{ 10325 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10326 Type: []string{"string"}, 10327 Format: "", 10328 }, 10329 }, 10330 "reference": { 10331 SchemaProps: spec.SchemaProps{ 10332 Description: "The reference to an object in the system.", 10333 Default: map[string]interface{}{}, 10334 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 10335 }, 10336 }, 10337 }, 10338 }, 10339 }, 10340 Dependencies: []string{ 10341 "k8s.io/api/core/v1.ObjectReference"}, 10342 } 10343 } 10344 10345 func schema_k8sio_api_core_v1_Service(ref common.ReferenceCallback) common.OpenAPIDefinition { 10346 return common.OpenAPIDefinition{ 10347 Schema: spec.Schema{ 10348 SchemaProps: spec.SchemaProps{ 10349 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.", 10350 Type: []string{"object"}, 10351 Properties: map[string]spec.Schema{ 10352 "kind": { 10353 SchemaProps: spec.SchemaProps{ 10354 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10355 Type: []string{"string"}, 10356 Format: "", 10357 }, 10358 }, 10359 "apiVersion": { 10360 SchemaProps: spec.SchemaProps{ 10361 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10362 Type: []string{"string"}, 10363 Format: "", 10364 }, 10365 }, 10366 "metadata": { 10367 SchemaProps: spec.SchemaProps{ 10368 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 10369 Default: map[string]interface{}{}, 10370 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 10371 }, 10372 }, 10373 "spec": { 10374 SchemaProps: spec.SchemaProps{ 10375 Description: "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 10376 Default: map[string]interface{}{}, 10377 Ref: ref("k8s.io/api/core/v1.ServiceSpec"), 10378 }, 10379 }, 10380 "status": { 10381 SchemaProps: spec.SchemaProps{ 10382 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", 10383 Default: map[string]interface{}{}, 10384 Ref: ref("k8s.io/api/core/v1.ServiceStatus"), 10385 }, 10386 }, 10387 }, 10388 }, 10389 }, 10390 Dependencies: []string{ 10391 "k8s.io/api/core/v1.ServiceSpec", "k8s.io/api/core/v1.ServiceStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 10392 } 10393 } 10394 10395 func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) common.OpenAPIDefinition { 10396 return common.OpenAPIDefinition{ 10397 Schema: spec.Schema{ 10398 SchemaProps: spec.SchemaProps{ 10399 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", 10400 Type: []string{"object"}, 10401 Properties: map[string]spec.Schema{ 10402 "kind": { 10403 SchemaProps: spec.SchemaProps{ 10404 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10405 Type: []string{"string"}, 10406 Format: "", 10407 }, 10408 }, 10409 "apiVersion": { 10410 SchemaProps: spec.SchemaProps{ 10411 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10412 Type: []string{"string"}, 10413 Format: "", 10414 }, 10415 }, 10416 "metadata": { 10417 SchemaProps: spec.SchemaProps{ 10418 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 10419 Default: map[string]interface{}{}, 10420 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 10421 }, 10422 }, 10423 "secrets": { 10424 VendorExtensible: spec.VendorExtensible{ 10425 Extensions: spec.Extensions{ 10426 "x-kubernetes-patch-merge-key": "name", 10427 "x-kubernetes-patch-strategy": "merge", 10428 }, 10429 }, 10430 SchemaProps: spec.SchemaProps{ 10431 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", 10432 Type: []string{"array"}, 10433 Items: &spec.SchemaOrArray{ 10434 Schema: &spec.Schema{ 10435 SchemaProps: spec.SchemaProps{ 10436 Default: map[string]interface{}{}, 10437 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 10438 }, 10439 }, 10440 }, 10441 }, 10442 }, 10443 "imagePullSecrets": { 10444 SchemaProps: spec.SchemaProps{ 10445 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", 10446 Type: []string{"array"}, 10447 Items: &spec.SchemaOrArray{ 10448 Schema: &spec.Schema{ 10449 SchemaProps: spec.SchemaProps{ 10450 Default: map[string]interface{}{}, 10451 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 10452 }, 10453 }, 10454 }, 10455 }, 10456 }, 10457 "automountServiceAccountToken": { 10458 SchemaProps: spec.SchemaProps{ 10459 Description: "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", 10460 Type: []string{"boolean"}, 10461 Format: "", 10462 }, 10463 }, 10464 }, 10465 }, 10466 }, 10467 Dependencies: []string{ 10468 "k8s.io/api/core/v1.LocalObjectReference", "k8s.io/api/core/v1.ObjectReference", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 10469 } 10470 } 10471 10472 func schema_k8sio_api_core_v1_ServiceAccountList(ref common.ReferenceCallback) common.OpenAPIDefinition { 10473 return common.OpenAPIDefinition{ 10474 Schema: spec.Schema{ 10475 SchemaProps: spec.SchemaProps{ 10476 Description: "ServiceAccountList is a list of ServiceAccount objects", 10477 Type: []string{"object"}, 10478 Properties: map[string]spec.Schema{ 10479 "kind": { 10480 SchemaProps: spec.SchemaProps{ 10481 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10482 Type: []string{"string"}, 10483 Format: "", 10484 }, 10485 }, 10486 "apiVersion": { 10487 SchemaProps: spec.SchemaProps{ 10488 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10489 Type: []string{"string"}, 10490 Format: "", 10491 }, 10492 }, 10493 "metadata": { 10494 SchemaProps: spec.SchemaProps{ 10495 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10496 Default: map[string]interface{}{}, 10497 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 10498 }, 10499 }, 10500 "items": { 10501 SchemaProps: spec.SchemaProps{ 10502 Description: "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", 10503 Type: []string{"array"}, 10504 Items: &spec.SchemaOrArray{ 10505 Schema: &spec.Schema{ 10506 SchemaProps: spec.SchemaProps{ 10507 Default: map[string]interface{}{}, 10508 Ref: ref("k8s.io/api/core/v1.ServiceAccount"), 10509 }, 10510 }, 10511 }, 10512 }, 10513 }, 10514 }, 10515 Required: []string{"items"}, 10516 }, 10517 }, 10518 Dependencies: []string{ 10519 "k8s.io/api/core/v1.ServiceAccount", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 10520 } 10521 } 10522 10523 func schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 10524 return common.OpenAPIDefinition{ 10525 Schema: spec.Schema{ 10526 SchemaProps: spec.SchemaProps{ 10527 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).", 10528 Type: []string{"object"}, 10529 Properties: map[string]spec.Schema{ 10530 "audience": { 10531 SchemaProps: spec.SchemaProps{ 10532 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.", 10533 Type: []string{"string"}, 10534 Format: "", 10535 }, 10536 }, 10537 "expirationSeconds": { 10538 SchemaProps: spec.SchemaProps{ 10539 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.", 10540 Type: []string{"integer"}, 10541 Format: "int64", 10542 }, 10543 }, 10544 "path": { 10545 SchemaProps: spec.SchemaProps{ 10546 Description: "path is the path relative to the mount point of the file to project the token into.", 10547 Default: "", 10548 Type: []string{"string"}, 10549 Format: "", 10550 }, 10551 }, 10552 }, 10553 Required: []string{"path"}, 10554 }, 10555 }, 10556 } 10557 } 10558 10559 func schema_k8sio_api_core_v1_ServiceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 10560 return common.OpenAPIDefinition{ 10561 Schema: spec.Schema{ 10562 SchemaProps: spec.SchemaProps{ 10563 Description: "ServiceList holds a list of services.", 10564 Type: []string{"object"}, 10565 Properties: map[string]spec.Schema{ 10566 "kind": { 10567 SchemaProps: spec.SchemaProps{ 10568 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10569 Type: []string{"string"}, 10570 Format: "", 10571 }, 10572 }, 10573 "apiVersion": { 10574 SchemaProps: spec.SchemaProps{ 10575 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10576 Type: []string{"string"}, 10577 Format: "", 10578 }, 10579 }, 10580 "metadata": { 10581 SchemaProps: spec.SchemaProps{ 10582 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10583 Default: map[string]interface{}{}, 10584 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 10585 }, 10586 }, 10587 "items": { 10588 SchemaProps: spec.SchemaProps{ 10589 Description: "List of services", 10590 Type: []string{"array"}, 10591 Items: &spec.SchemaOrArray{ 10592 Schema: &spec.Schema{ 10593 SchemaProps: spec.SchemaProps{ 10594 Default: map[string]interface{}{}, 10595 Ref: ref("k8s.io/api/core/v1.Service"), 10596 }, 10597 }, 10598 }, 10599 }, 10600 }, 10601 }, 10602 Required: []string{"items"}, 10603 }, 10604 }, 10605 Dependencies: []string{ 10606 "k8s.io/api/core/v1.Service", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 10607 } 10608 } 10609 10610 func schema_k8sio_api_core_v1_ServicePort(ref common.ReferenceCallback) common.OpenAPIDefinition { 10611 return common.OpenAPIDefinition{ 10612 Schema: spec.Schema{ 10613 SchemaProps: spec.SchemaProps{ 10614 Description: "ServicePort contains information on service's port.", 10615 Type: []string{"object"}, 10616 Properties: map[string]spec.Schema{ 10617 "name": { 10618 SchemaProps: spec.SchemaProps{ 10619 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.", 10620 Type: []string{"string"}, 10621 Format: "", 10622 }, 10623 }, 10624 "protocol": { 10625 SchemaProps: spec.SchemaProps{ 10626 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.", 10627 Default: "TCP", 10628 Type: []string{"string"}, 10629 Format: "", 10630 Enum: []interface{}{"SCTP", "TCP", "UDP"}}, 10631 }, 10632 "appProtocol": { 10633 SchemaProps: spec.SchemaProps{ 10634 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.", 10635 Type: []string{"string"}, 10636 Format: "", 10637 }, 10638 }, 10639 "port": { 10640 SchemaProps: spec.SchemaProps{ 10641 Description: "The port that will be exposed by this service.", 10642 Default: 0, 10643 Type: []string{"integer"}, 10644 Format: "int32", 10645 }, 10646 }, 10647 "targetPort": { 10648 SchemaProps: spec.SchemaProps{ 10649 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", 10650 Default: map[string]interface{}{}, 10651 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 10652 }, 10653 }, 10654 "nodePort": { 10655 SchemaProps: spec.SchemaProps{ 10656 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", 10657 Type: []string{"integer"}, 10658 Format: "int32", 10659 }, 10660 }, 10661 }, 10662 Required: []string{"port"}, 10663 }, 10664 }, 10665 Dependencies: []string{ 10666 "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 10667 } 10668 } 10669 10670 func schema_k8sio_api_core_v1_ServiceProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 10671 return common.OpenAPIDefinition{ 10672 Schema: spec.Schema{ 10673 SchemaProps: spec.SchemaProps{ 10674 Description: "ServiceProxyOptions is the query options to a Service's proxy call.", 10675 Type: []string{"object"}, 10676 Properties: map[string]spec.Schema{ 10677 "kind": { 10678 SchemaProps: spec.SchemaProps{ 10679 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 10680 Type: []string{"string"}, 10681 Format: "", 10682 }, 10683 }, 10684 "apiVersion": { 10685 SchemaProps: spec.SchemaProps{ 10686 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 10687 Type: []string{"string"}, 10688 Format: "", 10689 }, 10690 }, 10691 "path": { 10692 SchemaProps: spec.SchemaProps{ 10693 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.", 10694 Type: []string{"string"}, 10695 Format: "", 10696 }, 10697 }, 10698 }, 10699 }, 10700 }, 10701 } 10702 } 10703 10704 func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 10705 return common.OpenAPIDefinition{ 10706 Schema: spec.Schema{ 10707 SchemaProps: spec.SchemaProps{ 10708 Description: "ServiceSpec describes the attributes that a user creates on a service.", 10709 Type: []string{"object"}, 10710 Properties: map[string]spec.Schema{ 10711 "ports": { 10712 VendorExtensible: spec.VendorExtensible{ 10713 Extensions: spec.Extensions{ 10714 "x-kubernetes-list-map-keys": []interface{}{ 10715 "port", 10716 "protocol", 10717 }, 10718 "x-kubernetes-list-type": "map", 10719 "x-kubernetes-patch-merge-key": "port", 10720 "x-kubernetes-patch-strategy": "merge", 10721 }, 10722 }, 10723 SchemaProps: spec.SchemaProps{ 10724 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", 10725 Type: []string{"array"}, 10726 Items: &spec.SchemaOrArray{ 10727 Schema: &spec.Schema{ 10728 SchemaProps: spec.SchemaProps{ 10729 Default: map[string]interface{}{}, 10730 Ref: ref("k8s.io/api/core/v1.ServicePort"), 10731 }, 10732 }, 10733 }, 10734 }, 10735 }, 10736 "selector": { 10737 VendorExtensible: spec.VendorExtensible{ 10738 Extensions: spec.Extensions{ 10739 "x-kubernetes-map-type": "atomic", 10740 }, 10741 }, 10742 SchemaProps: spec.SchemaProps{ 10743 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/", 10744 Type: []string{"object"}, 10745 AdditionalProperties: &spec.SchemaOrBool{ 10746 Allows: true, 10747 Schema: &spec.Schema{ 10748 SchemaProps: spec.SchemaProps{ 10749 Default: "", 10750 Type: []string{"string"}, 10751 Format: "", 10752 }, 10753 }, 10754 }, 10755 }, 10756 }, 10757 "clusterIP": { 10758 SchemaProps: spec.SchemaProps{ 10759 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", 10760 Type: []string{"string"}, 10761 Format: "", 10762 }, 10763 }, 10764 "clusterIPs": { 10765 VendorExtensible: spec.VendorExtensible{ 10766 Extensions: spec.Extensions{ 10767 "x-kubernetes-list-type": "atomic", 10768 }, 10769 }, 10770 SchemaProps: spec.SchemaProps{ 10771 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", 10772 Type: []string{"array"}, 10773 Items: &spec.SchemaOrArray{ 10774 Schema: &spec.Schema{ 10775 SchemaProps: spec.SchemaProps{ 10776 Default: "", 10777 Type: []string{"string"}, 10778 Format: "", 10779 }, 10780 }, 10781 }, 10782 }, 10783 }, 10784 "type": { 10785 SchemaProps: spec.SchemaProps{ 10786 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.", 10787 Type: []string{"string"}, 10788 Format: "", 10789 Enum: []interface{}{"ClusterIP", "ExternalName", "LoadBalancer", "NodePort"}}, 10790 }, 10791 "externalIPs": { 10792 SchemaProps: spec.SchemaProps{ 10793 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.", 10794 Type: []string{"array"}, 10795 Items: &spec.SchemaOrArray{ 10796 Schema: &spec.Schema{ 10797 SchemaProps: spec.SchemaProps{ 10798 Default: "", 10799 Type: []string{"string"}, 10800 Format: "", 10801 }, 10802 }, 10803 }, 10804 }, 10805 }, 10806 "sessionAffinity": { 10807 SchemaProps: spec.SchemaProps{ 10808 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.", 10809 Type: []string{"string"}, 10810 Format: "", 10811 Enum: []interface{}{"ClientIP", "None"}}, 10812 }, 10813 "loadBalancerIP": { 10814 SchemaProps: spec.SchemaProps{ 10815 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.", 10816 Type: []string{"string"}, 10817 Format: "", 10818 }, 10819 }, 10820 "loadBalancerSourceRanges": { 10821 SchemaProps: spec.SchemaProps{ 10822 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/", 10823 Type: []string{"array"}, 10824 Items: &spec.SchemaOrArray{ 10825 Schema: &spec.Schema{ 10826 SchemaProps: spec.SchemaProps{ 10827 Default: "", 10828 Type: []string{"string"}, 10829 Format: "", 10830 }, 10831 }, 10832 }, 10833 }, 10834 }, 10835 "externalName": { 10836 SchemaProps: spec.SchemaProps{ 10837 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\".", 10838 Type: []string{"string"}, 10839 Format: "", 10840 }, 10841 }, 10842 "externalTrafficPolicy": { 10843 SchemaProps: spec.SchemaProps{ 10844 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).", 10845 Type: []string{"string"}, 10846 Format: "", 10847 Enum: []interface{}{"Cluster", "Local"}}, 10848 }, 10849 "healthCheckNodePort": { 10850 SchemaProps: spec.SchemaProps{ 10851 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.", 10852 Type: []string{"integer"}, 10853 Format: "int32", 10854 }, 10855 }, 10856 "publishNotReadyAddresses": { 10857 SchemaProps: spec.SchemaProps{ 10858 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.", 10859 Type: []string{"boolean"}, 10860 Format: "", 10861 }, 10862 }, 10863 "sessionAffinityConfig": { 10864 SchemaProps: spec.SchemaProps{ 10865 Description: "sessionAffinityConfig contains the configurations of session affinity.", 10866 Ref: ref("k8s.io/api/core/v1.SessionAffinityConfig"), 10867 }, 10868 }, 10869 "ipFamilies": { 10870 VendorExtensible: spec.VendorExtensible{ 10871 Extensions: spec.Extensions{ 10872 "x-kubernetes-list-type": "atomic", 10873 }, 10874 }, 10875 SchemaProps: spec.SchemaProps{ 10876 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.", 10877 Type: []string{"array"}, 10878 Items: &spec.SchemaOrArray{ 10879 Schema: &spec.Schema{ 10880 SchemaProps: spec.SchemaProps{ 10881 Default: "", 10882 Type: []string{"string"}, 10883 Format: "", 10884 }, 10885 }, 10886 }, 10887 }, 10888 }, 10889 "ipFamilyPolicy": { 10890 SchemaProps: spec.SchemaProps{ 10891 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.", 10892 Type: []string{"string"}, 10893 Format: "", 10894 }, 10895 }, 10896 "allocateLoadBalancerNodePorts": { 10897 SchemaProps: spec.SchemaProps{ 10898 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.", 10899 Type: []string{"boolean"}, 10900 Format: "", 10901 }, 10902 }, 10903 "loadBalancerClass": { 10904 SchemaProps: spec.SchemaProps{ 10905 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.", 10906 Type: []string{"string"}, 10907 Format: "", 10908 }, 10909 }, 10910 "internalTrafficPolicy": { 10911 SchemaProps: spec.SchemaProps{ 10912 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).", 10913 Type: []string{"string"}, 10914 Format: "", 10915 }, 10916 }, 10917 }, 10918 }, 10919 }, 10920 Dependencies: []string{ 10921 "k8s.io/api/core/v1.ServicePort", "k8s.io/api/core/v1.SessionAffinityConfig"}, 10922 } 10923 } 10924 10925 func schema_k8sio_api_core_v1_ServiceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 10926 return common.OpenAPIDefinition{ 10927 Schema: spec.Schema{ 10928 SchemaProps: spec.SchemaProps{ 10929 Description: "ServiceStatus represents the current status of a service.", 10930 Type: []string{"object"}, 10931 Properties: map[string]spec.Schema{ 10932 "loadBalancer": { 10933 SchemaProps: spec.SchemaProps{ 10934 Description: "LoadBalancer contains the current status of the load-balancer, if one is present.", 10935 Default: map[string]interface{}{}, 10936 Ref: ref("k8s.io/api/core/v1.LoadBalancerStatus"), 10937 }, 10938 }, 10939 "conditions": { 10940 VendorExtensible: spec.VendorExtensible{ 10941 Extensions: spec.Extensions{ 10942 "x-kubernetes-list-map-keys": []interface{}{ 10943 "type", 10944 }, 10945 "x-kubernetes-list-type": "map", 10946 "x-kubernetes-patch-merge-key": "type", 10947 "x-kubernetes-patch-strategy": "merge", 10948 }, 10949 }, 10950 SchemaProps: spec.SchemaProps{ 10951 Description: "Current service state", 10952 Type: []string{"array"}, 10953 Items: &spec.SchemaOrArray{ 10954 Schema: &spec.Schema{ 10955 SchemaProps: spec.SchemaProps{ 10956 Default: map[string]interface{}{}, 10957 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Condition"), 10958 }, 10959 }, 10960 }, 10961 }, 10962 }, 10963 }, 10964 }, 10965 }, 10966 Dependencies: []string{ 10967 "k8s.io/api/core/v1.LoadBalancerStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.Condition"}, 10968 } 10969 } 10970 10971 func schema_k8sio_api_core_v1_SessionAffinityConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 10972 return common.OpenAPIDefinition{ 10973 Schema: spec.Schema{ 10974 SchemaProps: spec.SchemaProps{ 10975 Description: "SessionAffinityConfig represents the configurations of session affinity.", 10976 Type: []string{"object"}, 10977 Properties: map[string]spec.Schema{ 10978 "clientIP": { 10979 SchemaProps: spec.SchemaProps{ 10980 Description: "clientIP contains the configurations of Client IP based session affinity.", 10981 Ref: ref("k8s.io/api/core/v1.ClientIPConfig"), 10982 }, 10983 }, 10984 }, 10985 }, 10986 }, 10987 Dependencies: []string{ 10988 "k8s.io/api/core/v1.ClientIPConfig"}, 10989 } 10990 } 10991 10992 func schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 10993 return common.OpenAPIDefinition{ 10994 Schema: spec.Schema{ 10995 SchemaProps: spec.SchemaProps{ 10996 Description: "Represents a StorageOS persistent volume resource.", 10997 Type: []string{"object"}, 10998 Properties: map[string]spec.Schema{ 10999 "volumeName": { 11000 SchemaProps: spec.SchemaProps{ 11001 Description: "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", 11002 Type: []string{"string"}, 11003 Format: "", 11004 }, 11005 }, 11006 "volumeNamespace": { 11007 SchemaProps: spec.SchemaProps{ 11008 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.", 11009 Type: []string{"string"}, 11010 Format: "", 11011 }, 11012 }, 11013 "fsType": { 11014 SchemaProps: spec.SchemaProps{ 11015 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.", 11016 Type: []string{"string"}, 11017 Format: "", 11018 }, 11019 }, 11020 "readOnly": { 11021 SchemaProps: spec.SchemaProps{ 11022 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 11023 Type: []string{"boolean"}, 11024 Format: "", 11025 }, 11026 }, 11027 "secretRef": { 11028 SchemaProps: spec.SchemaProps{ 11029 Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", 11030 Ref: ref("k8s.io/api/core/v1.ObjectReference"), 11031 }, 11032 }, 11033 }, 11034 }, 11035 }, 11036 Dependencies: []string{ 11037 "k8s.io/api/core/v1.ObjectReference"}, 11038 } 11039 } 11040 11041 func schema_k8sio_api_core_v1_StorageOSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 11042 return common.OpenAPIDefinition{ 11043 Schema: spec.Schema{ 11044 SchemaProps: spec.SchemaProps{ 11045 Description: "Represents a StorageOS persistent volume resource.", 11046 Type: []string{"object"}, 11047 Properties: map[string]spec.Schema{ 11048 "volumeName": { 11049 SchemaProps: spec.SchemaProps{ 11050 Description: "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", 11051 Type: []string{"string"}, 11052 Format: "", 11053 }, 11054 }, 11055 "volumeNamespace": { 11056 SchemaProps: spec.SchemaProps{ 11057 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.", 11058 Type: []string{"string"}, 11059 Format: "", 11060 }, 11061 }, 11062 "fsType": { 11063 SchemaProps: spec.SchemaProps{ 11064 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.", 11065 Type: []string{"string"}, 11066 Format: "", 11067 }, 11068 }, 11069 "readOnly": { 11070 SchemaProps: spec.SchemaProps{ 11071 Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", 11072 Type: []string{"boolean"}, 11073 Format: "", 11074 }, 11075 }, 11076 "secretRef": { 11077 SchemaProps: spec.SchemaProps{ 11078 Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", 11079 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 11080 }, 11081 }, 11082 }, 11083 }, 11084 }, 11085 Dependencies: []string{ 11086 "k8s.io/api/core/v1.LocalObjectReference"}, 11087 } 11088 } 11089 11090 func schema_k8sio_api_core_v1_Sysctl(ref common.ReferenceCallback) common.OpenAPIDefinition { 11091 return common.OpenAPIDefinition{ 11092 Schema: spec.Schema{ 11093 SchemaProps: spec.SchemaProps{ 11094 Description: "Sysctl defines a kernel parameter to be set", 11095 Type: []string{"object"}, 11096 Properties: map[string]spec.Schema{ 11097 "name": { 11098 SchemaProps: spec.SchemaProps{ 11099 Description: "Name of a property to set", 11100 Default: "", 11101 Type: []string{"string"}, 11102 Format: "", 11103 }, 11104 }, 11105 "value": { 11106 SchemaProps: spec.SchemaProps{ 11107 Description: "Value of a property to set", 11108 Default: "", 11109 Type: []string{"string"}, 11110 Format: "", 11111 }, 11112 }, 11113 }, 11114 Required: []string{"name", "value"}, 11115 }, 11116 }, 11117 } 11118 } 11119 11120 func schema_k8sio_api_core_v1_TCPSocketAction(ref common.ReferenceCallback) common.OpenAPIDefinition { 11121 return common.OpenAPIDefinition{ 11122 Schema: spec.Schema{ 11123 SchemaProps: spec.SchemaProps{ 11124 Description: "TCPSocketAction describes an action based on opening a socket", 11125 Type: []string{"object"}, 11126 Properties: map[string]spec.Schema{ 11127 "port": { 11128 SchemaProps: spec.SchemaProps{ 11129 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.", 11130 Default: map[string]interface{}{}, 11131 Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), 11132 }, 11133 }, 11134 "host": { 11135 SchemaProps: spec.SchemaProps{ 11136 Description: "Optional: Host name to connect to, defaults to the pod IP.", 11137 Type: []string{"string"}, 11138 Format: "", 11139 }, 11140 }, 11141 }, 11142 Required: []string{"port"}, 11143 }, 11144 }, 11145 Dependencies: []string{ 11146 "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, 11147 } 11148 } 11149 11150 func schema_k8sio_api_core_v1_Taint(ref common.ReferenceCallback) common.OpenAPIDefinition { 11151 return common.OpenAPIDefinition{ 11152 Schema: spec.Schema{ 11153 SchemaProps: spec.SchemaProps{ 11154 Description: "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", 11155 Type: []string{"object"}, 11156 Properties: map[string]spec.Schema{ 11157 "key": { 11158 SchemaProps: spec.SchemaProps{ 11159 Description: "Required. The taint key to be applied to a node.", 11160 Default: "", 11161 Type: []string{"string"}, 11162 Format: "", 11163 }, 11164 }, 11165 "value": { 11166 SchemaProps: spec.SchemaProps{ 11167 Description: "The taint value corresponding to the taint key.", 11168 Type: []string{"string"}, 11169 Format: "", 11170 }, 11171 }, 11172 "effect": { 11173 SchemaProps: spec.SchemaProps{ 11174 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.", 11175 Default: "", 11176 Type: []string{"string"}, 11177 Format: "", 11178 Enum: []interface{}{"NoExecute", "NoSchedule", "PreferNoSchedule"}}, 11179 }, 11180 "timeAdded": { 11181 SchemaProps: spec.SchemaProps{ 11182 Description: "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", 11183 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 11184 }, 11185 }, 11186 }, 11187 Required: []string{"key", "effect"}, 11188 }, 11189 }, 11190 Dependencies: []string{ 11191 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 11192 } 11193 } 11194 11195 func schema_k8sio_api_core_v1_Toleration(ref common.ReferenceCallback) common.OpenAPIDefinition { 11196 return common.OpenAPIDefinition{ 11197 Schema: spec.Schema{ 11198 SchemaProps: spec.SchemaProps{ 11199 Description: "The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.", 11200 Type: []string{"object"}, 11201 Properties: map[string]spec.Schema{ 11202 "key": { 11203 SchemaProps: spec.SchemaProps{ 11204 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.", 11205 Type: []string{"string"}, 11206 Format: "", 11207 }, 11208 }, 11209 "operator": { 11210 SchemaProps: spec.SchemaProps{ 11211 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\"`", 11212 Type: []string{"string"}, 11213 Format: "", 11214 Enum: []interface{}{"Equal", "Exists"}}, 11215 }, 11216 "value": { 11217 SchemaProps: spec.SchemaProps{ 11218 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.", 11219 Type: []string{"string"}, 11220 Format: "", 11221 }, 11222 }, 11223 "effect": { 11224 SchemaProps: spec.SchemaProps{ 11225 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.", 11226 Type: []string{"string"}, 11227 Format: "", 11228 Enum: []interface{}{"NoExecute", "NoSchedule", "PreferNoSchedule"}}, 11229 }, 11230 "tolerationSeconds": { 11231 SchemaProps: spec.SchemaProps{ 11232 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.", 11233 Type: []string{"integer"}, 11234 Format: "int64", 11235 }, 11236 }, 11237 }, 11238 }, 11239 }, 11240 } 11241 } 11242 11243 func schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 11244 return common.OpenAPIDefinition{ 11245 Schema: spec.Schema{ 11246 SchemaProps: spec.SchemaProps{ 11247 Description: "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.", 11248 Type: []string{"object"}, 11249 Properties: map[string]spec.Schema{ 11250 "key": { 11251 SchemaProps: spec.SchemaProps{ 11252 Description: "The label key that the selector applies to.", 11253 Default: "", 11254 Type: []string{"string"}, 11255 Format: "", 11256 }, 11257 }, 11258 "values": { 11259 SchemaProps: spec.SchemaProps{ 11260 Description: "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", 11261 Type: []string{"array"}, 11262 Items: &spec.SchemaOrArray{ 11263 Schema: &spec.Schema{ 11264 SchemaProps: spec.SchemaProps{ 11265 Default: "", 11266 Type: []string{"string"}, 11267 Format: "", 11268 }, 11269 }, 11270 }, 11271 }, 11272 }, 11273 }, 11274 Required: []string{"key", "values"}, 11275 }, 11276 }, 11277 } 11278 } 11279 11280 func schema_k8sio_api_core_v1_TopologySelectorTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 11281 return common.OpenAPIDefinition{ 11282 Schema: spec.Schema{ 11283 SchemaProps: spec.SchemaProps{ 11284 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.", 11285 Type: []string{"object"}, 11286 Properties: map[string]spec.Schema{ 11287 "matchLabelExpressions": { 11288 SchemaProps: spec.SchemaProps{ 11289 Description: "A list of topology selector requirements by labels.", 11290 Type: []string{"array"}, 11291 Items: &spec.SchemaOrArray{ 11292 Schema: &spec.Schema{ 11293 SchemaProps: spec.SchemaProps{ 11294 Default: map[string]interface{}{}, 11295 Ref: ref("k8s.io/api/core/v1.TopologySelectorLabelRequirement"), 11296 }, 11297 }, 11298 }, 11299 }, 11300 }, 11301 }, 11302 }, 11303 VendorExtensible: spec.VendorExtensible{ 11304 Extensions: spec.Extensions{ 11305 "x-kubernetes-map-type": "atomic", 11306 }, 11307 }, 11308 }, 11309 Dependencies: []string{ 11310 "k8s.io/api/core/v1.TopologySelectorLabelRequirement"}, 11311 } 11312 } 11313 11314 func schema_k8sio_api_core_v1_TopologySpreadConstraint(ref common.ReferenceCallback) common.OpenAPIDefinition { 11315 return common.OpenAPIDefinition{ 11316 Schema: spec.Schema{ 11317 SchemaProps: spec.SchemaProps{ 11318 Description: "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", 11319 Type: []string{"object"}, 11320 Properties: map[string]spec.Schema{ 11321 "maxSkew": { 11322 SchemaProps: spec.SchemaProps{ 11323 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.", 11324 Default: 0, 11325 Type: []string{"integer"}, 11326 Format: "int32", 11327 }, 11328 }, 11329 "topologyKey": { 11330 SchemaProps: spec.SchemaProps{ 11331 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.", 11332 Default: "", 11333 Type: []string{"string"}, 11334 Format: "", 11335 }, 11336 }, 11337 "whenUnsatisfiable": { 11338 SchemaProps: spec.SchemaProps{ 11339 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.", 11340 Default: "", 11341 Type: []string{"string"}, 11342 Format: "", 11343 Enum: []interface{}{"DoNotSchedule", "ScheduleAnyway"}}, 11344 }, 11345 "labelSelector": { 11346 SchemaProps: spec.SchemaProps{ 11347 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.", 11348 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 11349 }, 11350 }, 11351 "minDomains": { 11352 SchemaProps: spec.SchemaProps{ 11353 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).", 11354 Type: []string{"integer"}, 11355 Format: "int32", 11356 }, 11357 }, 11358 "nodeAffinityPolicy": { 11359 SchemaProps: spec.SchemaProps{ 11360 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.", 11361 Type: []string{"string"}, 11362 Format: "", 11363 }, 11364 }, 11365 "nodeTaintsPolicy": { 11366 SchemaProps: spec.SchemaProps{ 11367 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.", 11368 Type: []string{"string"}, 11369 Format: "", 11370 }, 11371 }, 11372 "matchLabelKeys": { 11373 VendorExtensible: spec.VendorExtensible{ 11374 Extensions: spec.Extensions{ 11375 "x-kubernetes-list-type": "atomic", 11376 }, 11377 }, 11378 SchemaProps: spec.SchemaProps{ 11379 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.", 11380 Type: []string{"array"}, 11381 Items: &spec.SchemaOrArray{ 11382 Schema: &spec.Schema{ 11383 SchemaProps: spec.SchemaProps{ 11384 Default: "", 11385 Type: []string{"string"}, 11386 Format: "", 11387 }, 11388 }, 11389 }, 11390 }, 11391 }, 11392 }, 11393 Required: []string{"maxSkew", "topologyKey", "whenUnsatisfiable"}, 11394 }, 11395 }, 11396 Dependencies: []string{ 11397 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 11398 } 11399 } 11400 11401 func schema_k8sio_api_core_v1_TypedLocalObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 11402 return common.OpenAPIDefinition{ 11403 Schema: spec.Schema{ 11404 SchemaProps: spec.SchemaProps{ 11405 Description: "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", 11406 Type: []string{"object"}, 11407 Properties: map[string]spec.Schema{ 11408 "apiGroup": { 11409 SchemaProps: spec.SchemaProps{ 11410 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.", 11411 Type: []string{"string"}, 11412 Format: "", 11413 }, 11414 }, 11415 "kind": { 11416 SchemaProps: spec.SchemaProps{ 11417 Description: "Kind is the type of resource being referenced", 11418 Default: "", 11419 Type: []string{"string"}, 11420 Format: "", 11421 }, 11422 }, 11423 "name": { 11424 SchemaProps: spec.SchemaProps{ 11425 Description: "Name is the name of resource being referenced", 11426 Default: "", 11427 Type: []string{"string"}, 11428 Format: "", 11429 }, 11430 }, 11431 }, 11432 Required: []string{"kind", "name"}, 11433 }, 11434 VendorExtensible: spec.VendorExtensible{ 11435 Extensions: spec.Extensions{ 11436 "x-kubernetes-map-type": "atomic", 11437 }, 11438 }, 11439 }, 11440 } 11441 } 11442 11443 func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAPIDefinition { 11444 return common.OpenAPIDefinition{ 11445 Schema: spec.Schema{ 11446 SchemaProps: spec.SchemaProps{ 11447 Description: "Volume represents a named volume in a pod that may be accessed by any container in the pod.", 11448 Type: []string{"object"}, 11449 Properties: map[string]spec.Schema{ 11450 "name": { 11451 SchemaProps: spec.SchemaProps{ 11452 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", 11453 Default: "", 11454 Type: []string{"string"}, 11455 Format: "", 11456 }, 11457 }, 11458 "hostPath": { 11459 SchemaProps: spec.SchemaProps{ 11460 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", 11461 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 11462 }, 11463 }, 11464 "emptyDir": { 11465 SchemaProps: spec.SchemaProps{ 11466 Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", 11467 Ref: ref("k8s.io/api/core/v1.EmptyDirVolumeSource"), 11468 }, 11469 }, 11470 "gcePersistentDisk": { 11471 SchemaProps: spec.SchemaProps{ 11472 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", 11473 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 11474 }, 11475 }, 11476 "awsElasticBlockStore": { 11477 SchemaProps: spec.SchemaProps{ 11478 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", 11479 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 11480 }, 11481 }, 11482 "gitRepo": { 11483 SchemaProps: spec.SchemaProps{ 11484 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.", 11485 Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), 11486 }, 11487 }, 11488 "secret": { 11489 SchemaProps: spec.SchemaProps{ 11490 Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", 11491 Ref: ref("k8s.io/api/core/v1.SecretVolumeSource"), 11492 }, 11493 }, 11494 "nfs": { 11495 SchemaProps: spec.SchemaProps{ 11496 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", 11497 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 11498 }, 11499 }, 11500 "iscsi": { 11501 SchemaProps: spec.SchemaProps{ 11502 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", 11503 Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), 11504 }, 11505 }, 11506 "glusterfs": { 11507 SchemaProps: spec.SchemaProps{ 11508 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", 11509 Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), 11510 }, 11511 }, 11512 "persistentVolumeClaim": { 11513 SchemaProps: spec.SchemaProps{ 11514 Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", 11515 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource"), 11516 }, 11517 }, 11518 "rbd": { 11519 SchemaProps: spec.SchemaProps{ 11520 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", 11521 Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), 11522 }, 11523 }, 11524 "flexVolume": { 11525 SchemaProps: spec.SchemaProps{ 11526 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 11527 Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), 11528 }, 11529 }, 11530 "cinder": { 11531 SchemaProps: spec.SchemaProps{ 11532 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 11533 Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), 11534 }, 11535 }, 11536 "cephfs": { 11537 SchemaProps: spec.SchemaProps{ 11538 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 11539 Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), 11540 }, 11541 }, 11542 "flocker": { 11543 SchemaProps: spec.SchemaProps{ 11544 Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", 11545 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 11546 }, 11547 }, 11548 "downwardAPI": { 11549 SchemaProps: spec.SchemaProps{ 11550 Description: "downwardAPI represents downward API about the pod that should populate this volume", 11551 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeSource"), 11552 }, 11553 }, 11554 "fc": { 11555 SchemaProps: spec.SchemaProps{ 11556 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 11557 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 11558 }, 11559 }, 11560 "azureFile": { 11561 SchemaProps: spec.SchemaProps{ 11562 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 11563 Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), 11564 }, 11565 }, 11566 "configMap": { 11567 SchemaProps: spec.SchemaProps{ 11568 Description: "configMap represents a configMap that should populate this volume", 11569 Ref: ref("k8s.io/api/core/v1.ConfigMapVolumeSource"), 11570 }, 11571 }, 11572 "vsphereVolume": { 11573 SchemaProps: spec.SchemaProps{ 11574 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 11575 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 11576 }, 11577 }, 11578 "quobyte": { 11579 SchemaProps: spec.SchemaProps{ 11580 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 11581 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 11582 }, 11583 }, 11584 "azureDisk": { 11585 SchemaProps: spec.SchemaProps{ 11586 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 11587 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 11588 }, 11589 }, 11590 "photonPersistentDisk": { 11591 SchemaProps: spec.SchemaProps{ 11592 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 11593 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 11594 }, 11595 }, 11596 "projected": { 11597 SchemaProps: spec.SchemaProps{ 11598 Description: "projected items for all in one resources secrets, configmaps, and downward API", 11599 Ref: ref("k8s.io/api/core/v1.ProjectedVolumeSource"), 11600 }, 11601 }, 11602 "portworxVolume": { 11603 SchemaProps: spec.SchemaProps{ 11604 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 11605 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 11606 }, 11607 }, 11608 "scaleIO": { 11609 SchemaProps: spec.SchemaProps{ 11610 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 11611 Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), 11612 }, 11613 }, 11614 "storageos": { 11615 SchemaProps: spec.SchemaProps{ 11616 Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", 11617 Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), 11618 }, 11619 }, 11620 "csi": { 11621 SchemaProps: spec.SchemaProps{ 11622 Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", 11623 Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), 11624 }, 11625 }, 11626 "ephemeral": { 11627 SchemaProps: spec.SchemaProps{ 11628 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.", 11629 Ref: ref("k8s.io/api/core/v1.EphemeralVolumeSource"), 11630 }, 11631 }, 11632 }, 11633 Required: []string{"name"}, 11634 }, 11635 }, 11636 Dependencies: []string{ 11637 "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"}, 11638 } 11639 } 11640 11641 func schema_k8sio_api_core_v1_VolumeDevice(ref common.ReferenceCallback) common.OpenAPIDefinition { 11642 return common.OpenAPIDefinition{ 11643 Schema: spec.Schema{ 11644 SchemaProps: spec.SchemaProps{ 11645 Description: "volumeDevice describes a mapping of a raw block device within a container.", 11646 Type: []string{"object"}, 11647 Properties: map[string]spec.Schema{ 11648 "name": { 11649 SchemaProps: spec.SchemaProps{ 11650 Description: "name must match the name of a persistentVolumeClaim in the pod", 11651 Default: "", 11652 Type: []string{"string"}, 11653 Format: "", 11654 }, 11655 }, 11656 "devicePath": { 11657 SchemaProps: spec.SchemaProps{ 11658 Description: "devicePath is the path inside of the container that the device will be mapped to.", 11659 Default: "", 11660 Type: []string{"string"}, 11661 Format: "", 11662 }, 11663 }, 11664 }, 11665 Required: []string{"name", "devicePath"}, 11666 }, 11667 }, 11668 } 11669 } 11670 11671 func schema_k8sio_api_core_v1_VolumeMount(ref common.ReferenceCallback) common.OpenAPIDefinition { 11672 return common.OpenAPIDefinition{ 11673 Schema: spec.Schema{ 11674 SchemaProps: spec.SchemaProps{ 11675 Description: "VolumeMount describes a mounting of a Volume within a container.", 11676 Type: []string{"object"}, 11677 Properties: map[string]spec.Schema{ 11678 "name": { 11679 SchemaProps: spec.SchemaProps{ 11680 Description: "This must match the Name of a Volume.", 11681 Default: "", 11682 Type: []string{"string"}, 11683 Format: "", 11684 }, 11685 }, 11686 "readOnly": { 11687 SchemaProps: spec.SchemaProps{ 11688 Description: "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", 11689 Type: []string{"boolean"}, 11690 Format: "", 11691 }, 11692 }, 11693 "mountPath": { 11694 SchemaProps: spec.SchemaProps{ 11695 Description: "Path within the container at which the volume should be mounted. Must not contain ':'.", 11696 Default: "", 11697 Type: []string{"string"}, 11698 Format: "", 11699 }, 11700 }, 11701 "subPath": { 11702 SchemaProps: spec.SchemaProps{ 11703 Description: "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", 11704 Type: []string{"string"}, 11705 Format: "", 11706 }, 11707 }, 11708 "mountPropagation": { 11709 SchemaProps: spec.SchemaProps{ 11710 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.", 11711 Type: []string{"string"}, 11712 Format: "", 11713 }, 11714 }, 11715 "subPathExpr": { 11716 SchemaProps: spec.SchemaProps{ 11717 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.", 11718 Type: []string{"string"}, 11719 Format: "", 11720 }, 11721 }, 11722 }, 11723 Required: []string{"name", "mountPath"}, 11724 }, 11725 }, 11726 } 11727 } 11728 11729 func schema_k8sio_api_core_v1_VolumeNodeAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { 11730 return common.OpenAPIDefinition{ 11731 Schema: spec.Schema{ 11732 SchemaProps: spec.SchemaProps{ 11733 Description: "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", 11734 Type: []string{"object"}, 11735 Properties: map[string]spec.Schema{ 11736 "required": { 11737 SchemaProps: spec.SchemaProps{ 11738 Description: "required specifies hard node constraints that must be met.", 11739 Ref: ref("k8s.io/api/core/v1.NodeSelector"), 11740 }, 11741 }, 11742 }, 11743 }, 11744 }, 11745 Dependencies: []string{ 11746 "k8s.io/api/core/v1.NodeSelector"}, 11747 } 11748 } 11749 11750 func schema_k8sio_api_core_v1_VolumeProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { 11751 return common.OpenAPIDefinition{ 11752 Schema: spec.Schema{ 11753 SchemaProps: spec.SchemaProps{ 11754 Description: "Projection that may be projected along with other supported volume types", 11755 Type: []string{"object"}, 11756 Properties: map[string]spec.Schema{ 11757 "secret": { 11758 SchemaProps: spec.SchemaProps{ 11759 Description: "secret information about the secret data to project", 11760 Ref: ref("k8s.io/api/core/v1.SecretProjection"), 11761 }, 11762 }, 11763 "downwardAPI": { 11764 SchemaProps: spec.SchemaProps{ 11765 Description: "downwardAPI information about the downwardAPI data to project", 11766 Ref: ref("k8s.io/api/core/v1.DownwardAPIProjection"), 11767 }, 11768 }, 11769 "configMap": { 11770 SchemaProps: spec.SchemaProps{ 11771 Description: "configMap information about the configMap data to project", 11772 Ref: ref("k8s.io/api/core/v1.ConfigMapProjection"), 11773 }, 11774 }, 11775 "serviceAccountToken": { 11776 SchemaProps: spec.SchemaProps{ 11777 Description: "serviceAccountToken is information about the serviceAccountToken data to project", 11778 Ref: ref("k8s.io/api/core/v1.ServiceAccountTokenProjection"), 11779 }, 11780 }, 11781 }, 11782 }, 11783 }, 11784 Dependencies: []string{ 11785 "k8s.io/api/core/v1.ConfigMapProjection", "k8s.io/api/core/v1.DownwardAPIProjection", "k8s.io/api/core/v1.SecretProjection", "k8s.io/api/core/v1.ServiceAccountTokenProjection"}, 11786 } 11787 } 11788 11789 func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 11790 return common.OpenAPIDefinition{ 11791 Schema: spec.Schema{ 11792 SchemaProps: spec.SchemaProps{ 11793 Description: "Represents the source of a volume to mount. Only one of its members may be specified.", 11794 Type: []string{"object"}, 11795 Properties: map[string]spec.Schema{ 11796 "hostPath": { 11797 SchemaProps: spec.SchemaProps{ 11798 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", 11799 Ref: ref("k8s.io/api/core/v1.HostPathVolumeSource"), 11800 }, 11801 }, 11802 "emptyDir": { 11803 SchemaProps: spec.SchemaProps{ 11804 Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", 11805 Ref: ref("k8s.io/api/core/v1.EmptyDirVolumeSource"), 11806 }, 11807 }, 11808 "gcePersistentDisk": { 11809 SchemaProps: spec.SchemaProps{ 11810 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", 11811 Ref: ref("k8s.io/api/core/v1.GCEPersistentDiskVolumeSource"), 11812 }, 11813 }, 11814 "awsElasticBlockStore": { 11815 SchemaProps: spec.SchemaProps{ 11816 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", 11817 Ref: ref("k8s.io/api/core/v1.AWSElasticBlockStoreVolumeSource"), 11818 }, 11819 }, 11820 "gitRepo": { 11821 SchemaProps: spec.SchemaProps{ 11822 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.", 11823 Ref: ref("k8s.io/api/core/v1.GitRepoVolumeSource"), 11824 }, 11825 }, 11826 "secret": { 11827 SchemaProps: spec.SchemaProps{ 11828 Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", 11829 Ref: ref("k8s.io/api/core/v1.SecretVolumeSource"), 11830 }, 11831 }, 11832 "nfs": { 11833 SchemaProps: spec.SchemaProps{ 11834 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", 11835 Ref: ref("k8s.io/api/core/v1.NFSVolumeSource"), 11836 }, 11837 }, 11838 "iscsi": { 11839 SchemaProps: spec.SchemaProps{ 11840 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", 11841 Ref: ref("k8s.io/api/core/v1.ISCSIVolumeSource"), 11842 }, 11843 }, 11844 "glusterfs": { 11845 SchemaProps: spec.SchemaProps{ 11846 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", 11847 Ref: ref("k8s.io/api/core/v1.GlusterfsVolumeSource"), 11848 }, 11849 }, 11850 "persistentVolumeClaim": { 11851 SchemaProps: spec.SchemaProps{ 11852 Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", 11853 Ref: ref("k8s.io/api/core/v1.PersistentVolumeClaimVolumeSource"), 11854 }, 11855 }, 11856 "rbd": { 11857 SchemaProps: spec.SchemaProps{ 11858 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", 11859 Ref: ref("k8s.io/api/core/v1.RBDVolumeSource"), 11860 }, 11861 }, 11862 "flexVolume": { 11863 SchemaProps: spec.SchemaProps{ 11864 Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.", 11865 Ref: ref("k8s.io/api/core/v1.FlexVolumeSource"), 11866 }, 11867 }, 11868 "cinder": { 11869 SchemaProps: spec.SchemaProps{ 11870 Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", 11871 Ref: ref("k8s.io/api/core/v1.CinderVolumeSource"), 11872 }, 11873 }, 11874 "cephfs": { 11875 SchemaProps: spec.SchemaProps{ 11876 Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime", 11877 Ref: ref("k8s.io/api/core/v1.CephFSVolumeSource"), 11878 }, 11879 }, 11880 "flocker": { 11881 SchemaProps: spec.SchemaProps{ 11882 Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running", 11883 Ref: ref("k8s.io/api/core/v1.FlockerVolumeSource"), 11884 }, 11885 }, 11886 "downwardAPI": { 11887 SchemaProps: spec.SchemaProps{ 11888 Description: "downwardAPI represents downward API about the pod that should populate this volume", 11889 Ref: ref("k8s.io/api/core/v1.DownwardAPIVolumeSource"), 11890 }, 11891 }, 11892 "fc": { 11893 SchemaProps: spec.SchemaProps{ 11894 Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", 11895 Ref: ref("k8s.io/api/core/v1.FCVolumeSource"), 11896 }, 11897 }, 11898 "azureFile": { 11899 SchemaProps: spec.SchemaProps{ 11900 Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod.", 11901 Ref: ref("k8s.io/api/core/v1.AzureFileVolumeSource"), 11902 }, 11903 }, 11904 "configMap": { 11905 SchemaProps: spec.SchemaProps{ 11906 Description: "configMap represents a configMap that should populate this volume", 11907 Ref: ref("k8s.io/api/core/v1.ConfigMapVolumeSource"), 11908 }, 11909 }, 11910 "vsphereVolume": { 11911 SchemaProps: spec.SchemaProps{ 11912 Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", 11913 Ref: ref("k8s.io/api/core/v1.VsphereVirtualDiskVolumeSource"), 11914 }, 11915 }, 11916 "quobyte": { 11917 SchemaProps: spec.SchemaProps{ 11918 Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime", 11919 Ref: ref("k8s.io/api/core/v1.QuobyteVolumeSource"), 11920 }, 11921 }, 11922 "azureDisk": { 11923 SchemaProps: spec.SchemaProps{ 11924 Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", 11925 Ref: ref("k8s.io/api/core/v1.AzureDiskVolumeSource"), 11926 }, 11927 }, 11928 "photonPersistentDisk": { 11929 SchemaProps: spec.SchemaProps{ 11930 Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine", 11931 Ref: ref("k8s.io/api/core/v1.PhotonPersistentDiskVolumeSource"), 11932 }, 11933 }, 11934 "projected": { 11935 SchemaProps: spec.SchemaProps{ 11936 Description: "projected items for all in one resources secrets, configmaps, and downward API", 11937 Ref: ref("k8s.io/api/core/v1.ProjectedVolumeSource"), 11938 }, 11939 }, 11940 "portworxVolume": { 11941 SchemaProps: spec.SchemaProps{ 11942 Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine", 11943 Ref: ref("k8s.io/api/core/v1.PortworxVolumeSource"), 11944 }, 11945 }, 11946 "scaleIO": { 11947 SchemaProps: spec.SchemaProps{ 11948 Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.", 11949 Ref: ref("k8s.io/api/core/v1.ScaleIOVolumeSource"), 11950 }, 11951 }, 11952 "storageos": { 11953 SchemaProps: spec.SchemaProps{ 11954 Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.", 11955 Ref: ref("k8s.io/api/core/v1.StorageOSVolumeSource"), 11956 }, 11957 }, 11958 "csi": { 11959 SchemaProps: spec.SchemaProps{ 11960 Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).", 11961 Ref: ref("k8s.io/api/core/v1.CSIVolumeSource"), 11962 }, 11963 }, 11964 "ephemeral": { 11965 SchemaProps: spec.SchemaProps{ 11966 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.", 11967 Ref: ref("k8s.io/api/core/v1.EphemeralVolumeSource"), 11968 }, 11969 }, 11970 }, 11971 }, 11972 }, 11973 Dependencies: []string{ 11974 "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"}, 11975 } 11976 } 11977 11978 func schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 11979 return common.OpenAPIDefinition{ 11980 Schema: spec.Schema{ 11981 SchemaProps: spec.SchemaProps{ 11982 Description: "Represents a vSphere volume resource.", 11983 Type: []string{"object"}, 11984 Properties: map[string]spec.Schema{ 11985 "volumePath": { 11986 SchemaProps: spec.SchemaProps{ 11987 Description: "volumePath is the path that identifies vSphere volume vmdk", 11988 Default: "", 11989 Type: []string{"string"}, 11990 Format: "", 11991 }, 11992 }, 11993 "fsType": { 11994 SchemaProps: spec.SchemaProps{ 11995 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.", 11996 Type: []string{"string"}, 11997 Format: "", 11998 }, 11999 }, 12000 "storagePolicyName": { 12001 SchemaProps: spec.SchemaProps{ 12002 Description: "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", 12003 Type: []string{"string"}, 12004 Format: "", 12005 }, 12006 }, 12007 "storagePolicyID": { 12008 SchemaProps: spec.SchemaProps{ 12009 Description: "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", 12010 Type: []string{"string"}, 12011 Format: "", 12012 }, 12013 }, 12014 }, 12015 Required: []string{"volumePath"}, 12016 }, 12017 }, 12018 } 12019 } 12020 12021 func schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { 12022 return common.OpenAPIDefinition{ 12023 Schema: spec.Schema{ 12024 SchemaProps: spec.SchemaProps{ 12025 Description: "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", 12026 Type: []string{"object"}, 12027 Properties: map[string]spec.Schema{ 12028 "weight": { 12029 SchemaProps: spec.SchemaProps{ 12030 Description: "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", 12031 Default: 0, 12032 Type: []string{"integer"}, 12033 Format: "int32", 12034 }, 12035 }, 12036 "podAffinityTerm": { 12037 SchemaProps: spec.SchemaProps{ 12038 Description: "Required. A pod affinity term, associated with the corresponding weight.", 12039 Default: map[string]interface{}{}, 12040 Ref: ref("k8s.io/api/core/v1.PodAffinityTerm"), 12041 }, 12042 }, 12043 }, 12044 Required: []string{"weight", "podAffinityTerm"}, 12045 }, 12046 }, 12047 Dependencies: []string{ 12048 "k8s.io/api/core/v1.PodAffinityTerm"}, 12049 } 12050 } 12051 12052 func schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12053 return common.OpenAPIDefinition{ 12054 Schema: spec.Schema{ 12055 SchemaProps: spec.SchemaProps{ 12056 Description: "WindowsSecurityContextOptions contain Windows-specific options and credentials.", 12057 Type: []string{"object"}, 12058 Properties: map[string]spec.Schema{ 12059 "gmsaCredentialSpecName": { 12060 SchemaProps: spec.SchemaProps{ 12061 Description: "GMSACredentialSpecName is the name of the GMSA credential spec to use.", 12062 Type: []string{"string"}, 12063 Format: "", 12064 }, 12065 }, 12066 "gmsaCredentialSpec": { 12067 SchemaProps: spec.SchemaProps{ 12068 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.", 12069 Type: []string{"string"}, 12070 Format: "", 12071 }, 12072 }, 12073 "runAsUserName": { 12074 SchemaProps: spec.SchemaProps{ 12075 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.", 12076 Type: []string{"string"}, 12077 Format: "", 12078 }, 12079 }, 12080 "hostProcess": { 12081 SchemaProps: spec.SchemaProps{ 12082 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.", 12083 Type: []string{"boolean"}, 12084 Format: "", 12085 }, 12086 }, 12087 }, 12088 }, 12089 }, 12090 } 12091 } 12092 12093 func schema_pkg_apis_meta_v1_APIGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { 12094 return common.OpenAPIDefinition{ 12095 Schema: spec.Schema{ 12096 SchemaProps: spec.SchemaProps{ 12097 Description: "APIGroup contains the name, the supported versions, and the preferred version of a group.", 12098 Type: []string{"object"}, 12099 Properties: map[string]spec.Schema{ 12100 "kind": { 12101 SchemaProps: spec.SchemaProps{ 12102 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12103 Type: []string{"string"}, 12104 Format: "", 12105 }, 12106 }, 12107 "apiVersion": { 12108 SchemaProps: spec.SchemaProps{ 12109 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12110 Type: []string{"string"}, 12111 Format: "", 12112 }, 12113 }, 12114 "name": { 12115 SchemaProps: spec.SchemaProps{ 12116 Description: "name is the name of the group.", 12117 Default: "", 12118 Type: []string{"string"}, 12119 Format: "", 12120 }, 12121 }, 12122 "versions": { 12123 SchemaProps: spec.SchemaProps{ 12124 Description: "versions are the versions supported in this group.", 12125 Type: []string{"array"}, 12126 Items: &spec.SchemaOrArray{ 12127 Schema: &spec.Schema{ 12128 SchemaProps: spec.SchemaProps{ 12129 Default: map[string]interface{}{}, 12130 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 12131 }, 12132 }, 12133 }, 12134 }, 12135 }, 12136 "preferredVersion": { 12137 SchemaProps: spec.SchemaProps{ 12138 Description: "preferredVersion is the version preferred by the API server, which probably is the storage version.", 12139 Default: map[string]interface{}{}, 12140 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery"), 12141 }, 12142 }, 12143 "serverAddressByClientCIDRs": { 12144 SchemaProps: spec.SchemaProps{ 12145 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.", 12146 Type: []string{"array"}, 12147 Items: &spec.SchemaOrArray{ 12148 Schema: &spec.Schema{ 12149 SchemaProps: spec.SchemaProps{ 12150 Default: map[string]interface{}{}, 12151 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 12152 }, 12153 }, 12154 }, 12155 }, 12156 }, 12157 }, 12158 Required: []string{"name", "versions"}, 12159 }, 12160 }, 12161 Dependencies: []string{ 12162 "k8s.io/apimachinery/pkg/apis/meta/v1.GroupVersionForDiscovery", "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 12163 } 12164 } 12165 12166 func schema_pkg_apis_meta_v1_APIGroupList(ref common.ReferenceCallback) common.OpenAPIDefinition { 12167 return common.OpenAPIDefinition{ 12168 Schema: spec.Schema{ 12169 SchemaProps: spec.SchemaProps{ 12170 Description: "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.", 12171 Type: []string{"object"}, 12172 Properties: map[string]spec.Schema{ 12173 "kind": { 12174 SchemaProps: spec.SchemaProps{ 12175 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12176 Type: []string{"string"}, 12177 Format: "", 12178 }, 12179 }, 12180 "apiVersion": { 12181 SchemaProps: spec.SchemaProps{ 12182 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12183 Type: []string{"string"}, 12184 Format: "", 12185 }, 12186 }, 12187 "groups": { 12188 SchemaProps: spec.SchemaProps{ 12189 Description: "groups is a list of APIGroup.", 12190 Type: []string{"array"}, 12191 Items: &spec.SchemaOrArray{ 12192 Schema: &spec.Schema{ 12193 SchemaProps: spec.SchemaProps{ 12194 Default: map[string]interface{}{}, 12195 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"), 12196 }, 12197 }, 12198 }, 12199 }, 12200 }, 12201 }, 12202 Required: []string{"groups"}, 12203 }, 12204 }, 12205 Dependencies: []string{ 12206 "k8s.io/apimachinery/pkg/apis/meta/v1.APIGroup"}, 12207 } 12208 } 12209 12210 func schema_pkg_apis_meta_v1_APIResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 12211 return common.OpenAPIDefinition{ 12212 Schema: spec.Schema{ 12213 SchemaProps: spec.SchemaProps{ 12214 Description: "APIResource specifies the name of a resource and whether it is namespaced.", 12215 Type: []string{"object"}, 12216 Properties: map[string]spec.Schema{ 12217 "name": { 12218 SchemaProps: spec.SchemaProps{ 12219 Description: "name is the plural name of the resource.", 12220 Default: "", 12221 Type: []string{"string"}, 12222 Format: "", 12223 }, 12224 }, 12225 "singularName": { 12226 SchemaProps: spec.SchemaProps{ 12227 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.", 12228 Default: "", 12229 Type: []string{"string"}, 12230 Format: "", 12231 }, 12232 }, 12233 "namespaced": { 12234 SchemaProps: spec.SchemaProps{ 12235 Description: "namespaced indicates if a resource is namespaced or not.", 12236 Default: false, 12237 Type: []string{"boolean"}, 12238 Format: "", 12239 }, 12240 }, 12241 "group": { 12242 SchemaProps: spec.SchemaProps{ 12243 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\".", 12244 Type: []string{"string"}, 12245 Format: "", 12246 }, 12247 }, 12248 "version": { 12249 SchemaProps: spec.SchemaProps{ 12250 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)\".", 12251 Type: []string{"string"}, 12252 Format: "", 12253 }, 12254 }, 12255 "kind": { 12256 SchemaProps: spec.SchemaProps{ 12257 Description: "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')", 12258 Default: "", 12259 Type: []string{"string"}, 12260 Format: "", 12261 }, 12262 }, 12263 "verbs": { 12264 SchemaProps: spec.SchemaProps{ 12265 Description: "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)", 12266 Type: []string{"array"}, 12267 Items: &spec.SchemaOrArray{ 12268 Schema: &spec.Schema{ 12269 SchemaProps: spec.SchemaProps{ 12270 Default: "", 12271 Type: []string{"string"}, 12272 Format: "", 12273 }, 12274 }, 12275 }, 12276 }, 12277 }, 12278 "shortNames": { 12279 SchemaProps: spec.SchemaProps{ 12280 Description: "shortNames is a list of suggested short names of the resource.", 12281 Type: []string{"array"}, 12282 Items: &spec.SchemaOrArray{ 12283 Schema: &spec.Schema{ 12284 SchemaProps: spec.SchemaProps{ 12285 Default: "", 12286 Type: []string{"string"}, 12287 Format: "", 12288 }, 12289 }, 12290 }, 12291 }, 12292 }, 12293 "categories": { 12294 SchemaProps: spec.SchemaProps{ 12295 Description: "categories is a list of the grouped resources this resource belongs to (e.g. 'all')", 12296 Type: []string{"array"}, 12297 Items: &spec.SchemaOrArray{ 12298 Schema: &spec.Schema{ 12299 SchemaProps: spec.SchemaProps{ 12300 Default: "", 12301 Type: []string{"string"}, 12302 Format: "", 12303 }, 12304 }, 12305 }, 12306 }, 12307 }, 12308 "storageVersionHash": { 12309 SchemaProps: spec.SchemaProps{ 12310 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.", 12311 Type: []string{"string"}, 12312 Format: "", 12313 }, 12314 }, 12315 }, 12316 Required: []string{"name", "singularName", "namespaced", "kind", "verbs"}, 12317 }, 12318 }, 12319 } 12320 } 12321 12322 func schema_pkg_apis_meta_v1_APIResourceList(ref common.ReferenceCallback) common.OpenAPIDefinition { 12323 return common.OpenAPIDefinition{ 12324 Schema: spec.Schema{ 12325 SchemaProps: spec.SchemaProps{ 12326 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.", 12327 Type: []string{"object"}, 12328 Properties: map[string]spec.Schema{ 12329 "kind": { 12330 SchemaProps: spec.SchemaProps{ 12331 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12332 Type: []string{"string"}, 12333 Format: "", 12334 }, 12335 }, 12336 "apiVersion": { 12337 SchemaProps: spec.SchemaProps{ 12338 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12339 Type: []string{"string"}, 12340 Format: "", 12341 }, 12342 }, 12343 "groupVersion": { 12344 SchemaProps: spec.SchemaProps{ 12345 Description: "groupVersion is the group and version this APIResourceList is for.", 12346 Default: "", 12347 Type: []string{"string"}, 12348 Format: "", 12349 }, 12350 }, 12351 "resources": { 12352 SchemaProps: spec.SchemaProps{ 12353 Description: "resources contains the name of the resources and if they are namespaced.", 12354 Type: []string{"array"}, 12355 Items: &spec.SchemaOrArray{ 12356 Schema: &spec.Schema{ 12357 SchemaProps: spec.SchemaProps{ 12358 Default: map[string]interface{}{}, 12359 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"), 12360 }, 12361 }, 12362 }, 12363 }, 12364 }, 12365 }, 12366 Required: []string{"groupVersion", "resources"}, 12367 }, 12368 }, 12369 Dependencies: []string{ 12370 "k8s.io/apimachinery/pkg/apis/meta/v1.APIResource"}, 12371 } 12372 } 12373 12374 func schema_pkg_apis_meta_v1_APIVersions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12375 return common.OpenAPIDefinition{ 12376 Schema: spec.Schema{ 12377 SchemaProps: spec.SchemaProps{ 12378 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.", 12379 Type: []string{"object"}, 12380 Properties: map[string]spec.Schema{ 12381 "kind": { 12382 SchemaProps: spec.SchemaProps{ 12383 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12384 Type: []string{"string"}, 12385 Format: "", 12386 }, 12387 }, 12388 "apiVersion": { 12389 SchemaProps: spec.SchemaProps{ 12390 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12391 Type: []string{"string"}, 12392 Format: "", 12393 }, 12394 }, 12395 "versions": { 12396 SchemaProps: spec.SchemaProps{ 12397 Description: "versions are the api versions that are available.", 12398 Type: []string{"array"}, 12399 Items: &spec.SchemaOrArray{ 12400 Schema: &spec.Schema{ 12401 SchemaProps: spec.SchemaProps{ 12402 Default: "", 12403 Type: []string{"string"}, 12404 Format: "", 12405 }, 12406 }, 12407 }, 12408 }, 12409 }, 12410 "serverAddressByClientCIDRs": { 12411 SchemaProps: spec.SchemaProps{ 12412 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.", 12413 Type: []string{"array"}, 12414 Items: &spec.SchemaOrArray{ 12415 Schema: &spec.Schema{ 12416 SchemaProps: spec.SchemaProps{ 12417 Default: map[string]interface{}{}, 12418 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"), 12419 }, 12420 }, 12421 }, 12422 }, 12423 }, 12424 }, 12425 Required: []string{"versions", "serverAddressByClientCIDRs"}, 12426 }, 12427 }, 12428 Dependencies: []string{ 12429 "k8s.io/apimachinery/pkg/apis/meta/v1.ServerAddressByClientCIDR"}, 12430 } 12431 } 12432 12433 func schema_pkg_apis_meta_v1_ApplyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12434 return common.OpenAPIDefinition{ 12435 Schema: spec.Schema{ 12436 SchemaProps: spec.SchemaProps{ 12437 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.", 12438 Type: []string{"object"}, 12439 Properties: map[string]spec.Schema{ 12440 "kind": { 12441 SchemaProps: spec.SchemaProps{ 12442 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12443 Type: []string{"string"}, 12444 Format: "", 12445 }, 12446 }, 12447 "apiVersion": { 12448 SchemaProps: spec.SchemaProps{ 12449 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12450 Type: []string{"string"}, 12451 Format: "", 12452 }, 12453 }, 12454 "dryRun": { 12455 SchemaProps: spec.SchemaProps{ 12456 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", 12457 Type: []string{"array"}, 12458 Items: &spec.SchemaOrArray{ 12459 Schema: &spec.Schema{ 12460 SchemaProps: spec.SchemaProps{ 12461 Default: "", 12462 Type: []string{"string"}, 12463 Format: "", 12464 }, 12465 }, 12466 }, 12467 }, 12468 }, 12469 "force": { 12470 SchemaProps: spec.SchemaProps{ 12471 Description: "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people.", 12472 Default: false, 12473 Type: []string{"boolean"}, 12474 Format: "", 12475 }, 12476 }, 12477 "fieldManager": { 12478 SchemaProps: spec.SchemaProps{ 12479 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.", 12480 Default: "", 12481 Type: []string{"string"}, 12482 Format: "", 12483 }, 12484 }, 12485 }, 12486 Required: []string{"force", "fieldManager"}, 12487 }, 12488 }, 12489 } 12490 } 12491 12492 func schema_pkg_apis_meta_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { 12493 return common.OpenAPIDefinition{ 12494 Schema: spec.Schema{ 12495 SchemaProps: spec.SchemaProps{ 12496 Description: "Condition contains details for one aspect of the current state of this API Resource.", 12497 Type: []string{"object"}, 12498 Properties: map[string]spec.Schema{ 12499 "type": { 12500 SchemaProps: spec.SchemaProps{ 12501 Description: "type of condition in CamelCase or in foo.example.com/CamelCase.", 12502 Default: "", 12503 Type: []string{"string"}, 12504 Format: "", 12505 }, 12506 }, 12507 "status": { 12508 SchemaProps: spec.SchemaProps{ 12509 Description: "status of the condition, one of True, False, Unknown.", 12510 Default: "", 12511 Type: []string{"string"}, 12512 Format: "", 12513 }, 12514 }, 12515 "observedGeneration": { 12516 SchemaProps: spec.SchemaProps{ 12517 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.", 12518 Type: []string{"integer"}, 12519 Format: "int64", 12520 }, 12521 }, 12522 "lastTransitionTime": { 12523 SchemaProps: spec.SchemaProps{ 12524 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.", 12525 Default: map[string]interface{}{}, 12526 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 12527 }, 12528 }, 12529 "reason": { 12530 SchemaProps: spec.SchemaProps{ 12531 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.", 12532 Default: "", 12533 Type: []string{"string"}, 12534 Format: "", 12535 }, 12536 }, 12537 "message": { 12538 SchemaProps: spec.SchemaProps{ 12539 Description: "message is a human readable message indicating details about the transition. This may be an empty string.", 12540 Default: "", 12541 Type: []string{"string"}, 12542 Format: "", 12543 }, 12544 }, 12545 }, 12546 Required: []string{"type", "status", "lastTransitionTime", "reason", "message"}, 12547 }, 12548 }, 12549 Dependencies: []string{ 12550 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 12551 } 12552 } 12553 12554 func schema_pkg_apis_meta_v1_CreateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12555 return common.OpenAPIDefinition{ 12556 Schema: spec.Schema{ 12557 SchemaProps: spec.SchemaProps{ 12558 Description: "CreateOptions may be provided when creating an API object.", 12559 Type: []string{"object"}, 12560 Properties: map[string]spec.Schema{ 12561 "kind": { 12562 SchemaProps: spec.SchemaProps{ 12563 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12564 Type: []string{"string"}, 12565 Format: "", 12566 }, 12567 }, 12568 "apiVersion": { 12569 SchemaProps: spec.SchemaProps{ 12570 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12571 Type: []string{"string"}, 12572 Format: "", 12573 }, 12574 }, 12575 "dryRun": { 12576 SchemaProps: spec.SchemaProps{ 12577 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", 12578 Type: []string{"array"}, 12579 Items: &spec.SchemaOrArray{ 12580 Schema: &spec.Schema{ 12581 SchemaProps: spec.SchemaProps{ 12582 Default: "", 12583 Type: []string{"string"}, 12584 Format: "", 12585 }, 12586 }, 12587 }, 12588 }, 12589 }, 12590 "fieldManager": { 12591 SchemaProps: spec.SchemaProps{ 12592 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.", 12593 Type: []string{"string"}, 12594 Format: "", 12595 }, 12596 }, 12597 "fieldValidation": { 12598 SchemaProps: spec.SchemaProps{ 12599 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.", 12600 Type: []string{"string"}, 12601 Format: "", 12602 }, 12603 }, 12604 }, 12605 }, 12606 }, 12607 } 12608 } 12609 12610 func schema_pkg_apis_meta_v1_DeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12611 return common.OpenAPIDefinition{ 12612 Schema: spec.Schema{ 12613 SchemaProps: spec.SchemaProps{ 12614 Description: "DeleteOptions may be provided when deleting an API object.", 12615 Type: []string{"object"}, 12616 Properties: map[string]spec.Schema{ 12617 "kind": { 12618 SchemaProps: spec.SchemaProps{ 12619 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12620 Type: []string{"string"}, 12621 Format: "", 12622 }, 12623 }, 12624 "apiVersion": { 12625 SchemaProps: spec.SchemaProps{ 12626 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12627 Type: []string{"string"}, 12628 Format: "", 12629 }, 12630 }, 12631 "gracePeriodSeconds": { 12632 SchemaProps: spec.SchemaProps{ 12633 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.", 12634 Type: []string{"integer"}, 12635 Format: "int64", 12636 }, 12637 }, 12638 "preconditions": { 12639 SchemaProps: spec.SchemaProps{ 12640 Description: "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.", 12641 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"), 12642 }, 12643 }, 12644 "orphanDependents": { 12645 SchemaProps: spec.SchemaProps{ 12646 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.", 12647 Type: []string{"boolean"}, 12648 Format: "", 12649 }, 12650 }, 12651 "propagationPolicy": { 12652 SchemaProps: spec.SchemaProps{ 12653 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.", 12654 Type: []string{"string"}, 12655 Format: "", 12656 }, 12657 }, 12658 "dryRun": { 12659 SchemaProps: spec.SchemaProps{ 12660 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", 12661 Type: []string{"array"}, 12662 Items: &spec.SchemaOrArray{ 12663 Schema: &spec.Schema{ 12664 SchemaProps: spec.SchemaProps{ 12665 Default: "", 12666 Type: []string{"string"}, 12667 Format: "", 12668 }, 12669 }, 12670 }, 12671 }, 12672 }, 12673 }, 12674 }, 12675 }, 12676 Dependencies: []string{ 12677 "k8s.io/apimachinery/pkg/apis/meta/v1.Preconditions"}, 12678 } 12679 } 12680 12681 func schema_pkg_apis_meta_v1_Duration(ref common.ReferenceCallback) common.OpenAPIDefinition { 12682 return common.OpenAPIDefinition{ 12683 Schema: spec.Schema{ 12684 SchemaProps: spec.SchemaProps{ 12685 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.", 12686 Type: v1.Duration{}.OpenAPISchemaType(), 12687 Format: v1.Duration{}.OpenAPISchemaFormat(), 12688 }, 12689 }, 12690 } 12691 } 12692 12693 func schema_pkg_apis_meta_v1_FieldsV1(ref common.ReferenceCallback) common.OpenAPIDefinition { 12694 return common.OpenAPIDefinition{ 12695 Schema: spec.Schema{ 12696 SchemaProps: spec.SchemaProps{ 12697 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", 12698 Type: []string{"object"}, 12699 }, 12700 }, 12701 } 12702 } 12703 12704 func schema_pkg_apis_meta_v1_GetOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 12705 return common.OpenAPIDefinition{ 12706 Schema: spec.Schema{ 12707 SchemaProps: spec.SchemaProps{ 12708 Description: "GetOptions is the standard query options to the standard REST get call.", 12709 Type: []string{"object"}, 12710 Properties: map[string]spec.Schema{ 12711 "kind": { 12712 SchemaProps: spec.SchemaProps{ 12713 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 12714 Type: []string{"string"}, 12715 Format: "", 12716 }, 12717 }, 12718 "apiVersion": { 12719 SchemaProps: spec.SchemaProps{ 12720 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 12721 Type: []string{"string"}, 12722 Format: "", 12723 }, 12724 }, 12725 "resourceVersion": { 12726 SchemaProps: spec.SchemaProps{ 12727 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", 12728 Type: []string{"string"}, 12729 Format: "", 12730 }, 12731 }, 12732 }, 12733 }, 12734 }, 12735 } 12736 } 12737 12738 func schema_pkg_apis_meta_v1_GroupKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 12739 return common.OpenAPIDefinition{ 12740 Schema: spec.Schema{ 12741 SchemaProps: spec.SchemaProps{ 12742 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", 12743 Type: []string{"object"}, 12744 Properties: map[string]spec.Schema{ 12745 "group": { 12746 SchemaProps: spec.SchemaProps{ 12747 Default: "", 12748 Type: []string{"string"}, 12749 Format: "", 12750 }, 12751 }, 12752 "kind": { 12753 SchemaProps: spec.SchemaProps{ 12754 Default: "", 12755 Type: []string{"string"}, 12756 Format: "", 12757 }, 12758 }, 12759 }, 12760 Required: []string{"group", "kind"}, 12761 }, 12762 }, 12763 } 12764 } 12765 12766 func schema_pkg_apis_meta_v1_GroupResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 12767 return common.OpenAPIDefinition{ 12768 Schema: spec.Schema{ 12769 SchemaProps: spec.SchemaProps{ 12770 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", 12771 Type: []string{"object"}, 12772 Properties: map[string]spec.Schema{ 12773 "group": { 12774 SchemaProps: spec.SchemaProps{ 12775 Default: "", 12776 Type: []string{"string"}, 12777 Format: "", 12778 }, 12779 }, 12780 "resource": { 12781 SchemaProps: spec.SchemaProps{ 12782 Default: "", 12783 Type: []string{"string"}, 12784 Format: "", 12785 }, 12786 }, 12787 }, 12788 Required: []string{"group", "resource"}, 12789 }, 12790 }, 12791 } 12792 } 12793 12794 func schema_pkg_apis_meta_v1_GroupVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { 12795 return common.OpenAPIDefinition{ 12796 Schema: spec.Schema{ 12797 SchemaProps: spec.SchemaProps{ 12798 Description: "GroupVersion contains the \"group\" and the \"version\", which uniquely identifies the API.", 12799 Type: []string{"object"}, 12800 Properties: map[string]spec.Schema{ 12801 "group": { 12802 SchemaProps: spec.SchemaProps{ 12803 Default: "", 12804 Type: []string{"string"}, 12805 Format: "", 12806 }, 12807 }, 12808 "version": { 12809 SchemaProps: spec.SchemaProps{ 12810 Default: "", 12811 Type: []string{"string"}, 12812 Format: "", 12813 }, 12814 }, 12815 }, 12816 Required: []string{"group", "version"}, 12817 }, 12818 }, 12819 } 12820 } 12821 12822 func schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref common.ReferenceCallback) common.OpenAPIDefinition { 12823 return common.OpenAPIDefinition{ 12824 Schema: spec.Schema{ 12825 SchemaProps: spec.SchemaProps{ 12826 Description: "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.", 12827 Type: []string{"object"}, 12828 Properties: map[string]spec.Schema{ 12829 "groupVersion": { 12830 SchemaProps: spec.SchemaProps{ 12831 Description: "groupVersion specifies the API group and version in the form \"group/version\"", 12832 Default: "", 12833 Type: []string{"string"}, 12834 Format: "", 12835 }, 12836 }, 12837 "version": { 12838 SchemaProps: spec.SchemaProps{ 12839 Description: "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.", 12840 Default: "", 12841 Type: []string{"string"}, 12842 Format: "", 12843 }, 12844 }, 12845 }, 12846 Required: []string{"groupVersion", "version"}, 12847 }, 12848 }, 12849 } 12850 } 12851 12852 func schema_pkg_apis_meta_v1_GroupVersionKind(ref common.ReferenceCallback) common.OpenAPIDefinition { 12853 return common.OpenAPIDefinition{ 12854 Schema: spec.Schema{ 12855 SchemaProps: spec.SchemaProps{ 12856 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", 12857 Type: []string{"object"}, 12858 Properties: map[string]spec.Schema{ 12859 "group": { 12860 SchemaProps: spec.SchemaProps{ 12861 Default: "", 12862 Type: []string{"string"}, 12863 Format: "", 12864 }, 12865 }, 12866 "version": { 12867 SchemaProps: spec.SchemaProps{ 12868 Default: "", 12869 Type: []string{"string"}, 12870 Format: "", 12871 }, 12872 }, 12873 "kind": { 12874 SchemaProps: spec.SchemaProps{ 12875 Default: "", 12876 Type: []string{"string"}, 12877 Format: "", 12878 }, 12879 }, 12880 }, 12881 Required: []string{"group", "version", "kind"}, 12882 }, 12883 }, 12884 } 12885 } 12886 12887 func schema_pkg_apis_meta_v1_GroupVersionResource(ref common.ReferenceCallback) common.OpenAPIDefinition { 12888 return common.OpenAPIDefinition{ 12889 Schema: spec.Schema{ 12890 SchemaProps: spec.SchemaProps{ 12891 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", 12892 Type: []string{"object"}, 12893 Properties: map[string]spec.Schema{ 12894 "group": { 12895 SchemaProps: spec.SchemaProps{ 12896 Default: "", 12897 Type: []string{"string"}, 12898 Format: "", 12899 }, 12900 }, 12901 "version": { 12902 SchemaProps: spec.SchemaProps{ 12903 Default: "", 12904 Type: []string{"string"}, 12905 Format: "", 12906 }, 12907 }, 12908 "resource": { 12909 SchemaProps: spec.SchemaProps{ 12910 Default: "", 12911 Type: []string{"string"}, 12912 Format: "", 12913 }, 12914 }, 12915 }, 12916 Required: []string{"group", "version", "resource"}, 12917 }, 12918 }, 12919 } 12920 } 12921 12922 func schema_pkg_apis_meta_v1_InternalEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 12923 return common.OpenAPIDefinition{ 12924 Schema: spec.Schema{ 12925 SchemaProps: spec.SchemaProps{ 12926 Description: "InternalEvent makes watch.Event versioned", 12927 Type: []string{"object"}, 12928 Properties: map[string]spec.Schema{ 12929 "Type": { 12930 SchemaProps: spec.SchemaProps{ 12931 Default: "", 12932 Type: []string{"string"}, 12933 Format: "", 12934 }, 12935 }, 12936 "Object": { 12937 SchemaProps: spec.SchemaProps{ 12938 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.", 12939 Ref: ref("k8s.io/apimachinery/pkg/runtime.Object"), 12940 }, 12941 }, 12942 }, 12943 Required: []string{"Type", "Object"}, 12944 }, 12945 }, 12946 Dependencies: []string{ 12947 "k8s.io/apimachinery/pkg/runtime.Object"}, 12948 } 12949 } 12950 12951 func schema_pkg_apis_meta_v1_LabelSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { 12952 return common.OpenAPIDefinition{ 12953 Schema: spec.Schema{ 12954 SchemaProps: spec.SchemaProps{ 12955 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.", 12956 Type: []string{"object"}, 12957 Properties: map[string]spec.Schema{ 12958 "matchLabels": { 12959 SchemaProps: spec.SchemaProps{ 12960 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.", 12961 Type: []string{"object"}, 12962 AdditionalProperties: &spec.SchemaOrBool{ 12963 Allows: true, 12964 Schema: &spec.Schema{ 12965 SchemaProps: spec.SchemaProps{ 12966 Default: "", 12967 Type: []string{"string"}, 12968 Format: "", 12969 }, 12970 }, 12971 }, 12972 }, 12973 }, 12974 "matchExpressions": { 12975 SchemaProps: spec.SchemaProps{ 12976 Description: "matchExpressions is a list of label selector requirements. The requirements are ANDed.", 12977 Type: []string{"array"}, 12978 Items: &spec.SchemaOrArray{ 12979 Schema: &spec.Schema{ 12980 SchemaProps: spec.SchemaProps{ 12981 Default: map[string]interface{}{}, 12982 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"), 12983 }, 12984 }, 12985 }, 12986 }, 12987 }, 12988 }, 12989 }, 12990 VendorExtensible: spec.VendorExtensible{ 12991 Extensions: spec.Extensions{ 12992 "x-kubernetes-map-type": "atomic", 12993 }, 12994 }, 12995 }, 12996 Dependencies: []string{ 12997 "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelectorRequirement"}, 12998 } 12999 } 13000 13001 func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { 13002 return common.OpenAPIDefinition{ 13003 Schema: spec.Schema{ 13004 SchemaProps: spec.SchemaProps{ 13005 Description: "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", 13006 Type: []string{"object"}, 13007 Properties: map[string]spec.Schema{ 13008 "key": { 13009 VendorExtensible: spec.VendorExtensible{ 13010 Extensions: spec.Extensions{ 13011 "x-kubernetes-patch-merge-key": "key", 13012 "x-kubernetes-patch-strategy": "merge", 13013 }, 13014 }, 13015 SchemaProps: spec.SchemaProps{ 13016 Description: "key is the label key that the selector applies to.", 13017 Default: "", 13018 Type: []string{"string"}, 13019 Format: "", 13020 }, 13021 }, 13022 "operator": { 13023 SchemaProps: spec.SchemaProps{ 13024 Description: "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", 13025 Default: "", 13026 Type: []string{"string"}, 13027 Format: "", 13028 }, 13029 }, 13030 "values": { 13031 SchemaProps: spec.SchemaProps{ 13032 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.", 13033 Type: []string{"array"}, 13034 Items: &spec.SchemaOrArray{ 13035 Schema: &spec.Schema{ 13036 SchemaProps: spec.SchemaProps{ 13037 Default: "", 13038 Type: []string{"string"}, 13039 Format: "", 13040 }, 13041 }, 13042 }, 13043 }, 13044 }, 13045 }, 13046 Required: []string{"key", "operator"}, 13047 }, 13048 }, 13049 } 13050 } 13051 13052 func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDefinition { 13053 return common.OpenAPIDefinition{ 13054 Schema: spec.Schema{ 13055 SchemaProps: spec.SchemaProps{ 13056 Description: "List holds a list of objects, which may not be known by the server.", 13057 Type: []string{"object"}, 13058 Properties: map[string]spec.Schema{ 13059 "kind": { 13060 SchemaProps: spec.SchemaProps{ 13061 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13062 Type: []string{"string"}, 13063 Format: "", 13064 }, 13065 }, 13066 "apiVersion": { 13067 SchemaProps: spec.SchemaProps{ 13068 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13069 Type: []string{"string"}, 13070 Format: "", 13071 }, 13072 }, 13073 "metadata": { 13074 SchemaProps: spec.SchemaProps{ 13075 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13076 Default: map[string]interface{}{}, 13077 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 13078 }, 13079 }, 13080 "items": { 13081 SchemaProps: spec.SchemaProps{ 13082 Description: "List of objects", 13083 Type: []string{"array"}, 13084 Items: &spec.SchemaOrArray{ 13085 Schema: &spec.Schema{ 13086 SchemaProps: spec.SchemaProps{ 13087 Default: map[string]interface{}{}, 13088 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 13089 }, 13090 }, 13091 }, 13092 }, 13093 }, 13094 }, 13095 Required: []string{"items"}, 13096 }, 13097 }, 13098 Dependencies: []string{ 13099 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 13100 } 13101 } 13102 13103 func schema_pkg_apis_meta_v1_ListMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 13104 return common.OpenAPIDefinition{ 13105 Schema: spec.Schema{ 13106 SchemaProps: spec.SchemaProps{ 13107 Description: "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", 13108 Type: []string{"object"}, 13109 Properties: map[string]spec.Schema{ 13110 "selfLink": { 13111 SchemaProps: spec.SchemaProps{ 13112 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 13113 Type: []string{"string"}, 13114 Format: "", 13115 }, 13116 }, 13117 "resourceVersion": { 13118 SchemaProps: spec.SchemaProps{ 13119 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", 13120 Type: []string{"string"}, 13121 Format: "", 13122 }, 13123 }, 13124 "continue": { 13125 SchemaProps: spec.SchemaProps{ 13126 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.", 13127 Type: []string{"string"}, 13128 Format: "", 13129 }, 13130 }, 13131 "remainingItemCount": { 13132 SchemaProps: spec.SchemaProps{ 13133 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.", 13134 Type: []string{"integer"}, 13135 Format: "int64", 13136 }, 13137 }, 13138 }, 13139 }, 13140 }, 13141 } 13142 } 13143 13144 func schema_pkg_apis_meta_v1_ListOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 13145 return common.OpenAPIDefinition{ 13146 Schema: spec.Schema{ 13147 SchemaProps: spec.SchemaProps{ 13148 Description: "ListOptions is the query options to a standard REST list call.", 13149 Type: []string{"object"}, 13150 Properties: map[string]spec.Schema{ 13151 "kind": { 13152 SchemaProps: spec.SchemaProps{ 13153 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13154 Type: []string{"string"}, 13155 Format: "", 13156 }, 13157 }, 13158 "apiVersion": { 13159 SchemaProps: spec.SchemaProps{ 13160 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13161 Type: []string{"string"}, 13162 Format: "", 13163 }, 13164 }, 13165 "labelSelector": { 13166 SchemaProps: spec.SchemaProps{ 13167 Description: "A selector to restrict the list of returned objects by their labels. Defaults to everything.", 13168 Type: []string{"string"}, 13169 Format: "", 13170 }, 13171 }, 13172 "fieldSelector": { 13173 SchemaProps: spec.SchemaProps{ 13174 Description: "A selector to restrict the list of returned objects by their fields. Defaults to everything.", 13175 Type: []string{"string"}, 13176 Format: "", 13177 }, 13178 }, 13179 "watch": { 13180 SchemaProps: spec.SchemaProps{ 13181 Description: "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", 13182 Type: []string{"boolean"}, 13183 Format: "", 13184 }, 13185 }, 13186 "allowWatchBookmarks": { 13187 SchemaProps: spec.SchemaProps{ 13188 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.", 13189 Type: []string{"boolean"}, 13190 Format: "", 13191 }, 13192 }, 13193 "resourceVersion": { 13194 SchemaProps: spec.SchemaProps{ 13195 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", 13196 Type: []string{"string"}, 13197 Format: "", 13198 }, 13199 }, 13200 "resourceVersionMatch": { 13201 SchemaProps: spec.SchemaProps{ 13202 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", 13203 Type: []string{"string"}, 13204 Format: "", 13205 }, 13206 }, 13207 "timeoutSeconds": { 13208 SchemaProps: spec.SchemaProps{ 13209 Description: "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", 13210 Type: []string{"integer"}, 13211 Format: "int64", 13212 }, 13213 }, 13214 "limit": { 13215 SchemaProps: spec.SchemaProps{ 13216 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.", 13217 Type: []string{"integer"}, 13218 Format: "int64", 13219 }, 13220 }, 13221 "continue": { 13222 SchemaProps: spec.SchemaProps{ 13223 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.", 13224 Type: []string{"string"}, 13225 Format: "", 13226 }, 13227 }, 13228 }, 13229 }, 13230 }, 13231 } 13232 } 13233 13234 func schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { 13235 return common.OpenAPIDefinition{ 13236 Schema: spec.Schema{ 13237 SchemaProps: spec.SchemaProps{ 13238 Description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.", 13239 Type: []string{"object"}, 13240 Properties: map[string]spec.Schema{ 13241 "manager": { 13242 SchemaProps: spec.SchemaProps{ 13243 Description: "Manager is an identifier of the workflow managing these fields.", 13244 Type: []string{"string"}, 13245 Format: "", 13246 }, 13247 }, 13248 "operation": { 13249 SchemaProps: spec.SchemaProps{ 13250 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'.", 13251 Type: []string{"string"}, 13252 Format: "", 13253 }, 13254 }, 13255 "apiVersion": { 13256 SchemaProps: spec.SchemaProps{ 13257 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.", 13258 Type: []string{"string"}, 13259 Format: "", 13260 }, 13261 }, 13262 "time": { 13263 SchemaProps: spec.SchemaProps{ 13264 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.", 13265 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 13266 }, 13267 }, 13268 "fieldsType": { 13269 SchemaProps: spec.SchemaProps{ 13270 Description: "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"", 13271 Type: []string{"string"}, 13272 Format: "", 13273 }, 13274 }, 13275 "fieldsV1": { 13276 SchemaProps: spec.SchemaProps{ 13277 Description: "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.", 13278 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1"), 13279 }, 13280 }, 13281 "subresource": { 13282 SchemaProps: spec.SchemaProps{ 13283 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.", 13284 Type: []string{"string"}, 13285 Format: "", 13286 }, 13287 }, 13288 }, 13289 }, 13290 }, 13291 Dependencies: []string{ 13292 "k8s.io/apimachinery/pkg/apis/meta/v1.FieldsV1", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 13293 } 13294 } 13295 13296 func schema_pkg_apis_meta_v1_MicroTime(ref common.ReferenceCallback) common.OpenAPIDefinition { 13297 return common.OpenAPIDefinition{ 13298 Schema: spec.Schema{ 13299 SchemaProps: spec.SchemaProps{ 13300 Description: "MicroTime is version of Time with microsecond level precision.", 13301 Type: v1.MicroTime{}.OpenAPISchemaType(), 13302 Format: v1.MicroTime{}.OpenAPISchemaFormat(), 13303 }, 13304 }, 13305 } 13306 } 13307 13308 func schema_pkg_apis_meta_v1_ObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 13309 return common.OpenAPIDefinition{ 13310 Schema: spec.Schema{ 13311 SchemaProps: spec.SchemaProps{ 13312 Description: "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", 13313 Type: []string{"object"}, 13314 Properties: map[string]spec.Schema{ 13315 "name": { 13316 SchemaProps: spec.SchemaProps{ 13317 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", 13318 Type: []string{"string"}, 13319 Format: "", 13320 }, 13321 }, 13322 "generateName": { 13323 SchemaProps: spec.SchemaProps{ 13324 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", 13325 Type: []string{"string"}, 13326 Format: "", 13327 }, 13328 }, 13329 "namespace": { 13330 SchemaProps: spec.SchemaProps{ 13331 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", 13332 Type: []string{"string"}, 13333 Format: "", 13334 }, 13335 }, 13336 "selfLink": { 13337 SchemaProps: spec.SchemaProps{ 13338 Description: "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", 13339 Type: []string{"string"}, 13340 Format: "", 13341 }, 13342 }, 13343 "uid": { 13344 SchemaProps: spec.SchemaProps{ 13345 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", 13346 Type: []string{"string"}, 13347 Format: "", 13348 }, 13349 }, 13350 "resourceVersion": { 13351 SchemaProps: spec.SchemaProps{ 13352 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", 13353 Type: []string{"string"}, 13354 Format: "", 13355 }, 13356 }, 13357 "generation": { 13358 SchemaProps: spec.SchemaProps{ 13359 Description: "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.", 13360 Type: []string{"integer"}, 13361 Format: "int64", 13362 }, 13363 }, 13364 "creationTimestamp": { 13365 SchemaProps: spec.SchemaProps{ 13366 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", 13367 Default: map[string]interface{}{}, 13368 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 13369 }, 13370 }, 13371 "deletionTimestamp": { 13372 SchemaProps: spec.SchemaProps{ 13373 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", 13374 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 13375 }, 13376 }, 13377 "deletionGracePeriodSeconds": { 13378 SchemaProps: spec.SchemaProps{ 13379 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.", 13380 Type: []string{"integer"}, 13381 Format: "int64", 13382 }, 13383 }, 13384 "labels": { 13385 SchemaProps: spec.SchemaProps{ 13386 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", 13387 Type: []string{"object"}, 13388 AdditionalProperties: &spec.SchemaOrBool{ 13389 Allows: true, 13390 Schema: &spec.Schema{ 13391 SchemaProps: spec.SchemaProps{ 13392 Default: "", 13393 Type: []string{"string"}, 13394 Format: "", 13395 }, 13396 }, 13397 }, 13398 }, 13399 }, 13400 "annotations": { 13401 SchemaProps: spec.SchemaProps{ 13402 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", 13403 Type: []string{"object"}, 13404 AdditionalProperties: &spec.SchemaOrBool{ 13405 Allows: true, 13406 Schema: &spec.Schema{ 13407 SchemaProps: spec.SchemaProps{ 13408 Default: "", 13409 Type: []string{"string"}, 13410 Format: "", 13411 }, 13412 }, 13413 }, 13414 }, 13415 }, 13416 "ownerReferences": { 13417 VendorExtensible: spec.VendorExtensible{ 13418 Extensions: spec.Extensions{ 13419 "x-kubernetes-patch-merge-key": "uid", 13420 "x-kubernetes-patch-strategy": "merge", 13421 }, 13422 }, 13423 SchemaProps: spec.SchemaProps{ 13424 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.", 13425 Type: []string{"array"}, 13426 Items: &spec.SchemaOrArray{ 13427 Schema: &spec.Schema{ 13428 SchemaProps: spec.SchemaProps{ 13429 Default: map[string]interface{}{}, 13430 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference"), 13431 }, 13432 }, 13433 }, 13434 }, 13435 }, 13436 "finalizers": { 13437 VendorExtensible: spec.VendorExtensible{ 13438 Extensions: spec.Extensions{ 13439 "x-kubernetes-patch-strategy": "merge", 13440 }, 13441 }, 13442 SchemaProps: spec.SchemaProps{ 13443 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.", 13444 Type: []string{"array"}, 13445 Items: &spec.SchemaOrArray{ 13446 Schema: &spec.Schema{ 13447 SchemaProps: spec.SchemaProps{ 13448 Default: "", 13449 Type: []string{"string"}, 13450 Format: "", 13451 }, 13452 }, 13453 }, 13454 }, 13455 }, 13456 "managedFields": { 13457 SchemaProps: spec.SchemaProps{ 13458 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.", 13459 Type: []string{"array"}, 13460 Items: &spec.SchemaOrArray{ 13461 Schema: &spec.Schema{ 13462 SchemaProps: spec.SchemaProps{ 13463 Default: map[string]interface{}{}, 13464 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry"), 13465 }, 13466 }, 13467 }, 13468 }, 13469 }, 13470 }, 13471 }, 13472 }, 13473 Dependencies: []string{ 13474 "k8s.io/apimachinery/pkg/apis/meta/v1.ManagedFieldsEntry", "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 13475 } 13476 } 13477 13478 func schema_pkg_apis_meta_v1_OwnerReference(ref common.ReferenceCallback) common.OpenAPIDefinition { 13479 return common.OpenAPIDefinition{ 13480 Schema: spec.Schema{ 13481 SchemaProps: spec.SchemaProps{ 13482 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.", 13483 Type: []string{"object"}, 13484 Properties: map[string]spec.Schema{ 13485 "apiVersion": { 13486 SchemaProps: spec.SchemaProps{ 13487 Description: "API version of the referent.", 13488 Default: "", 13489 Type: []string{"string"}, 13490 Format: "", 13491 }, 13492 }, 13493 "kind": { 13494 SchemaProps: spec.SchemaProps{ 13495 Description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13496 Default: "", 13497 Type: []string{"string"}, 13498 Format: "", 13499 }, 13500 }, 13501 "name": { 13502 SchemaProps: spec.SchemaProps{ 13503 Description: "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", 13504 Default: "", 13505 Type: []string{"string"}, 13506 Format: "", 13507 }, 13508 }, 13509 "uid": { 13510 SchemaProps: spec.SchemaProps{ 13511 Description: "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", 13512 Default: "", 13513 Type: []string{"string"}, 13514 Format: "", 13515 }, 13516 }, 13517 "controller": { 13518 SchemaProps: spec.SchemaProps{ 13519 Description: "If true, this reference points to the managing controller.", 13520 Type: []string{"boolean"}, 13521 Format: "", 13522 }, 13523 }, 13524 "blockOwnerDeletion": { 13525 SchemaProps: spec.SchemaProps{ 13526 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.", 13527 Type: []string{"boolean"}, 13528 Format: "", 13529 }, 13530 }, 13531 }, 13532 Required: []string{"apiVersion", "kind", "name", "uid"}, 13533 }, 13534 VendorExtensible: spec.VendorExtensible{ 13535 Extensions: spec.Extensions{ 13536 "x-kubernetes-map-type": "atomic", 13537 }, 13538 }, 13539 }, 13540 } 13541 } 13542 13543 func schema_pkg_apis_meta_v1_PartialObjectMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { 13544 return common.OpenAPIDefinition{ 13545 Schema: spec.Schema{ 13546 SchemaProps: spec.SchemaProps{ 13547 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.", 13548 Type: []string{"object"}, 13549 Properties: map[string]spec.Schema{ 13550 "kind": { 13551 SchemaProps: spec.SchemaProps{ 13552 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13553 Type: []string{"string"}, 13554 Format: "", 13555 }, 13556 }, 13557 "apiVersion": { 13558 SchemaProps: spec.SchemaProps{ 13559 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13560 Type: []string{"string"}, 13561 Format: "", 13562 }, 13563 }, 13564 "metadata": { 13565 SchemaProps: spec.SchemaProps{ 13566 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 13567 Default: map[string]interface{}{}, 13568 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 13569 }, 13570 }, 13571 }, 13572 }, 13573 }, 13574 Dependencies: []string{ 13575 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 13576 } 13577 } 13578 13579 func schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref common.ReferenceCallback) common.OpenAPIDefinition { 13580 return common.OpenAPIDefinition{ 13581 Schema: spec.Schema{ 13582 SchemaProps: spec.SchemaProps{ 13583 Description: "PartialObjectMetadataList contains a list of objects containing only their metadata", 13584 Type: []string{"object"}, 13585 Properties: map[string]spec.Schema{ 13586 "kind": { 13587 SchemaProps: spec.SchemaProps{ 13588 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13589 Type: []string{"string"}, 13590 Format: "", 13591 }, 13592 }, 13593 "apiVersion": { 13594 SchemaProps: spec.SchemaProps{ 13595 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13596 Type: []string{"string"}, 13597 Format: "", 13598 }, 13599 }, 13600 "metadata": { 13601 SchemaProps: spec.SchemaProps{ 13602 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13603 Default: map[string]interface{}{}, 13604 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 13605 }, 13606 }, 13607 "items": { 13608 SchemaProps: spec.SchemaProps{ 13609 Description: "items contains each of the included items.", 13610 Type: []string{"array"}, 13611 Items: &spec.SchemaOrArray{ 13612 Schema: &spec.Schema{ 13613 SchemaProps: spec.SchemaProps{ 13614 Default: map[string]interface{}{}, 13615 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"), 13616 }, 13617 }, 13618 }, 13619 }, 13620 }, 13621 }, 13622 Required: []string{"items"}, 13623 }, 13624 }, 13625 Dependencies: []string{ 13626 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.PartialObjectMetadata"}, 13627 } 13628 } 13629 13630 func schema_pkg_apis_meta_v1_Patch(ref common.ReferenceCallback) common.OpenAPIDefinition { 13631 return common.OpenAPIDefinition{ 13632 Schema: spec.Schema{ 13633 SchemaProps: spec.SchemaProps{ 13634 Description: "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", 13635 Type: []string{"object"}, 13636 }, 13637 }, 13638 } 13639 } 13640 13641 func schema_pkg_apis_meta_v1_PatchOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 13642 return common.OpenAPIDefinition{ 13643 Schema: spec.Schema{ 13644 SchemaProps: spec.SchemaProps{ 13645 Description: "PatchOptions may be provided when patching an API object. PatchOptions is meant to be a superset of UpdateOptions.", 13646 Type: []string{"object"}, 13647 Properties: map[string]spec.Schema{ 13648 "kind": { 13649 SchemaProps: spec.SchemaProps{ 13650 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13651 Type: []string{"string"}, 13652 Format: "", 13653 }, 13654 }, 13655 "apiVersion": { 13656 SchemaProps: spec.SchemaProps{ 13657 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13658 Type: []string{"string"}, 13659 Format: "", 13660 }, 13661 }, 13662 "dryRun": { 13663 SchemaProps: spec.SchemaProps{ 13664 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", 13665 Type: []string{"array"}, 13666 Items: &spec.SchemaOrArray{ 13667 Schema: &spec.Schema{ 13668 SchemaProps: spec.SchemaProps{ 13669 Default: "", 13670 Type: []string{"string"}, 13671 Format: "", 13672 }, 13673 }, 13674 }, 13675 }, 13676 }, 13677 "force": { 13678 SchemaProps: spec.SchemaProps{ 13679 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.", 13680 Type: []string{"boolean"}, 13681 Format: "", 13682 }, 13683 }, 13684 "fieldManager": { 13685 SchemaProps: spec.SchemaProps{ 13686 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).", 13687 Type: []string{"string"}, 13688 Format: "", 13689 }, 13690 }, 13691 "fieldValidation": { 13692 SchemaProps: spec.SchemaProps{ 13693 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.", 13694 Type: []string{"string"}, 13695 Format: "", 13696 }, 13697 }, 13698 }, 13699 }, 13700 }, 13701 } 13702 } 13703 13704 func schema_pkg_apis_meta_v1_Preconditions(ref common.ReferenceCallback) common.OpenAPIDefinition { 13705 return common.OpenAPIDefinition{ 13706 Schema: spec.Schema{ 13707 SchemaProps: spec.SchemaProps{ 13708 Description: "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.", 13709 Type: []string{"object"}, 13710 Properties: map[string]spec.Schema{ 13711 "uid": { 13712 SchemaProps: spec.SchemaProps{ 13713 Description: "Specifies the target UID.", 13714 Type: []string{"string"}, 13715 Format: "", 13716 }, 13717 }, 13718 "resourceVersion": { 13719 SchemaProps: spec.SchemaProps{ 13720 Description: "Specifies the target ResourceVersion", 13721 Type: []string{"string"}, 13722 Format: "", 13723 }, 13724 }, 13725 }, 13726 }, 13727 }, 13728 } 13729 } 13730 13731 func schema_pkg_apis_meta_v1_RootPaths(ref common.ReferenceCallback) common.OpenAPIDefinition { 13732 return common.OpenAPIDefinition{ 13733 Schema: spec.Schema{ 13734 SchemaProps: spec.SchemaProps{ 13735 Description: "RootPaths lists the paths available at root. For example: \"/healthz\", \"/apis\".", 13736 Type: []string{"object"}, 13737 Properties: map[string]spec.Schema{ 13738 "paths": { 13739 SchemaProps: spec.SchemaProps{ 13740 Description: "paths are the paths available at root.", 13741 Type: []string{"array"}, 13742 Items: &spec.SchemaOrArray{ 13743 Schema: &spec.Schema{ 13744 SchemaProps: spec.SchemaProps{ 13745 Default: "", 13746 Type: []string{"string"}, 13747 Format: "", 13748 }, 13749 }, 13750 }, 13751 }, 13752 }, 13753 }, 13754 Required: []string{"paths"}, 13755 }, 13756 }, 13757 } 13758 } 13759 13760 func schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref common.ReferenceCallback) common.OpenAPIDefinition { 13761 return common.OpenAPIDefinition{ 13762 Schema: spec.Schema{ 13763 SchemaProps: spec.SchemaProps{ 13764 Description: "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.", 13765 Type: []string{"object"}, 13766 Properties: map[string]spec.Schema{ 13767 "clientCIDR": { 13768 SchemaProps: spec.SchemaProps{ 13769 Description: "The CIDR with which clients can match their IP to figure out the server address that they should use.", 13770 Default: "", 13771 Type: []string{"string"}, 13772 Format: "", 13773 }, 13774 }, 13775 "serverAddress": { 13776 SchemaProps: spec.SchemaProps{ 13777 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.", 13778 Default: "", 13779 Type: []string{"string"}, 13780 Format: "", 13781 }, 13782 }, 13783 }, 13784 Required: []string{"clientCIDR", "serverAddress"}, 13785 }, 13786 }, 13787 } 13788 } 13789 13790 func schema_pkg_apis_meta_v1_Status(ref common.ReferenceCallback) common.OpenAPIDefinition { 13791 return common.OpenAPIDefinition{ 13792 Schema: spec.Schema{ 13793 SchemaProps: spec.SchemaProps{ 13794 Description: "Status is a return value for calls that don't return other objects.", 13795 Type: []string{"object"}, 13796 Properties: map[string]spec.Schema{ 13797 "kind": { 13798 SchemaProps: spec.SchemaProps{ 13799 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13800 Type: []string{"string"}, 13801 Format: "", 13802 }, 13803 }, 13804 "apiVersion": { 13805 SchemaProps: spec.SchemaProps{ 13806 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13807 Type: []string{"string"}, 13808 Format: "", 13809 }, 13810 }, 13811 "metadata": { 13812 SchemaProps: spec.SchemaProps{ 13813 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13814 Default: map[string]interface{}{}, 13815 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 13816 }, 13817 }, 13818 "status": { 13819 SchemaProps: spec.SchemaProps{ 13820 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", 13821 Type: []string{"string"}, 13822 Format: "", 13823 }, 13824 }, 13825 "message": { 13826 SchemaProps: spec.SchemaProps{ 13827 Description: "A human-readable description of the status of this operation.", 13828 Type: []string{"string"}, 13829 Format: "", 13830 }, 13831 }, 13832 "reason": { 13833 SchemaProps: spec.SchemaProps{ 13834 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.", 13835 Type: []string{"string"}, 13836 Format: "", 13837 }, 13838 }, 13839 "details": { 13840 SchemaProps: spec.SchemaProps{ 13841 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.", 13842 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"), 13843 }, 13844 }, 13845 "code": { 13846 SchemaProps: spec.SchemaProps{ 13847 Description: "Suggested HTTP return code for this status, 0 if not set.", 13848 Type: []string{"integer"}, 13849 Format: "int32", 13850 }, 13851 }, 13852 }, 13853 }, 13854 }, 13855 Dependencies: []string{ 13856 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.StatusDetails"}, 13857 } 13858 } 13859 13860 func schema_pkg_apis_meta_v1_StatusCause(ref common.ReferenceCallback) common.OpenAPIDefinition { 13861 return common.OpenAPIDefinition{ 13862 Schema: spec.Schema{ 13863 SchemaProps: spec.SchemaProps{ 13864 Description: "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.", 13865 Type: []string{"object"}, 13866 Properties: map[string]spec.Schema{ 13867 "reason": { 13868 SchemaProps: spec.SchemaProps{ 13869 Description: "A machine-readable description of the cause of the error. If this value is empty there is no information available.", 13870 Type: []string{"string"}, 13871 Format: "", 13872 }, 13873 }, 13874 "message": { 13875 SchemaProps: spec.SchemaProps{ 13876 Description: "A human-readable description of the cause of the error. This field may be presented as-is to a reader.", 13877 Type: []string{"string"}, 13878 Format: "", 13879 }, 13880 }, 13881 "field": { 13882 SchemaProps: spec.SchemaProps{ 13883 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\"", 13884 Type: []string{"string"}, 13885 Format: "", 13886 }, 13887 }, 13888 }, 13889 }, 13890 }, 13891 } 13892 } 13893 13894 func schema_pkg_apis_meta_v1_StatusDetails(ref common.ReferenceCallback) common.OpenAPIDefinition { 13895 return common.OpenAPIDefinition{ 13896 Schema: spec.Schema{ 13897 SchemaProps: spec.SchemaProps{ 13898 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.", 13899 Type: []string{"object"}, 13900 Properties: map[string]spec.Schema{ 13901 "name": { 13902 SchemaProps: spec.SchemaProps{ 13903 Description: "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).", 13904 Type: []string{"string"}, 13905 Format: "", 13906 }, 13907 }, 13908 "group": { 13909 SchemaProps: spec.SchemaProps{ 13910 Description: "The group attribute of the resource associated with the status StatusReason.", 13911 Type: []string{"string"}, 13912 Format: "", 13913 }, 13914 }, 13915 "kind": { 13916 SchemaProps: spec.SchemaProps{ 13917 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", 13918 Type: []string{"string"}, 13919 Format: "", 13920 }, 13921 }, 13922 "uid": { 13923 SchemaProps: spec.SchemaProps{ 13924 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", 13925 Type: []string{"string"}, 13926 Format: "", 13927 }, 13928 }, 13929 "causes": { 13930 SchemaProps: spec.SchemaProps{ 13931 Description: "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.", 13932 Type: []string{"array"}, 13933 Items: &spec.SchemaOrArray{ 13934 Schema: &spec.Schema{ 13935 SchemaProps: spec.SchemaProps{ 13936 Default: map[string]interface{}{}, 13937 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"), 13938 }, 13939 }, 13940 }, 13941 }, 13942 }, 13943 "retryAfterSeconds": { 13944 SchemaProps: spec.SchemaProps{ 13945 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.", 13946 Type: []string{"integer"}, 13947 Format: "int32", 13948 }, 13949 }, 13950 }, 13951 }, 13952 }, 13953 Dependencies: []string{ 13954 "k8s.io/apimachinery/pkg/apis/meta/v1.StatusCause"}, 13955 } 13956 } 13957 13958 func schema_pkg_apis_meta_v1_Table(ref common.ReferenceCallback) common.OpenAPIDefinition { 13959 return common.OpenAPIDefinition{ 13960 Schema: spec.Schema{ 13961 SchemaProps: spec.SchemaProps{ 13962 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.", 13963 Type: []string{"object"}, 13964 Properties: map[string]spec.Schema{ 13965 "kind": { 13966 SchemaProps: spec.SchemaProps{ 13967 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13968 Type: []string{"string"}, 13969 Format: "", 13970 }, 13971 }, 13972 "apiVersion": { 13973 SchemaProps: spec.SchemaProps{ 13974 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 13975 Type: []string{"string"}, 13976 Format: "", 13977 }, 13978 }, 13979 "metadata": { 13980 SchemaProps: spec.SchemaProps{ 13981 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 13982 Default: map[string]interface{}{}, 13983 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 13984 }, 13985 }, 13986 "columnDefinitions": { 13987 SchemaProps: spec.SchemaProps{ 13988 Description: "columnDefinitions describes each column in the returned items array. The number of cells per row will always match the number of column definitions.", 13989 Type: []string{"array"}, 13990 Items: &spec.SchemaOrArray{ 13991 Schema: &spec.Schema{ 13992 SchemaProps: spec.SchemaProps{ 13993 Default: map[string]interface{}{}, 13994 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition"), 13995 }, 13996 }, 13997 }, 13998 }, 13999 }, 14000 "rows": { 14001 SchemaProps: spec.SchemaProps{ 14002 Description: "rows is the list of items in the table.", 14003 Type: []string{"array"}, 14004 Items: &spec.SchemaOrArray{ 14005 Schema: &spec.Schema{ 14006 SchemaProps: spec.SchemaProps{ 14007 Default: map[string]interface{}{}, 14008 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"), 14009 }, 14010 }, 14011 }, 14012 }, 14013 }, 14014 }, 14015 Required: []string{"columnDefinitions", "rows"}, 14016 }, 14017 }, 14018 Dependencies: []string{ 14019 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "k8s.io/apimachinery/pkg/apis/meta/v1.TableColumnDefinition", "k8s.io/apimachinery/pkg/apis/meta/v1.TableRow"}, 14020 } 14021 } 14022 14023 func schema_pkg_apis_meta_v1_TableColumnDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { 14024 return common.OpenAPIDefinition{ 14025 Schema: spec.Schema{ 14026 SchemaProps: spec.SchemaProps{ 14027 Description: "TableColumnDefinition contains information about a column returned in the Table.", 14028 Type: []string{"object"}, 14029 Properties: map[string]spec.Schema{ 14030 "name": { 14031 SchemaProps: spec.SchemaProps{ 14032 Description: "name is a human readable name for the column.", 14033 Default: "", 14034 Type: []string{"string"}, 14035 Format: "", 14036 }, 14037 }, 14038 "type": { 14039 SchemaProps: spec.SchemaProps{ 14040 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.", 14041 Default: "", 14042 Type: []string{"string"}, 14043 Format: "", 14044 }, 14045 }, 14046 "format": { 14047 SchemaProps: spec.SchemaProps{ 14048 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.", 14049 Default: "", 14050 Type: []string{"string"}, 14051 Format: "", 14052 }, 14053 }, 14054 "description": { 14055 SchemaProps: spec.SchemaProps{ 14056 Description: "description is a human readable description of this column.", 14057 Default: "", 14058 Type: []string{"string"}, 14059 Format: "", 14060 }, 14061 }, 14062 "priority": { 14063 SchemaProps: spec.SchemaProps{ 14064 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.", 14065 Default: 0, 14066 Type: []string{"integer"}, 14067 Format: "int32", 14068 }, 14069 }, 14070 }, 14071 Required: []string{"name", "type", "format", "description", "priority"}, 14072 }, 14073 }, 14074 } 14075 } 14076 14077 func schema_pkg_apis_meta_v1_TableOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 14078 return common.OpenAPIDefinition{ 14079 Schema: spec.Schema{ 14080 SchemaProps: spec.SchemaProps{ 14081 Description: "TableOptions are used when a Table is requested by the caller.", 14082 Type: []string{"object"}, 14083 Properties: map[string]spec.Schema{ 14084 "kind": { 14085 SchemaProps: spec.SchemaProps{ 14086 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14087 Type: []string{"string"}, 14088 Format: "", 14089 }, 14090 }, 14091 "apiVersion": { 14092 SchemaProps: spec.SchemaProps{ 14093 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14094 Type: []string{"string"}, 14095 Format: "", 14096 }, 14097 }, 14098 "includeObject": { 14099 SchemaProps: spec.SchemaProps{ 14100 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.", 14101 Type: []string{"string"}, 14102 Format: "", 14103 }, 14104 }, 14105 }, 14106 }, 14107 }, 14108 } 14109 } 14110 14111 func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenAPIDefinition { 14112 return common.OpenAPIDefinition{ 14113 Schema: spec.Schema{ 14114 SchemaProps: spec.SchemaProps{ 14115 Description: "TableRow is an individual row in a table.", 14116 Type: []string{"object"}, 14117 Properties: map[string]spec.Schema{ 14118 "cells": { 14119 SchemaProps: spec.SchemaProps{ 14120 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.", 14121 Type: []string{"array"}, 14122 Items: &spec.SchemaOrArray{ 14123 Schema: &spec.Schema{ 14124 SchemaProps: spec.SchemaProps{ 14125 Type: []string{"object"}, 14126 Format: "", 14127 }, 14128 }, 14129 }, 14130 }, 14131 }, 14132 "conditions": { 14133 SchemaProps: spec.SchemaProps{ 14134 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.", 14135 Type: []string{"array"}, 14136 Items: &spec.SchemaOrArray{ 14137 Schema: &spec.Schema{ 14138 SchemaProps: spec.SchemaProps{ 14139 Default: map[string]interface{}{}, 14140 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition"), 14141 }, 14142 }, 14143 }, 14144 }, 14145 }, 14146 "object": { 14147 SchemaProps: spec.SchemaProps{ 14148 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.", 14149 Default: map[string]interface{}{}, 14150 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 14151 }, 14152 }, 14153 }, 14154 Required: []string{"cells"}, 14155 }, 14156 }, 14157 Dependencies: []string{ 14158 "k8s.io/apimachinery/pkg/apis/meta/v1.TableRowCondition", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 14159 } 14160 } 14161 14162 func schema_pkg_apis_meta_v1_TableRowCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 14163 return common.OpenAPIDefinition{ 14164 Schema: spec.Schema{ 14165 SchemaProps: spec.SchemaProps{ 14166 Description: "TableRowCondition allows a row to be marked with additional information.", 14167 Type: []string{"object"}, 14168 Properties: map[string]spec.Schema{ 14169 "type": { 14170 SchemaProps: spec.SchemaProps{ 14171 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.", 14172 Default: "", 14173 Type: []string{"string"}, 14174 Format: "", 14175 }, 14176 }, 14177 "status": { 14178 SchemaProps: spec.SchemaProps{ 14179 Description: "Status of the condition, one of True, False, Unknown.", 14180 Default: "", 14181 Type: []string{"string"}, 14182 Format: "", 14183 }, 14184 }, 14185 "reason": { 14186 SchemaProps: spec.SchemaProps{ 14187 Description: "(brief) machine readable reason for the condition's last transition.", 14188 Type: []string{"string"}, 14189 Format: "", 14190 }, 14191 }, 14192 "message": { 14193 SchemaProps: spec.SchemaProps{ 14194 Description: "Human readable message indicating details about last transition.", 14195 Type: []string{"string"}, 14196 Format: "", 14197 }, 14198 }, 14199 }, 14200 Required: []string{"type", "status"}, 14201 }, 14202 }, 14203 } 14204 } 14205 14206 func schema_pkg_apis_meta_v1_Time(ref common.ReferenceCallback) common.OpenAPIDefinition { 14207 return common.OpenAPIDefinition{ 14208 Schema: spec.Schema{ 14209 SchemaProps: spec.SchemaProps{ 14210 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.", 14211 Type: v1.Time{}.OpenAPISchemaType(), 14212 Format: v1.Time{}.OpenAPISchemaFormat(), 14213 }, 14214 }, 14215 } 14216 } 14217 14218 func schema_pkg_apis_meta_v1_Timestamp(ref common.ReferenceCallback) common.OpenAPIDefinition { 14219 return common.OpenAPIDefinition{ 14220 Schema: spec.Schema{ 14221 SchemaProps: spec.SchemaProps{ 14222 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.", 14223 Type: []string{"object"}, 14224 Properties: map[string]spec.Schema{ 14225 "seconds": { 14226 SchemaProps: spec.SchemaProps{ 14227 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.", 14228 Default: 0, 14229 Type: []string{"integer"}, 14230 Format: "int64", 14231 }, 14232 }, 14233 "nanos": { 14234 SchemaProps: spec.SchemaProps{ 14235 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.", 14236 Default: 0, 14237 Type: []string{"integer"}, 14238 Format: "int32", 14239 }, 14240 }, 14241 }, 14242 Required: []string{"seconds", "nanos"}, 14243 }, 14244 }, 14245 } 14246 } 14247 14248 func schema_pkg_apis_meta_v1_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 14249 return common.OpenAPIDefinition{ 14250 Schema: spec.Schema{ 14251 SchemaProps: spec.SchemaProps{ 14252 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.", 14253 Type: []string{"object"}, 14254 Properties: map[string]spec.Schema{ 14255 "kind": { 14256 SchemaProps: spec.SchemaProps{ 14257 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14258 Type: []string{"string"}, 14259 Format: "", 14260 }, 14261 }, 14262 "apiVersion": { 14263 SchemaProps: spec.SchemaProps{ 14264 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14265 Type: []string{"string"}, 14266 Format: "", 14267 }, 14268 }, 14269 }, 14270 }, 14271 }, 14272 } 14273 } 14274 14275 func schema_pkg_apis_meta_v1_UpdateOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { 14276 return common.OpenAPIDefinition{ 14277 Schema: spec.Schema{ 14278 SchemaProps: spec.SchemaProps{ 14279 Description: "UpdateOptions may be provided when updating an API object. All fields in UpdateOptions should also be present in PatchOptions.", 14280 Type: []string{"object"}, 14281 Properties: map[string]spec.Schema{ 14282 "kind": { 14283 SchemaProps: spec.SchemaProps{ 14284 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14285 Type: []string{"string"}, 14286 Format: "", 14287 }, 14288 }, 14289 "apiVersion": { 14290 SchemaProps: spec.SchemaProps{ 14291 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14292 Type: []string{"string"}, 14293 Format: "", 14294 }, 14295 }, 14296 "dryRun": { 14297 SchemaProps: spec.SchemaProps{ 14298 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", 14299 Type: []string{"array"}, 14300 Items: &spec.SchemaOrArray{ 14301 Schema: &spec.Schema{ 14302 SchemaProps: spec.SchemaProps{ 14303 Default: "", 14304 Type: []string{"string"}, 14305 Format: "", 14306 }, 14307 }, 14308 }, 14309 }, 14310 }, 14311 "fieldManager": { 14312 SchemaProps: spec.SchemaProps{ 14313 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.", 14314 Type: []string{"string"}, 14315 Format: "", 14316 }, 14317 }, 14318 "fieldValidation": { 14319 SchemaProps: spec.SchemaProps{ 14320 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.", 14321 Type: []string{"string"}, 14322 Format: "", 14323 }, 14324 }, 14325 }, 14326 }, 14327 }, 14328 } 14329 } 14330 14331 func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { 14332 return common.OpenAPIDefinition{ 14333 Schema: spec.Schema{ 14334 SchemaProps: spec.SchemaProps{ 14335 Description: "Event represents a single event to a watched resource.", 14336 Type: []string{"object"}, 14337 Properties: map[string]spec.Schema{ 14338 "type": { 14339 SchemaProps: spec.SchemaProps{ 14340 Default: "", 14341 Type: []string{"string"}, 14342 Format: "", 14343 }, 14344 }, 14345 "object": { 14346 SchemaProps: spec.SchemaProps{ 14347 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.", 14348 Default: map[string]interface{}{}, 14349 Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), 14350 }, 14351 }, 14352 }, 14353 Required: []string{"type", "object"}, 14354 }, 14355 }, 14356 Dependencies: []string{ 14357 "k8s.io/apimachinery/pkg/runtime.RawExtension"}, 14358 } 14359 } 14360 14361 func schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref common.ReferenceCallback) common.OpenAPIDefinition { 14362 return common.OpenAPIDefinition{ 14363 Schema: spec.Schema{ 14364 SchemaProps: spec.SchemaProps{ 14365 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.)", 14366 Type: []string{"object"}, 14367 }, 14368 }, 14369 } 14370 } 14371 14372 func schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { 14373 return common.OpenAPIDefinition{ 14374 Schema: spec.Schema{ 14375 SchemaProps: spec.SchemaProps{ 14376 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.", 14377 Type: []string{"object"}, 14378 Properties: map[string]spec.Schema{ 14379 "apiVersion": { 14380 SchemaProps: spec.SchemaProps{ 14381 Type: []string{"string"}, 14382 Format: "", 14383 }, 14384 }, 14385 "kind": { 14386 SchemaProps: spec.SchemaProps{ 14387 Type: []string{"string"}, 14388 Format: "", 14389 }, 14390 }, 14391 }, 14392 }, 14393 }, 14394 } 14395 } 14396 14397 func schema_k8sio_apimachinery_pkg_runtime_Unknown(ref common.ReferenceCallback) common.OpenAPIDefinition { 14398 return common.OpenAPIDefinition{ 14399 Schema: spec.Schema{ 14400 SchemaProps: spec.SchemaProps{ 14401 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.", 14402 Type: []string{"object"}, 14403 Properties: map[string]spec.Schema{ 14404 "apiVersion": { 14405 SchemaProps: spec.SchemaProps{ 14406 Type: []string{"string"}, 14407 Format: "", 14408 }, 14409 }, 14410 "kind": { 14411 SchemaProps: spec.SchemaProps{ 14412 Type: []string{"string"}, 14413 Format: "", 14414 }, 14415 }, 14416 "Raw": { 14417 SchemaProps: spec.SchemaProps{ 14418 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.", 14419 Type: []string{"string"}, 14420 Format: "byte", 14421 }, 14422 }, 14423 "ContentEncoding": { 14424 SchemaProps: spec.SchemaProps{ 14425 Description: "ContentEncoding is encoding used to encode 'Raw' data. Unspecified means no encoding.", 14426 Default: "", 14427 Type: []string{"string"}, 14428 Format: "", 14429 }, 14430 }, 14431 "ContentType": { 14432 SchemaProps: spec.SchemaProps{ 14433 Description: "ContentType is serialization method used to serialize 'Raw'. Unspecified means ContentTypeJSON.", 14434 Default: "", 14435 Type: []string{"string"}, 14436 Format: "", 14437 }, 14438 }, 14439 }, 14440 Required: []string{"Raw", "ContentEncoding", "ContentType"}, 14441 }, 14442 }, 14443 } 14444 } 14445 14446 func schema_kubesphereio_api_devops_v1alpha1_AuthConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 14447 return common.OpenAPIDefinition{ 14448 Schema: spec.Schema{ 14449 SchemaProps: spec.SchemaProps{ 14450 Description: "AuthConfig is our abstraction of the Registry authorization information for whatever docker client we happen to be based on", 14451 Type: []string{"object"}, 14452 Properties: map[string]spec.Schema{ 14453 "username": { 14454 SchemaProps: spec.SchemaProps{ 14455 Type: []string{"string"}, 14456 Format: "", 14457 }, 14458 }, 14459 "password": { 14460 SchemaProps: spec.SchemaProps{ 14461 Type: []string{"string"}, 14462 Format: "", 14463 }, 14464 }, 14465 "email": { 14466 SchemaProps: spec.SchemaProps{ 14467 Type: []string{"string"}, 14468 Format: "", 14469 }, 14470 }, 14471 "serverAddress": { 14472 SchemaProps: spec.SchemaProps{ 14473 Type: []string{"string"}, 14474 Format: "", 14475 }, 14476 }, 14477 "secretRef": { 14478 SchemaProps: spec.SchemaProps{ 14479 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 14480 }, 14481 }, 14482 }, 14483 }, 14484 }, 14485 Dependencies: []string{ 14486 "k8s.io/api/core/v1.LocalObjectReference"}, 14487 } 14488 } 14489 14490 func schema_kubesphereio_api_devops_v1alpha1_CGroupLimits(ref common.ReferenceCallback) common.OpenAPIDefinition { 14491 return common.OpenAPIDefinition{ 14492 Schema: spec.Schema{ 14493 SchemaProps: spec.SchemaProps{ 14494 Description: "CGroupLimits holds limits used to constrain container resources.", 14495 Type: []string{"object"}, 14496 Properties: map[string]spec.Schema{ 14497 "memoryLimitBytes": { 14498 SchemaProps: spec.SchemaProps{ 14499 Default: 0, 14500 Type: []string{"integer"}, 14501 Format: "int64", 14502 }, 14503 }, 14504 "cpuShares": { 14505 SchemaProps: spec.SchemaProps{ 14506 Default: 0, 14507 Type: []string{"integer"}, 14508 Format: "int64", 14509 }, 14510 }, 14511 "cpuPeriod": { 14512 SchemaProps: spec.SchemaProps{ 14513 Default: 0, 14514 Type: []string{"integer"}, 14515 Format: "int64", 14516 }, 14517 }, 14518 "cpuQuota": { 14519 SchemaProps: spec.SchemaProps{ 14520 Default: 0, 14521 Type: []string{"integer"}, 14522 Format: "int64", 14523 }, 14524 }, 14525 "memorySwap": { 14526 SchemaProps: spec.SchemaProps{ 14527 Default: 0, 14528 Type: []string{"integer"}, 14529 Format: "int64", 14530 }, 14531 }, 14532 "parent": { 14533 SchemaProps: spec.SchemaProps{ 14534 Default: "", 14535 Type: []string{"string"}, 14536 Format: "", 14537 }, 14538 }, 14539 }, 14540 Required: []string{"memoryLimitBytes", "cpuShares", "cpuPeriod", "cpuQuota", "memorySwap", "parent"}, 14541 }, 14542 }, 14543 } 14544 } 14545 14546 func schema_kubesphereio_api_devops_v1alpha1_ContainerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 14547 return common.OpenAPIDefinition{ 14548 Schema: spec.Schema{ 14549 SchemaProps: spec.SchemaProps{ 14550 Description: "ContainerConfig is the abstraction of the docker client provider (formerly go-dockerclient, now either engine-api or kube docker client) container.Config type that is leveraged by s2i or origin", 14551 Type: []string{"object"}, 14552 Properties: map[string]spec.Schema{ 14553 "Labels": { 14554 SchemaProps: spec.SchemaProps{ 14555 Type: []string{"object"}, 14556 AdditionalProperties: &spec.SchemaOrBool{ 14557 Allows: true, 14558 Schema: &spec.Schema{ 14559 SchemaProps: spec.SchemaProps{ 14560 Default: "", 14561 Type: []string{"string"}, 14562 Format: "", 14563 }, 14564 }, 14565 }, 14566 }, 14567 }, 14568 "Env": { 14569 SchemaProps: spec.SchemaProps{ 14570 Type: []string{"array"}, 14571 Items: &spec.SchemaOrArray{ 14572 Schema: &spec.Schema{ 14573 SchemaProps: spec.SchemaProps{ 14574 Default: "", 14575 Type: []string{"string"}, 14576 Format: "", 14577 }, 14578 }, 14579 }, 14580 }, 14581 }, 14582 }, 14583 Required: []string{"Labels", "Env"}, 14584 }, 14585 }, 14586 } 14587 } 14588 14589 func schema_kubesphereio_api_devops_v1alpha1_ContainerInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { 14590 return common.OpenAPIDefinition{ 14591 Schema: spec.Schema{ 14592 SchemaProps: spec.SchemaProps{ 14593 Type: []string{"object"}, 14594 Properties: map[string]spec.Schema{ 14595 "builderImage": { 14596 SchemaProps: spec.SchemaProps{ 14597 Description: "BaseImage are the images this template will use.", 14598 Type: []string{"string"}, 14599 Format: "", 14600 }, 14601 }, 14602 "runtimeImage": { 14603 SchemaProps: spec.SchemaProps{ 14604 Type: []string{"string"}, 14605 Format: "", 14606 }, 14607 }, 14608 "runtimeArtifacts": { 14609 SchemaProps: spec.SchemaProps{ 14610 Type: []string{"array"}, 14611 Items: &spec.SchemaOrArray{ 14612 Schema: &spec.Schema{ 14613 SchemaProps: spec.SchemaProps{ 14614 Default: map[string]interface{}{}, 14615 Ref: ref("kubesphere.io/api/devops/v1alpha1.VolumeSpec"), 14616 }, 14617 }, 14618 }, 14619 }, 14620 }, 14621 "buildVolumes": { 14622 SchemaProps: spec.SchemaProps{ 14623 Description: "BuildVolumes specifies a list of volumes to mount to container running the build.", 14624 Type: []string{"array"}, 14625 Items: &spec.SchemaOrArray{ 14626 Schema: &spec.Schema{ 14627 SchemaProps: spec.SchemaProps{ 14628 Default: "", 14629 Type: []string{"string"}, 14630 Format: "", 14631 }, 14632 }, 14633 }, 14634 }, 14635 }, 14636 }, 14637 }, 14638 }, 14639 Dependencies: []string{ 14640 "kubesphere.io/api/devops/v1alpha1.VolumeSpec"}, 14641 } 14642 } 14643 14644 func schema_kubesphereio_api_devops_v1alpha1_DockerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 14645 return common.OpenAPIDefinition{ 14646 Schema: spec.Schema{ 14647 SchemaProps: spec.SchemaProps{ 14648 Description: "DockerConfig contains the configuration for a Docker connection.", 14649 Type: []string{"object"}, 14650 Properties: map[string]spec.Schema{ 14651 "endPoint": { 14652 SchemaProps: spec.SchemaProps{ 14653 Description: "Endpoint is the docker network endpoint or socket", 14654 Default: "", 14655 Type: []string{"string"}, 14656 Format: "", 14657 }, 14658 }, 14659 "certFile": { 14660 SchemaProps: spec.SchemaProps{ 14661 Description: "CertFile is the certificate file path for a TLS connection", 14662 Default: "", 14663 Type: []string{"string"}, 14664 Format: "", 14665 }, 14666 }, 14667 "keyFile": { 14668 SchemaProps: spec.SchemaProps{ 14669 Description: "KeyFile is the key file path for a TLS connection", 14670 Default: "", 14671 Type: []string{"string"}, 14672 Format: "", 14673 }, 14674 }, 14675 "caFile": { 14676 SchemaProps: spec.SchemaProps{ 14677 Description: "CAFile is the certificate authority file path for a TLS connection", 14678 Default: "", 14679 Type: []string{"string"}, 14680 Format: "", 14681 }, 14682 }, 14683 "useTLS": { 14684 SchemaProps: spec.SchemaProps{ 14685 Description: "UseTLS indicates if TLS must be used", 14686 Default: false, 14687 Type: []string{"boolean"}, 14688 Format: "", 14689 }, 14690 }, 14691 "tlsVerify": { 14692 SchemaProps: spec.SchemaProps{ 14693 Description: "TLSVerify indicates if TLS peer must be verified", 14694 Default: false, 14695 Type: []string{"boolean"}, 14696 Format: "", 14697 }, 14698 }, 14699 }, 14700 Required: []string{"endPoint", "certFile", "keyFile", "caFile", "useTLS", "tlsVerify"}, 14701 }, 14702 }, 14703 } 14704 } 14705 14706 func schema_kubesphereio_api_devops_v1alpha1_DockerConfigEntry(ref common.ReferenceCallback) common.OpenAPIDefinition { 14707 return common.OpenAPIDefinition{ 14708 Schema: spec.Schema{ 14709 SchemaProps: spec.SchemaProps{ 14710 Type: []string{"object"}, 14711 Properties: map[string]spec.Schema{ 14712 "username": { 14713 SchemaProps: spec.SchemaProps{ 14714 Default: "", 14715 Type: []string{"string"}, 14716 Format: "", 14717 }, 14718 }, 14719 "password": { 14720 SchemaProps: spec.SchemaProps{ 14721 Default: "", 14722 Type: []string{"string"}, 14723 Format: "", 14724 }, 14725 }, 14726 "email": { 14727 SchemaProps: spec.SchemaProps{ 14728 Default: "", 14729 Type: []string{"string"}, 14730 Format: "", 14731 }, 14732 }, 14733 "serverAddress": { 14734 SchemaProps: spec.SchemaProps{ 14735 Type: []string{"string"}, 14736 Format: "", 14737 }, 14738 }, 14739 }, 14740 Required: []string{"username", "password", "email"}, 14741 }, 14742 }, 14743 } 14744 } 14745 14746 func schema_kubesphereio_api_devops_v1alpha1_DockerConfigJson(ref common.ReferenceCallback) common.OpenAPIDefinition { 14747 return common.OpenAPIDefinition{ 14748 Schema: spec.Schema{ 14749 SchemaProps: spec.SchemaProps{ 14750 Type: []string{"object"}, 14751 Properties: map[string]spec.Schema{ 14752 "auths": { 14753 SchemaProps: spec.SchemaProps{ 14754 Type: []string{"object"}, 14755 AdditionalProperties: &spec.SchemaOrBool{ 14756 Allows: true, 14757 Schema: &spec.Schema{ 14758 SchemaProps: spec.SchemaProps{ 14759 Default: map[string]interface{}{}, 14760 Ref: ref("kubesphere.io/api/devops/v1alpha1.DockerConfigEntry"), 14761 }, 14762 }, 14763 }, 14764 }, 14765 }, 14766 }, 14767 Required: []string{"auths"}, 14768 }, 14769 }, 14770 Dependencies: []string{ 14771 "kubesphere.io/api/devops/v1alpha1.DockerConfigEntry"}, 14772 } 14773 } 14774 14775 func schema_kubesphereio_api_devops_v1alpha1_EnvironmentSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 14776 return common.OpenAPIDefinition{ 14777 Schema: spec.Schema{ 14778 SchemaProps: spec.SchemaProps{ 14779 Description: "EnvironmentSpec specifies a single environment variable.", 14780 Type: []string{"object"}, 14781 Properties: map[string]spec.Schema{ 14782 "name": { 14783 SchemaProps: spec.SchemaProps{ 14784 Default: "", 14785 Type: []string{"string"}, 14786 Format: "", 14787 }, 14788 }, 14789 "value": { 14790 SchemaProps: spec.SchemaProps{ 14791 Default: "", 14792 Type: []string{"string"}, 14793 Format: "", 14794 }, 14795 }, 14796 }, 14797 Required: []string{"name", "value"}, 14798 }, 14799 }, 14800 } 14801 } 14802 14803 func schema_kubesphereio_api_devops_v1alpha1_Parameter(ref common.ReferenceCallback) common.OpenAPIDefinition { 14804 return common.OpenAPIDefinition{ 14805 Schema: spec.Schema{ 14806 SchemaProps: spec.SchemaProps{ 14807 Type: []string{"object"}, 14808 Properties: map[string]spec.Schema{ 14809 "description": { 14810 SchemaProps: spec.SchemaProps{ 14811 Type: []string{"string"}, 14812 Format: "", 14813 }, 14814 }, 14815 "key": { 14816 SchemaProps: spec.SchemaProps{ 14817 Type: []string{"string"}, 14818 Format: "", 14819 }, 14820 }, 14821 "type": { 14822 SchemaProps: spec.SchemaProps{ 14823 Type: []string{"string"}, 14824 Format: "", 14825 }, 14826 }, 14827 "optValues": { 14828 SchemaProps: spec.SchemaProps{ 14829 Type: []string{"array"}, 14830 Items: &spec.SchemaOrArray{ 14831 Schema: &spec.Schema{ 14832 SchemaProps: spec.SchemaProps{ 14833 Default: "", 14834 Type: []string{"string"}, 14835 Format: "", 14836 }, 14837 }, 14838 }, 14839 }, 14840 }, 14841 "required": { 14842 SchemaProps: spec.SchemaProps{ 14843 Type: []string{"boolean"}, 14844 Format: "", 14845 }, 14846 }, 14847 "defaultValue": { 14848 SchemaProps: spec.SchemaProps{ 14849 Type: []string{"string"}, 14850 Format: "", 14851 }, 14852 }, 14853 "value": { 14854 SchemaProps: spec.SchemaProps{ 14855 Type: []string{"string"}, 14856 Format: "", 14857 }, 14858 }, 14859 }, 14860 }, 14861 }, 14862 } 14863 } 14864 14865 func schema_kubesphereio_api_devops_v1alpha1_ProxyConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 14866 return common.OpenAPIDefinition{ 14867 Schema: spec.Schema{ 14868 SchemaProps: spec.SchemaProps{ 14869 Description: "ProxyConfig holds proxy configuration.", 14870 Type: []string{"object"}, 14871 Properties: map[string]spec.Schema{ 14872 "httpProxy": { 14873 SchemaProps: spec.SchemaProps{ 14874 Type: []string{"string"}, 14875 Format: "", 14876 }, 14877 }, 14878 "httpsProxy": { 14879 SchemaProps: spec.SchemaProps{ 14880 Type: []string{"string"}, 14881 Format: "", 14882 }, 14883 }, 14884 }, 14885 }, 14886 }, 14887 } 14888 } 14889 14890 func schema_kubesphereio_api_devops_v1alpha1_S2iAutoScale(ref common.ReferenceCallback) common.OpenAPIDefinition { 14891 return common.OpenAPIDefinition{ 14892 Schema: spec.Schema{ 14893 SchemaProps: spec.SchemaProps{ 14894 Type: []string{"object"}, 14895 Properties: map[string]spec.Schema{ 14896 "kind": { 14897 SchemaProps: spec.SchemaProps{ 14898 Default: "", 14899 Type: []string{"string"}, 14900 Format: "", 14901 }, 14902 }, 14903 "name": { 14904 SchemaProps: spec.SchemaProps{ 14905 Default: "", 14906 Type: []string{"string"}, 14907 Format: "", 14908 }, 14909 }, 14910 "initReplicas": { 14911 SchemaProps: spec.SchemaProps{ 14912 Type: []string{"integer"}, 14913 Format: "int32", 14914 }, 14915 }, 14916 "containers": { 14917 SchemaProps: spec.SchemaProps{ 14918 Type: []string{"array"}, 14919 Items: &spec.SchemaOrArray{ 14920 Schema: &spec.Schema{ 14921 SchemaProps: spec.SchemaProps{ 14922 Default: "", 14923 Type: []string{"string"}, 14924 Format: "", 14925 }, 14926 }, 14927 }, 14928 }, 14929 }, 14930 }, 14931 Required: []string{"kind", "name"}, 14932 }, 14933 }, 14934 } 14935 } 14936 14937 func schema_kubesphereio_api_devops_v1alpha1_S2iBinary(ref common.ReferenceCallback) common.OpenAPIDefinition { 14938 return common.OpenAPIDefinition{ 14939 Schema: spec.Schema{ 14940 SchemaProps: spec.SchemaProps{ 14941 Description: "S2iBinary is the Schema for the s2ibinaries API", 14942 Type: []string{"object"}, 14943 Properties: map[string]spec.Schema{ 14944 "kind": { 14945 SchemaProps: spec.SchemaProps{ 14946 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14947 Type: []string{"string"}, 14948 Format: "", 14949 }, 14950 }, 14951 "apiVersion": { 14952 SchemaProps: spec.SchemaProps{ 14953 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 14954 Type: []string{"string"}, 14955 Format: "", 14956 }, 14957 }, 14958 "metadata": { 14959 SchemaProps: spec.SchemaProps{ 14960 Default: map[string]interface{}{}, 14961 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 14962 }, 14963 }, 14964 "spec": { 14965 SchemaProps: spec.SchemaProps{ 14966 Default: map[string]interface{}{}, 14967 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iBinarySpec"), 14968 }, 14969 }, 14970 "status": { 14971 SchemaProps: spec.SchemaProps{ 14972 Default: map[string]interface{}{}, 14973 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iBinaryStatus"), 14974 }, 14975 }, 14976 }, 14977 }, 14978 }, 14979 Dependencies: []string{ 14980 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/devops/v1alpha1.S2iBinarySpec", "kubesphere.io/api/devops/v1alpha1.S2iBinaryStatus"}, 14981 } 14982 } 14983 14984 func schema_kubesphereio_api_devops_v1alpha1_S2iBinaryList(ref common.ReferenceCallback) common.OpenAPIDefinition { 14985 return common.OpenAPIDefinition{ 14986 Schema: spec.Schema{ 14987 SchemaProps: spec.SchemaProps{ 14988 Description: "S2iBinaryList contains a list of S2iBinary", 14989 Type: []string{"object"}, 14990 Properties: map[string]spec.Schema{ 14991 "kind": { 14992 SchemaProps: spec.SchemaProps{ 14993 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 14994 Type: []string{"string"}, 14995 Format: "", 14996 }, 14997 }, 14998 "apiVersion": { 14999 SchemaProps: spec.SchemaProps{ 15000 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15001 Type: []string{"string"}, 15002 Format: "", 15003 }, 15004 }, 15005 "metadata": { 15006 SchemaProps: spec.SchemaProps{ 15007 Default: map[string]interface{}{}, 15008 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 15009 }, 15010 }, 15011 "items": { 15012 SchemaProps: spec.SchemaProps{ 15013 Type: []string{"array"}, 15014 Items: &spec.SchemaOrArray{ 15015 Schema: &spec.Schema{ 15016 SchemaProps: spec.SchemaProps{ 15017 Default: map[string]interface{}{}, 15018 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iBinary"), 15019 }, 15020 }, 15021 }, 15022 }, 15023 }, 15024 }, 15025 Required: []string{"items"}, 15026 }, 15027 }, 15028 Dependencies: []string{ 15029 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/devops/v1alpha1.S2iBinary"}, 15030 } 15031 } 15032 15033 func schema_kubesphereio_api_devops_v1alpha1_S2iBinarySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 15034 return common.OpenAPIDefinition{ 15035 Schema: spec.Schema{ 15036 SchemaProps: spec.SchemaProps{ 15037 Description: "S2iBinarySpec defines the desired state of S2iBinary", 15038 Type: []string{"object"}, 15039 Properties: map[string]spec.Schema{ 15040 "fileName": { 15041 SchemaProps: spec.SchemaProps{ 15042 Description: "FileName is filename of binary", 15043 Type: []string{"string"}, 15044 Format: "", 15045 }, 15046 }, 15047 "md5": { 15048 SchemaProps: spec.SchemaProps{ 15049 Description: "MD5 is Binary's MD5 Hash", 15050 Type: []string{"string"}, 15051 Format: "", 15052 }, 15053 }, 15054 "size": { 15055 SchemaProps: spec.SchemaProps{ 15056 Description: "Size is the file size of file", 15057 Type: []string{"string"}, 15058 Format: "", 15059 }, 15060 }, 15061 "downloadURL": { 15062 SchemaProps: spec.SchemaProps{ 15063 Description: "DownloadURL in KubeSphere", 15064 Type: []string{"string"}, 15065 Format: "", 15066 }, 15067 }, 15068 "uploadTimeStamp": { 15069 SchemaProps: spec.SchemaProps{ 15070 Description: "UploadTime is last upload time", 15071 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 15072 }, 15073 }, 15074 }, 15075 }, 15076 }, 15077 Dependencies: []string{ 15078 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 15079 } 15080 } 15081 15082 func schema_kubesphereio_api_devops_v1alpha1_S2iBinaryStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 15083 return common.OpenAPIDefinition{ 15084 Schema: spec.Schema{ 15085 SchemaProps: spec.SchemaProps{ 15086 Description: "S2iBinaryStatus defines the observed state of S2iBinary", 15087 Type: []string{"object"}, 15088 Properties: map[string]spec.Schema{ 15089 "phase": { 15090 SchemaProps: spec.SchemaProps{ 15091 Description: "Phase is status of S2iBinary . Possible value is \"Ready\",\"UnableToDownload\"", 15092 Type: []string{"string"}, 15093 Format: "", 15094 }, 15095 }, 15096 }, 15097 }, 15098 }, 15099 } 15100 } 15101 15102 func schema_kubesphereio_api_devops_v1alpha1_S2iBuildResult(ref common.ReferenceCallback) common.OpenAPIDefinition { 15103 return common.OpenAPIDefinition{ 15104 Schema: spec.Schema{ 15105 SchemaProps: spec.SchemaProps{ 15106 Type: []string{"object"}, 15107 Properties: map[string]spec.Schema{ 15108 "imageName": { 15109 SchemaProps: spec.SchemaProps{ 15110 Description: "ImageName is the name of artifact", 15111 Type: []string{"string"}, 15112 Format: "", 15113 }, 15114 }, 15115 "imageSize": { 15116 SchemaProps: spec.SchemaProps{ 15117 Description: "The size in bytes of the image", 15118 Type: []string{"integer"}, 15119 Format: "int64", 15120 }, 15121 }, 15122 "imageID": { 15123 SchemaProps: spec.SchemaProps{ 15124 Description: "Image ID.", 15125 Type: []string{"string"}, 15126 Format: "", 15127 }, 15128 }, 15129 "imageCreated": { 15130 SchemaProps: spec.SchemaProps{ 15131 Description: "Image created time.", 15132 Type: []string{"string"}, 15133 Format: "", 15134 }, 15135 }, 15136 "imageRepoTags": { 15137 SchemaProps: spec.SchemaProps{ 15138 Description: "image tags.", 15139 Type: []string{"array"}, 15140 Items: &spec.SchemaOrArray{ 15141 Schema: &spec.Schema{ 15142 SchemaProps: spec.SchemaProps{ 15143 Default: "", 15144 Type: []string{"string"}, 15145 Format: "", 15146 }, 15147 }, 15148 }, 15149 }, 15150 }, 15151 "commandPull": { 15152 SchemaProps: spec.SchemaProps{ 15153 Description: "Command for pull image.", 15154 Type: []string{"string"}, 15155 Format: "", 15156 }, 15157 }, 15158 }, 15159 }, 15160 }, 15161 } 15162 } 15163 15164 func schema_kubesphereio_api_devops_v1alpha1_S2iBuildSource(ref common.ReferenceCallback) common.OpenAPIDefinition { 15165 return common.OpenAPIDefinition{ 15166 Schema: spec.Schema{ 15167 SchemaProps: spec.SchemaProps{ 15168 Type: []string{"object"}, 15169 Properties: map[string]spec.Schema{ 15170 "sourceUrl": { 15171 SchemaProps: spec.SchemaProps{ 15172 Description: "SourceURL is url of the codes such as https://github.com/a/b.git", 15173 Type: []string{"string"}, 15174 Format: "", 15175 }, 15176 }, 15177 "revisionId": { 15178 SchemaProps: spec.SchemaProps{ 15179 Description: "The RevisionId is a branch name or a SHA-1 hash of every important thing about the commit", 15180 Type: []string{"string"}, 15181 Format: "", 15182 }, 15183 }, 15184 "binaryName": { 15185 SchemaProps: spec.SchemaProps{ 15186 Description: "Binary file Name", 15187 Type: []string{"string"}, 15188 Format: "", 15189 }, 15190 }, 15191 "binarySize": { 15192 SchemaProps: spec.SchemaProps{ 15193 Description: "Binary file Size", 15194 Type: []string{"integer"}, 15195 Format: "int64", 15196 }, 15197 }, 15198 "builderImage": { 15199 SchemaProps: spec.SchemaProps{ 15200 Description: "// BuilderImage describes which image is used for building the result images.", 15201 Type: []string{"string"}, 15202 Format: "", 15203 }, 15204 }, 15205 "description": { 15206 SchemaProps: spec.SchemaProps{ 15207 Description: "Description is a result image description label. The default is no description.", 15208 Type: []string{"string"}, 15209 Format: "", 15210 }, 15211 }, 15212 "commitID": { 15213 SchemaProps: spec.SchemaProps{ 15214 Description: "CommitID represents an arbitrary extended object reference in Git as SHA-1", 15215 Type: []string{"string"}, 15216 Format: "", 15217 }, 15218 }, 15219 "committerName": { 15220 SchemaProps: spec.SchemaProps{ 15221 Description: "CommitterName contains the name of the committer", 15222 Type: []string{"string"}, 15223 Format: "", 15224 }, 15225 }, 15226 "committerEmail": { 15227 SchemaProps: spec.SchemaProps{ 15228 Description: "CommitterEmail contains the e-mail of the committer", 15229 Type: []string{"string"}, 15230 Format: "", 15231 }, 15232 }, 15233 }, 15234 }, 15235 }, 15236 } 15237 } 15238 15239 func schema_kubesphereio_api_devops_v1alpha1_S2iBuilder(ref common.ReferenceCallback) common.OpenAPIDefinition { 15240 return common.OpenAPIDefinition{ 15241 Schema: spec.Schema{ 15242 SchemaProps: spec.SchemaProps{ 15243 Description: "S2iBuilder is the Schema for the s2ibuilders API", 15244 Type: []string{"object"}, 15245 Properties: map[string]spec.Schema{ 15246 "kind": { 15247 SchemaProps: spec.SchemaProps{ 15248 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15249 Type: []string{"string"}, 15250 Format: "", 15251 }, 15252 }, 15253 "apiVersion": { 15254 SchemaProps: spec.SchemaProps{ 15255 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15256 Type: []string{"string"}, 15257 Format: "", 15258 }, 15259 }, 15260 "metadata": { 15261 SchemaProps: spec.SchemaProps{ 15262 Default: map[string]interface{}{}, 15263 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 15264 }, 15265 }, 15266 "spec": { 15267 SchemaProps: spec.SchemaProps{ 15268 Default: map[string]interface{}{}, 15269 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iBuilderSpec"), 15270 }, 15271 }, 15272 "status": { 15273 SchemaProps: spec.SchemaProps{ 15274 Default: map[string]interface{}{}, 15275 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iBuilderStatus"), 15276 }, 15277 }, 15278 }, 15279 }, 15280 }, 15281 Dependencies: []string{ 15282 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/devops/v1alpha1.S2iBuilderSpec", "kubesphere.io/api/devops/v1alpha1.S2iBuilderStatus"}, 15283 } 15284 } 15285 15286 func schema_kubesphereio_api_devops_v1alpha1_S2iBuilderList(ref common.ReferenceCallback) common.OpenAPIDefinition { 15287 return common.OpenAPIDefinition{ 15288 Schema: spec.Schema{ 15289 SchemaProps: spec.SchemaProps{ 15290 Description: "S2iBuilderList contains a list of S2iBuilder", 15291 Type: []string{"object"}, 15292 Properties: map[string]spec.Schema{ 15293 "kind": { 15294 SchemaProps: spec.SchemaProps{ 15295 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15296 Type: []string{"string"}, 15297 Format: "", 15298 }, 15299 }, 15300 "apiVersion": { 15301 SchemaProps: spec.SchemaProps{ 15302 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15303 Type: []string{"string"}, 15304 Format: "", 15305 }, 15306 }, 15307 "metadata": { 15308 SchemaProps: spec.SchemaProps{ 15309 Default: map[string]interface{}{}, 15310 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 15311 }, 15312 }, 15313 "items": { 15314 SchemaProps: spec.SchemaProps{ 15315 Type: []string{"array"}, 15316 Items: &spec.SchemaOrArray{ 15317 Schema: &spec.Schema{ 15318 SchemaProps: spec.SchemaProps{ 15319 Default: map[string]interface{}{}, 15320 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iBuilder"), 15321 }, 15322 }, 15323 }, 15324 }, 15325 }, 15326 }, 15327 Required: []string{"items"}, 15328 }, 15329 }, 15330 Dependencies: []string{ 15331 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/devops/v1alpha1.S2iBuilder"}, 15332 } 15333 } 15334 15335 func schema_kubesphereio_api_devops_v1alpha1_S2iBuilderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 15336 return common.OpenAPIDefinition{ 15337 Schema: spec.Schema{ 15338 SchemaProps: spec.SchemaProps{ 15339 Description: "S2iBuilderSpec defines the desired state of S2iBuilder", 15340 Type: []string{"object"}, 15341 Properties: map[string]spec.Schema{ 15342 "config": { 15343 SchemaProps: spec.SchemaProps{ 15344 Description: "INSERT ADDITIONAL SPEC FIELDS - desired state of cluster Important: Run \"make\" to regenerate code after modifying this file", 15345 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iConfig"), 15346 }, 15347 }, 15348 "fromTemplate": { 15349 SchemaProps: spec.SchemaProps{ 15350 Description: "FromTemplate define some inputs from user", 15351 Ref: ref("kubesphere.io/api/devops/v1alpha1.UserDefineTemplate"), 15352 }, 15353 }, 15354 }, 15355 }, 15356 }, 15357 Dependencies: []string{ 15358 "kubesphere.io/api/devops/v1alpha1.S2iConfig", "kubesphere.io/api/devops/v1alpha1.UserDefineTemplate"}, 15359 } 15360 } 15361 15362 func schema_kubesphereio_api_devops_v1alpha1_S2iBuilderStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 15363 return common.OpenAPIDefinition{ 15364 Schema: spec.Schema{ 15365 SchemaProps: spec.SchemaProps{ 15366 Description: "S2iBuilderStatus defines the observed state of S2iBuilder", 15367 Type: []string{"object"}, 15368 Properties: map[string]spec.Schema{ 15369 "runCount": { 15370 SchemaProps: spec.SchemaProps{ 15371 Description: "RunCount represent the sum of s2irun of this builder", 15372 Default: 0, 15373 Type: []string{"integer"}, 15374 Format: "int32", 15375 }, 15376 }, 15377 "lastRunState": { 15378 SchemaProps: spec.SchemaProps{ 15379 Description: "LastRunState return the state of the newest run of this builder", 15380 Type: []string{"string"}, 15381 Format: "", 15382 }, 15383 }, 15384 "lastRunName": { 15385 SchemaProps: spec.SchemaProps{ 15386 Description: "LastRunState return the name of the newest run of this builder", 15387 Type: []string{"string"}, 15388 Format: "", 15389 }, 15390 }, 15391 "lastRunStartTime": { 15392 SchemaProps: spec.SchemaProps{ 15393 Description: "LastRunStartTime return the startTime of the newest run of this builder", 15394 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 15395 }, 15396 }, 15397 }, 15398 Required: []string{"runCount"}, 15399 }, 15400 }, 15401 Dependencies: []string{ 15402 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 15403 } 15404 } 15405 15406 func schema_kubesphereio_api_devops_v1alpha1_S2iBuilderTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 15407 return common.OpenAPIDefinition{ 15408 Schema: spec.Schema{ 15409 SchemaProps: spec.SchemaProps{ 15410 Description: "S2iBuilderTemplate is the Schema for the s2ibuildertemplates API", 15411 Type: []string{"object"}, 15412 Properties: map[string]spec.Schema{ 15413 "kind": { 15414 SchemaProps: spec.SchemaProps{ 15415 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15416 Type: []string{"string"}, 15417 Format: "", 15418 }, 15419 }, 15420 "apiVersion": { 15421 SchemaProps: spec.SchemaProps{ 15422 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15423 Type: []string{"string"}, 15424 Format: "", 15425 }, 15426 }, 15427 "metadata": { 15428 SchemaProps: spec.SchemaProps{ 15429 Default: map[string]interface{}{}, 15430 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 15431 }, 15432 }, 15433 "spec": { 15434 SchemaProps: spec.SchemaProps{ 15435 Default: map[string]interface{}{}, 15436 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iBuilderTemplateSpec"), 15437 }, 15438 }, 15439 "status": { 15440 SchemaProps: spec.SchemaProps{ 15441 Default: map[string]interface{}{}, 15442 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iBuilderTemplateStatus"), 15443 }, 15444 }, 15445 }, 15446 }, 15447 }, 15448 Dependencies: []string{ 15449 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/devops/v1alpha1.S2iBuilderTemplateSpec", "kubesphere.io/api/devops/v1alpha1.S2iBuilderTemplateStatus"}, 15450 } 15451 } 15452 15453 func schema_kubesphereio_api_devops_v1alpha1_S2iBuilderTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { 15454 return common.OpenAPIDefinition{ 15455 Schema: spec.Schema{ 15456 SchemaProps: spec.SchemaProps{ 15457 Description: "S2iBuilderTemplateList contains a list of S2iBuilderTemplate", 15458 Type: []string{"object"}, 15459 Properties: map[string]spec.Schema{ 15460 "kind": { 15461 SchemaProps: spec.SchemaProps{ 15462 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 15463 Type: []string{"string"}, 15464 Format: "", 15465 }, 15466 }, 15467 "apiVersion": { 15468 SchemaProps: spec.SchemaProps{ 15469 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 15470 Type: []string{"string"}, 15471 Format: "", 15472 }, 15473 }, 15474 "metadata": { 15475 SchemaProps: spec.SchemaProps{ 15476 Default: map[string]interface{}{}, 15477 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 15478 }, 15479 }, 15480 "items": { 15481 SchemaProps: spec.SchemaProps{ 15482 Type: []string{"array"}, 15483 Items: &spec.SchemaOrArray{ 15484 Schema: &spec.Schema{ 15485 SchemaProps: spec.SchemaProps{ 15486 Default: map[string]interface{}{}, 15487 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iBuilderTemplate"), 15488 }, 15489 }, 15490 }, 15491 }, 15492 }, 15493 }, 15494 Required: []string{"items"}, 15495 }, 15496 }, 15497 Dependencies: []string{ 15498 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/devops/v1alpha1.S2iBuilderTemplate"}, 15499 } 15500 } 15501 15502 func schema_kubesphereio_api_devops_v1alpha1_S2iBuilderTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 15503 return common.OpenAPIDefinition{ 15504 Schema: spec.Schema{ 15505 SchemaProps: spec.SchemaProps{ 15506 Description: "S2iBuilderTemplateSpec defines the desired state of S2iBuilderTemplate", 15507 Type: []string{"object"}, 15508 Properties: map[string]spec.Schema{ 15509 "defaultBaseImage": { 15510 SchemaProps: spec.SchemaProps{ 15511 Description: "DefaultBaseImage is the image that will be used by default", 15512 Type: []string{"string"}, 15513 Format: "", 15514 }, 15515 }, 15516 "containerInfo": { 15517 SchemaProps: spec.SchemaProps{ 15518 Description: "Images are the images this template will use.", 15519 Type: []string{"array"}, 15520 Items: &spec.SchemaOrArray{ 15521 Schema: &spec.Schema{ 15522 SchemaProps: spec.SchemaProps{ 15523 Default: map[string]interface{}{}, 15524 Ref: ref("kubesphere.io/api/devops/v1alpha1.ContainerInfo"), 15525 }, 15526 }, 15527 }, 15528 }, 15529 }, 15530 "codeFramework": { 15531 SchemaProps: spec.SchemaProps{ 15532 Description: "CodeFramework means which language this template is designed for and which framework is using if has framework. Like Java, NodeJS etc", 15533 Type: []string{"string"}, 15534 Format: "", 15535 }, 15536 }, 15537 "environment": { 15538 SchemaProps: spec.SchemaProps{ 15539 Description: "Parameters is a set of environment variables to be passed to the image.", 15540 Type: []string{"array"}, 15541 Items: &spec.SchemaOrArray{ 15542 Schema: &spec.Schema{ 15543 SchemaProps: spec.SchemaProps{ 15544 Default: map[string]interface{}{}, 15545 Ref: ref("kubesphere.io/api/devops/v1alpha1.Parameter"), 15546 }, 15547 }, 15548 }, 15549 }, 15550 }, 15551 "version": { 15552 SchemaProps: spec.SchemaProps{ 15553 Description: "Version of template", 15554 Type: []string{"string"}, 15555 Format: "", 15556 }, 15557 }, 15558 "description": { 15559 SchemaProps: spec.SchemaProps{ 15560 Description: "Description illustrate the purpose of this template", 15561 Type: []string{"string"}, 15562 Format: "", 15563 }, 15564 }, 15565 "iconPath": { 15566 SchemaProps: spec.SchemaProps{ 15567 Description: "IconPath is used for frontend display", 15568 Type: []string{"string"}, 15569 Format: "", 15570 }, 15571 }, 15572 }, 15573 }, 15574 }, 15575 Dependencies: []string{ 15576 "kubesphere.io/api/devops/v1alpha1.ContainerInfo", "kubesphere.io/api/devops/v1alpha1.Parameter"}, 15577 } 15578 } 15579 15580 func schema_kubesphereio_api_devops_v1alpha1_S2iBuilderTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 15581 return common.OpenAPIDefinition{ 15582 Schema: spec.Schema{ 15583 SchemaProps: spec.SchemaProps{ 15584 Description: "S2iBuilderTemplateStatus defines the observed state of S2iBuilderTemplate", 15585 Type: []string{"object"}, 15586 }, 15587 }, 15588 } 15589 } 15590 15591 func schema_kubesphereio_api_devops_v1alpha1_S2iConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { 15592 return common.OpenAPIDefinition{ 15593 Schema: spec.Schema{ 15594 SchemaProps: spec.SchemaProps{ 15595 Type: []string{"object"}, 15596 Properties: map[string]spec.Schema{ 15597 "displayName": { 15598 SchemaProps: spec.SchemaProps{ 15599 Description: "DisplayName is a result image display-name label. This defaults to the output image name.", 15600 Type: []string{"string"}, 15601 Format: "", 15602 }, 15603 }, 15604 "description": { 15605 SchemaProps: spec.SchemaProps{ 15606 Description: "Description is a result image description label. The default is no description.", 15607 Type: []string{"string"}, 15608 Format: "", 15609 }, 15610 }, 15611 "builderImage": { 15612 SchemaProps: spec.SchemaProps{ 15613 Description: "BuilderImage describes which image is used for building the result images.", 15614 Type: []string{"string"}, 15615 Format: "", 15616 }, 15617 }, 15618 "builderImageVersion": { 15619 SchemaProps: spec.SchemaProps{ 15620 Description: "BuilderImageVersion provides optional version information about the builder image.", 15621 Type: []string{"string"}, 15622 Format: "", 15623 }, 15624 }, 15625 "builderBaseImageVersion": { 15626 SchemaProps: spec.SchemaProps{ 15627 Description: "BuilderBaseImageVersion provides optional version information about the builder base image.", 15628 Type: []string{"string"}, 15629 Format: "", 15630 }, 15631 }, 15632 "runtimeImage": { 15633 SchemaProps: spec.SchemaProps{ 15634 Description: "RuntimeImage specifies the image that will be a base for resulting image and will be used for running an application. By default, BuilderImage is used for building and running, but the latter may be overridden.", 15635 Type: []string{"string"}, 15636 Format: "", 15637 }, 15638 }, 15639 "outputImageName": { 15640 SchemaProps: spec.SchemaProps{ 15641 Description: "OutputImageName is a result image name without tag, default is latest. tag will append to ImageName in the end", 15642 Type: []string{"string"}, 15643 Format: "", 15644 }, 15645 }, 15646 "runtimeImagePullPolicy": { 15647 SchemaProps: spec.SchemaProps{ 15648 Description: "RuntimeImagePullPolicy specifies when to pull a runtime image.", 15649 Type: []string{"string"}, 15650 Format: "", 15651 }, 15652 }, 15653 "runtimeAuthentication": { 15654 SchemaProps: spec.SchemaProps{ 15655 Description: "RuntimeAuthentication holds the authentication information for pulling the runtime Docker images from private repositories.", 15656 Ref: ref("kubesphere.io/api/devops/v1alpha1.AuthConfig"), 15657 }, 15658 }, 15659 "runtimeArtifacts": { 15660 SchemaProps: spec.SchemaProps{ 15661 Description: "RuntimeArtifacts specifies a list of source/destination pairs that will be copied from builder to a runtime image. Source can be a file or directory. Destination must be a directory. Regardless whether it is an absolute or relative path, it will be placed into image's WORKDIR. Destination also can be empty or equals to \".\", in this case it just refers to a root of WORKDIR. In case it's empty, S2I will try to get this list from io.openshift.s2i.assemble-input-files label on a RuntimeImage.", 15662 Type: []string{"array"}, 15663 Items: &spec.SchemaOrArray{ 15664 Schema: &spec.Schema{ 15665 SchemaProps: spec.SchemaProps{ 15666 Default: map[string]interface{}{}, 15667 Ref: ref("kubesphere.io/api/devops/v1alpha1.VolumeSpec"), 15668 }, 15669 }, 15670 }, 15671 }, 15672 }, 15673 "dockerConfig": { 15674 SchemaProps: spec.SchemaProps{ 15675 Description: "DockerConfig describes how to access host docker daemon.", 15676 Ref: ref("kubesphere.io/api/devops/v1alpha1.DockerConfig"), 15677 }, 15678 }, 15679 "pullAuthentication": { 15680 SchemaProps: spec.SchemaProps{ 15681 Description: "PullAuthentication holds the authentication information for pulling the Docker images from private repositories", 15682 Ref: ref("kubesphere.io/api/devops/v1alpha1.AuthConfig"), 15683 }, 15684 }, 15685 "pushAuthentication": { 15686 SchemaProps: spec.SchemaProps{ 15687 Description: "PullAuthentication holds the authentication information for pulling the Docker images from private repositories", 15688 Ref: ref("kubesphere.io/api/devops/v1alpha1.AuthConfig"), 15689 }, 15690 }, 15691 "incrementalAuthentication": { 15692 SchemaProps: spec.SchemaProps{ 15693 Description: "IncrementalAuthentication holds the authentication information for pulling the previous image from private repositories", 15694 Ref: ref("kubesphere.io/api/devops/v1alpha1.AuthConfig"), 15695 }, 15696 }, 15697 "dockerNetworkMode": { 15698 SchemaProps: spec.SchemaProps{ 15699 Description: "DockerNetworkMode is used to set the docker network setting to --net=container:<id> when the builder is invoked from a container.", 15700 Type: []string{"string"}, 15701 Format: "", 15702 }, 15703 }, 15704 "preserveWorkingDir": { 15705 SchemaProps: spec.SchemaProps{ 15706 Description: "PreserveWorkingDir describes if working directory should be left after processing.", 15707 Type: []string{"boolean"}, 15708 Format: "", 15709 }, 15710 }, 15711 "imageName": { 15712 SchemaProps: spec.SchemaProps{ 15713 Description: "ImageName Contains the registry address and reponame, tag should set by field tag alone", 15714 Default: "", 15715 Type: []string{"string"}, 15716 Format: "", 15717 }, 15718 }, 15719 "tag": { 15720 SchemaProps: spec.SchemaProps{ 15721 Description: "Tag is a result image tag name.", 15722 Type: []string{"string"}, 15723 Format: "", 15724 }, 15725 }, 15726 "builderPullPolicy": { 15727 SchemaProps: spec.SchemaProps{ 15728 Description: "BuilderPullPolicy specifies when to pull the builder image", 15729 Type: []string{"string"}, 15730 Format: "", 15731 }, 15732 }, 15733 "previousImagePullPolicy": { 15734 SchemaProps: spec.SchemaProps{ 15735 Description: "PreviousImagePullPolicy specifies when to pull the previously build image when doing incremental build", 15736 Type: []string{"string"}, 15737 Format: "", 15738 }, 15739 }, 15740 "incremental": { 15741 SchemaProps: spec.SchemaProps{ 15742 Description: "Incremental describes whether to try to perform incremental build.", 15743 Type: []string{"boolean"}, 15744 Format: "", 15745 }, 15746 }, 15747 "incrementalFromTag": { 15748 SchemaProps: spec.SchemaProps{ 15749 Description: "IncrementalFromTag sets an alternative image tag to look for existing artifacts. Tag is used by default if this is not set.", 15750 Type: []string{"string"}, 15751 Format: "", 15752 }, 15753 }, 15754 "removePreviousImage": { 15755 SchemaProps: spec.SchemaProps{ 15756 Description: "RemovePreviousImage describes if previous image should be removed after successful build. This applies only to incremental builds.", 15757 Type: []string{"boolean"}, 15758 Format: "", 15759 }, 15760 }, 15761 "environment": { 15762 SchemaProps: spec.SchemaProps{ 15763 Description: "Environment is a map of environment variables to be passed to the image.", 15764 Type: []string{"array"}, 15765 Items: &spec.SchemaOrArray{ 15766 Schema: &spec.Schema{ 15767 SchemaProps: spec.SchemaProps{ 15768 Default: map[string]interface{}{}, 15769 Ref: ref("kubesphere.io/api/devops/v1alpha1.EnvironmentSpec"), 15770 }, 15771 }, 15772 }, 15773 }, 15774 }, 15775 "labelNamespace": { 15776 SchemaProps: spec.SchemaProps{ 15777 Description: "LabelNamespace provides the namespace under which the labels will be generated.", 15778 Type: []string{"string"}, 15779 Format: "", 15780 }, 15781 }, 15782 "callbackUrl": { 15783 SchemaProps: spec.SchemaProps{ 15784 Description: "CallbackURL is a URL which is called upon successful build to inform about that fact.", 15785 Type: []string{"string"}, 15786 Format: "", 15787 }, 15788 }, 15789 "scriptsUrl": { 15790 SchemaProps: spec.SchemaProps{ 15791 Description: "ScriptsURL is a URL describing where to fetch the S2I scripts from during build process. This url can be a reference within the builder image if the scheme is specified as image://", 15792 Type: []string{"string"}, 15793 Format: "", 15794 }, 15795 }, 15796 "destination": { 15797 SchemaProps: spec.SchemaProps{ 15798 Description: "Destination specifies a location where the untar operation will place its artifacts.", 15799 Type: []string{"string"}, 15800 Format: "", 15801 }, 15802 }, 15803 "workingDir": { 15804 SchemaProps: spec.SchemaProps{ 15805 Description: "WorkingDir describes temporary directory used for downloading sources, scripts and tar operations.", 15806 Type: []string{"string"}, 15807 Format: "", 15808 }, 15809 }, 15810 "workingSourceDir": { 15811 SchemaProps: spec.SchemaProps{ 15812 Description: "WorkingSourceDir describes the subdirectory off of WorkingDir set up during the repo download that is later used as the root for ignore processing", 15813 Type: []string{"string"}, 15814 Format: "", 15815 }, 15816 }, 15817 "layeredBuild": { 15818 SchemaProps: spec.SchemaProps{ 15819 Description: "LayeredBuild describes if this is build which layered scripts and sources on top of BuilderImage.", 15820 Type: []string{"boolean"}, 15821 Format: "", 15822 }, 15823 }, 15824 "contextDir": { 15825 SchemaProps: spec.SchemaProps{ 15826 Description: "Specify a relative directory inside the application repository that should be used as a root directory for the application.", 15827 Type: []string{"string"}, 15828 Format: "", 15829 }, 15830 }, 15831 "assembleUser": { 15832 SchemaProps: spec.SchemaProps{ 15833 Description: "AssembleUser specifies the user to run the assemble script in container", 15834 Type: []string{"string"}, 15835 Format: "", 15836 }, 15837 }, 15838 "runImage": { 15839 SchemaProps: spec.SchemaProps{ 15840 Description: "RunImage will trigger a \"docker run ...\" invocation of the produced image so the user can see if it operates as he would expect", 15841 Type: []string{"boolean"}, 15842 Format: "", 15843 }, 15844 }, 15845 "usage": { 15846 SchemaProps: spec.SchemaProps{ 15847 Description: "Usage allows for properly shortcircuiting s2i logic when `s2i usage` is invoked", 15848 Type: []string{"boolean"}, 15849 Format: "", 15850 }, 15851 }, 15852 "injections": { 15853 SchemaProps: spec.SchemaProps{ 15854 Description: "Injections specifies a list source/destination folders that are injected to the container that runs assemble. All files we inject will be truncated after the assemble script finishes.", 15855 Type: []string{"array"}, 15856 Items: &spec.SchemaOrArray{ 15857 Schema: &spec.Schema{ 15858 SchemaProps: spec.SchemaProps{ 15859 Default: map[string]interface{}{}, 15860 Ref: ref("kubesphere.io/api/devops/v1alpha1.VolumeSpec"), 15861 }, 15862 }, 15863 }, 15864 }, 15865 }, 15866 "cgroupLimits": { 15867 SchemaProps: spec.SchemaProps{ 15868 Description: "CGroupLimits describes the cgroups limits that will be applied to any containers run by s2i.", 15869 Ref: ref("kubesphere.io/api/devops/v1alpha1.CGroupLimits"), 15870 }, 15871 }, 15872 "dropCapabilities": { 15873 SchemaProps: spec.SchemaProps{ 15874 Description: "DropCapabilities contains a list of capabilities to drop when executing containers", 15875 Type: []string{"array"}, 15876 Items: &spec.SchemaOrArray{ 15877 Schema: &spec.Schema{ 15878 SchemaProps: spec.SchemaProps{ 15879 Default: "", 15880 Type: []string{"string"}, 15881 Format: "", 15882 }, 15883 }, 15884 }, 15885 }, 15886 }, 15887 "scriptDownloadProxyConfig": { 15888 SchemaProps: spec.SchemaProps{ 15889 Description: "ScriptDownloadProxyConfig optionally specifies the http and https proxy to use when downloading scripts", 15890 Ref: ref("kubesphere.io/api/devops/v1alpha1.ProxyConfig"), 15891 }, 15892 }, 15893 "excludeRegExp": { 15894 SchemaProps: spec.SchemaProps{ 15895 Description: "ExcludeRegExp contains a string representation of the regular expression desired for deciding which files to exclude from the tar stream", 15896 Type: []string{"string"}, 15897 Format: "", 15898 }, 15899 }, 15900 "blockOnBuild": { 15901 SchemaProps: spec.SchemaProps{ 15902 Description: "BlockOnBuild prevents s2i from performing a docker build operation if one is necessary to execute ONBUILD commands, or to layer source code into the container for images that don't have a tar binary available, if the image contains ONBUILD commands that would be executed.", 15903 Type: []string{"boolean"}, 15904 Format: "", 15905 }, 15906 }, 15907 "hasOnBuild": { 15908 SchemaProps: spec.SchemaProps{ 15909 Description: "HasOnBuild will be set to true if the builder image contains ONBUILD instructions", 15910 Type: []string{"boolean"}, 15911 Format: "", 15912 }, 15913 }, 15914 "buildVolumes": { 15915 SchemaProps: spec.SchemaProps{ 15916 Description: "BuildVolumes specifies a list of volumes to mount to container running the build.", 15917 Type: []string{"array"}, 15918 Items: &spec.SchemaOrArray{ 15919 Schema: &spec.Schema{ 15920 SchemaProps: spec.SchemaProps{ 15921 Default: "", 15922 Type: []string{"string"}, 15923 Format: "", 15924 }, 15925 }, 15926 }, 15927 }, 15928 }, 15929 "labels": { 15930 SchemaProps: spec.SchemaProps{ 15931 Description: "Labels specify labels and their values to be applied to the resulting image. Label keys must have non-zero length. The labels defined here override generated labels in case they have the same name.", 15932 Type: []string{"object"}, 15933 AdditionalProperties: &spec.SchemaOrBool{ 15934 Allows: true, 15935 Schema: &spec.Schema{ 15936 SchemaProps: spec.SchemaProps{ 15937 Default: "", 15938 Type: []string{"string"}, 15939 Format: "", 15940 }, 15941 }, 15942 }, 15943 }, 15944 }, 15945 "securityOpt": { 15946 SchemaProps: spec.SchemaProps{ 15947 Description: "SecurityOpt are passed as options to the docker containers launched by s2i.", 15948 Type: []string{"array"}, 15949 Items: &spec.SchemaOrArray{ 15950 Schema: &spec.Schema{ 15951 SchemaProps: spec.SchemaProps{ 15952 Default: "", 15953 Type: []string{"string"}, 15954 Format: "", 15955 }, 15956 }, 15957 }, 15958 }, 15959 }, 15960 "keepSymlinks": { 15961 SchemaProps: spec.SchemaProps{ 15962 Description: "KeepSymlinks indicates to copy symlinks as symlinks. Default behavior is to follow symlinks and copy files by content.", 15963 Type: []string{"boolean"}, 15964 Format: "", 15965 }, 15966 }, 15967 "asDockerfile": { 15968 SchemaProps: spec.SchemaProps{ 15969 Description: "AsDockerfile indicates the path where the Dockerfile should be written instead of building a new image.", 15970 Type: []string{"string"}, 15971 Format: "", 15972 }, 15973 }, 15974 "imageWorkDir": { 15975 SchemaProps: spec.SchemaProps{ 15976 Description: "ImageWorkDir is the default working directory for the builder image.", 15977 Type: []string{"string"}, 15978 Format: "", 15979 }, 15980 }, 15981 "imageScriptsUrl": { 15982 SchemaProps: spec.SchemaProps{ 15983 Description: "ImageScriptsURL is the default location to find the assemble/run scripts for a builder image. This url can be a reference within the builder image if the scheme is specified as image://", 15984 Type: []string{"string"}, 15985 Format: "", 15986 }, 15987 }, 15988 "addHost": { 15989 SchemaProps: spec.SchemaProps{ 15990 Description: "AddHost Add a line to /etc/hosts for test purpose or private use in LAN. Its format is host:IP,multiple hosts can be added by using multiple --add-host", 15991 Type: []string{"array"}, 15992 Items: &spec.SchemaOrArray{ 15993 Schema: &spec.Schema{ 15994 SchemaProps: spec.SchemaProps{ 15995 Default: "", 15996 Type: []string{"string"}, 15997 Format: "", 15998 }, 15999 }, 16000 }, 16001 }, 16002 }, 16003 "export": { 16004 SchemaProps: spec.SchemaProps{ 16005 Description: "Export Push the result image to specify image registry in tag", 16006 Type: []string{"boolean"}, 16007 Format: "", 16008 }, 16009 }, 16010 "sourceUrl": { 16011 SchemaProps: spec.SchemaProps{ 16012 Description: "SourceURL is url of the codes such as https://github.com/a/b.git", 16013 Default: "", 16014 Type: []string{"string"}, 16015 Format: "", 16016 }, 16017 }, 16018 "isBinaryURL": { 16019 SchemaProps: spec.SchemaProps{ 16020 Description: "IsBinaryURL explain the type of SourceURL. If it is IsBinaryURL, it will download the file directly without using git.", 16021 Type: []string{"boolean"}, 16022 Format: "", 16023 }, 16024 }, 16025 "gitSecretRef": { 16026 SchemaProps: spec.SchemaProps{ 16027 Description: "GitSecretRef is the BasicAuth Secret of Git Clone", 16028 Ref: ref("k8s.io/api/core/v1.LocalObjectReference"), 16029 }, 16030 }, 16031 "revisionId": { 16032 SchemaProps: spec.SchemaProps{ 16033 Description: "The RevisionId is a branch name or a SHA-1 hash of every important thing about the commit", 16034 Type: []string{"string"}, 16035 Format: "", 16036 }, 16037 }, 16038 "taintKey": { 16039 SchemaProps: spec.SchemaProps{ 16040 Description: "The name of taint.", 16041 Type: []string{"string"}, 16042 Format: "", 16043 }, 16044 }, 16045 "nodeAffinityKey": { 16046 SchemaProps: spec.SchemaProps{ 16047 Description: "The key of Node Affinity.", 16048 Type: []string{"string"}, 16049 Format: "", 16050 }, 16051 }, 16052 "nodeAffinityValues": { 16053 SchemaProps: spec.SchemaProps{ 16054 Description: "The values of Node Affinity.", 16055 Type: []string{"array"}, 16056 Items: &spec.SchemaOrArray{ 16057 Schema: &spec.Schema{ 16058 SchemaProps: spec.SchemaProps{ 16059 Default: "", 16060 Type: []string{"string"}, 16061 Format: "", 16062 }, 16063 }, 16064 }, 16065 }, 16066 }, 16067 "outputBuildResult": { 16068 SchemaProps: spec.SchemaProps{ 16069 Description: "Whether output build result to status.", 16070 Type: []string{"boolean"}, 16071 Format: "", 16072 }, 16073 }, 16074 "branchExpression": { 16075 SchemaProps: spec.SchemaProps{ 16076 Description: "Regular expressions, ignoring names that do not match the provided regular expression", 16077 Type: []string{"string"}, 16078 Format: "", 16079 }, 16080 }, 16081 "secretCode": { 16082 SchemaProps: spec.SchemaProps{ 16083 Description: "SecretCode", 16084 Type: []string{"string"}, 16085 Format: "", 16086 }, 16087 }, 16088 }, 16089 Required: []string{"imageName", "sourceUrl"}, 16090 }, 16091 }, 16092 Dependencies: []string{ 16093 "k8s.io/api/core/v1.LocalObjectReference", "kubesphere.io/api/devops/v1alpha1.AuthConfig", "kubesphere.io/api/devops/v1alpha1.CGroupLimits", "kubesphere.io/api/devops/v1alpha1.DockerConfig", "kubesphere.io/api/devops/v1alpha1.EnvironmentSpec", "kubesphere.io/api/devops/v1alpha1.ProxyConfig", "kubesphere.io/api/devops/v1alpha1.VolumeSpec"}, 16094 } 16095 } 16096 16097 func schema_kubesphereio_api_devops_v1alpha1_S2iRun(ref common.ReferenceCallback) common.OpenAPIDefinition { 16098 return common.OpenAPIDefinition{ 16099 Schema: spec.Schema{ 16100 SchemaProps: spec.SchemaProps{ 16101 Description: "S2iRun is the Schema for the s2iruns API", 16102 Type: []string{"object"}, 16103 Properties: map[string]spec.Schema{ 16104 "kind": { 16105 SchemaProps: spec.SchemaProps{ 16106 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 16107 Type: []string{"string"}, 16108 Format: "", 16109 }, 16110 }, 16111 "apiVersion": { 16112 SchemaProps: spec.SchemaProps{ 16113 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 16114 Type: []string{"string"}, 16115 Format: "", 16116 }, 16117 }, 16118 "metadata": { 16119 SchemaProps: spec.SchemaProps{ 16120 Default: map[string]interface{}{}, 16121 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 16122 }, 16123 }, 16124 "spec": { 16125 SchemaProps: spec.SchemaProps{ 16126 Default: map[string]interface{}{}, 16127 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iRunSpec"), 16128 }, 16129 }, 16130 "status": { 16131 SchemaProps: spec.SchemaProps{ 16132 Default: map[string]interface{}{}, 16133 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iRunStatus"), 16134 }, 16135 }, 16136 }, 16137 }, 16138 }, 16139 Dependencies: []string{ 16140 "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta", "kubesphere.io/api/devops/v1alpha1.S2iRunSpec", "kubesphere.io/api/devops/v1alpha1.S2iRunStatus"}, 16141 } 16142 } 16143 16144 func schema_kubesphereio_api_devops_v1alpha1_S2iRunList(ref common.ReferenceCallback) common.OpenAPIDefinition { 16145 return common.OpenAPIDefinition{ 16146 Schema: spec.Schema{ 16147 SchemaProps: spec.SchemaProps{ 16148 Description: "S2iRunList contains a list of S2iRun", 16149 Type: []string{"object"}, 16150 Properties: map[string]spec.Schema{ 16151 "kind": { 16152 SchemaProps: spec.SchemaProps{ 16153 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 16154 Type: []string{"string"}, 16155 Format: "", 16156 }, 16157 }, 16158 "apiVersion": { 16159 SchemaProps: spec.SchemaProps{ 16160 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 16161 Type: []string{"string"}, 16162 Format: "", 16163 }, 16164 }, 16165 "metadata": { 16166 SchemaProps: spec.SchemaProps{ 16167 Default: map[string]interface{}{}, 16168 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 16169 }, 16170 }, 16171 "items": { 16172 SchemaProps: spec.SchemaProps{ 16173 Type: []string{"array"}, 16174 Items: &spec.SchemaOrArray{ 16175 Schema: &spec.Schema{ 16176 SchemaProps: spec.SchemaProps{ 16177 Default: map[string]interface{}{}, 16178 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iRun"), 16179 }, 16180 }, 16181 }, 16182 }, 16183 }, 16184 }, 16185 Required: []string{"items"}, 16186 }, 16187 }, 16188 Dependencies: []string{ 16189 "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta", "kubesphere.io/api/devops/v1alpha1.S2iRun"}, 16190 } 16191 } 16192 16193 func schema_kubesphereio_api_devops_v1alpha1_S2iRunSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 16194 return common.OpenAPIDefinition{ 16195 Schema: spec.Schema{ 16196 SchemaProps: spec.SchemaProps{ 16197 Description: "S2iRunSpec defines the desired state of S2iRun", 16198 Type: []string{"object"}, 16199 Properties: map[string]spec.Schema{ 16200 "builderName": { 16201 SchemaProps: spec.SchemaProps{ 16202 Description: "BuilderName specify the name of s2ibuilder, required", 16203 Default: "", 16204 Type: []string{"string"}, 16205 Format: "", 16206 }, 16207 }, 16208 "backoffLimit": { 16209 SchemaProps: spec.SchemaProps{ 16210 Description: "BackoffLimit limits the restart count of each s2irun. Default is 0", 16211 Type: []string{"integer"}, 16212 Format: "int32", 16213 }, 16214 }, 16215 "secondsAfterFinished": { 16216 SchemaProps: spec.SchemaProps{ 16217 Description: "SecondsAfterFinished if is set and greater than zero, and the job created by s2irun become successful or failed , the job will be auto deleted after SecondsAfterFinished", 16218 Type: []string{"integer"}, 16219 Format: "int32", 16220 }, 16221 }, 16222 "newTag": { 16223 SchemaProps: spec.SchemaProps{ 16224 Description: "NewTag override the default tag in its s2ibuilder, image name cannot be changed.", 16225 Type: []string{"string"}, 16226 Format: "", 16227 }, 16228 }, 16229 "newRevisionId": { 16230 SchemaProps: spec.SchemaProps{ 16231 Description: "NewRevisionId override the default NewRevisionId in its s2ibuilder.", 16232 Type: []string{"string"}, 16233 Format: "", 16234 }, 16235 }, 16236 "newSourceURL": { 16237 SchemaProps: spec.SchemaProps{ 16238 Description: "NewSourceURL is used to download new binary artifacts", 16239 Type: []string{"string"}, 16240 Format: "", 16241 }, 16242 }, 16243 }, 16244 Required: []string{"builderName"}, 16245 }, 16246 }, 16247 } 16248 } 16249 16250 func schema_kubesphereio_api_devops_v1alpha1_S2iRunStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 16251 return common.OpenAPIDefinition{ 16252 Schema: spec.Schema{ 16253 SchemaProps: spec.SchemaProps{ 16254 Description: "S2iRunStatus defines the observed state of S2iRun", 16255 Type: []string{"object"}, 16256 Properties: map[string]spec.Schema{ 16257 "startTime": { 16258 SchemaProps: spec.SchemaProps{ 16259 Description: "StartTime represent when this run began", 16260 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 16261 }, 16262 }, 16263 "completionTime": { 16264 SchemaProps: spec.SchemaProps{ 16265 Description: "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", 16266 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 16267 }, 16268 }, 16269 "runState": { 16270 SchemaProps: spec.SchemaProps{ 16271 Description: "RunState indicates whether this job is done or failed", 16272 Type: []string{"string"}, 16273 Format: "", 16274 }, 16275 }, 16276 "logURL": { 16277 SchemaProps: spec.SchemaProps{ 16278 Description: "LogURL is uesd for external log handler to let user know where is log located in", 16279 Type: []string{"string"}, 16280 Format: "", 16281 }, 16282 }, 16283 "kubernetesJobName": { 16284 SchemaProps: spec.SchemaProps{ 16285 Description: "KubernetesJobName is the job name in k8s", 16286 Type: []string{"string"}, 16287 Format: "", 16288 }, 16289 }, 16290 "s2iBuildResult": { 16291 SchemaProps: spec.SchemaProps{ 16292 Description: "S2i build result info.", 16293 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iBuildResult"), 16294 }, 16295 }, 16296 "s2iBuildSource": { 16297 SchemaProps: spec.SchemaProps{ 16298 Description: "S2i build source info.", 16299 Ref: ref("kubesphere.io/api/devops/v1alpha1.S2iBuildSource"), 16300 }, 16301 }, 16302 }, 16303 }, 16304 }, 16305 Dependencies: []string{ 16306 "k8s.io/apimachinery/pkg/apis/meta/v1.Time", "kubesphere.io/api/devops/v1alpha1.S2iBuildResult", "kubesphere.io/api/devops/v1alpha1.S2iBuildSource"}, 16307 } 16308 } 16309 16310 func schema_kubesphereio_api_devops_v1alpha1_UserDefineTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { 16311 return common.OpenAPIDefinition{ 16312 Schema: spec.Schema{ 16313 SchemaProps: spec.SchemaProps{ 16314 Type: []string{"object"}, 16315 Properties: map[string]spec.Schema{ 16316 "name": { 16317 SchemaProps: spec.SchemaProps{ 16318 Description: "Name specify a template to use, so many fields in Config can left empty", 16319 Type: []string{"string"}, 16320 Format: "", 16321 }, 16322 }, 16323 "parameters": { 16324 SchemaProps: spec.SchemaProps{ 16325 Description: "Parameters must use with `template`, fill some parameters which template will use", 16326 Type: []string{"array"}, 16327 Items: &spec.SchemaOrArray{ 16328 Schema: &spec.Schema{ 16329 SchemaProps: spec.SchemaProps{ 16330 Default: map[string]interface{}{}, 16331 Ref: ref("kubesphere.io/api/devops/v1alpha1.Parameter"), 16332 }, 16333 }, 16334 }, 16335 }, 16336 }, 16337 "builderImage": { 16338 SchemaProps: spec.SchemaProps{ 16339 Description: "BaseImage specify which version of this template to use", 16340 Type: []string{"string"}, 16341 Format: "", 16342 }, 16343 }, 16344 }, 16345 }, 16346 }, 16347 Dependencies: []string{ 16348 "kubesphere.io/api/devops/v1alpha1.Parameter"}, 16349 } 16350 } 16351 16352 func schema_kubesphereio_api_devops_v1alpha1_VolumeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 16353 return common.OpenAPIDefinition{ 16354 Schema: spec.Schema{ 16355 SchemaProps: spec.SchemaProps{ 16356 Description: "VolumeSpec represents a single volume mount point.", 16357 Type: []string{"object"}, 16358 Properties: map[string]spec.Schema{ 16359 "source": { 16360 SchemaProps: spec.SchemaProps{ 16361 Description: "Source is a reference to the volume source.", 16362 Type: []string{"string"}, 16363 Format: "", 16364 }, 16365 }, 16366 "destination": { 16367 SchemaProps: spec.SchemaProps{ 16368 Description: "Destination is the path to mount the volume to - absolute or relative.", 16369 Type: []string{"string"}, 16370 Format: "", 16371 }, 16372 }, 16373 "keep": { 16374 SchemaProps: spec.SchemaProps{ 16375 Description: "Keep indicates if the mounted data should be kept in the final image.", 16376 Type: []string{"boolean"}, 16377 Format: "", 16378 }, 16379 }, 16380 }, 16381 }, 16382 }, 16383 } 16384 }